@fer2809fl/baileys 7.0.0 → 7.0.2

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 (273) hide show
  1. package/README.md +259 -595
  2. package/WAProto/WAProto.proto +916 -360
  3. package/WAProto/fix-imports.js +18 -22
  4. package/WAProto/index.d.ts +15471 -8638
  5. package/WAProto/index.js +80576 -45941
  6. package/lib/Defaults/index.d.ts +14 -18
  7. package/lib/Defaults/index.d.ts.map +1 -1
  8. package/lib/Defaults/index.js +110 -115
  9. package/lib/Defaults/index.js.map +1 -1
  10. package/lib/Signal/Group/group_cipher.js.map +1 -1
  11. package/lib/Signal/Group/keyhelper.d.ts.map +1 -1
  12. package/lib/Signal/Group/keyhelper.js.map +1 -1
  13. package/lib/Signal/Group/sender-chain-key.js.map +1 -1
  14. package/lib/Signal/Group/sender-key-message.js.map +1 -1
  15. package/lib/Signal/Group/sender-message-key.js.map +1 -1
  16. package/lib/Signal/libsignal.d.ts.map +1 -1
  17. package/lib/Signal/libsignal.js +17 -45
  18. package/lib/Signal/libsignal.js.map +1 -1
  19. package/lib/Signal/lid-mapping.d.ts +0 -4
  20. package/lib/Signal/lid-mapping.d.ts.map +1 -1
  21. package/lib/Signal/lid-mapping.js +0 -6
  22. package/lib/Signal/lid-mapping.js.map +1 -1
  23. package/lib/Socket/business.d.ts +532 -280
  24. package/lib/Socket/business.d.ts.map +1 -1
  25. package/lib/Socket/business.js +401 -358
  26. package/lib/Socket/chats.d.ts +2 -22
  27. package/lib/Socket/chats.d.ts.map +1 -1
  28. package/lib/Socket/chats.js +43 -314
  29. package/lib/Socket/chats.js.map +1 -1
  30. package/lib/Socket/communities.d.ts +641 -336
  31. package/lib/Socket/communities.d.ts.map +1 -1
  32. package/lib/Socket/communities.js +3 -6
  33. package/lib/Socket/communities.js.map +1 -1
  34. package/lib/Socket/dugong.d.ts +130 -0
  35. package/lib/Socket/dugong.d.ts.map +1 -0
  36. package/lib/Socket/dugong.js +772 -0
  37. package/lib/Socket/dugong.js.map +1 -0
  38. package/lib/Socket/groups.d.ts +2 -23
  39. package/lib/Socket/groups.d.ts.map +1 -1
  40. package/lib/Socket/groups.js +8 -171
  41. package/lib/Socket/groups.js.map +1 -1
  42. package/lib/Socket/index.d.ts +631 -322
  43. package/lib/Socket/index.d.ts.map +1 -1
  44. package/lib/Socket/index.js +12 -9
  45. package/lib/Socket/index.js.map +1 -1
  46. package/lib/Socket/messages-recv.d.ts +52 -84
  47. package/lib/Socket/messages-recv.d.ts.map +1 -1
  48. package/lib/Socket/messages-recv.js +185 -686
  49. package/lib/Socket/messages-recv.js.map +1 -1
  50. package/lib/Socket/messages-send.d.ts +643 -262
  51. package/lib/Socket/messages-send.d.ts.map +1 -1
  52. package/lib/Socket/messages-send.js +1559 -1359
  53. package/lib/Socket/messages-send.js.map +1 -1
  54. package/lib/Socket/mex.d.ts +0 -1
  55. package/lib/Socket/mex.d.ts.map +1 -1
  56. package/lib/Socket/mex.js +8 -22
  57. package/lib/Socket/mex.js.map +1 -1
  58. package/lib/Socket/native-buttons.js +231 -0
  59. package/lib/Socket/newsletter.d.ts +27 -42
  60. package/lib/Socket/newsletter.d.ts.map +1 -1
  61. package/lib/Socket/newsletter.js +439 -402
  62. package/lib/Socket/newsletter.js.map +1 -1
  63. package/lib/Socket/socket.d.ts +2 -6
  64. package/lib/Socket/socket.d.ts.map +1 -1
  65. package/lib/Socket/socket.js +26 -62
  66. package/lib/Socket/socket.js.map +1 -1
  67. package/lib/Types/Auth.d.ts +0 -1
  68. package/lib/Types/Auth.d.ts.map +1 -1
  69. package/lib/Types/Bussines.d.ts +34 -22
  70. package/lib/Types/Call.d.ts +1 -1
  71. package/lib/Types/Call.d.ts.map +1 -1
  72. package/lib/Types/Chat.d.ts +0 -1
  73. package/lib/Types/Chat.d.ts.map +1 -1
  74. package/lib/Types/Contact.d.ts +0 -2
  75. package/lib/Types/Contact.d.ts.map +1 -1
  76. package/lib/Types/Events.d.ts +1 -20
  77. package/lib/Types/Events.d.ts.map +1 -1
  78. package/lib/Types/GroupMetadata.d.ts +1 -4
  79. package/lib/Types/GroupMetadata.d.ts.map +1 -1
  80. package/lib/Types/Message.d.ts +348 -354
  81. package/lib/Types/Message.d.ts.map +1 -1
  82. package/lib/Types/Message.js +0 -4
  83. package/lib/Types/Message.js.map +1 -1
  84. package/lib/Types/{Mex.d.ts → Newsletter.d.ts} +7 -26
  85. package/lib/Types/Newsletter.d.ts.map +1 -0
  86. package/lib/Types/{Mex.js → Newsletter.js} +3 -11
  87. package/lib/Types/Newsletter.js.map +1 -0
  88. package/lib/Types/Signal.d.ts +1 -12
  89. package/lib/Types/Signal.d.ts.map +1 -1
  90. package/lib/Types/Socket.d.ts +148 -135
  91. package/lib/Types/Socket.d.ts.map +1 -1
  92. package/lib/Types/Socket.js.map +1 -1
  93. package/lib/Types/State.d.ts +0 -65
  94. package/lib/Types/State.d.ts.map +1 -1
  95. package/lib/Types/State.js +0 -43
  96. package/lib/Types/State.js.map +1 -1
  97. package/lib/Types/index.d.ts +52 -52
  98. package/lib/Types/index.d.ts.map +1 -1
  99. package/lib/Types/index.js +30 -23
  100. package/lib/Types/index.js.map +1 -1
  101. package/lib/Utils/auth-utils.d.ts +0 -5
  102. package/lib/Utils/auth-utils.d.ts.map +1 -1
  103. package/lib/Utils/auth-utils.js +0 -12
  104. package/lib/Utils/auth-utils.js.map +1 -1
  105. package/lib/Utils/browser-utils.d.ts.map +1 -1
  106. package/lib/Utils/browser-utils.js +0 -1
  107. package/lib/Utils/browser-utils.js.map +1 -1
  108. package/lib/Utils/chat-utils.d.ts +4 -34
  109. package/lib/Utils/chat-utils.d.ts.map +1 -1
  110. package/lib/Utils/chat-utils.js +20 -80
  111. package/lib/Utils/chat-utils.js.map +1 -1
  112. package/lib/Utils/crypto.d.ts +12 -12
  113. package/lib/Utils/crypto.d.ts.map +1 -1
  114. package/lib/Utils/crypto.js.map +1 -1
  115. package/lib/Utils/decode-wa-message.d.ts +0 -18
  116. package/lib/Utils/decode-wa-message.d.ts.map +1 -1
  117. package/lib/Utils/decode-wa-message.js +0 -34
  118. package/lib/Utils/decode-wa-message.js.map +1 -1
  119. package/lib/Utils/event-buffer.d.ts +0 -2
  120. package/lib/Utils/event-buffer.d.ts.map +1 -1
  121. package/lib/Utils/event-buffer.js +1 -49
  122. package/lib/Utils/event-buffer.js.map +1 -1
  123. package/lib/Utils/generics.d.ts +2 -3
  124. package/lib/Utils/generics.d.ts.map +1 -1
  125. package/lib/Utils/generics.js +1 -10
  126. package/lib/Utils/generics.js.map +1 -1
  127. package/lib/Utils/history.d.ts +0 -2
  128. package/lib/Utils/history.d.ts.map +1 -1
  129. package/lib/Utils/history.js +9 -12
  130. package/lib/Utils/history.js.map +1 -1
  131. package/lib/Utils/identity-change-handler.d.ts +0 -7
  132. package/lib/Utils/identity-change-handler.d.ts.map +1 -1
  133. package/lib/Utils/identity-change-handler.js +0 -1
  134. package/lib/Utils/identity-change-handler.js.map +1 -1
  135. package/lib/Utils/index.d.ts +23 -30
  136. package/lib/Utils/index.d.ts.map +1 -1
  137. package/lib/Utils/index.js +2 -9
  138. package/lib/Utils/index.js.map +1 -1
  139. package/lib/Utils/link-preview.js +2 -2
  140. package/lib/Utils/link-preview.js.map +1 -1
  141. package/lib/Utils/message-retry-manager.d.ts +0 -5
  142. package/lib/Utils/message-retry-manager.d.ts.map +1 -1
  143. package/lib/Utils/message-retry-manager.js +0 -40
  144. package/lib/Utils/message-retry-manager.js.map +1 -1
  145. package/lib/Utils/messages-media.d.ts +13 -45
  146. package/lib/Utils/messages-media.d.ts.map +1 -1
  147. package/lib/Utils/messages-media.js +98 -293
  148. package/lib/Utils/messages-media.js.map +1 -1
  149. package/lib/Utils/messages.d.ts +3 -16
  150. package/lib/Utils/messages.d.ts.map +1 -1
  151. package/lib/Utils/messages.js +1123 -1219
  152. package/lib/Utils/messages.js.map +1 -1
  153. package/lib/Utils/noise-handler.d.ts +1 -1
  154. package/lib/Utils/process-message.d.ts.map +1 -1
  155. package/lib/Utils/process-message.js +1 -103
  156. package/lib/Utils/process-message.js.map +1 -1
  157. package/lib/Utils/rich-messages.d.ts +277 -0
  158. package/lib/Utils/rich-messages.d.ts.map +1 -0
  159. package/lib/Utils/rich-messages.js +1144 -0
  160. package/lib/Utils/rich-messages.js.map +1 -0
  161. package/lib/Utils/signal.d.ts +0 -13
  162. package/lib/Utils/signal.d.ts.map +1 -1
  163. package/lib/Utils/signal.js +0 -42
  164. package/lib/Utils/signal.js.map +1 -1
  165. package/lib/Utils/sticker-pack.d.ts +10 -0
  166. package/lib/Utils/sticker-pack.js +111 -0
  167. package/lib/Utils/sync-action-utils.d.ts.map +1 -1
  168. package/lib/Utils/sync-action-utils.js +0 -1
  169. package/lib/Utils/sync-action-utils.js.map +1 -1
  170. package/lib/Utils/tc-token-utils.d.ts +1 -26
  171. package/lib/Utils/tc-token-utils.d.ts.map +1 -1
  172. package/lib/Utils/tc-token-utils.js +5 -151
  173. package/lib/Utils/tc-token-utils.js.map +1 -1
  174. package/lib/Utils/validate-connection.d.ts +0 -1
  175. package/lib/Utils/validate-connection.d.ts.map +1 -1
  176. package/lib/Utils/validate-connection.js +3 -13
  177. package/lib/Utils/validate-connection.js.map +1 -1
  178. package/lib/WABinary/decode.d.ts +1 -1
  179. package/lib/WABinary/decode.d.ts.map +1 -1
  180. package/lib/WABinary/generic-utils.d.ts +3 -1
  181. package/lib/WABinary/generic-utils.d.ts.map +1 -1
  182. package/lib/WABinary/generic-utils.js +78 -0
  183. package/lib/WABinary/generic-utils.js.map +1 -1
  184. package/lib/WABinary/jid-utils.d.ts +0 -11
  185. package/lib/WABinary/jid-utils.d.ts.map +1 -1
  186. package/lib/WABinary/jid-utils.js +0 -33
  187. package/lib/WABinary/jid-utils.js.map +1 -1
  188. package/lib/WAM/encode.d.ts +1 -1
  189. package/lib/WAM/encode.d.ts.map +1 -1
  190. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -1
  191. package/lib/WAUSync/Protocols/USyncContactProtocol.js +3 -26
  192. package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -1
  193. package/lib/WAUSync/Protocols/index.d.ts +0 -1
  194. package/lib/WAUSync/Protocols/index.d.ts.map +1 -1
  195. package/lib/WAUSync/Protocols/index.js +0 -1
  196. package/lib/WAUSync/Protocols/index.js.map +1 -1
  197. package/lib/WAUSync/USyncQuery.d.ts +0 -1
  198. package/lib/WAUSync/USyncQuery.d.ts.map +1 -1
  199. package/lib/WAUSync/USyncQuery.js +2 -6
  200. package/lib/WAUSync/USyncQuery.js.map +1 -1
  201. package/lib/WAUSync/USyncUser.d.ts +0 -4
  202. package/lib/WAUSync/USyncUser.d.ts.map +1 -1
  203. package/lib/WAUSync/USyncUser.js +0 -8
  204. package/lib/WAUSync/USyncUser.js.map +1 -1
  205. package/lib/index.d.ts +1 -1
  206. package/lib/index.d.ts.map +1 -1
  207. package/lib/index.js +1 -4
  208. package/lib/index.js.map +1 -1
  209. package/package.json +30 -34
  210. package/LICENSE +0 -21
  211. package/engine-requirements.js +0 -10
  212. package/lib/Socket/smgss.d.ts +0 -119
  213. package/lib/Socket/smgss.d.ts.map +0 -1
  214. package/lib/Socket/smgss.js +0 -453
  215. package/lib/Socket/smgss.js.map +0 -1
  216. package/lib/Store/index.d.ts +0 -4
  217. package/lib/Store/index.d.ts.map +0 -1
  218. package/lib/Store/index.js +0 -4
  219. package/lib/Store/index.js.map +0 -1
  220. package/lib/Store/make-in-memory-store.d.ts +0 -132
  221. package/lib/Store/make-in-memory-store.d.ts.map +0 -1
  222. package/lib/Store/make-in-memory-store.js +0 -450
  223. package/lib/Store/make-in-memory-store.js.map +0 -1
  224. package/lib/Store/make-ordered-dictionary.d.ts +0 -14
  225. package/lib/Store/make-ordered-dictionary.d.ts.map +0 -1
  226. package/lib/Store/make-ordered-dictionary.js +0 -80
  227. package/lib/Store/make-ordered-dictionary.js.map +0 -1
  228. package/lib/Store/object-repository.d.ts +0 -13
  229. package/lib/Store/object-repository.d.ts.map +0 -1
  230. package/lib/Store/object-repository.js +0 -24
  231. package/lib/Store/object-repository.js.map +0 -1
  232. package/lib/Types/Mex.d.ts.map +0 -1
  233. package/lib/Types/Mex.js.map +0 -1
  234. package/lib/Utils/button-handler.d.ts +0 -28
  235. package/lib/Utils/button-handler.d.ts.map +0 -1
  236. package/lib/Utils/button-handler.js +0 -140
  237. package/lib/Utils/button-handler.js.map +0 -1
  238. package/lib/Utils/companion-reg-client-utils.d.ts +0 -17
  239. package/lib/Utils/companion-reg-client-utils.d.ts.map +0 -1
  240. package/lib/Utils/companion-reg-client-utils.js +0 -35
  241. package/lib/Utils/companion-reg-client-utils.js.map +0 -1
  242. package/lib/Utils/interactive.d.ts +0 -60
  243. package/lib/Utils/interactive.d.ts.map +0 -1
  244. package/lib/Utils/interactive.js +0 -224
  245. package/lib/Utils/interactive.js.map +0 -1
  246. package/lib/Utils/message-composer.d.ts +0 -93
  247. package/lib/Utils/message-composer.d.ts.map +0 -1
  248. package/lib/Utils/message-composer.js +0 -311
  249. package/lib/Utils/message-composer.js.map +0 -1
  250. package/lib/Utils/messages-newsletter.d.ts +0 -74
  251. package/lib/Utils/messages-newsletter.d.ts.map +0 -1
  252. package/lib/Utils/messages-newsletter.js +0 -128
  253. package/lib/Utils/messages-newsletter.js.map +0 -1
  254. package/lib/Utils/shortcake-crypto.d.ts +0 -36
  255. package/lib/Utils/shortcake-crypto.d.ts.map +0 -1
  256. package/lib/Utils/shortcake-crypto.js +0 -71
  257. package/lib/Utils/shortcake-crypto.js.map +0 -1
  258. package/lib/Utils/shortcake.d.ts +0 -36
  259. package/lib/Utils/shortcake.d.ts.map +0 -1
  260. package/lib/Utils/shortcake.js +0 -162
  261. package/lib/Utils/shortcake.js.map +0 -1
  262. package/lib/Utils/use-single-file-auth-state.d.ts +0 -6
  263. package/lib/Utils/use-single-file-auth-state.d.ts.map +0 -1
  264. package/lib/Utils/use-single-file-auth-state.js +0 -111
  265. package/lib/Utils/use-single-file-auth-state.js.map +0 -1
  266. package/lib/Utils/use-sqlite-auth-state.d.ts +0 -14
  267. package/lib/Utils/use-sqlite-auth-state.d.ts.map +0 -1
  268. package/lib/Utils/use-sqlite-auth-state.js +0 -107
  269. package/lib/Utils/use-sqlite-auth-state.js.map +0 -1
  270. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +0 -10
  271. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +0 -1
  272. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +0 -25
  273. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package proto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1029496320
