@kyyinfinite/baileys 1.0.0 → 2.0.0

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