4
+ /// WhatsApp Version: 2.3000.1038158069
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -54,14 +54,27 @@ message AIHomeState {
54
54
  optional string imageWdsIdentifier = 5;
55
55
  optional string imageTintColor = 6;
56
56
  optional string imageBackgroundColor = 7;
57
+ optional string cardTypeId = 8;
57
58
  enum AIHomeActionType {
58
59
  PROMPT = 0;
59
60
  CREATE_IMAGE = 1;
60
61
  ANIMATE_PHOTO = 2;
61
62
  ANALYZE_FILE = 3;
63
+ COLLABORATE = 4;
62
64
  }
63
65
  }
66
+
67
+ }
68
+
69
+ message AIMediaCollectionMessage {
70
+ optional string collectionId = 1;
71
+ optional uint32 expectedMediaCount = 2;
72
+ optional bool hasGlobalCaption = 3;
73
+ }
64
74
 
75
+ message AIMediaCollectionMetadata {
76
+ optional string collectionId = 1;
77
+ optional uint32 uploadOrderIndex = 2;
65
78
  }
66
79
 
67
80
  message AIQueryFanout {
@@ -82,7 +95,7 @@ message AIRichResponseCodeMetadata {
82
95
  optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
83
96
  optional string codeContent = 2;
84
97
  }
85
-
98
+
86
99
  enum AIRichResponseCodeHighlightType {
87
100
  AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
88
101
  AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
@@ -101,14 +114,14 @@ message AIRichResponseContentItemsMetadata {
101
114
  AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
102
115
  }
103
116
  }
104
-
117
+
105
118
  message AIRichResponseReelItem {
106
119
  optional string title = 1;
107
120
  optional string profileIconUrl = 2;
108
121
  optional string thumbnailUrl = 3;
109
122
  optional string videoUrl = 4;
110
123
  }
111
-
124
+
112
125
  enum ContentType {
113
126
  DEFAULT = 0;
114
127
  CAROUSEL = 1;
@@ -164,7 +177,7 @@ message AIRichResponseLatexMetadata {
164
177
  optional double imageBottomPadding = 8;
165
178
  optional double imageTrailingPadding = 9;
166
179
  }
167
-
180
+
168
181
  }
169
182
 
170
183
  message AIRichResponseMapMetadata {
@@ -181,7 +194,7 @@ message AIRichResponseMapMetadata {
181
194
  optional string title = 4;
182
195
  optional string body = 5;
183
196
  }
184
-
197
+
185
198
  }
186
199
 
187
200
  message AIRichResponseMessage {
@@ -227,7 +240,7 @@ message AIRichResponseTableMetadata {
227
240
  repeated string items = 1;
228
241
  optional bool isHeading = 2;
229
242
  }
230
-
243
+
231
244
  }
232
245
 
233
246
  message AIRichResponseUnifiedResponse {
@@ -239,17 +252,19 @@ message AIThreadInfo {
239
252
  optional AIThreadClientInfo clientInfo = 2;
240
253
  message AIThreadClientInfo {
241
254
  optional AIThreadType type = 1;
255
+ optional string sourceChatJid = 2;
242
256
  enum AIThreadType {
243
257
  UNKNOWN = 0;
244
258
  DEFAULT = 1;
245
259
  INCOGNITO = 2;
260
+ SIDE_CHAT = 3;
246
261
  }
247
262
  }
248
-
263
+
249
264
  message AIThreadServerInfo {
250
265
  optional string title = 1;
251
266
  }
252
-
267
+
253
268
  }
254
269
 
255
270
  message Account {
@@ -330,12 +345,12 @@ message BotAgeCollectionMetadata {
330
345
  }
331
346
  }
332
347
 
333
- message BotAvatarMetadata {
334
- optional uint32 sentiment = 1;
335
- optional string behaviorGraph = 2;
336
- optional uint32 action = 3;
337
- optional uint32 intensity = 4;
338
- optional uint32 wordCount = 5;
348
+ message BotAgentDeepLinkMetadata {
349
+ optional string token = 1;
350
+ }
351
+
352
+ message BotAgentMetadata {
353
+ optional BotAgentDeepLinkMetadata deepLinkMetadata = 1;
339
354
  }
340
355
 
341
356
  message BotCapabilityMetadata {
@@ -391,6 +406,32 @@ message BotCapabilityMetadata {
391
406
  AI_RESPONSE_MODEL_BRANDING = 47;
392
407
  SESSION_TRANSPARENCY_SYSTEM_MESSAGE = 48;
393
408
  RICH_RESPONSE_UR_REASONING = 49;
409
+ RICH_RESPONSE_UR_ZEITGEIST_CITATIONS = 50;
410
+ RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL = 51;
411
+ AI_IMAGINE_LOADING_INDICATOR = 52;
412
+ RICH_RESPONSE_UR_IMAGINE = 53;
413
+ AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR = 54;
414
+ RICH_RESPONSE_UR_BLOKS_ENABLED = 55;
415
+ RICH_RESPONSE_INLINE_LINKS_ENABLED = 56;
416
+ RICH_RESPONSE_UR_IMAGINE_VIDEO = 57;
417
+ JSON_PATCH_STREAMING = 58;
418
+ AI_TAB_FORCE_CLIPPY = 59;
419
+ UNIFIED_RESPONSE_EMBEDDED_SCREENS = 60;
420
+ AI_SUBSCRIPTION_ENABLED = 61;
421
+ }
422
+ }
423
+
424
+ message BotCommandMetadata {
425
+ optional string commandName = 1;
426
+ optional string commandDescription = 2;
427
+ optional string commandPrompt = 3;
428
+ }
429
+
430
+ message BotDocumentMessageMetadata {
431
+ optional DocumentPluginType pluginType = 1;
432
+ enum DocumentPluginType {
433
+ TEXT_EXTRACTION = 0;
434
+ OCR_AND_IMAGES = 1;
394
435
  }
395
436
  }
396
437
 
@@ -452,7 +493,7 @@ message BotFeedbackMessage {
452
493
  optional string tessaSessionFbid = 2;
453
494
  optional string simonSessionFbid = 3;
454
495
  }
455
-
496
+
456
497
  message SidebySideSurveyMetaAiAnalyticsData {
457
498
  optional uint32 surveyId = 1;
458
499
  optional string primaryResponseId = 2;
@@ -466,32 +507,41 @@ message BotFeedbackMessage {
466
507
  message SideBySideSurveyAbandonEventData {
467
508
  optional string abandonDwellTimeMsString = 1;
468
509
  }
469
-
510
+
470
511
  message SideBySideSurveyCTAClickEventData {
471
512
  optional bool isSurveyExpired = 1;
472
513
  optional string clickDwellTimeMsString = 2;
473
514
  }
474
-
515
+
475
516
  message SideBySideSurveyCTAImpressionEventData {
476
517
  optional bool isSurveyExpired = 1;
477
518
  }
478
-
519
+
479
520
  message SideBySideSurveyCardImpressionEventData {
480
521
  }
481
-
522
+
482
523
  message SideBySideSurveyResponseEventData {
483
524
  optional string responseDwellTimeMsString = 1;
484
525
  optional string selectedResponseId = 2;
485
526
  }
486
-
527
+
487
528
  }
488
-
529
+
489
530
  }
531
+
532
+ }
533
+
534
+ message BotGroupMetadata {
535
+ repeated BotGroupParticipantMetadata participantsMetadata = 1;
536
+ }
490
537
 
538
+ message BotGroupParticipantMetadata {
539
+ optional string botFbid = 1;
491
540
  }
492
541
 
493
542
  message BotImagineMetadata {
494
543
  optional ImagineType imagineType = 1;
544
+ optional string shortPrompt = 2;
495
545
  enum ImagineType {
496
546
  UNKNOWN = 0;
497
547
  IMAGINE = 1;
@@ -501,6 +551,16 @@ message BotImagineMetadata {
501
551
  }
502
552
  }
503
553
 
554
+ message BotInfrastructureDiagnostics {
555
+ optional BotBackend botBackend = 1;
556
+ repeated string toolsUsed = 2;
557
+ optional bool isThinking = 3;
558
+ enum BotBackend {
559
+ AAPI = 0;
560
+ CLIPPY = 1;
561
+ }
562
+ }
563
+
504
564
  message BotLinkedAccount {
505
565
  optional BotLinkedAccountType type = 1;
506
566
  enum BotLinkedAccountType {
@@ -561,7 +621,6 @@ message BotMessageSharingInfo {
561
621
  }
562
622
 
563
623
  message BotMetadata {
564
- optional BotAvatarMetadata avatarMetadata = 1;
565
624
  optional string personaId = 2;
566
625
  optional BotPluginMetadata pluginMetadata = 3;
567
626
  optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
@@ -594,6 +653,12 @@ message BotMetadata {
594
653
  optional AIThreadInfo botThreadInfo = 31;
595
654
  optional AIRegenerateMetadata regenerateMetadata = 32;
596
655
  optional SessionTransparencyMetadata sessionTransparencyMetadata = 33;
656
+ optional BotDocumentMessageMetadata botDocumentMessageMetadata = 34;
657
+ optional BotGroupMetadata botGroupMetadata = 35;
658
+ optional BotRenderingConfigMetadata botRenderingConfigMetadata = 36;
659
+ optional BotInfrastructureDiagnostics botInfrastructureDiagnostics = 37;
660
+ optional AIMediaCollectionMetadata aiMediaCollectionMetadata = 38;
661
+ optional BotCommandMetadata commandMetadata = 39;
597
662
  optional bytes internalMetadata = 999;
598
663
  }
599
664
 
@@ -637,6 +702,15 @@ enum BotMetricsEntryPoint {
637
702
  ATTACHMENT_TRAY_GROUP_CHAT = 36;
638
703
  ASK_META_AI_MEDIA_VIEWER_1ON1 = 37;
639
704
  ASK_META_AI_MEDIA_VIEWER_GROUP = 38;
705
+ MEDIA_PICKER_1_ON_1_CHAT = 39;
706
+ MEDIA_PICKER_GROUP_CHAT = 40;
707
+ ASK_META_AI_NO_SEARCH_RESULTS = 41;
708
+ META_AI_SETTINGS = 45;
709
+ WEB_INTRO_PANEL = 46;
710
+ WEB_NAVIGATION_BAR = 47;
711
+ GROUP_MEMBER = 54;
712
+ CHATLIST_SEARCH = 55;
713
+ NEW_CHAT_LIST = 56;
640
714
  }
641
715
  message BotMetricsMetadata {
642
716
  optional string destinationId = 1;
@@ -653,9 +727,10 @@ enum BotMetricsThreadEntryPoint {
653
727
  }
654
728
  message BotModeSelectionMetadata {
655
729
  repeated BotUserSelectionMode mode = 1;
730
+ repeated uint32 overrideMode = 2;
656
731
  enum BotUserSelectionMode {
657
- UNKNOWN_MODE = 0;
658
- REASONING_MODE = 1;
732
+ DEFAULT_MODE = 0;
733
+ THINK_HARD_MODE = 1;
659
734
  }
660
735
  }
661
736
 
@@ -704,6 +779,7 @@ message BotPluginMetadata {
704
779
  message BotProgressIndicatorMetadata {
705
780
  optional string progressDescription = 1;
706
781
  repeated BotPlanningStepMetadata stepsMetadata = 2;
782
+ optional int64 estimatedCompletionTime = 3;
707
783
  message BotPlanningStepMetadata {
708
784
  optional string statusTitle = 1;
709
785
  optional string statusBody = 2;
@@ -718,7 +794,7 @@ message BotProgressIndicatorMetadata {
718
794
  optional string sourceUrl = 3;
719
795
  optional string favIconUrl = 4;
720
796
  }
721
-
797
+
722
798
  message BotPlanningSearchSourcesMetadata {
723
799
  optional string sourceTitle = 1;
724
800
  optional BotPlanningSearchSourceProvider provider = 2;
@@ -730,13 +806,13 @@ message BotProgressIndicatorMetadata {
730
806
  BING = 3;
731
807
  }
732
808
  }
733
-
809
+
734
810
  message BotPlanningStepSectionMetadata {
735
811
  optional string sectionTitle = 1;
736
812
  optional string sectionBody = 2;
737
813
  repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
738
814
  }
739
-
815
+
740
816
  enum BotSearchSourceProvider {
741
817
  UNKNOWN_PROVIDER = 0;
742
818
  OTHER = 1;
@@ -750,7 +826,7 @@ message BotProgressIndicatorMetadata {
750
826
  FINISHED = 3;
751
827
  }
752
828
  }
753
-
829
+
754
830
  }
755
831
 
756
832
  message BotPromotionMessageMetadata {
@@ -783,7 +859,7 @@ message BotQuotaMetadata {
783
859
  REASONING_FEATURE = 1;
784
860
  }
785
861
  }
786
-
862
+
787
863
  }
788
864
 
789
865
  message BotReminderMetadata {
@@ -807,13 +883,18 @@ message BotReminderMetadata {
807
883
  }
808
884
  }
809
885
 
886
+ message BotRenderingConfigMetadata {
887
+ optional string bloksVersioningId = 1;
888
+ optional double pixelDensity = 2;
889
+ }
890
+
810
891
  message BotRenderingMetadata {
811
892
  repeated Keyword keywords = 1;
812
893
  message Keyword {
813
894
  optional string value = 1;
814
895
  repeated string associatedPrompts = 2;
815
896
  }
816
-
897
+
817
898
  }
818
899
 
819
900
  message BotSessionMetadata {
@@ -829,6 +910,7 @@ enum BotSessionSource {
829
910
  EMU_FLASH = 4;
830
911
  EMU_FLASH_FOLLOWUP = 5;
831
912
  VOICE = 6;
913
+ AI_HOME_SESSION = 7;
832
914
  }
833
915
  message BotSignatureVerificationMetadata {
834
916
  repeated BotSignatureVerificationUseCaseProof proofs = 1;
@@ -842,6 +924,7 @@ message BotSignatureVerificationUseCaseProof {
842
924
  enum BotSignatureUseCase {
843
925
  UNSPECIFIED = 0;
844
926
  WA_BOT_MSG = 1;
927
+ WA_TEE_BOT_MSG = 2;
845
928
  }
846
929
  }
847
930
 
@@ -863,7 +946,7 @@ message BotSourcesMetadata {
863
946
  OTHER = 4;
864
947
  }
865
948
  }
866
-
949
+
867
950
  }
868
951
 
869
952
  message BotSuggestedPromptMetadata {
@@ -881,12 +964,12 @@ message BotUnifiedResponseMutation {
881
964
  optional BotMediaMetadata highResMedia = 2;
882
965
  optional BotMediaMetadata previewMedia = 3;
883
966
  }
884
-
967
+
885
968
  message SideBySideMetadata {
886
969
  optional string primaryResponseId = 1;
887
970
  optional bool surveyCtaHasRendered = 2;
888
971
  }
889
-
972
+
890
973
  }
891
974
 
892
975
  message CallLogRecord {
@@ -927,7 +1010,7 @@ message CallLogRecord {
927
1010
  optional string userJid = 1;
928
1011
  optional CallLogRecord.CallResult callResult = 2;
929
1012
  }
930
-
1013
+
931
1014
  enum SilenceReason {
932
1015
  NONE = 0;
933
1016
  SCHEDULED = 1;
@@ -949,9 +1032,9 @@ message CertChain {
949
1032
  optional uint64 notBefore = 4;
950
1033
  optional uint64 notAfter = 5;
951
1034
  }
952
-
1035
+
953
1036
  }
954
-
1037
+
955
1038
  }
956
1039
 
957
1040
  message ChatLockSettings {
@@ -986,29 +1069,31 @@ message ChatRowOpaqueData {
986
1069
  VIDEO = 2;
987
1070
  }
988
1071
  }
989
-
1072
+
990
1073
  message CtwaContextLinkData {
991
1074
  optional string context = 1;
992
1075
  optional string sourceUrl = 2;
993
1076
  optional string icebreaker = 3;
994
1077
  optional string phone = 4;
995
1078
  }
996
-
1079
+
997
1080
  }
998
-
1081
+
999
1082
  }
1000
1083
 
1001
1084
  message Citation {
1002
- string title = 1;
1003
- string subtitle = 2;
1004
- string cmsId = 3;
1005
- string imageUrl = 4;
1085
+ optional string title = 1;
1086
+ optional string subtitle = 2;
1087
+ optional string cmsId = 3;
1088
+ optional string imageUrl = 4;
1006
1089
  }
1007
1090
 
1008
1091
  message ClientPairingProps {
1009
1092
  optional bool isChatDbLidMigrated = 1;
1010
1093
  optional bool isSyncdPureLidSession = 2;
1011
1094
  optional bool isSyncdSnapshotRecoveryEnabled = 3;
1095
+ optional bool isHsThumbnailSyncEnabled = 4;
1096
+ optional bytes subscriptionSyncPayload = 5;
1012
1097
  }
1013
1098
 
1014
1099
  message ClientPayload {
@@ -1046,6 +1131,7 @@ message ClientPayload {
1046
1131
  optional bool paaLink = 44;
1047
1132
  optional int32 preacksCount = 45;
1048
1133
  optional int32 processingQueueSize = 46;
1134
+ repeated string pairedPeripherals = 47;
1049
1135
  enum AccountType {
1050
1136
  DEFAULT = 0;
1051
1137
  GUEST = 1;
@@ -1086,9 +1172,11 @@ message ClientPayload {
1086
1172
  OVERRIDE = 3;
1087
1173
  FALLBACK = 4;
1088
1174
  MNS = 5;
1175
+ MNS_SECONDARY = 6;
1176
+ SOCKS_PROXY = 7;
1089
1177
  }
1090
1178
  }
1091
-
1179
+
1092
1180
  message DevicePairingRegistrationData {
1093
1181
  optional bytes eRegid = 1;
1094
1182
  optional bytes eKeytype = 2;
@@ -1099,7 +1187,7 @@ message ClientPayload {
1099
1187
  optional bytes buildHash = 7;
1100
1188
  optional bytes deviceProps = 8;
1101
1189
  }
1102
-
1190
+
1103
1191
  enum IOSAppExtension {
1104
1192
  SHARE_EXTENSION = 0;
1105
1193
  SERVICE_EXTENSION = 1;
@@ -1110,7 +1198,7 @@ message ClientPayload {
1110
1198
  optional bytes token = 2;
1111
1199
  optional bool enableReadReceipts = 3;
1112
1200
  }
1113
-
1201
+
1114
1202
  enum Product {
1115
1203
  WHATSAPP = 0;
1116
1204
  MESSENGER = 1;
@@ -1146,7 +1234,7 @@ message ClientPayload {
1146
1234
  optional uint32 quaternary = 4;
1147
1235
  optional uint32 quinary = 5;
1148
1236
  }
1149
-
1237
+
1150
1238
  enum DeviceType {
1151
1239
  PHONE = 0;
1152
1240
  TABLET = 1;
@@ -1201,12 +1289,14 @@ message ClientPayload {
1201
1289
  DEBUG = 3;
1202
1290
  }
1203
1291
  }
1204
-
1292
+
1205
1293
  message WebInfo {
1206
1294
  optional string refToken = 1;
1207
1295
  optional string version = 2;
1208
1296
  optional WebdPayload webdPayload = 3;
1209
1297
  optional WebSubPlatform webSubPlatform = 4;
1298
+ optional string browser = 5;
1299
+ optional string browserVersion = 6;
1210
1300
  enum WebSubPlatform {
1211
1301
  WEB_BROWSER = 0;
1212
1302
  APP_STORE = 1;
@@ -1228,9 +1318,9 @@ message ClientPayload {
1228
1318
  optional string documentTypes = 10;
1229
1319
  optional bytes features = 11;
1230
1320
  }
1231
-
1321
+
1232
1322
  }
1233
-
1323
+
1234
1324
  }
1235
1325
 
1236
1326
  enum CollectionName {
@@ -1317,6 +1407,10 @@ message ContextInfo {
1317
1407
  optional uint32 nonJidMentions = 70;
1318
1408
  optional QuotedType quotedType = 71;
1319
1409
  optional BotMessageSharingInfo botMessageSharingInfo = 72;
1410
+ optional bool isSpoiler = 73;
1411
+ optional MediaDomainInfo mediaDomainInfo = 74;
1412
+ optional PartiallySelectedContent partiallySelectedContent = 75;
1413
+ optional uint32 afterReadDuration = 76;
1320
1414
  message AdReplyInfo {
1321
1415
  optional string advertiserName = 1;
1322
1416
  optional MediaType mediaType = 2;
@@ -1328,11 +1422,11 @@ message ContextInfo {
1328
1422
  VIDEO = 2;
1329
1423
  }
1330
1424
  }
1331
-
1425
+
1332
1426
  message BusinessMessageForwardInfo {
1333
1427
  optional string businessOwnerJid = 1;
1334
1428
  }
1335
-
1429
+
1336
1430
  message DataSharingContext {
1337
1431
  optional bool showMmDisclosure = 1;
1338
1432
  optional string encryptedSignalTokenConsented = 2;
@@ -1349,9 +1443,9 @@ message ContextInfo {
1349
1443
  optional float floatData = 4;
1350
1444
  optional ContextInfo.DataSharingContext.Parameters contents = 5;
1351
1445
  }
1352
-
1446
+
1353
1447
  }
1354
-
1448
+
1355
1449
  message ExternalAdReplyInfo {
1356
1450
  optional string title = 1;
1357
1451
  optional string body = 2;
@@ -1380,6 +1474,11 @@ message ContextInfo {
1380
1474
  optional AdType adType = 25;
1381
1475
  optional string wtwaWebsiteUrl = 26;
1382
1476
  optional string adPreviewUrl = 27;
1477
+ optional bool containsCtwaFlowsAutoReply = 28;
1478
+ optional int32 agmThumbnailStrategy = 29;
1479
+ optional int32 agmTitleStrategy = 30;
1480
+ optional int32 agmSubtitleStrategy = 31;
1481
+ optional int32 agmHeaderInteractionStrategy = 32;
1383
1482
  enum AdType {
1384
1483
  CTWA = 0;
1385
1484
  CAWC = 1;
@@ -1390,7 +1489,7 @@ message ContextInfo {
1390
1489
  VIDEO = 2;
1391
1490
  }
1392
1491
  }
1393
-
1492
+
1394
1493
  message FeatureEligibilities {
1395
1494
  optional bool cannotBeReactedTo = 1;
1396
1495
  optional bool cannotBeRanked = 2;
@@ -1398,7 +1497,7 @@ message ContextInfo {
1398
1497
  optional bool canBeReshared = 4;
1399
1498
  optional bool canReceiveMultiReact = 5;
1400
1499
  }
1401
-
1500
+
1402
1501
  enum ForwardOrigin {
1403
1502
  UNKNOWN = 0;
1404
1503
  CHAT = 1;
@@ -1413,13 +1512,14 @@ message ContextInfo {
1413
1512
  optional string newsletterName = 3;
1414
1513
  optional ContentType contentType = 4;
1415
1514
  optional string accessibilityText = 5;
1515
+ optional string profileName = 6;
1416
1516
  enum ContentType {
1417
1517
  UPDATE = 1;
1418
1518
  UPDATE_CARD = 2;
1419
1519
  LINK_CARD = 3;
1420
1520
  }
1421
1521
  }
1422
-
1522
+
1423
1523
  enum PairedMediaType {
1424
1524
  NOT_PAIRED_MEDIA = 0;
1425
1525
  SD_VIDEO_PARENT = 1;
@@ -1431,12 +1531,16 @@ message ContextInfo {
1431
1531
  HEVC_VIDEO_PARENT = 7;
1432
1532
  HEVC_VIDEO_CHILD = 8;
1433
1533
  }
1534
+ message PartiallySelectedContent {
1535
+ optional string text = 1;
1536
+ }
1537
+
1434
1538
  message QuestionReplyQuotedMessage {
1435
1539
  optional int32 serverQuestionId = 1;
1436
1540
  optional Message quotedQuestion = 2;
1437
1541
  optional Message quotedResponse = 3;
1438
1542
  }
1439
-
1543
+
1440
1544
  enum QuotedType {
1441
1545
  EXPLICIT = 0;
1442
1546
  AUTO = 1;
@@ -1450,12 +1554,14 @@ message ContextInfo {
1450
1554
  }
1451
1555
  message StatusAudienceMetadata {
1452
1556
  optional AudienceType audienceType = 1;
1557
+ optional string listName = 2;
1558
+ optional string listEmoji = 3;
1453
1559
  enum AudienceType {
1454
1560
  UNKNOWN = 0;
1455
1561
  CLOSE_FRIENDS = 1;
1456
1562
  }
1457
1563
  }
1458
-
1564
+
1459
1565
  enum StatusSourceType {
1460
1566
  IMAGE = 0;
1461
1567
  VIDEO = 1;
@@ -1468,11 +1574,11 @@ message ContextInfo {
1468
1574
  optional string utmSource = 1;
1469
1575
  optional string utmCampaign = 2;
1470
1576
  }
1471
-
1577
+
1472
1578
  }
1473
1579
 
1474
1580
  message Conversation {
1475
- string id = 1;
1581
+ optional string id = 1;
1476
1582
  repeated HistorySyncMsg messages = 2;
1477
1583
  optional string newJid = 3;
1478
1584
  optional string oldJid = 4;
@@ -1526,10 +1632,14 @@ message Conversation {
1526
1632
  optional LimitSharing.TriggerType limitSharingTrigger = 52;
1527
1633
  optional bool limitSharingInitiatedByMe = 53;
1528
1634
  optional bool maibaAiThreadEnabled = 54;
1635
+ optional bool isMarketingMessageThread = 55;
1636
+ optional bool isSenderNewAccount = 56;
1637
+ optional uint32 afterReadDuration = 57;
1529
1638
  enum EndOfHistoryTransferType {
1530
1639
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1531
1640
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
1532
1641
  COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY = 2;
1642
+ COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS = 3;
1533
1643
  }
1534
1644
  }
1535
1645
 
@@ -1539,10 +1649,24 @@ message DeviceCapabilities {
1539
1649
  optional BusinessBroadcast businessBroadcast = 3;
1540
1650
  optional UserHasAvatar userHasAvatar = 4;
1541
1651
  optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
1652
+ optional AiThread aiThread = 6;
1653
+ message AiThread {
1654
+ optional SupportLevel supportLevel = 1;
1655
+ enum SupportLevel {
1656
+ NONE = 0;
1657
+ INFRA = 1;
1658
+ FULL = 2;
1659
+ }
1660
+ }
1661
+
1542
1662
  message BusinessBroadcast {
1543
1663
  optional bool importListEnabled = 1;
1664
+ optional bool companionSupportEnabled = 2;
1665
+ optional bool campaignSyncEnabled = 3;
1666
+ optional bool insightsSyncEnabled = 4;
1667
+ optional int32 recipientLimit = 5;
1544
1668
  }
1545
-
1669
+
1546
1670
  enum ChatLockSupportLevel {
1547
1671
  NONE = 0;
1548
1672
  MINIMAL = 1;
@@ -1551,7 +1675,7 @@ message DeviceCapabilities {
1551
1675
  message LIDMigration {
1552
1676
  optional uint64 chatDbMigrationTimestamp = 1;
1553
1677
  }
1554
-
1678
+
1555
1679
  enum MemberNameTagPrimarySupport {
1556
1680
  DISABLED = 0;
1557
1681
  RECEIVER_ENABLED = 1;
@@ -1560,7 +1684,7 @@ message DeviceCapabilities {
1560
1684
  message UserHasAvatar {
1561
1685
  optional bool userHasAvatar = 1;
1562
1686
  }
1563
-
1687
+
1564
1688
  }
1565
1689
 
1566
1690
  message DeviceConsistencyCodeMessage {
@@ -1592,7 +1716,7 @@ message DeviceProps {
1592
1716
  optional uint32 quaternary = 4;
1593
1717
  optional uint32 quinary = 5;
1594
1718
  }
1595
-
1719
+
1596
1720
  message HistorySyncConfig {
1597
1721
  optional uint32 fullSyncDaysLimit = 1;
1598
1722
  optional uint32 fullSyncSizeMbLimit = 2;
@@ -1613,8 +1737,13 @@ message DeviceProps {
1613
1737
  optional bool supportGuestChat = 17;
1614
1738
  optional bool completeOnDemandReady = 18;
1615
1739
  optional uint32 thumbnailSyncDaysLimit = 19;
1740
+ optional uint32 initialSyncMaxMessagesPerChat = 20;
1741
+ optional bool supportManusHistory = 21;
1742
+ optional bool supportHatchHistory = 22;
1743
+ repeated string supportedBotChannelFbids = 23;
1744
+ optional bool supportInlineContacts = 24;
1616
1745
  }
1617
-
1746
+
1618
1747
  enum PlatformType {
1619
1748
  UNKNOWN = 0;
1620
1749
  CHROME = 1;
@@ -1789,7 +1918,7 @@ message GroupMention {
1789
1918
  }
1790
1919
 
1791
1920
  message GroupParticipant {
1792
- string userJid = 1;
1921
+ optional string userJid = 1;
1793
1922
  optional Rank rank = 2;
1794
1923
  optional MemberLabel memberLabel = 3;
1795
1924
  enum Rank {
@@ -1799,6 +1928,16 @@ message GroupParticipant {
1799
1928
  }
1800
1929
  }
1801
1930
 
1931
+ message GroupRootKeyShare {
1932
+ repeated GroupRootKeyShareEntry keys = 1;
1933
+ }
1934
+
1935
+ message GroupRootKeyShareEntry {
1936
+ optional bytes groupRootKey = 1;
1937
+ optional string keyId = 2;
1938
+ optional int64 expiryTimestampMs = 3;
1939
+ }
1940
+
1802
1941
  message HandshakeMessage {
1803
1942
  optional ClientHello clientHello = 2;
1804
1943
  optional ServerHello serverHello = 3;
@@ -1807,27 +1946,47 @@ message HandshakeMessage {
1807
1946
  optional bytes static = 1;
1808
1947
  optional bytes payload = 2;
1809
1948
  optional bytes extendedCiphertext = 3;
1949
+ optional bytes paddedBytes = 4;
1950
+ optional bool simulateXxkemFs = 5;
1810
1951
  }
1811
-
1952
+
1812
1953
  message ClientHello {
1813
1954
  optional bytes ephemeral = 1;
1814
1955
  optional bytes static = 2;
1815
1956
  optional bytes payload = 3;
1816
1957
  optional bool useExtended = 4;
1817
1958
  optional bytes extendedCiphertext = 5;
1959
+ optional bytes paddedBytes = 6;
1960
+ optional bool sendServerHelloPaddedBytes = 7;
1961
+ optional bool simulateXxkemFs = 8;
1962
+ optional HandshakeMessage.HandshakePqMode pqMode = 9;
1963
+ optional bytes extendedEphemeral = 10;
1964
+ }
1965
+
1966
+ enum HandshakePqMode {
1967
+ HANDSHAKE_PQ_MODE_UNKNOWN = 0;
1968
+ XXKEM = 1;
1969
+ XXKEM_FS = 2;
1970
+ WA_CLASSICAL = 3;
1971
+ WA_PQ = 4;
1972
+ IKKEM = 5;
1973
+ IKKEM_FS = 6;
1974
+ XXKEM_2 = 7;
1975
+ IKKEM_2 = 8;
1818
1976
  }
1819
-
1820
1977
  message ServerHello {
1821
1978
  optional bytes ephemeral = 1;
1822
1979
  optional bytes static = 2;
1823
1980
  optional bytes payload = 3;
1824
1981
  optional bytes extendedStatic = 4;
1982
+ optional bytes paddingBytes = 5;
1983
+ optional bytes extendedCiphertext = 6;
1825
1984
  }
1826
-
1985
+
1827
1986
  }
1828
1987
 
1829
1988
  message HistorySync {
1830
- HistorySyncType syncType = 1;
1989
+ optional HistorySyncType syncType = 1;
1831
1990
  repeated Conversation conversations = 2;
1832
1991
  repeated WebMessageInfo statusV3Messages = 3;
1833
1992
  optional uint32 chunkOrder = 5;
@@ -1844,6 +2003,9 @@ message HistorySync {
1844
2003
  optional string companionMetaNonce = 16;
1845
2004
  optional bytes shareableChatIdentifierEncryptionKey = 17;
1846
2005
  repeated Account accounts = 18;
2006
+ optional bytes nctSalt = 19;
2007
+ repeated InlineContact inlineContacts = 20;
2008
+ optional bool inlineContactsProvided = 21;
1847
2009
  enum BotAIWaitListState {
1848
2010
  IN_WAITLIST = 0;
1849
2011
  AI_AVAILABLE = 1;
@@ -1875,12 +2037,12 @@ message HydratedTemplateButton {
1875
2037
  optional string displayText = 1;
1876
2038
  optional string phoneNumber = 2;
1877
2039
  }
1878
-
2040
+
1879
2041
  message HydratedQuickReplyButton {
1880
2042
  optional string displayText = 1;
1881
2043
  optional string id = 2;
1882
2044
  }
1883
-
2045
+
1884
2046
  message HydratedURLButton {
1885
2047
  optional string displayText = 1;
1886
2048
  optional string url = 2;
@@ -1892,7 +2054,7 @@ message HydratedTemplateButton {
1892
2054
  COMPACT = 3;
1893
2055
  }
1894
2056
  }
1895
-
2057
+
1896
2058
  }
1897
2059
 
1898
2060
  message IdentityKeyPairStructure {
@@ -1918,23 +2080,32 @@ message InThreadSurveyMetadata {
1918
2080
  optional string privacyStatementFull = 15;
1919
2081
  repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
1920
2082
  optional string feedbackToastText = 17;
2083
+ optional int32 startQuestionIndex = 18;
1921
2084
  message InThreadSurveyOption {
1922
2085
  optional string stringValue = 1;
1923
2086
  optional uint32 numericValue = 2;
1924
2087
  optional string textTranslated = 3;
1925
2088
  }
1926
-
2089
+
1927
2090
  message InThreadSurveyPrivacyStatementPart {
1928
2091
  optional string text = 1;
1929
2092
  optional string url = 2;
1930
2093
  }
1931
-
2094
+
1932
2095
  message InThreadSurveyQuestion {
1933
2096
  optional string questionText = 1;
1934
2097
  optional string questionId = 2;
1935
2098
  repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
1936
2099
  }
2100
+
2101
+ }
1937
2102
 
2103
+ message InlineContact {
2104
+ optional string pnJid = 1;
2105
+ optional string lidJid = 2;
2106
+ optional string fullName = 3;
2107
+ optional string firstName = 4;
2108
+ optional string username = 5;
1938
2109
  }
1939
2110
 
1940
2111
  message InteractiveAnnotation {
@@ -1986,8 +2157,8 @@ message KeyId {
1986
2157
  }
1987
2158
 
1988
2159
  message LIDMigrationMapping {
1989
- uint64 pn = 1;
1990
- uint64 assignedLid = 2;
2160
+ optional uint64 pn = 1;
2161
+ optional uint64 assignedLid = 2;
1991
2162
  optional uint64 latestLid = 3;
1992
2163
  }
1993
2164
 
@@ -2034,6 +2205,16 @@ message MediaData {
2034
2205
  optional string localPath = 1;
2035
2206
  }
2036
2207
 
2208
+ message MediaDomainInfo {
2209
+ optional MediaKeyDomain mediaKeyDomain = 1;
2210
+ optional bytes e2EeMediaKey = 2;
2211
+ }
2212
+
2213
+ enum MediaKeyDomain {
2214
+ MEDIA_KEY_DOMAIN_UNKNOWN = 0;
2215
+ MEDIA_KEY_DOMAIN_E2EE = 1;
2216
+ MEDIA_KEY_DOMAIN_NON_E2EE = 2;
2217
+ }
2037
2218
  message MediaNotifyMessage {
2038
2219
  optional string expressPathUrl = 1;
2039
2220
  optional bytes fileEncSha256 = 2;
@@ -2158,47 +2339,55 @@ message Message {
2158
2339
  optional StatusStickerInteractionMessage statusStickerInteractionMessage = 110;
2159
2340
  optional PollCreationMessage pollCreationMessageV5 = 111;
2160
2341
  optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
2161
- optional PollResultSnapshotMessage pollResultSnapshotMessageV3 = 114;
2342
+ optional PollResultSnapshotMessage pollResultSnapshotMessageV3 = 115;
2343
+ optional FutureProofMessage newsletterAdminProfileMessage = 116;
2344
+ optional FutureProofMessage newsletterAdminProfileMessageV2 = 117;
2345
+ optional FutureProofMessage spoilerMessage = 118;
2346
+ optional PollCreationMessage pollCreationMessageV6 = 119;
2347
+ optional ConditionalRevealMessage conditionalRevealMessage = 120;
2348
+ optional PollAddOptionMessage pollAddOptionMessage = 121;
2349
+ optional EventInviteMessage eventInviteMessage = 122;
2350
+ optional GroupRootKeyShare groupRootKeyShare = 123;
2162
2351
  message AlbumMessage {
2163
2352
  optional uint32 expectedImageCount = 2;
2164
2353
  optional uint32 expectedVideoCount = 3;
2165
2354
  optional ContextInfo contextInfo = 17;
2166
2355
  }
2167
-
2356
+
2168
2357
  message AppStateFatalExceptionNotification {
2169
2358
  repeated string collectionNames = 1;
2170
2359
  optional int64 timestamp = 2;
2171
2360
  }
2172
-
2361
+
2173
2362
  message AppStateSyncKey {
2174
2363
  optional Message.AppStateSyncKeyId keyId = 1;
2175
2364
  optional Message.AppStateSyncKeyData keyData = 2;
2176
2365
  }
2177
-
2366
+
2178
2367
  message AppStateSyncKeyData {
2179
2368
  optional bytes keyData = 1;
2180
2369
  optional Message.AppStateSyncKeyFingerprint fingerprint = 2;
2181
2370
  optional int64 timestamp = 3;
2182
2371
  }
2183
-
2372
+
2184
2373
  message AppStateSyncKeyFingerprint {
2185
2374
  optional uint32 rawId = 1;
2186
2375
  optional uint32 currentIndex = 2;
2187
2376
  repeated uint32 deviceIndexes = 3 [packed=true];
2188
2377
  }
2189
-
2378
+
2190
2379
  message AppStateSyncKeyId {
2191
2380
  optional bytes keyId = 1;
2192
2381
  }
2193
-
2382
+
2194
2383
  message AppStateSyncKeyRequest {
2195
2384
  repeated Message.AppStateSyncKeyId keyIds = 1;
2196
2385
  }
2197
-
2386
+
2198
2387
  message AppStateSyncKeyShare {
2199
2388
  repeated Message.AppStateSyncKey keys = 1;
2200
2389
  }
2201
-
2390
+
2202
2391
  message AudioMessage {
2203
2392
  optional string url = 1;
2204
2393
  optional string mimetype = 2;
@@ -2216,9 +2405,8 @@ message Message {
2216
2405
  optional fixed32 backgroundArgb = 20;
2217
2406
  optional bool viewOnce = 21;
2218
2407
  optional string accessibilityLabel = 22;
2219
- optional Message.MediaKeyDomain mediaKeyDomain = 23;
2220
2408
  }
2221
-
2409
+
2222
2410
  message BCallMessage {
2223
2411
  optional string sessionId = 1;
2224
2412
  optional MediaType mediaType = 2;
@@ -2230,7 +2418,7 @@ message Message {
2230
2418
  VIDEO = 2;
2231
2419
  }
2232
2420
  }
2233
-
2421
+
2234
2422
  message ButtonsMessage {
2235
2423
  optional string contentText = 6;
2236
2424
  optional string footerText = 7;
@@ -2252,19 +2440,19 @@ message Message {
2252
2440
  message ButtonText {
2253
2441
  optional string displayText = 1;
2254
2442
  }
2255
-
2443
+
2256
2444
  message NativeFlowInfo {
2257
2445
  optional string name = 1;
2258
2446
  optional string paramsJson = 2;
2259
2447
  }
2260
-
2448
+
2261
2449
  enum Type {
2262
2450
  UNKNOWN = 0;
2263
2451
  RESPONSE = 1;
2264
2452
  NATIVE_FLOW = 2;
2265
2453
  }
2266
2454
  }
2267
-
2455
+
2268
2456
  enum HeaderType {
2269
2457
  UNKNOWN = 0;
2270
2458
  EMPTY = 1;
@@ -2275,7 +2463,7 @@ message Message {
2275
2463
  LOCATION = 6;
2276
2464
  }
2277
2465
  }
2278
-
2466
+
2279
2467
  message ButtonsResponseMessage {
2280
2468
  optional string selectedButtonId = 1;
2281
2469
  optional ContextInfo contextInfo = 3;
@@ -2288,7 +2476,7 @@ message Message {
2288
2476
  DISPLAY_TEXT = 1;
2289
2477
  }
2290
2478
  }
2291
-
2479
+
2292
2480
  message Call {
2293
2481
  optional bytes callKey = 1;
2294
2482
  optional string conversionSource = 2;
@@ -2299,8 +2487,10 @@ message Message {
2299
2487
  optional ContextInfo contextInfo = 7;
2300
2488
  optional string nativeFlowCallButtonPayload = 8;
2301
2489
  optional string deeplinkPayload = 9;
2490
+ optional MessageContextInfo messageContextInfo = 10;
2491
+ optional uint32 callEntryPoint = 11;
2302
2492
  }
2303
-
2493
+
2304
2494
  message CallLogMessage {
2305
2495
  optional bool isVideo = 1;
2306
2496
  optional CallOutcome callOutcome = 2;
@@ -2321,23 +2511,23 @@ message Message {
2321
2511
  optional string jid = 1;
2322
2512
  optional Message.CallLogMessage.CallOutcome callOutcome = 2;
2323
2513
  }
2324
-
2514
+
2325
2515
  enum CallType {
2326
2516
  REGULAR = 0;
2327
2517
  SCHEDULED_CALL = 1;
2328
2518
  VOICE_CHAT = 2;
2329
2519
  }
2330
2520
  }
2331
-
2521
+
2332
2522
  message CancelPaymentRequestMessage {
2333
2523
  optional MessageKey key = 1;
2334
2524
  }
2335
-
2525
+
2336
2526
  message Chat {
2337
2527
  optional string displayName = 1;
2338
2528
  optional string id = 2;
2339
2529
  }
2340
-
2530
+
2341
2531
  message CloudAPIThreadControlNotification {
2342
2532
  optional CloudAPIThreadControl status = 1;
2343
2533
  optional int64 senderNotificationTimestampMs = 2;
@@ -2349,41 +2539,54 @@ message Message {
2349
2539
  UNKNOWN = 0;
2350
2540
  CONTROL_PASSED = 1;
2351
2541
  CONTROL_TAKEN = 2;
2542
+ INFO = 3;
2352
2543
  }
2353
2544
  message CloudAPIThreadControlNotificationContent {
2354
2545
  optional string handoffNotificationText = 1;
2355
2546
  optional string extraJson = 2;
2356
2547
  }
2357
-
2548
+
2358
2549
  }
2359
-
2550
+
2360
2551
  message CommentMessage {
2361
2552
  optional Message message = 1;
2362
2553
  optional MessageKey targetMessageKey = 2;
2363
2554
  }
2364
-
2555
+
2556
+ message ConditionalRevealMessage {
2557
+ optional bytes encPayload = 1;
2558
+ optional bytes encIv = 2;
2559
+ optional ConditionalRevealMessageType conditionalRevealMessageType = 3;
2560
+ optional string revealKeyId = 4;
2561
+ enum ConditionalRevealMessageType {
2562
+ UNKNOWN = 0;
2563
+ SCHEDULED_MESSAGE = 1;
2564
+ }
2565
+ }
2566
+
2365
2567
  message ContactMessage {
2366
2568
  optional string displayName = 1;
2367
2569
  optional string vcard = 16;
2368
2570
  optional ContextInfo contextInfo = 17;
2571
+ optional bool isSelfContact = 18;
2369
2572
  }
2370
-
2573
+
2371
2574
  message ContactsArrayMessage {
2372
2575
  optional string displayName = 1;
2373
2576
  repeated Message.ContactMessage contacts = 2;
2374
2577
  optional ContextInfo contextInfo = 17;
2375
2578
  }
2376
-
2579
+
2377
2580
  message DeclinePaymentRequestMessage {
2378
2581
  optional MessageKey key = 1;
2379
2582
  }
2380
-
2583
+
2381
2584
  message DeviceSentMessage {
2382
2585
  optional string destinationJid = 1;
2383
2586
  optional Message message = 2;
2384
2587
  optional string phash = 3;
2385
2588
  }
2386
-
2589
+
2387
2590
  message DocumentMessage {
2388
2591
  optional string url = 1;
2389
2592
  optional string mimetype = 2;
@@ -2406,27 +2609,36 @@ message Message {
2406
2609
  optional uint32 thumbnailWidth = 19;
2407
2610
  optional string caption = 20;
2408
2611
  optional string accessibilityLabel = 21;
2409
- optional Message.MediaKeyDomain mediaKeyDomain = 22;
2410
2612
  }
2411
-
2613
+
2412
2614
  message EncCommentMessage {
2413
2615
  optional MessageKey targetMessageKey = 1;
2414
2616
  optional bytes encPayload = 2;
2415
2617
  optional bytes encIv = 3;
2416
2618
  }
2417
-
2619
+
2418
2620
  message EncEventResponseMessage {
2419
2621
  optional MessageKey eventCreationMessageKey = 1;
2420
2622
  optional bytes encPayload = 2;
2421
2623
  optional bytes encIv = 3;
2422
2624
  }
2423
-
2625
+
2424
2626
  message EncReactionMessage {
2425
2627
  optional MessageKey targetMessageKey = 1;
2426
2628
  optional bytes encPayload = 2;
2427
2629
  optional bytes encIv = 3;
2428
2630
  }
2429
-
2631
+
2632
+ message EventInviteMessage {
2633
+ optional ContextInfo contextInfo = 1;
2634
+ optional string eventId = 2;
2635
+ optional string eventTitle = 3;
2636
+ optional bytes jpegThumbnail = 4;
2637
+ optional int64 startTime = 5;
2638
+ optional string caption = 6;
2639
+ optional bool isCanceled = 7;
2640
+ }
2641
+
2430
2642
  message EventMessage {
2431
2643
  optional ContextInfo contextInfo = 1;
2432
2644
  optional bool isCanceled = 2;
@@ -2441,7 +2653,7 @@ message Message {
2441
2653
  optional bool hasReminder = 11;
2442
2654
  optional int64 reminderOffsetSec = 12;
2443
2655
  }
2444
-
2656
+
2445
2657
  message EventResponseMessage {
2446
2658
  optional EventResponseType response = 1;
2447
2659
  optional int64 timestampMs = 2;
@@ -2453,7 +2665,7 @@ message Message {
2453
2665
  MAYBE = 3;
2454
2666
  }
2455
2667
  }
2456
-
2668
+
2457
2669
  message ExtendedTextMessage {
2458
2670
  optional string text = 1;
2459
2671
  optional string matchedText = 2;
@@ -2512,15 +2724,22 @@ message Message {
2512
2724
  PROFILE = 7;
2513
2725
  }
2514
2726
  }
2515
-
2727
+
2728
+ message FullHistorySyncOnDemandConfig {
2729
+ optional uint64 historyFromTimestamp = 1;
2730
+ optional uint32 historyDurationDays = 2;
2731
+ }
2732
+
2516
2733
  message FullHistorySyncOnDemandRequestMetadata {
2517
2734
  optional string requestId = 1;
2735
+ optional string businessProduct = 2;
2736
+ optional bytes opaqueClientData = 3;
2518
2737
  }
2519
-
2738
+
2520
2739
  message FutureProofMessage {
2521
2740
  optional Message message = 1;
2522
2741
  }
2523
-
2742
+
2524
2743
  message GroupInviteMessage {
2525
2744
  optional string groupJid = 1;
2526
2745
  optional string inviteCode = 2;
@@ -2535,7 +2754,7 @@ message Message {
2535
2754
  PARENT = 1;
2536
2755
  }
2537
2756
  }
2538
-
2757
+
2539
2758
  message HighlyStructuredMessage {
2540
2759
  optional string namespace = 1;
2541
2760
  optional string elementName = 2;
@@ -2556,7 +2775,7 @@ message Message {
2556
2775
  optional string currencyCode = 1;
2557
2776
  optional int64 amount1000 = 2;
2558
2777
  }
2559
-
2778
+
2560
2779
  message HSMDateTime {
2561
2780
  oneof datetimeOneof {
2562
2781
  Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeComponent component = 1;
@@ -2584,21 +2803,21 @@ message Message {
2584
2803
  SUNDAY = 7;
2585
2804
  }
2586
2805
  }
2587
-
2806
+
2588
2807
  message HSMDateTimeUnixEpoch {
2589
2808
  optional int64 timestamp = 1;
2590
2809
  }
2591
-
2810
+
2592
2811
  }
2593
-
2812
+
2594
2813
  }
2595
-
2814
+
2596
2815
  }
2597
-
2816
+
2598
2817
  message HistorySyncMessageAccessStatus {
2599
2818
  optional bool completeAccessGranted = 1;
2600
2819
  }
2601
-
2820
+
2602
2821
  message HistorySyncNotification {
2603
2822
  optional bytes fileSha256 = 1;
2604
2823
  optional uint64 fileLength = 2;
@@ -2616,7 +2835,7 @@ message Message {
2616
2835
  optional string encHandle = 14;
2617
2836
  optional Message.HistorySyncMessageAccessStatus messageAccessStatus = 15;
2618
2837
  }
2619
-
2838
+
2620
2839
  enum HistorySyncType {
2621
2840
  INITIAL_BOOTSTRAP = 0;
2622
2841
  INITIAL_STATUS_V3 = 1;
@@ -2658,7 +2877,6 @@ message Message {
2658
2877
  repeated InteractiveAnnotation annotations = 30;
2659
2878
  optional ImageSourceType imageSourceType = 31;
2660
2879
  optional string accessibilityLabel = 32;
2661
- optional Message.MediaKeyDomain mediaKeyDomain = 33;
2662
2880
  optional string qrUrl = 34;
2663
2881
  enum ImageSourceType {
2664
2882
  USER_IMAGE = 0;
@@ -2667,15 +2885,23 @@ message Message {
2667
2885
  RASTERIZED_TEXT_STATUS = 3;
2668
2886
  }
2669
2887
  }
2670
-
2888
+
2671
2889
  message InitialSecurityNotificationSettingSync {
2672
2890
  optional bool securityNotificationEnabled = 1;
2673
2891
  }
2674
-
2892
+
2893
+ enum InsightDeliveryState {
2894
+ SENT = 0;
2895
+ DELIVERED = 1;
2896
+ READ = 2;
2897
+ REPLIED = 3;
2898
+ QUICK_REPLIED = 4;
2899
+ }
2675
2900
  message InteractiveMessage {
2676
2901
  optional Header header = 1;
2677
2902
  optional Body body = 2;
2678
2903
  optional Footer footer = 3;
2904
+ optional BloksWidget bloksWidget = 8;
2679
2905
  optional ContextInfo contextInfo = 15;
2680
2906
  optional UrlTrackingMap urlTrackingMap = 16;
2681
2907
  oneof interactiveMessage {
@@ -2684,10 +2910,16 @@ message Message {
2684
2910
  Message.InteractiveMessage.NativeFlowMessage nativeFlowMessage = 6;
2685
2911
  Message.InteractiveMessage.CarouselMessage carouselMessage = 7;
2686
2912
  }
2913
+ message BloksWidget {
2914
+ optional string uuid = 1;
2915
+ optional string data = 2;
2916
+ optional string type = 3;
2917
+ }
2918
+
2687
2919
  message Body {
2688
2920
  optional string text = 1;
2689
2921
  }
2690
-
2922
+
2691
2923
  message CarouselMessage {
2692
2924
  repeated Message.InteractiveMessage cards = 1;
2693
2925
  optional int32 messageVersion = 2;
@@ -2698,13 +2930,13 @@ message Message {
2698
2930
  ALBUM_IMAGE = 2;
2699
2931
  }
2700
2932
  }
2701
-
2933
+
2702
2934
  message CollectionMessage {
2703
2935
  optional string bizJid = 1;
2704
2936
  optional string id = 2;
2705
2937
  optional int32 messageVersion = 3;
2706
2938
  }
2707
-
2939
+
2708
2940
  message Footer {
2709
2941
  optional string text = 1;
2710
2942
  optional bool hasMediaAttachment = 3;
@@ -2712,11 +2944,12 @@ message Message {
2712
2944
  Message.AudioMessage audioMessage = 2;
2713
2945
  }
2714
2946
  }
2715
-
2947
+
2716
2948
  message Header {
2717
2949
  optional string title = 1;
2718
2950
  optional string subtitle = 2;
2719
2951
  optional bool hasMediaAttachment = 5;
2952
+ optional Message.InteractiveMessage.BloksWidget bloksWidget = 10;
2720
2953
  oneof media {
2721
2954
  Message.DocumentMessage documentMessage = 3;
2722
2955
  Message.ImageMessage imageMessage = 4;
@@ -2726,7 +2959,7 @@ message Message {
2726
2959
  Message.ProductMessage productMessage = 9;
2727
2960
  }
2728
2961
  }
2729
-
2962
+
2730
2963
  message NativeFlowMessage {
2731
2964
  repeated NativeFlowButton buttons = 1;
2732
2965
  optional string messageParamsJson = 2;
@@ -2735,9 +2968,9 @@ message Message {
2735
2968
  optional string name = 1;
2736
2969
  optional string buttonParamsJson = 2;
2737
2970
  }
2738
-
2971
+
2739
2972
  }
2740
-
2973
+
2741
2974
  message ShopMessage {
2742
2975
  optional string id = 1;
2743
2976
  optional Surface surface = 2;
@@ -2749,9 +2982,9 @@ message Message {
2749
2982
  WA = 3;
2750
2983
  }
2751
2984
  }
2752
-
2985
+
2753
2986
  }
2754
-
2987
+
2755
2988
  message InteractiveResponseMessage {
2756
2989
  optional Body body = 1;
2757
2990
  optional ContextInfo contextInfo = 15;
@@ -2766,15 +2999,15 @@ message Message {
2766
2999
  EXTENSIONS_1 = 1;
2767
3000
  }
2768
3001
  }
2769
-
3002
+
2770
3003
  message NativeFlowResponseMessage {
2771
3004
  optional string name = 1;
2772
3005
  optional string paramsJson = 2;
2773
3006
  optional int32 version = 3;
2774
3007
  }
2775
-
3008
+
2776
3009
  }
2777
-
3010
+
2778
3011
  message InvoiceMessage {
2779
3012
  optional string note = 1;
2780
3013
  optional string token = 2;
@@ -2791,13 +3024,13 @@ message Message {
2791
3024
  PDF = 1;
2792
3025
  }
2793
3026
  }
2794
-
3027
+
2795
3028
  message KeepInChatMessage {
2796
3029
  optional MessageKey key = 1;
2797
3030
  optional KeepType keepType = 2;
2798
3031
  optional int64 timestampMs = 3;
2799
3032
  }
2800
-
3033
+
2801
3034
  message LinkPreviewMetadata {
2802
3035
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
2803
3036
  optional Message.URLMetadata urlMetadata = 2;
@@ -2817,7 +3050,7 @@ message Message {
2817
3050
  CAROUSEL = 5;
2818
3051
  }
2819
3052
  }
2820
-
3053
+
2821
3054
  message ListMessage {
2822
3055
  optional string title = 1;
2823
3056
  optional string description = 2;
@@ -2835,36 +3068,36 @@ message Message {
2835
3068
  message Product {
2836
3069
  optional string productId = 1;
2837
3070
  }
2838
-
3071
+
2839
3072
  message ProductListHeaderImage {
2840
3073
  optional string productId = 1;
2841
3074
  optional bytes jpegThumbnail = 2;
2842
3075
  }
2843
-
3076
+
2844
3077
  message ProductListInfo {
2845
3078
  repeated Message.ListMessage.ProductSection productSections = 1;
2846
3079
  optional Message.ListMessage.ProductListHeaderImage headerImage = 2;
2847
3080
  optional string businessOwnerJid = 3;
2848
3081
  }
2849
-
3082
+
2850
3083
  message ProductSection {
2851
3084
  optional string title = 1;
2852
3085
  repeated Message.ListMessage.Product products = 2;
2853
3086
  }
2854
-
3087
+
2855
3088
  message Row {
2856
3089
  optional string title = 1;
2857
3090
  optional string description = 2;
2858
3091
  optional string rowId = 3;
2859
3092
  }
2860
-
3093
+
2861
3094
  message Section {
2862
3095
  optional string title = 1;
2863
3096
  repeated Message.ListMessage.Row rows = 2;
2864
3097
  }
2865
-
3098
+
2866
3099
  }
2867
-
3100
+
2868
3101
  message ListResponseMessage {
2869
3102
  optional string title = 1;
2870
3103
  optional ListType listType = 2;
@@ -2878,9 +3111,9 @@ message Message {
2878
3111
  message SingleSelectReply {
2879
3112
  optional string selectedRowId = 1;
2880
3113
  }
2881
-
3114
+
2882
3115
  }
2883
-
3116
+
2884
3117
  message LiveLocationMessage {
2885
3118
  optional double degreesLatitude = 1;
2886
3119
  optional double degreesLongitude = 2;
@@ -2893,7 +3126,7 @@ message Message {
2893
3126
  optional bytes jpegThumbnail = 16;
2894
3127
  optional ContextInfo contextInfo = 17;
2895
3128
  }
2896
-
3129
+
2897
3130
  message LocationMessage {
2898
3131
  optional double degreesLatitude = 1;
2899
3132
  optional double degreesLongitude = 2;
@@ -2908,7 +3141,7 @@ message Message {
2908
3141
  optional bytes jpegThumbnail = 16;
2909
3142
  optional ContextInfo contextInfo = 17;
2910
3143
  }
2911
-
3144
+
2912
3145
  message MMSThumbnailMetadata {
2913
3146
  optional string thumbnailDirectPath = 1;
2914
3147
  optional bytes thumbnailSha256 = 2;
@@ -2917,16 +3150,8 @@ message Message {
2917
3150
  optional int64 mediaKeyTimestamp = 5;
2918
3151
  optional uint32 thumbnailHeight = 6;
2919
3152
  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;
2929
3153
  }
3154
+
2930
3155
  message MessageHistoryBundle {
2931
3156
  optional string mimetype = 1;
2932
3157
  optional bytes fileSha256 = 2;
@@ -2937,18 +3162,20 @@ message Message {
2937
3162
  optional ContextInfo contextInfo = 7;
2938
3163
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
2939
3164
  }
2940
-
3165
+
2941
3166
  message MessageHistoryMetadata {
2942
3167
  repeated string historyReceivers = 1;
2943
- optional int64 oldestMessageTimestamp = 2;
3168
+ optional int64 oldestMessageTimestampInWindow = 2;
2944
3169
  optional int64 messageCount = 3;
3170
+ repeated string nonHistoryReceivers = 4;
3171
+ optional int64 oldestMessageTimestampInBundle = 5;
2945
3172
  }
2946
-
3173
+
2947
3174
  message MessageHistoryNotice {
2948
3175
  optional ContextInfo contextInfo = 1;
2949
3176
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
2950
3177
  }
2951
-
3178
+
2952
3179
  message NewsletterAdminInviteMessage {
2953
3180
  optional string newsletterJid = 1;
2954
3181
  optional string newsletterName = 2;
@@ -2957,7 +3184,7 @@ message Message {
2957
3184
  optional int64 inviteExpiration = 5;
2958
3185
  optional ContextInfo contextInfo = 6;
2959
3186
  }
2960
-
3187
+
2961
3188
  message NewsletterFollowerInviteMessage {
2962
3189
  optional string newsletterJid = 1;
2963
3190
  optional string newsletterName = 2;
@@ -2965,7 +3192,7 @@ message Message {
2965
3192
  optional string caption = 4;
2966
3193
  optional ContextInfo contextInfo = 5;
2967
3194
  }
2968
-
3195
+
2969
3196
  message OrderMessage {
2970
3197
  optional string orderId = 1;
2971
3198
  optional bytes thumbnail = 2;
@@ -2991,16 +3218,22 @@ message Message {
2991
3218
  CATALOG = 1;
2992
3219
  }
2993
3220
  }
2994
-
3221
+
2995
3222
  message PaymentExtendedMetadata {
2996
3223
  optional uint32 type = 1;
2997
3224
  optional string platform = 2;
2998
- optional string messageParamsJson = 3;
2999
3225
  }
3000
-
3226
+
3001
3227
  message PaymentInviteMessage {
3002
3228
  optional ServiceType serviceType = 1;
3003
3229
  optional int64 expiryTimestamp = 2;
3230
+ optional bool incentiveEligible = 3;
3231
+ optional string referralId = 4;
3232
+ optional InviteType inviteType = 5;
3233
+ enum InviteType {
3234
+ DEFAULT = 0;
3235
+ MAPPER = 1;
3236
+ }
3004
3237
  enum ServiceType {
3005
3238
  UNKNOWN = 0;
3006
3239
  FBPAY = 1;
@@ -3008,7 +3241,7 @@ message Message {
3008
3241
  UPI = 3;
3009
3242
  }
3010
3243
  }
3011
-
3244
+
3012
3245
  message PaymentLinkMetadata {
3013
3246
  optional PaymentLinkButton button = 1;
3014
3247
  optional PaymentLinkHeader header = 2;
@@ -3016,7 +3249,7 @@ message Message {
3016
3249
  message PaymentLinkButton {
3017
3250
  optional string displayText = 1;
3018
3251
  }
3019
-
3252
+
3020
3253
  message PaymentLinkHeader {
3021
3254
  optional PaymentLinkHeaderType headerType = 1;
3022
3255
  enum PaymentLinkHeaderType {
@@ -3024,13 +3257,13 @@ message Message {
3024
3257
  ORDER = 1;
3025
3258
  }
3026
3259
  }
3027
-
3260
+
3028
3261
  message PaymentLinkProvider {
3029
3262
  optional string paramsJson = 1;
3030
3263
  }
3031
-
3264
+
3032
3265
  }
3033
-
3266
+
3034
3267
  message PeerDataOperationRequestMessage {
3035
3268
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
3036
3269
  repeated RequestStickerReupload requestStickerReupload = 2;
@@ -3041,27 +3274,46 @@ message Message {
3041
3274
  optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
3042
3275
  optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
3043
3276
  optional GalaxyFlowAction galaxyFlowAction = 9;
3277
+ optional CompanionCanonicalUserNonceFetchRequest companionCanonicalUserNonceFetchRequest = 10;
3278
+ optional BizBroadcastInsightsContactListRequest bizBroadcastInsightsContactListRequest = 11;
3279
+ optional BizBroadcastInsightsRefreshRequest bizBroadcastInsightsRefreshRequest = 12;
3280
+ message BizBroadcastInsightsContactListRequest {
3281
+ optional string campaignId = 1;
3282
+ }
3283
+
3284
+ message BizBroadcastInsightsRefreshRequest {
3285
+ optional string campaignId = 1;
3286
+ }
3287
+
3288
+ message CompanionCanonicalUserNonceFetchRequest {
3289
+ optional string registrationTraceId = 1;
3290
+ }
3291
+
3044
3292
  message FullHistorySyncOnDemandRequest {
3045
3293
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
3046
3294
  optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
3295
+ optional Message.FullHistorySyncOnDemandConfig fullHistorySyncOnDemandConfig = 3;
3047
3296
  }
3048
-
3297
+
3049
3298
  message GalaxyFlowAction {
3050
3299
  optional GalaxyFlowActionType type = 1;
3051
3300
  optional string flowId = 2;
3052
3301
  optional string stanzaId = 3;
3302
+ optional string galaxyFlowDownloadRequestId = 4;
3303
+ optional string agmId = 5;
3053
3304
  enum GalaxyFlowActionType {
3054
3305
  NOTIFY_LAUNCH = 1;
3306
+ DOWNLOAD_RESPONSES = 2;
3055
3307
  }
3056
3308
  }
3057
-
3309
+
3058
3310
  message HistorySyncChunkRetryRequest {
3059
3311
  optional Message.HistorySyncType syncType = 1;
3060
3312
  optional uint32 chunkOrder = 2;
3061
3313
  optional string chunkNotificationId = 3;
3062
3314
  optional bool regenerateChunk = 4;
3063
3315
  }
3064
-
3316
+
3065
3317
  message HistorySyncOnDemandRequest {
3066
3318
  optional string chatJid = 1;
3067
3319
  optional string oldestMsgId = 2;
@@ -3069,28 +3321,29 @@ message Message {
3069
3321
  optional int32 onDemandMsgCount = 4;
3070
3322
  optional int64 oldestMsgTimestampMs = 5;
3071
3323
  optional string accountLid = 6;
3324
+ optional bool supportInlineResponse = 7;
3072
3325
  }
3073
-
3326
+
3074
3327
  message PlaceholderMessageResendRequest {
3075
3328
  optional MessageKey messageKey = 1;
3076
3329
  }
3077
-
3330
+
3078
3331
  message RequestStickerReupload {
3079
3332
  optional string fileSha256 = 1;
3080
3333
  }
3081
-
3334
+
3082
3335
  message RequestUrlPreview {
3083
3336
  optional string url = 1;
3084
3337
  optional bool includeHqThumbnail = 2;
3085
3338
  }
3086
-
3339
+
3087
3340
  message SyncDCollectionFatalRecoveryRequest {
3088
3341
  optional string collectionName = 1;
3089
3342
  optional int64 timestamp = 2;
3090
3343
  }
3091
-
3344
+
3092
3345
  }
3093
-
3346
+
3094
3347
  message PeerDataOperationRequestResponseMessage {
3095
3348
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
3096
3349
  optional string stanzaId = 2;
@@ -3106,21 +3359,47 @@ message Message {
3106
3359
  optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
3107
3360
  optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
3108
3361
  optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
3362
+ optional FlowResponsesCsvBundle flowResponsesCsvBundle = 11;
3363
+ optional BizBroadcastInsightsContactListResponse bizBroadcastInsightsContactListResponse = 12;
3364
+ message BizBroadcastInsightsContactListResponse {
3365
+ optional string campaignId = 1;
3366
+ optional int64 timestampMs = 2;
3367
+ repeated Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState contacts = 3;
3368
+ }
3369
+
3370
+ message BizBroadcastInsightsContactState {
3371
+ optional string contactJid = 1;
3372
+ optional Message.InsightDeliveryState state = 2;
3373
+ }
3374
+
3109
3375
  message CompanionCanonicalUserNonceFetchResponse {
3110
3376
  optional string nonce = 1;
3111
3377
  optional string waFbid = 2;
3112
3378
  optional bool forceRefresh = 3;
3113
3379
  }
3114
-
3380
+
3115
3381
  message CompanionMetaNonceFetchResponse {
3116
3382
  optional string nonce = 1;
3117
3383
  }
3118
-
3384
+
3385
+ message FlowResponsesCsvBundle {
3386
+ optional string flowId = 1;
3387
+ optional string galaxyFlowDownloadRequestId = 2;
3388
+ optional string fileName = 3;
3389
+ optional string mimetype = 4;
3390
+ optional bytes fileSha256 = 5;
3391
+ optional bytes mediaKey = 6;
3392
+ optional bytes fileEncSha256 = 7;
3393
+ optional string directPath = 8;
3394
+ optional int64 mediaKeyTimestamp = 9;
3395
+ optional uint64 fileLength = 10;
3396
+ }
3397
+
3119
3398
  message FullHistorySyncOnDemandRequestResponse {
3120
3399
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
3121
3400
  optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
3122
3401
  }
3123
-
3402
+
3124
3403
  enum FullHistorySyncOnDemandResponseCode {
3125
3404
  REQUEST_SUCCESS = 0;
3126
3405
  REQUEST_TIME_EXPIRED = 1;
@@ -3129,6 +3408,7 @@ message Message {
3129
3408
  ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
3130
3409
  ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
3131
3410
  ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
3411
+ ERROR_MULTI_PROVIDER_NOT_CONFIGURED = 7;
3132
3412
  }
3133
3413
  message HistorySyncChunkRetryResponse {
3134
3414
  optional Message.HistorySyncType syncType = 1;
@@ -3137,7 +3417,7 @@ message Message {
3137
3417
  optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode responseCode = 4;
3138
3418
  optional bool canRecover = 5;
3139
3419
  }
3140
-
3420
+
3141
3421
  enum HistorySyncChunkRetryResponseCode {
3142
3422
  GENERATION_ERROR = 1;
3143
3423
  CHUNK_CONSUMED = 2;
@@ -3164,32 +3444,35 @@ message Message {
3164
3444
  optional int32 thumbWidth = 6;
3165
3445
  optional int32 thumbHeight = 7;
3166
3446
  }
3167
-
3447
+
3168
3448
  message PaymentLinkPreviewMetadata {
3169
3449
  optional bool isBusinessVerified = 1;
3170
3450
  optional string providerName = 2;
3451
+ optional string amount = 3;
3452
+ optional string offset = 4;
3453
+ optional string currency = 5;
3171
3454
  }
3172
-
3455
+
3173
3456
  }
3174
-
3457
+
3175
3458
  message PlaceholderMessageResendResponse {
3176
3459
  optional bytes webMessageInfoBytes = 1;
3177
3460
  }
3178
-
3461
+
3179
3462
  message SyncDSnapshotFatalRecoveryResponse {
3180
3463
  optional bytes collectionSnapshot = 1;
3181
3464
  optional bool isCompressed = 2;
3182
3465
  }
3183
-
3466
+
3184
3467
  message WaffleNonceFetchResponse {
3185
3468
  optional string nonce = 1;
3186
3469
  optional string waEntFbid = 2;
3187
3470
  }
3188
-
3471
+
3189
3472
  }
3190
-
3473
+
3191
3474
  }
3192
-
3475
+
3193
3476
  enum PeerDataOperationRequestType {
3194
3477
  UPLOAD_STICKER = 0;
3195
3478
  SEND_RECENT_STICKER_BOOTSTRAP = 1;
@@ -3203,6 +3486,8 @@ message Message {
3203
3486
  COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
3204
3487
  HISTORY_SYNC_CHUNK_RETRY = 10;
3205
3488
  GALAXY_FLOW_ACTION = 11;
3489
+ BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO = 12;
3490
+ BUSINESS_BROADCAST_INSIGHTS_REFRESH = 13;
3206
3491
  }
3207
3492
  message PinInChatMessage {
3208
3493
  optional MessageKey key = 1;
@@ -3214,14 +3499,19 @@ message Message {
3214
3499
  UNPIN_FOR_ALL = 2;
3215
3500
  }
3216
3501
  }
3217
-
3502
+
3218
3503
  message PlaceholderMessage {
3219
3504
  optional PlaceholderType type = 1;
3220
3505
  enum PlaceholderType {
3221
3506
  MASK_LINKED_DEVICES = 0;
3222
3507
  }
3223
3508
  }
3224
-
3509
+
3510
+ message PollAddOptionMessage {
3511
+ optional MessageKey pollCreationMessageKey = 1;
3512
+ optional Message.PollCreationMessage.Option addOption = 2;
3513
+ }
3514
+
3225
3515
  enum PollContentType {
3226
3516
  UNKNOWN = 0;
3227
3517
  TEXT = 1;
@@ -3236,18 +3526,21 @@ message Message {
3236
3526
  optional Message.PollContentType pollContentType = 6;
3237
3527
  optional Message.PollType pollType = 7;
3238
3528
  optional Option correctAnswer = 8;
3529
+ optional int64 endTime = 9;
3530
+ optional bool hideParticipantName = 10;
3531
+ optional bool allowAddOption = 11;
3239
3532
  message Option {
3240
3533
  optional string optionName = 1;
3241
3534
  optional string optionHash = 2;
3242
3535
  }
3243
-
3536
+
3244
3537
  }
3245
-
3538
+
3246
3539
  message PollEncValue {
3247
3540
  optional bytes encPayload = 1;
3248
3541
  optional bytes encIv = 2;
3249
3542
  }
3250
-
3543
+
3251
3544
  message PollResultSnapshotMessage {
3252
3545
  optional string name = 1;
3253
3546
  repeated PollVote pollVotes = 2;
@@ -3257,9 +3550,9 @@ message Message {
3257
3550
  optional string optionName = 1;
3258
3551
  optional int64 optionVoteCount = 2;
3259
3552
  }
3260
-
3553
+
3261
3554
  }
3262
-
3555
+
3263
3556
  enum PollType {
3264
3557
  POLL = 0;
3265
3558
  QUIZ = 1;
@@ -3270,14 +3563,14 @@ message Message {
3270
3563
  optional Message.PollUpdateMessageMetadata metadata = 3;
3271
3564
  optional int64 senderTimestampMs = 4;
3272
3565
  }
3273
-
3566
+
3274
3567
  message PollUpdateMessageMetadata {
3275
3568
  }
3276
-
3569
+
3277
3570
  message PollVoteMessage {
3278
3571
  repeated bytes selectedOptions = 1;
3279
3572
  }
3280
-
3573
+
3281
3574
  message ProductMessage {
3282
3575
  optional ProductSnapshot product = 1;
3283
3576
  optional string businessOwnerJid = 2;
@@ -3290,7 +3583,7 @@ message Message {
3290
3583
  optional string title = 2;
3291
3584
  optional string description = 3;
3292
3585
  }
3293
-
3586
+
3294
3587
  message ProductSnapshot {
3295
3588
  optional Message.ImageMessage productImage = 1;
3296
3589
  optional string productId = 2;
@@ -3305,9 +3598,9 @@ message Message {
3305
3598
  optional int64 salePriceAmount1000 = 12;
3306
3599
  optional string signedUrl = 13;
3307
3600
  }
3308
-
3601
+
3309
3602
  }
3310
-
3603
+
3311
3604
  message ProtocolMessage {
3312
3605
  optional MessageKey key = 1;
3313
3606
  optional Type type = 2;
@@ -3333,6 +3626,8 @@ message Message {
3333
3626
  optional bytes aiPsiMetadata = 25;
3334
3627
  optional AIQueryFanout aiQueryFanout = 26;
3335
3628
  optional MemberLabel memberLabel = 27;
3629
+ optional AIMediaCollectionMessage aiMediaCollectionMessage = 28;
3630
+ optional uint32 afterReadDuration = 29;
3336
3631
  enum Type {
3337
3632
  REVOKE = 0;
3338
3633
  EPHEMERAL_SETTING = 3;
@@ -3360,21 +3655,23 @@ message Message {
3360
3655
  AI_PSI_METADATA = 28;
3361
3656
  AI_QUERY_FANOUT = 29;
3362
3657
  GROUP_MEMBER_LABEL_CHANGE = 30;
3658
+ AI_MEDIA_COLLECTION_MESSAGE = 31;
3659
+ MESSAGE_UNSCHEDULE = 32;
3363
3660
  }
3364
3661
  }
3365
-
3662
+
3366
3663
  message QuestionResponseMessage {
3367
3664
  optional MessageKey key = 1;
3368
3665
  optional string text = 2;
3369
3666
  }
3370
-
3667
+
3371
3668
  message ReactionMessage {
3372
3669
  optional MessageKey key = 1;
3373
3670
  optional string text = 2;
3374
3671
  optional string groupingKey = 3;
3375
3672
  optional int64 senderTimestampMs = 4;
3376
3673
  }
3377
-
3674
+
3378
3675
  message RequestPaymentMessage {
3379
3676
  optional Message noteMessage = 4;
3380
3677
  optional string currencyCodeIso4217 = 1;
@@ -3384,19 +3681,25 @@ message Message {
3384
3681
  optional Money amount = 6;
3385
3682
  optional PaymentBackground background = 7;
3386
3683
  }
3387
-
3684
+
3388
3685
  message RequestPhoneNumberMessage {
3389
3686
  optional ContextInfo contextInfo = 1;
3390
3687
  }
3391
-
3688
+
3392
3689
  message RequestWelcomeMessageMetadata {
3393
3690
  optional LocalChatState localChatState = 1;
3691
+ optional WelcomeTrigger welcomeTrigger = 2;
3692
+ optional BotAgentMetadata botAgentMetadata = 3;
3394
3693
  enum LocalChatState {
3395
3694
  EMPTY = 0;
3396
3695
  NON_EMPTY = 1;
3397
3696
  }
3697
+ enum WelcomeTrigger {
3698
+ CHAT_OPEN = 0;
3699
+ COMPANION_PAIRING = 1;
3700
+ }
3398
3701
  }
3399
-
3702
+
3400
3703
  message ScheduledCallCreationMessage {
3401
3704
  optional int64 scheduledTimestampMs = 1;
3402
3705
  optional CallType callType = 2;
@@ -3407,7 +3710,7 @@ message Message {
3407
3710
  VIDEO = 2;
3408
3711
  }
3409
3712
  }
3410
-
3713
+
3411
3714
  message ScheduledCallEditMessage {
3412
3715
  optional MessageKey key = 1;
3413
3716
  optional EditType editType = 2;
@@ -3416,31 +3719,35 @@ message Message {
3416
3719
  CANCEL = 1;
3417
3720
  }
3418
3721
  }
3419
-
3722
+
3420
3723
  message SecretEncryptedMessage {
3421
3724
  optional MessageKey targetMessageKey = 1;
3422
3725
  optional bytes encPayload = 2;
3423
3726
  optional bytes encIv = 3;
3424
3727
  optional SecretEncType secretEncType = 4;
3728
+ optional string remoteKeyId = 5;
3425
3729
  enum SecretEncType {
3426
3730
  UNKNOWN = 0;
3427
3731
  EVENT_EDIT = 1;
3428
3732
  MESSAGE_EDIT = 2;
3733
+ MESSAGE_SCHEDULE = 3;
3734
+ POLL_EDIT = 4;
3735
+ POLL_ADD_OPTION = 5;
3429
3736
  }
3430
3737
  }
3431
-
3738
+
3432
3739
  message SendPaymentMessage {
3433
3740
  optional Message noteMessage = 2;
3434
3741
  optional MessageKey requestMessageKey = 3;
3435
3742
  optional PaymentBackground background = 4;
3436
3743
  optional string transactionData = 5;
3437
3744
  }
3438
-
3745
+
3439
3746
  message SenderKeyDistributionMessage {
3440
3747
  optional string groupId = 1;
3441
3748
  optional bytes axolotlSenderKeyDistributionMessage = 2;
3442
3749
  }
3443
-
3750
+
3444
3751
  message StatusNotificationMessage {
3445
3752
  optional MessageKey responseMessageKey = 1;
3446
3753
  optional MessageKey originalMessageKey = 2;
@@ -3452,12 +3759,12 @@ message Message {
3452
3759
  STATUS_QUESTION_ANSWER_RESHARE = 3;
3453
3760
  }
3454
3761
  }
3455
-
3762
+
3456
3763
  message StatusQuestionAnswerMessage {
3457
3764
  optional MessageKey key = 1;
3458
3765
  optional string text = 2;
3459
3766
  }
3460
-
3767
+
3461
3768
  message StatusQuotedMessage {
3462
3769
  optional StatusQuotedMessageType type = 1;
3463
3770
  optional string text = 2;
@@ -3467,7 +3774,7 @@ message Message {
3467
3774
  QUESTION_ANSWER = 1;
3468
3775
  }
3469
3776
  }
3470
-
3777
+
3471
3778
  message StatusStickerInteractionMessage {
3472
3779
  optional MessageKey key = 1;
3473
3780
  optional string stickerKey = 2;
@@ -3477,7 +3784,7 @@ message Message {
3477
3784
  REACTION = 1;
3478
3785
  }
3479
3786
  }
3480
-
3787
+
3481
3788
  message StickerMessage {
3482
3789
  optional string url = 1;
3483
3790
  optional bytes fileSha256 = 2;
@@ -3499,9 +3806,10 @@ message Message {
3499
3806
  optional bool isAiSticker = 20;
3500
3807
  optional bool isLottie = 21;
3501
3808
  optional string accessibilityLabel = 22;
3502
- optional Message.MediaKeyDomain mediaKeyDomain = 23;
3809
+ optional int32 premium = 24;
3810
+ optional string emojis = 25;
3503
3811
  }
3504
-
3812
+
3505
3813
  message StickerPackMessage {
3506
3814
  optional string stickerPackId = 1;
3507
3815
  optional string name = 2;
@@ -3532,21 +3840,22 @@ message Message {
3532
3840
  optional string accessibilityLabel = 4;
3533
3841
  optional bool isLottie = 5;
3534
3842
  optional string mimetype = 6;
3843
+ optional int32 premium = 7;
3535
3844
  }
3536
-
3845
+
3537
3846
  enum StickerPackOrigin {
3538
3847
  FIRST_PARTY = 0;
3539
3848
  THIRD_PARTY = 1;
3540
3849
  USER_CREATED = 2;
3541
3850
  }
3542
3851
  }
3543
-
3852
+
3544
3853
  message StickerSyncRMRMessage {
3545
3854
  repeated string filehash = 1;
3546
3855
  optional string rmrSource = 2;
3547
3856
  optional int64 requestTimestamp = 3;
3548
3857
  }
3549
-
3858
+
3550
3859
  message TemplateButtonReplyMessage {
3551
3860
  optional string selectedId = 1;
3552
3861
  optional string selectedDisplayText = 2;
@@ -3554,7 +3863,7 @@ message Message {
3554
3863
  optional uint32 selectedIndex = 4;
3555
3864
  optional uint32 selectedCarouselCardIndex = 5;
3556
3865
  }
3557
-
3866
+
3558
3867
  message TemplateMessage {
3559
3868
  optional ContextInfo contextInfo = 3;
3560
3869
  optional HydratedFourRowTemplate hydratedTemplate = 4;
@@ -3576,7 +3885,7 @@ message Message {
3576
3885
  Message.LocationMessage locationMessage = 5;
3577
3886
  }
3578
3887
  }
3579
-
3888
+
3580
3889
  message HydratedFourRowTemplate {
3581
3890
  optional string hydratedContentText = 6;
3582
3891
  optional string hydratedFooterText = 7;
@@ -3591,20 +3900,20 @@ message Message {
3591
3900
  Message.LocationMessage locationMessage = 5;
3592
3901
  }
3593
3902
  }
3594
-
3903
+
3595
3904
  }
3596
-
3905
+
3597
3906
  message URLMetadata {
3598
3907
  optional uint32 fbExperimentId = 1;
3599
3908
  }
3600
-
3909
+
3601
3910
  message VideoEndCard {
3602
- string username = 1;
3603
- string caption = 2;
3604
- string thumbnailImageUrl = 3;
3605
- string profilePictureUrl = 4;
3911
+ optional string username = 1;
3912
+ optional string caption = 2;
3913
+ optional string thumbnailImageUrl = 3;
3914
+ optional string profilePictureUrl = 4;
3606
3915
  }
3607
-
3916
+
3608
3917
  message VideoMessage {
3609
3918
  optional string url = 1;
3610
3919
  optional string mimetype = 2;
@@ -3636,7 +3945,6 @@ message Message {
3636
3945
  optional uint64 motionPhotoPresentationOffsetMs = 29;
3637
3946
  optional string metadataUrl = 30;
3638
3947
  optional VideoSourceType videoSourceType = 31;
3639
- optional Message.MediaKeyDomain mediaKeyDomain = 32;
3640
3948
  enum Attribution {
3641
3949
  NONE = 0;
3642
3950
  GIPHY = 1;
@@ -3648,7 +3956,7 @@ message Message {
3648
3956
  AI_GENERATED = 1;
3649
3957
  }
3650
3958
  }
3651
-
3959
+
3652
3960
  }
3653
3961
 
3654
3962
  message MessageAddOn {
@@ -3699,6 +4007,7 @@ message MessageAssociation {
3699
4007
  STATUS_ADD_YOURS_DIWALI = 17;
3700
4008
  STATUS_REACTION = 18;
3701
4009
  HEVC_VIDEO_DUAL_UPLOAD = 19;
4010
+ POLL_ADD_OPTION = 20;
3702
4011
  }
3703
4012
  }
3704
4013
 
@@ -3719,6 +4028,7 @@ message MessageContextInfo {
3719
4028
  optional LimitSharing limitSharingV2 = 14;
3720
4029
  repeated ThreadID threadId = 15;
3721
4030
  optional WebLinkRenderConfig weblinkRenderConfig = 16;
4031
+ optional bytes teeBotMetadata = 17;
3722
4032
  enum MessageAddonExpiryType {
3723
4033
  STATIC = 1;
3724
4034
  DEPENDENT_ON_PARENT = 2;
@@ -3788,6 +4098,10 @@ message MsgOpaqueData {
3788
4098
  optional bool eventIsScheduledCall = 44;
3789
4099
  optional bool eventExtraGuestsAllowed = 45;
3790
4100
  optional bytes plainProtobufBytes = 43;
4101
+ optional string quarantineExtractedText = 48;
4102
+ optional int64 pollEndTime = 49;
4103
+ optional bool pollHideVoterNames = 50;
4104
+ optional bool pollAllowAddOption = 52;
3791
4105
  message EventLocation {
3792
4106
  optional double degreesLatitude = 1;
3793
4107
  optional double degreesLongitude = 2;
@@ -3796,7 +4110,7 @@ message MsgOpaqueData {
3796
4110
  optional string url = 5;
3797
4111
  optional bytes jpegThumbnail = 6;
3798
4112
  }
3799
-
4113
+
3800
4114
  enum PollContentType {
3801
4115
  UNKNOWN = 0;
3802
4116
  TEXT = 1;
@@ -3806,7 +4120,7 @@ message MsgOpaqueData {
3806
4120
  optional string name = 1;
3807
4121
  optional string hash = 2;
3808
4122
  }
3809
-
4123
+
3810
4124
  enum PollType {
3811
4125
  POLL = 0;
3812
4126
  QUIZ = 1;
@@ -3815,11 +4129,11 @@ message MsgOpaqueData {
3815
4129
  optional MsgOpaqueData.PollOption option = 1;
3816
4130
  optional int32 optionVoteCount = 2;
3817
4131
  }
3818
-
4132
+
3819
4133
  message PollVotesSnapshot {
3820
4134
  repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
3821
4135
  }
3822
-
4136
+
3823
4137
  }
3824
4138
 
3825
4139
  message MsgRowOpaqueData {
@@ -3899,8 +4213,19 @@ enum MutationProps {
3899
4213
  NEWSLETTER_SAVED_INTERESTS_ACTION = 75;
3900
4214
  AI_THREAD_RENAME_ACTION = 76;
3901
4215
  INTERACTIVE_MESSAGE_ACTION = 77;
4216
+ SETTINGS_SYNC_ACTION = 78;
4217
+ OUT_CONTACT_ACTION = 79;
4218
+ NCT_SALT_SYNC_ACTION = 80;
4219
+ BUSINESS_BROADCAST_CAMPAIGN_ACTION = 81;
4220
+ BUSINESS_BROADCAST_INSIGHTS_ACTION = 82;
4221
+ CUSTOMER_DATA_ACTION = 83;
4222
+ SUBSCRIPTIONS_SYNC_V2_ACTION = 84;
4223
+ THREAD_PIN_ACTION = 85;
4224
+ AUTO_ORGANIZE_BUSINESS_CHAT_SETTING = 86;
4225
+ BIZ_AI_SETTINGS_NUDGE_ACTION = 87;
3902
4226
  SHARE_OWN_PN = 10001;
3903
4227
  BUSINESS_BROADCAST_ACTION = 10002;
4228
+ AI_THREAD_DELETE_ACTION = 10003;
3904
4229
  }
3905
4230
  message NoiseCertificate {
3906
4231
  optional bytes details = 1;
@@ -3912,7 +4237,7 @@ message NoiseCertificate {
3912
4237
  optional string subject = 4;
3913
4238
  optional bytes key = 5;
3914
4239
  }
3915
-
4240
+
3916
4241
  }
3917
4242
 
3918
4243
  message NotificationMessageInfo {
@@ -3998,7 +4323,7 @@ message PaymentBackground {
3998
4323
  optional bytes fileEncSha256 = 4;
3999
4324
  optional string directPath = 5;
4000
4325
  }
4001
-
4326
+
4002
4327
  enum Type {
4003
4328
  UNKNOWN = 0;
4004
4329
  DEFAULT = 1;
@@ -4211,6 +4536,12 @@ message ReportingTokenInfo {
4211
4536
  optional bytes reportingTag = 1;
4212
4537
  }
4213
4538
 
4539
+ message ScheduledMessageMetadata {
4540
+ optional string revealKeyId = 1;
4541
+ optional bytes revealKey = 2;
4542
+ optional uint64 scheduledTime = 3;
4543
+ }
4544
+
4214
4545
  message SenderKeyDistributionMessage {
4215
4546
  optional uint32 id = 1;
4216
4547
  optional uint32 iteration = 2;
@@ -4237,17 +4568,17 @@ message SenderKeyStateStructure {
4237
4568
  optional uint32 iteration = 1;
4238
4569
  optional bytes seed = 2;
4239
4570
  }
4240
-
4571
+
4241
4572
  message SenderMessageKey {
4242
4573
  optional uint32 iteration = 1;
4243
4574
  optional bytes seed = 2;
4244
4575
  }
4245
-
4576
+
4246
4577
  message SenderSigningKey {
4247
4578
  optional bytes public = 1;
4248
4579
  optional bytes private = 2;
4249
4580
  }
4250
-
4581
+
4251
4582
  }
4252
4583
 
4253
4584
  message ServerErrorReceipt {
@@ -4277,16 +4608,16 @@ message SessionStructure {
4277
4608
  optional uint32 index = 1;
4278
4609
  optional bytes key = 2;
4279
4610
  }
4280
-
4611
+
4281
4612
  message MessageKey {
4282
4613
  optional uint32 index = 1;
4283
4614
  optional bytes cipherKey = 2;
4284
4615
  optional bytes macKey = 3;
4285
4616
  optional bytes iv = 4;
4286
4617
  }
4287
-
4618
+
4288
4619
  }
4289
-
4620
+
4290
4621
  message PendingKeyExchange {
4291
4622
  optional uint32 sequence = 1;
4292
4623
  optional bytes localBaseKey = 2;
@@ -4296,13 +4627,13 @@ message SessionStructure {
4296
4627
  optional bytes localIdentityKey = 7;
4297
4628
  optional bytes localIdentityKeyPrivate = 8;
4298
4629
  }
4299
-
4630
+
4300
4631
  message PendingPreKey {
4301
4632
  optional uint32 preKeyId = 1;
4302
4633
  optional int32 signedPreKeyId = 3;
4303
4634
  optional bytes baseKey = 2;
4304
4635
  }
4305
-
4636
+
4306
4637
  }
4307
4638
 
4308
4639
  message SessionTransparencyMetadata {
@@ -4348,7 +4679,7 @@ message StatusAttribution {
4348
4679
  STATUS_MIMICRY = 1;
4349
4680
  }
4350
4681
  }
4351
-
4682
+
4352
4683
  message ExternalShare {
4353
4684
  optional string actionUrl = 1;
4354
4685
  optional Source source = 2;
@@ -4366,13 +4697,14 @@ message StatusAttribution {
4366
4697
  APPLE_MUSIC = 8;
4367
4698
  SHARECHAT = 9;
4368
4699
  GOOGLE_PHOTOS = 10;
4700
+ SOUNDCLOUD = 11;
4369
4701
  }
4370
4702
  }
4371
-
4703
+
4372
4704
  message GroupStatus {
4373
4705
  optional string authorJid = 1;
4374
4706
  }
4375
-
4707
+
4376
4708
  message Music {
4377
4709
  optional string authorName = 1;
4378
4710
  optional string songId = 2;
@@ -4381,7 +4713,7 @@ message StatusAttribution {
4381
4713
  optional string artistAttribution = 5;
4382
4714
  optional bool isExplicit = 6;
4383
4715
  }
4384
-
4716
+
4385
4717
  message RLAttribution {
4386
4718
  optional Source source = 1;
4387
4719
  enum Source {
@@ -4391,7 +4723,7 @@ message StatusAttribution {
4391
4723
  HYPERNOVA_GLASSES = 3;
4392
4724
  }
4393
4725
  }
4394
-
4726
+
4395
4727
  message StatusReshare {
4396
4728
  optional Source source = 1;
4397
4729
  optional Metadata metadata = 2;
@@ -4401,7 +4733,7 @@ message StatusAttribution {
4401
4733
  optional int32 channelMessageId = 3;
4402
4734
  optional bool hasMultipleReshares = 4;
4403
4735
  }
4404
-
4736
+
4405
4737
  enum Source {
4406
4738
  UNKNOWN = 0;
4407
4739
  INTERNAL_RESHARE = 1;
@@ -4410,7 +4742,7 @@ message StatusAttribution {
4410
4742
  FORWARD = 4;
4411
4743
  }
4412
4744
  }
4413
-
4745
+
4414
4746
  enum Type {
4415
4747
  UNKNOWN = 0;
4416
4748
  RESHARE = 1;
@@ -4421,6 +4753,8 @@ message StatusAttribution {
4421
4753
  RL_ATTRIBUTION = 6;
4422
4754
  AI_CREATED = 7;
4423
4755
  LAYOUTS = 8;
4756
+ NEWSLETTER_STATUS = 9;
4757
+ STATUS_CLOSE_SHARING = 10;
4424
4758
  }
4425
4759
  }
4426
4760
 
@@ -4429,7 +4763,7 @@ message StatusMentionMessage {
4429
4763
  }
4430
4764
 
4431
4765
  message StatusPSA {
4432
- uint64 campaignId = 44;
4766
+ optional uint64 campaignId = 44;
4433
4767
  optional uint64 campaignExpirationTimestamp = 45;
4434
4768
  }
4435
4769
 
@@ -4516,7 +4850,6 @@ message SyncActionValue {
4516
4850
  optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
4517
4851
  optional PaymentTosAction paymentTosAction = 63;
4518
4852
  optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
4519
- optional BusinessBroadcastAssociationAction businessBroadcastAssociationAction = 65;
4520
4853
  optional DetectedOutcomesStatusAction detectedOutcomesStatusAction = 66;
4521
4854
  optional MaibaAIFeaturesControlAction maibaAiFeaturesControlAction = 68;
4522
4855
  optional BusinessBroadcastListAction businessBroadcastListAction = 69;
@@ -4527,25 +4860,39 @@ message SyncActionValue {
4527
4860
  optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
4528
4861
  optional AiThreadRenameAction aiThreadRenameAction = 76;
4529
4862
  optional InteractiveMessageAction interactiveMessageAction = 77;
4863
+ optional SettingsSyncAction settingsSyncAction = 78;
4864
+ optional OutContactAction outContactAction = 79;
4865
+ optional NctSaltSyncAction nctSaltSyncAction = 80;
4866
+ optional BusinessBroadcastCampaignAction businessBroadcastCampaignAction = 81;
4867
+ optional BusinessBroadcastInsightsAction businessBroadcastInsightsAction = 82;
4868
+ optional CustomerDataAction customerDataAction = 83;
4869
+ optional SubscriptionsSyncV2Action subscriptionsSyncV2Action = 84;
4870
+ optional ThreadPinAction threadPinAction = 85;
4871
+ optional AutoOrganizeBusinessChatSetting autoOrganizeBusinessChatSetting = 86;
4872
+ optional BizAISettingsNudgeAction bizAiSettingsNudgeAction = 87;
4530
4873
  message AgentAction {
4531
4874
  optional string name = 1;
4532
4875
  optional int32 deviceID = 2;
4533
4876
  optional bool isDeleted = 3;
4534
4877
  }
4535
-
4878
+
4536
4879
  message AiThreadRenameAction {
4537
4880
  optional string newTitle = 1;
4538
4881
  }
4539
-
4882
+
4540
4883
  message AndroidUnsupportedActions {
4541
4884
  optional bool allowed = 1;
4542
4885
  }
4543
-
4886
+
4544
4887
  message ArchiveChatAction {
4545
4888
  optional bool archived = 1;
4546
4889
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
4547
4890
  }
4548
-
4891
+
4892
+ message AutoOrganizeBusinessChatSetting {
4893
+ optional bool autoOrganize = 1;
4894
+ }
4895
+
4549
4896
  message AvatarUpdatedAction {
4550
4897
  optional AvatarEventType eventType = 1;
4551
4898
  repeated SyncActionValue.StickerAction recentAvatarStickers = 2;
@@ -4555,42 +4902,85 @@ message SyncActionValue {
4555
4902
  DELETED = 2;
4556
4903
  }
4557
4904
  }
4558
-
4905
+
4906
+ message BizAISettingsNudgeAction {
4907
+ optional BizAISettingsCategory category = 1;
4908
+ optional int64 version = 2;
4909
+ optional int64 updatedAtMs = 3;
4910
+ enum BizAISettingsCategory {
4911
+ UNKNOWN = 0;
4912
+ INSTRUCTIONS = 1;
4913
+ RESPONSE_SETTINGS = 2;
4914
+ EXAMPLE_RESPONSES = 3;
4915
+ KNOWLEDGE = 4;
4916
+ LEAD_GEN = 5;
4917
+ }
4918
+ }
4919
+
4559
4920
  message BotWelcomeRequestAction {
4560
4921
  optional bool isSent = 1;
4561
4922
  }
4562
-
4923
+
4563
4924
  message BroadcastListParticipant {
4564
- string lidJid = 1;
4925
+ optional string lidJid = 1;
4565
4926
  optional string pnJid = 2;
4566
4927
  }
4567
-
4928
+
4568
4929
  message BusinessBroadcastAssociationAction {
4569
4930
  optional bool deleted = 1;
4570
4931
  }
4571
-
4932
+
4933
+ message BusinessBroadcastCampaignAction {
4934
+ optional int32 deviceId = 1;
4935
+ optional string adId = 2;
4936
+ optional string name = 3;
4937
+ optional string msgId = 4;
4938
+ optional string broadcastJid = 5;
4939
+ optional int32 reservedQuota = 6;
4940
+ optional int64 scheduledTimestamp = 7;
4941
+ optional int64 createTimestamp = 8;
4942
+ optional SyncActionValue.BusinessBroadcastCampaignStatus status = 9;
4943
+ }
4944
+
4945
+ enum BusinessBroadcastCampaignStatus {
4946
+ DRAFT = 1;
4947
+ SCHEDULED = 2;
4948
+ PROCESSING = 3;
4949
+ FAILED = 4;
4950
+ SENT = 5;
4951
+ }
4952
+ message BusinessBroadcastInsightsAction {
4953
+ optional int32 recipientCount = 1;
4954
+ optional int32 deliveredCount = 2;
4955
+ optional int32 readCount = 3;
4956
+ optional int32 repliedCount = 4;
4957
+ optional int32 quickReplyCount = 5;
4958
+ }
4959
+
4572
4960
  message BusinessBroadcastListAction {
4573
4961
  optional bool deleted = 1;
4574
4962
  repeated SyncActionValue.BroadcastListParticipant participants = 2;
4575
4963
  optional string listName = 3;
4964
+ repeated string labelIds = 4;
4965
+ optional string audienceExpression = 5;
4576
4966
  }
4577
-
4967
+
4578
4968
  message CallLogAction {
4579
4969
  optional CallLogRecord callLogRecord = 1;
4580
4970
  }
4581
-
4971
+
4582
4972
  message ChatAssignmentAction {
4583
4973
  optional string deviceAgentID = 1;
4584
4974
  }
4585
-
4975
+
4586
4976
  message ChatAssignmentOpenedStatusAction {
4587
4977
  optional bool chatOpened = 1;
4588
4978
  }
4589
-
4979
+
4590
4980
  message ClearChatAction {
4591
4981
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
4592
4982
  }
4593
-
4983
+
4594
4984
  message ContactAction {
4595
4985
  optional string fullName = 1;
4596
4986
  optional string firstName = 2;
@@ -4599,72 +4989,87 @@ message SyncActionValue {
4599
4989
  optional string pnJid = 5;
4600
4990
  optional string username = 6;
4601
4991
  }
4602
-
4992
+
4603
4993
  message CtwaPerCustomerDataSharingAction {
4604
4994
  optional bool isCtwaPerCustomerDataSharingEnabled = 1;
4605
4995
  }
4606
-
4996
+
4607
4997
  message CustomPaymentMethod {
4608
- string credentialId = 1;
4609
- string country = 2;
4610
- string type = 3;
4998
+ optional string credentialId = 1;
4999
+ optional string country = 2;
5000
+ optional string type = 3;
4611
5001
  repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
4612
5002
  }
4613
-
5003
+
4614
5004
  message CustomPaymentMethodMetadata {
4615
- string key = 1;
4616
- string value = 2;
5005
+ optional string key = 1;
5006
+ optional string value = 2;
4617
5007
  }
4618
-
5008
+
4619
5009
  message CustomPaymentMethodsAction {
4620
5010
  repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
4621
5011
  }
4622
-
5012
+
5013
+ message CustomerDataAction {
5014
+ optional string chatJid = 1;
5015
+ optional int32 contactType = 2;
5016
+ optional string email = 3;
5017
+ optional string altPhoneNumbers = 4;
5018
+ optional int64 birthday = 5;
5019
+ optional string address = 6;
5020
+ optional int32 acquisitionSource = 7;
5021
+ optional int32 leadStage = 8;
5022
+ optional int64 lastOrder = 9;
5023
+ optional int64 createdAt = 10;
5024
+ optional int64 modifiedAt = 11;
5025
+ }
5026
+
4623
5027
  message DeleteChatAction {
4624
5028
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
4625
5029
  }
4626
-
5030
+
4627
5031
  message DeleteIndividualCallLogAction {
4628
5032
  optional string peerJid = 1;
4629
5033
  optional bool isIncoming = 2;
4630
5034
  }
4631
-
5035
+
4632
5036
  message DeleteMessageForMeAction {
4633
5037
  optional bool deleteMedia = 1;
4634
5038
  optional int64 messageTimestamp = 2;
4635
5039
  }
4636
-
5040
+
4637
5041
  message DetectedOutcomesStatusAction {
4638
5042
  optional bool isEnabled = 1;
4639
5043
  }
4640
-
5044
+
4641
5045
  message ExternalWebBetaAction {
4642
5046
  optional bool isOptIn = 1;
4643
5047
  }
4644
-
5048
+
4645
5049
  message FavoritesAction {
4646
5050
  repeated Favorite favorites = 1;
4647
5051
  message Favorite {
4648
5052
  optional string id = 1;
4649
5053
  }
4650
-
5054
+
4651
5055
  }
4652
-
5056
+
4653
5057
  message InteractiveMessageAction {
4654
- InteractiveMessageActionMode type = 1;
5058
+ optional InteractiveMessageActionMode type = 1;
5059
+ optional string agmId = 2;
4655
5060
  enum InteractiveMessageActionMode {
4656
5061
  DISABLE_CTA = 1;
4657
5062
  }
4658
5063
  }
4659
-
5064
+
4660
5065
  message KeyExpiration {
4661
5066
  optional int32 expiredKeyEpoch = 1;
4662
5067
  }
4663
-
5068
+
4664
5069
  message LabelAssociationAction {
4665
5070
  optional bool labeled = 1;
4666
5071
  }
4667
-
5072
+
4668
5073
  message LabelEditAction {
4669
5074
  optional string name = 1;
4670
5075
  optional int32 color = 2;
@@ -4686,27 +5091,29 @@ message SyncActionValue {
4686
5091
  SERVER_ASSIGNED = 7;
4687
5092
  DRAFTED = 8;
4688
5093
  AI_HANDOFF = 9;
5094
+ CHANNELS = 10;
5095
+ AI_RESPONDING = 11;
4689
5096
  }
4690
5097
  }
4691
-
5098
+
4692
5099
  message LabelReorderingAction {
4693
5100
  repeated int32 sortedLabelIds = 1;
4694
5101
  }
4695
-
5102
+
4696
5103
  message LidContactAction {
4697
5104
  optional string fullName = 1;
4698
5105
  optional string firstName = 2;
4699
5106
  optional string username = 3;
4700
5107
  }
4701
-
5108
+
4702
5109
  message LocaleSetting {
4703
5110
  optional string locale = 1;
4704
5111
  }
4705
-
5112
+
4706
5113
  message LockChatAction {
4707
5114
  optional bool locked = 1;
4708
5115
  }
4709
-
5116
+
4710
5117
  message MaibaAIFeaturesControlAction {
4711
5118
  optional MaibaAIFeatureStatus aiFeatureStatus = 1;
4712
5119
  enum MaibaAIFeatureStatus {
@@ -4715,12 +5122,12 @@ message SyncActionValue {
4715
5122
  DISABLED = 2;
4716
5123
  }
4717
5124
  }
4718
-
5125
+
4719
5126
  message MarkChatAsReadAction {
4720
5127
  optional bool read = 1;
4721
5128
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
4722
5129
  }
4723
-
5130
+
4724
5131
  message MarketingMessageAction {
4725
5132
  optional string name = 1;
4726
5133
  optional string message = 2;
@@ -4733,14 +5140,14 @@ message SyncActionValue {
4733
5140
  PERSONALIZED = 0;
4734
5141
  }
4735
5142
  }
4736
-
5143
+
4737
5144
  message MarketingMessageBroadcastAction {
4738
5145
  optional int32 repliedCount = 1;
4739
5146
  }
4740
-
5147
+
4741
5148
  message MerchantPaymentPartnerAction {
4742
- Status status = 1;
4743
- string country = 2;
5149
+ optional Status status = 1;
5150
+ optional string country = 2;
4744
5151
  optional string gatewayName = 3;
4745
5152
  optional string credentialId = 4;
4746
5153
  enum Status {
@@ -4748,22 +5155,27 @@ message SyncActionValue {
4748
5155
  INACTIVE = 1;
4749
5156
  }
4750
5157
  }
4751
-
5158
+
4752
5159
  message MusicUserIdAction {
4753
5160
  optional string musicUserId = 1;
4754
5161
  map<string, string> music_user_id_map = 2;
4755
5162
  }
4756
-
5163
+
4757
5164
  message MuteAction {
4758
5165
  optional bool muted = 1;
4759
5166
  optional int64 muteEndTimestamp = 2;
4760
5167
  optional bool autoMuted = 3;
5168
+ optional int64 muteEveryoneMentionEndTimestamp = 4;
4761
5169
  }
4762
-
5170
+
5171
+ message NctSaltSyncAction {
5172
+ optional bytes salt = 1;
5173
+ }
5174
+
4763
5175
  message NewsletterSavedInterestsAction {
4764
5176
  optional string newsletterSavedInterests = 1;
4765
5177
  }
4766
-
5178
+
4767
5179
  message NoteEditAction {
4768
5180
  optional NoteType type = 1;
4769
5181
  optional string chatJid = 2;
@@ -4775,7 +5187,7 @@ message SyncActionValue {
4775
5187
  STRUCTURED = 2;
4776
5188
  }
4777
5189
  }
4778
-
5190
+
4779
5191
  message NotificationActivitySettingAction {
4780
5192
  optional NotificationActivitySetting notificationActivitySetting = 1;
4781
5193
  enum NotificationActivitySetting {
@@ -4785,51 +5197,56 @@ message SyncActionValue {
4785
5197
  DEFAULT_HIGHLIGHTS = 3;
4786
5198
  }
4787
5199
  }
4788
-
5200
+
4789
5201
  message NuxAction {
4790
5202
  optional bool acknowledged = 1;
4791
5203
  }
4792
-
5204
+
5205
+ message OutContactAction {
5206
+ optional string fullName = 1;
5207
+ optional string firstName = 2;
5208
+ }
5209
+
4793
5210
  message PaymentInfoAction {
4794
5211
  optional string cpi = 1;
4795
5212
  }
4796
-
5213
+
4797
5214
  message PaymentTosAction {
4798
- PaymentNotice paymentNotice = 1;
4799
- bool accepted = 2;
5215
+ optional PaymentNotice paymentNotice = 1;
5216
+ optional bool accepted = 2;
4800
5217
  enum PaymentNotice {
4801
5218
  BR_PAY_PRIVACY_POLICY = 0;
4802
5219
  }
4803
5220
  }
4804
-
5221
+
4805
5222
  message PinAction {
4806
5223
  optional bool pinned = 1;
4807
5224
  }
4808
-
5225
+
4809
5226
  message PnForLidChatAction {
4810
5227
  optional string pnJid = 1;
4811
5228
  }
4812
-
5229
+
4813
5230
  message PrimaryFeature {
4814
5231
  repeated string flags = 1;
4815
5232
  }
4816
-
5233
+
4817
5234
  message PrimaryVersionAction {
4818
5235
  optional string version = 1;
4819
5236
  }
4820
-
5237
+
4821
5238
  message PrivacySettingChannelsPersonalisedRecommendationAction {
4822
5239
  optional bool isUserOptedOut = 1;
4823
5240
  }
4824
-
5241
+
4825
5242
  message PrivacySettingDisableLinkPreviewsAction {
4826
5243
  optional bool isPreviewsDisabled = 1;
4827
5244
  }
4828
-
5245
+
4829
5246
  message PrivacySettingRelayAllCalls {
4830
5247
  optional bool isEnabled = 1;
4831
5248
  }
4832
-
5249
+
4833
5250
  message PrivateProcessingSettingAction {
4834
5251
  optional PrivateProcessingStatus privateProcessingStatus = 1;
4835
5252
  enum PrivateProcessingStatus {
@@ -4838,11 +5255,11 @@ message SyncActionValue {
4838
5255
  DISABLED = 2;
4839
5256
  }
4840
5257
  }
4841
-
5258
+
4842
5259
  message PushNameSetting {
4843
5260
  optional string name = 1;
4844
5261
  }
4845
-
5262
+
4846
5263
  message QuickReplyAction {
4847
5264
  optional string shortcut = 1;
4848
5265
  optional string message = 2;
@@ -4850,34 +5267,137 @@ message SyncActionValue {
4850
5267
  optional int32 count = 4;
4851
5268
  optional bool deleted = 5;
4852
5269
  }
4853
-
5270
+
4854
5271
  message RecentEmojiWeightsAction {
4855
5272
  repeated RecentEmojiWeight weights = 1;
4856
5273
  }
4857
-
5274
+
4858
5275
  message RemoveRecentStickerAction {
4859
5276
  optional int64 lastStickerSentTs = 1;
4860
5277
  }
4861
-
5278
+
5279
+ message SettingsSyncAction {
5280
+ optional bool startAtLogin = 1;
5281
+ optional bool minimizeToTray = 2;
5282
+ optional string language = 3;
5283
+ optional bool replaceTextWithEmoji = 4;
5284
+ optional DisplayMode bannerNotificationDisplayMode = 5;
5285
+ optional DisplayMode unreadCounterBadgeDisplayMode = 6;
5286
+ optional bool isMessagesNotificationEnabled = 7;
5287
+ optional bool isCallsNotificationEnabled = 8;
5288
+ optional bool isReactionsNotificationEnabled = 9;
5289
+ optional bool isStatusReactionsNotificationEnabled = 10;
5290
+ optional bool isTextPreviewForNotificationEnabled = 11;
5291
+ optional int32 defaultNotificationToneId = 12;
5292
+ optional int32 groupDefaultNotificationToneId = 13;
5293
+ optional int32 appTheme = 14;
5294
+ optional int32 wallpaperId = 15;
5295
+ optional bool isDoodleWallpaperEnabled = 16;
5296
+ optional int32 fontSize = 17;
5297
+ optional bool isPhotosAutodownloadEnabled = 18;
5298
+ optional bool isAudiosAutodownloadEnabled = 19;
5299
+ optional bool isVideosAutodownloadEnabled = 20;
5300
+ optional bool isDocumentsAutodownloadEnabled = 21;
5301
+ optional bool disableLinkPreviews = 22;
5302
+ optional int32 notificationToneId = 23;
5303
+ optional MediaQualitySetting mediaUploadQuality = 24;
5304
+ optional bool isSpellCheckEnabled = 25;
5305
+ optional bool isEnterToSendEnabled = 26;
5306
+ optional bool isGroupMessageNotificationEnabled = 27;
5307
+ optional bool isGroupReactionsNotificationEnabled = 28;
5308
+ optional bool isStatusNotificationEnabled = 29;
5309
+ optional int32 statusNotificationToneId = 30;
5310
+ optional bool shouldPlaySoundForCallNotification = 31;
5311
+ optional string chatThemeId = 32;
5312
+ optional string colorSchemeId = 33;
5313
+ enum DisplayMode {
5314
+ DISPLAY_MODE_UNKNOWN = 0;
5315
+ ALWAYS = 1;
5316
+ NEVER = 2;
5317
+ ONLY_WHEN_APP_IS_OPEN = 3;
5318
+ }
5319
+ enum MediaQualitySetting {
5320
+ MEDIA_QUALITY_UNKNOWN = 0;
5321
+ STANDARD = 1;
5322
+ HD = 2;
5323
+ }
5324
+ enum SettingKey {
5325
+ SETTING_KEY_UNKNOWN = 0;
5326
+ START_AT_LOGIN = 1;
5327
+ MINIMIZE_TO_TRAY = 2;
5328
+ LANGUAGE = 3;
5329
+ REPLACE_TEXT_WITH_EMOJI = 4;
5330
+ BANNER_NOTIFICATION_DISPLAY_MODE = 5;
5331
+ UNREAD_COUNTER_BADGE_DISPLAY_MODE = 6;
5332
+ IS_MESSAGES_NOTIFICATION_ENABLED = 7;
5333
+ IS_CALLS_NOTIFICATION_ENABLED = 8;
5334
+ IS_REACTIONS_NOTIFICATION_ENABLED = 9;
5335
+ IS_STATUS_REACTIONS_NOTIFICATION_ENABLED = 10;
5336
+ IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED = 11;
5337
+ DEFAULT_NOTIFICATION_TONE_ID = 12;
5338
+ GROUP_DEFAULT_NOTIFICATION_TONE_ID = 13;
5339
+ APP_THEME = 14;
5340
+ WALLPAPER_ID = 15;
5341
+ IS_DOODLE_WALLPAPER_ENABLED = 16;
5342
+ FONT_SIZE = 17;
5343
+ IS_PHOTOS_AUTODOWNLOAD_ENABLED = 18;
5344
+ IS_AUDIOS_AUTODOWNLOAD_ENABLED = 19;
5345
+ IS_VIDEOS_AUTODOWNLOAD_ENABLED = 20;
5346
+ IS_DOCUMENTS_AUTODOWNLOAD_ENABLED = 21;
5347
+ DISABLE_LINK_PREVIEWS = 22;
5348
+ NOTIFICATION_TONE_ID = 23;
5349
+ MEDIA_UPLOAD_QUALITY = 24;
5350
+ IS_SPELL_CHECK_ENABLED = 25;
5351
+ IS_ENTER_TO_SEND_ENABLED = 26;
5352
+ IS_GROUP_MESSAGE_NOTIFICATION_ENABLED = 27;
5353
+ IS_GROUP_REACTIONS_NOTIFICATION_ENABLED = 28;
5354
+ IS_STATUS_NOTIFICATION_ENABLED = 29;
5355
+ STATUS_NOTIFICATION_TONE_ID = 30;
5356
+ SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION = 31;
5357
+ CHAT_THEME_ID = 32;
5358
+ COLOR_SCHEME_ID = 33;
5359
+ }
5360
+ enum SettingPlatform {
5361
+ PLATFORM_UNKNOWN = 0;
5362
+ WEB = 1;
5363
+ HYBRID = 2;
5364
+ WINDOWS = 3;
5365
+ MAC = 4;
5366
+ }
5367
+ }
5368
+
4862
5369
  message StarAction {
4863
5370
  optional bool starred = 1;
4864
5371
  }
4865
-
5372
+
4866
5373
  message StatusPostOptInNotificationPreferencesAction {
4867
5374
  optional bool enabled = 1;
4868
5375
  }
4869
-
5376
+
4870
5377
  message StatusPrivacyAction {
4871
5378
  optional StatusDistributionMode mode = 1;
4872
5379
  repeated string userJid = 2;
5380
+ optional bool shareToFB = 3;
5381
+ optional bool shareToIG = 4;
5382
+ repeated CustomList customLists = 5;
5383
+ repeated StatusDistributionMode modes = 6;
5384
+ message CustomList {
5385
+ optional string listId = 1;
5386
+ optional string name = 2;
5387
+ optional string emoji = 3;
5388
+ optional bool isSelected = 4;
5389
+ repeated string userJid = 5;
5390
+ }
5391
+
4873
5392
  enum StatusDistributionMode {
4874
5393
  ALLOW_LIST = 0;
4875
5394
  DENY_LIST = 1;
4876
5395
  CONTACTS = 2;
4877
5396
  CLOSE_FRIENDS = 3;
5397
+ CUSTOM_LIST = 4;
4878
5398
  }
4879
5399
  }
4880
-
5400
+
4881
5401
  message StickerAction {
4882
5402
  optional string url = 1;
4883
5403
  optional bytes fileEncSha256 = 2;
@@ -4893,40 +5413,67 @@ message SyncActionValue {
4893
5413
  optional string imageHash = 12;
4894
5414
  optional bool isAvatarSticker = 13;
4895
5415
  }
4896
-
5416
+
4897
5417
  message SubscriptionAction {
4898
5418
  optional bool isDeactivated = 1;
4899
5419
  optional bool isAutoRenewing = 2;
4900
5420
  optional int64 expirationDate = 3;
4901
5421
  }
4902
-
5422
+
5423
+ message SubscriptionsSyncV2Action {
5424
+ repeated SubscriptionInfo subscriptions = 1;
5425
+ repeated PaidFeature paidFeature = 2;
5426
+ message PaidFeature {
5427
+ optional string name = 1;
5428
+ optional bool enabled = 2;
5429
+ optional int32 limit = 3;
5430
+ optional int64 expirationTime = 4;
5431
+ }
5432
+
5433
+ message SubscriptionInfo {
5434
+ optional string id = 1;
5435
+ optional int32 tier = 2;
5436
+ optional string status = 3;
5437
+ optional int64 startTime = 4;
5438
+ optional int64 endTime = 5;
5439
+ optional bool isPlatformChanged = 6;
5440
+ optional string source = 7;
5441
+ optional int64 creationTime = 8;
5442
+ }
5443
+
5444
+ }
5445
+
4903
5446
  message SyncActionMessage {
4904
5447
  optional MessageKey key = 1;
4905
5448
  optional int64 timestamp = 2;
4906
5449
  }
4907
-
5450
+
4908
5451
  message SyncActionMessageRange {
4909
5452
  optional int64 lastMessageTimestamp = 1;
4910
5453
  optional int64 lastSystemMessageTimestamp = 2;
4911
5454
  repeated SyncActionValue.SyncActionMessage messages = 3;
4912
5455
  }
4913
-
5456
+
5457
+ message ThreadPinAction {
5458
+ optional bool pinned = 1;
5459
+ }
5460
+
4914
5461
  message TimeFormatAction {
4915
5462
  optional bool isTwentyFourHourFormatEnabled = 1;
4916
5463
  }
4917
-
5464
+
4918
5465
  message UGCBot {
4919
5466
  optional bytes definition = 1;
4920
5467
  }
4921
-
5468
+
4922
5469
  message UnarchiveChatsSetting {
4923
5470
  optional bool unarchiveChats = 1;
4924
5471
  }
4925
-
5472
+
4926
5473
  message UserStatusMuteAction {
4927
5474
  optional bool muted = 1;
4928
5475
  }
4929
-
5476
+
4930
5477
  message UsernameChatStartModeAction {
4931
5478
  optional ChatStartMode chatStartMode = 1;
4932
5479
  enum ChatStartMode {
@@ -4934,7 +5481,7 @@ message SyncActionValue {
4934
5481
  PN = 2;
4935
5482
  }
4936
5483
  }
4937
-
5484
+
4938
5485
  message WaffleAccountLinkStateAction {
4939
5486
  optional AccountLinkState linkState = 2;
4940
5487
  enum AccountLinkState {
@@ -4943,11 +5490,11 @@ message SyncActionValue {
4943
5490
  UNLINKED = 2;
4944
5491
  }
4945
5492
  }
4946
-
5493
+
4947
5494
  message WamoUserIdentifierAction {
4948
5495
  optional string identifier = 1;
4949
5496
  }
4950
-
5497
+
4951
5498
  }
4952
5499
 
4953
5500
  message SyncdIndex {
@@ -5016,17 +5563,17 @@ message TemplateButton {
5016
5563
  optional Message.HighlyStructuredMessage displayText = 1;
5017
5564
  optional Message.HighlyStructuredMessage phoneNumber = 2;
5018
5565
  }
5019
-
5566
+
5020
5567
  message QuickReplyButton {
5021
5568
  optional Message.HighlyStructuredMessage displayText = 1;
5022
5569
  optional string id = 2;
5023
5570
  }
5024
-
5571
+
5025
5572
  message URLButton {
5026
5573
  optional Message.HighlyStructuredMessage displayText = 1;
5027
5574
  optional Message.HighlyStructuredMessage url = 2;
5028
5575
  }
5029
-
5576
+
5030
5577
  }
5031
5578
 
5032
5579
  message ThreadID {
@@ -5047,7 +5594,7 @@ message UrlTrackingMap {
5047
5594
  optional string consentedUsersUrl = 3;
5048
5595
  optional uint32 cardIndex = 4;
5049
5596
  }
5050
-
5597
+
5051
5598
  }
5052
5599
 
5053
5600
  message UserPassword {
@@ -5073,13 +5620,13 @@ message UserPassword {
5073
5620
  uint32 asUnsignedInteger = 2;
5074
5621
  }
5075
5622
  }
5076
-
5623
+
5077
5624
  }
5078
-
5625
+
5079
5626
  }
5080
5627
 
5081
5628
  message UserReceipt {
5082
- string userJid = 1;
5629
+ optional string userJid = 1;
5083
5630
  optional int64 receiptTimestamp = 2;
5084
5631
  optional int64 readTimestamp = 3;
5085
5632
  optional int64 playedTimestamp = 4;
@@ -5098,12 +5645,13 @@ message VerifiedNameCertificate {
5098
5645
  repeated LocalizedName localizedNames = 8;
5099
5646
  optional uint64 issueTime = 10;
5100
5647
  }
5101
-
5648
+
5102
5649
  }
5103
5650
 
5104
5651
  message WallpaperSettings {
5105
5652
  optional string filename = 1;
5106
5653
  optional uint32 opacity = 2;
5654
+ optional bool isGenAi = 3;
5107
5655
  }
5108
5656
 
5109
5657
  message WebFeatures {
@@ -5165,7 +5713,7 @@ enum WebLinkRenderConfig {
5165
5713
  SYSTEM = 1;
5166
5714
  }
5167
5715
  message WebMessageInfo {
5168
- MessageKey key = 1;
5716
+ optional MessageKey key = 1;
5169
5717
  optional Message message = 2;
5170
5718
  optional uint64 messageTimestamp = 3;
5171
5719
  optional Status status = 4;
@@ -5231,6 +5779,10 @@ message WebMessageInfo {
5231
5779
  optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
5232
5780
  optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
5233
5781
  optional QuarantinedMessage quarantinedMessage = 77;
5782
+ optional uint32 nonJidMentions = 78;
5783
+ optional string hsmTag = 79;
5784
+ optional uint64 ephemeralExpirationTimestamp = 80;
5785
+ optional ScheduledMessageMetadata scheduledMessageMetadata = 81;
5234
5786
  enum BizPrivacyStatus {
5235
5787
  E2EE = 0;
5236
5788
  FB = 2;
@@ -5468,6 +6020,10 @@ message WebMessageInfo {
5468
6020
  PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219;
5469
6021
  QUARANTINED_MESSAGE = 220;
5470
6022
  GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE = 221;
6023
+ GROUP_OPEN_BOT_ADDED = 222;
6024
+ GROUP_TEE_BOT_ADDED = 223;
6025
+ CONTACT_INFO = 224;
6026
+ SCHEDULED_MESSAGE_CREATED = 225;
5471
6027
  }
5472
6028
  }
5473
6029