@neelegirl/baileys 1.5.3 → 1.5.4

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 (438) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +195 -195
  3. package/WAProto/GenerateStatics.sh +3 -0
  4. package/WAProto/WAProto.proto +478 -1153
  5. package/WAProto/fix-imports.js +29 -0
  6. package/WAProto/index.d.ts +2645 -51971
  7. package/WAProto/index.js +48649 -154035
  8. package/engine-requirements.js +10 -0
  9. package/lib/Defaults/index.d.ts +62 -78
  10. package/lib/Defaults/index.d.ts.map +1 -0
  11. package/lib/Defaults/index.js +115 -149
  12. package/lib/Defaults/index.js.map +1 -0
  13. package/lib/Signal/Group/ciphertext-message.d.ts +10 -0
  14. package/lib/Signal/Group/ciphertext-message.d.ts.map +1 -0
  15. package/lib/Signal/Group/ciphertext-message.js +12 -0
  16. package/lib/Signal/Group/ciphertext-message.js.map +1 -0
  17. package/lib/Signal/{WASignalGroup → Group}/group-session-builder.d.ts +11 -13
  18. package/lib/Signal/Group/group-session-builder.d.ts.map +1 -0
  19. package/lib/Signal/Group/group-session-builder.js +30 -0
  20. package/lib/Signal/Group/group-session-builder.js.map +1 -0
  21. package/lib/Signal/Group/group_cipher.d.ts +17 -0
  22. package/lib/Signal/Group/group_cipher.d.ts.map +1 -0
  23. package/lib/Signal/{WASignalGroup → Group}/group_cipher.js +41 -70
  24. package/lib/Signal/Group/group_cipher.js.map +1 -0
  25. package/lib/Signal/Group/index.d.ts +12 -0
  26. package/lib/Signal/Group/index.d.ts.map +1 -0
  27. package/lib/Signal/Group/index.js +12 -0
  28. package/lib/Signal/Group/index.js.map +1 -0
  29. package/lib/Signal/Group/keyhelper.d.ts +11 -0
  30. package/lib/Signal/Group/keyhelper.d.ts.map +1 -0
  31. package/lib/Signal/Group/keyhelper.js +18 -0
  32. package/lib/Signal/Group/keyhelper.js.map +1 -0
  33. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  34. package/lib/Signal/Group/sender-chain-key.d.ts.map +1 -0
  35. package/lib/Signal/Group/sender-chain-key.js +26 -0
  36. package/lib/Signal/Group/sender-chain-key.js.map +1 -0
  37. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  38. package/lib/Signal/Group/sender-key-distribution-message.d.ts.map +1 -0
  39. package/lib/Signal/Group/sender-key-distribution-message.js +63 -0
  40. package/lib/Signal/Group/sender-key-distribution-message.js.map +1 -0
  41. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  42. package/lib/Signal/Group/sender-key-message.d.ts.map +1 -0
  43. package/lib/Signal/Group/sender-key-message.js +66 -0
  44. package/lib/Signal/Group/sender-key-message.js.map +1 -0
  45. package/lib/Signal/Group/sender-key-name.d.ts +18 -0
  46. package/lib/Signal/Group/sender-key-name.d.ts.map +1 -0
  47. package/lib/Signal/Group/sender-key-name.js +48 -0
  48. package/lib/Signal/Group/sender-key-name.js.map +1 -0
  49. package/lib/Signal/Group/sender-key-record.d.ts +31 -0
  50. package/lib/Signal/Group/sender-key-record.d.ts.map +1 -0
  51. package/lib/Signal/Group/sender-key-record.js +41 -0
  52. package/lib/Signal/Group/sender-key-record.js.map +1 -0
  53. package/lib/Signal/Group/sender-key-state.d.ts +39 -0
  54. package/lib/Signal/Group/sender-key-state.d.ts.map +1 -0
  55. package/lib/Signal/Group/sender-key-state.js +84 -0
  56. package/lib/Signal/Group/sender-key-state.js.map +1 -0
  57. package/lib/Signal/Group/sender-message-key.d.ts +12 -0
  58. package/lib/Signal/Group/sender-message-key.d.ts.map +1 -0
  59. package/lib/Signal/{WASignalGroup/sender_message_key.js → Group/sender-message-key.js} +26 -39
  60. package/lib/Signal/Group/sender-message-key.js.map +1 -0
  61. package/lib/Signal/libsignal.d.ts +5 -8
  62. package/lib/Signal/libsignal.d.ts.map +1 -0
  63. package/lib/Signal/libsignal.js +342 -391
  64. package/lib/Signal/libsignal.js.map +1 -0
  65. package/lib/Signal/lid-mapping.d.ts +23 -28
  66. package/lib/Signal/lid-mapping.d.ts.map +1 -0
  67. package/lib/Signal/lid-mapping.js +171 -184
  68. package/lib/Signal/lid-mapping.js.map +1 -0
  69. package/lib/Socket/Client/index.d.ts +3 -2
  70. package/lib/Socket/Client/index.d.ts.map +1 -0
  71. package/lib/Socket/Client/index.js +3 -22
  72. package/lib/Socket/Client/index.js.map +1 -0
  73. package/lib/Socket/Client/types.d.ts +15 -15
  74. package/lib/Socket/Client/types.d.ts.map +1 -0
  75. package/lib/Socket/Client/types.js +8 -15
  76. package/lib/Socket/Client/types.js.map +1 -0
  77. package/lib/Socket/Client/websocket.d.ts +12 -12
  78. package/lib/Socket/Client/websocket.d.ts.map +1 -0
  79. package/lib/Socket/Client/websocket.js +24 -36
  80. package/lib/Socket/Client/websocket.js.map +1 -0
  81. package/lib/Socket/business.d.ts +178 -177
  82. package/lib/Socket/business.d.ts.map +1 -0
  83. package/lib/Socket/business.js +81 -120
  84. package/lib/Socket/business.js.map +1 -0
  85. package/lib/Socket/chats.d.ts +93 -92
  86. package/lib/Socket/chats.d.ts.map +1 -0
  87. package/lib/Socket/chats.js +462 -618
  88. package/lib/Socket/chats.js.map +1 -0
  89. package/lib/Socket/communities.d.ts +244 -223
  90. package/lib/Socket/communities.d.ts.map +1 -0
  91. package/lib/Socket/communities.js +431 -433
  92. package/lib/Socket/communities.js.map +1 -0
  93. package/lib/Socket/groups.d.ts +118 -110
  94. package/lib/Socket/groups.d.ts.map +1 -0
  95. package/lib/Socket/groups.js +148 -181
  96. package/lib/Socket/groups.js.map +1 -0
  97. package/lib/Socket/index.d.ts +222 -182
  98. package/lib/Socket/index.d.ts.map +1 -0
  99. package/lib/Socket/index.js +12 -18
  100. package/lib/Socket/index.js.map +1 -0
  101. package/lib/Socket/messages-recv.d.ts +165 -166
  102. package/lib/Socket/messages-recv.d.ts.map +1 -0
  103. package/lib/Socket/messages-recv.js +753 -1031
  104. package/lib/Socket/messages-recv.js.map +1 -0
  105. package/lib/Socket/messages-send.d.ts +161 -157
  106. package/lib/Socket/messages-send.d.ts.map +1 -0
  107. package/lib/Socket/messages-send.js +564 -1396
  108. package/lib/Socket/messages-send.js.map +1 -0
  109. package/lib/Socket/mex.d.ts +3 -2
  110. package/lib/Socket/mex.d.ts.map +1 -0
  111. package/lib/Socket/mex.js +42 -47
  112. package/lib/Socket/mex.js.map +1 -0
  113. package/lib/Socket/newsletter.d.ts +139 -137
  114. package/lib/Socket/newsletter.d.ts.map +1 -0
  115. package/lib/Socket/newsletter.js +181 -295
  116. package/lib/Socket/newsletter.js.map +1 -0
  117. package/lib/Socket/socket.d.ts +42 -36
  118. package/lib/Socket/socket.d.ts.map +1 -0
  119. package/lib/Socket/socket.js +487 -557
  120. package/lib/Socket/socket.js.map +1 -0
  121. package/lib/Types/Auth.d.ts +87 -97
  122. package/lib/Types/Auth.d.ts.map +1 -0
  123. package/lib/Types/Auth.js +2 -3
  124. package/lib/Types/Auth.js.map +1 -0
  125. package/lib/Types/Bussines.d.ts +25 -0
  126. package/lib/Types/Bussines.d.ts.map +1 -0
  127. package/lib/Types/Bussines.js +2 -3
  128. package/lib/Types/Bussines.js.map +1 -0
  129. package/lib/Types/Call.d.ts +13 -13
  130. package/lib/Types/Call.d.ts.map +1 -0
  131. package/lib/Types/Call.js +2 -3
  132. package/lib/Types/Call.js.map +1 -0
  133. package/lib/Types/Chat.d.ts +77 -97
  134. package/lib/Types/Chat.d.ts.map +1 -0
  135. package/lib/Types/Chat.js +8 -9
  136. package/lib/Types/Chat.js.map +1 -0
  137. package/lib/Types/Contact.d.ts +10 -9
  138. package/lib/Types/Contact.d.ts.map +1 -0
  139. package/lib/Types/Contact.js +2 -3
  140. package/lib/Types/Contact.js.map +1 -0
  141. package/lib/Types/Events.d.ts +151 -175
  142. package/lib/Types/Events.d.ts.map +1 -0
  143. package/lib/Types/Events.js +2 -3
  144. package/lib/Types/Events.js.map +1 -0
  145. package/lib/Types/GroupMetadata.d.ts +49 -48
  146. package/lib/Types/GroupMetadata.d.ts.map +1 -0
  147. package/lib/Types/GroupMetadata.js +2 -3
  148. package/lib/Types/GroupMetadata.js.map +1 -0
  149. package/lib/Types/Label.d.ts +13 -14
  150. package/lib/Types/Label.d.ts.map +1 -0
  151. package/lib/Types/Label.js +24 -30
  152. package/lib/Types/Label.js.map +1 -0
  153. package/lib/Types/LabelAssociation.d.ts +15 -20
  154. package/lib/Types/LabelAssociation.d.ts.map +1 -0
  155. package/lib/Types/LabelAssociation.js +6 -12
  156. package/lib/Types/LabelAssociation.js.map +1 -0
  157. package/lib/Types/Message.d.ts +231 -412
  158. package/lib/Types/Message.d.ts.map +1 -0
  159. package/lib/Types/Message.js +11 -19
  160. package/lib/Types/Message.js.map +1 -0
  161. package/lib/Types/Newsletter.d.ts +130 -104
  162. package/lib/Types/Newsletter.d.ts.map +1 -0
  163. package/lib/Types/Newsletter.js +31 -40
  164. package/lib/Types/Newsletter.js.map +1 -0
  165. package/lib/Types/Product.d.ts +58 -71
  166. package/lib/Types/Product.d.ts.map +1 -0
  167. package/lib/Types/Product.js +2 -3
  168. package/lib/Types/Product.js.map +1 -0
  169. package/lib/Types/Signal.d.ts +60 -82
  170. package/lib/Types/Signal.d.ts.map +1 -0
  171. package/lib/Types/Signal.js +2 -3
  172. package/lib/Types/Signal.js.map +1 -0
  173. package/lib/Types/Socket.d.ts +73 -81
  174. package/lib/Types/Socket.d.ts.map +1 -0
  175. package/lib/Types/Socket.js +3 -3
  176. package/lib/Types/Socket.js.map +1 -0
  177. package/lib/Types/State.d.ts +17 -19
  178. package/lib/Types/State.d.ts.map +1 -0
  179. package/lib/Types/State.js +13 -14
  180. package/lib/Types/State.js.map +1 -0
  181. package/lib/Types/USync.d.ts +8 -8
  182. package/lib/Types/USync.d.ts.map +1 -0
  183. package/lib/Types/USync.js +2 -3
  184. package/lib/Types/USync.js.map +1 -0
  185. package/lib/Types/index.d.ts +47 -62
  186. package/lib/Types/index.d.ts.map +1 -0
  187. package/lib/Types/index.js +26 -50
  188. package/lib/Types/index.js.map +1 -0
  189. package/lib/Utils/auth-utils.d.ts +19 -21
  190. package/lib/Utils/auth-utils.d.ts.map +1 -0
  191. package/lib/Utils/auth-utils.js +257 -528
  192. package/lib/Utils/auth-utils.js.map +1 -0
  193. package/lib/Utils/baileys-event-stream.d.ts +17 -18
  194. package/lib/Utils/baileys-event-stream.d.ts.map +1 -0
  195. package/lib/Utils/baileys-event-stream.js +56 -70
  196. package/lib/Utils/baileys-event-stream.js.map +1 -0
  197. package/lib/Utils/browser-utils.d.ts +4 -0
  198. package/lib/Utils/browser-utils.d.ts.map +1 -0
  199. package/lib/Utils/browser-utils.js +28 -0
  200. package/lib/Utils/browser-utils.js.map +1 -0
  201. package/lib/Utils/business.d.ts +23 -29
  202. package/lib/Utils/business.d.ts.map +1 -0
  203. package/lib/Utils/business.js +231 -255
  204. package/lib/Utils/business.js.map +1 -0
  205. package/lib/Utils/chat-utils.d.ts +70 -82
  206. package/lib/Utils/chat-utils.d.ts.map +1 -0
  207. package/lib/Utils/chat-utils.js +763 -809
  208. package/lib/Utils/chat-utils.js.map +1 -0
  209. package/lib/Utils/crypto.d.ts +41 -56
  210. package/lib/Utils/crypto.d.ts.map +1 -0
  211. package/lib/Utils/crypto.js +142 -189
  212. package/lib/Utils/crypto.js.map +1 -0
  213. package/lib/Utils/decode-wa-message.d.ts +48 -53
  214. package/lib/Utils/decode-wa-message.d.ts.map +1 -0
  215. package/lib/Utils/decode-wa-message.js +279 -323
  216. package/lib/Utils/decode-wa-message.js.map +1 -0
  217. package/lib/Utils/event-buffer.d.ts +34 -39
  218. package/lib/Utils/event-buffer.d.ts.map +1 -0
  219. package/lib/Utils/event-buffer.js +548 -595
  220. package/lib/Utils/event-buffer.js.map +1 -0
  221. package/lib/Utils/generics.d.ts +90 -131
  222. package/lib/Utils/generics.d.ts.map +1 -0
  223. package/lib/Utils/generics.js +381 -630
  224. package/lib/Utils/generics.js.map +1 -0
  225. package/lib/Utils/history.d.ts +19 -23
  226. package/lib/Utils/history.d.ts.map +1 -0
  227. package/lib/Utils/history.js +84 -104
  228. package/lib/Utils/history.js.map +1 -0
  229. package/lib/Utils/index.d.ts +20 -20
  230. package/lib/Utils/index.d.ts.map +1 -0
  231. package/lib/Utils/index.js +19 -40
  232. package/lib/Utils/index.js.map +1 -0
  233. package/lib/Utils/link-preview.d.ts +21 -23
  234. package/lib/Utils/link-preview.d.ts.map +1 -0
  235. package/lib/Utils/link-preview.js +85 -120
  236. package/lib/Utils/link-preview.js.map +1 -0
  237. package/lib/Utils/logger.d.ts +12 -13
  238. package/lib/Utils/logger.d.ts.map +1 -0
  239. package/lib/Utils/logger.js +3 -7
  240. package/lib/Utils/logger.js.map +1 -0
  241. package/lib/Utils/lt-hash.d.ts +13 -14
  242. package/lib/Utils/lt-hash.d.ts.map +1 -0
  243. package/lib/Utils/lt-hash.js +48 -58
  244. package/lib/Utils/lt-hash.js.map +1 -0
  245. package/lib/Utils/make-mutex.d.ts +8 -9
  246. package/lib/Utils/make-mutex.d.ts.map +1 -0
  247. package/lib/Utils/make-mutex.js +40 -49
  248. package/lib/Utils/make-mutex.js.map +1 -0
  249. package/lib/Utils/message-retry-manager.d.ts +82 -88
  250. package/lib/Utils/message-retry-manager.d.ts.map +1 -0
  251. package/lib/Utils/message-retry-manager.js +149 -160
  252. package/lib/Utils/message-retry-manager.js.map +1 -0
  253. package/lib/Utils/messages-media.d.ts +114 -135
  254. package/lib/Utils/messages-media.d.ts.map +1 -0
  255. package/lib/Utils/messages-media.js +663 -869
  256. package/lib/Utils/messages-media.js.map +1 -0
  257. package/lib/Utils/messages.d.ts +76 -105
  258. package/lib/Utils/messages.d.ts.map +1 -0
  259. package/lib/Utils/messages.js +820 -1745
  260. package/lib/Utils/messages.js.map +1 -0
  261. package/lib/Utils/noise-handler.d.ts +20 -21
  262. package/lib/Utils/noise-handler.d.ts.map +1 -0
  263. package/lib/Utils/noise-handler.js +147 -165
  264. package/lib/Utils/noise-handler.js.map +1 -0
  265. package/lib/Utils/pre-key-manager.d.ts +28 -0
  266. package/lib/Utils/pre-key-manager.d.ts.map +1 -0
  267. package/lib/Utils/pre-key-manager.js +106 -0
  268. package/lib/Utils/pre-key-manager.js.map +1 -0
  269. package/lib/Utils/process-message.d.ts +42 -49
  270. package/lib/Utils/process-message.d.ts.map +1 -0
  271. package/lib/Utils/process-message.js +413 -427
  272. package/lib/Utils/process-message.js.map +1 -0
  273. package/lib/Utils/signal.d.ts +34 -42
  274. package/lib/Utils/signal.d.ts.map +1 -0
  275. package/lib/Utils/signal.js +159 -166
  276. package/lib/Utils/signal.js.map +1 -0
  277. package/lib/Utils/use-multi-file-auth-state.d.ts +13 -18
  278. package/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -0
  279. package/lib/Utils/use-multi-file-auth-state.js +121 -238
  280. package/lib/Utils/use-multi-file-auth-state.js.map +1 -0
  281. package/lib/Utils/validate-connection.d.ts +11 -13
  282. package/lib/Utils/validate-connection.d.ts.map +1 -0
  283. package/lib/Utils/validate-connection.js +195 -220
  284. package/lib/Utils/validate-connection.js.map +1 -0
  285. package/lib/WABinary/constants.d.ts +28 -30
  286. package/lib/WABinary/constants.d.ts.map +1 -0
  287. package/lib/WABinary/constants.js +1301 -1316
  288. package/lib/WABinary/constants.js.map +1 -0
  289. package/lib/WABinary/decode.d.ts +7 -9
  290. package/lib/WABinary/decode.d.ts.map +1 -0
  291. package/lib/WABinary/decode.js +238 -288
  292. package/lib/WABinary/decode.js.map +1 -0
  293. package/lib/WABinary/encode.d.ts +3 -3
  294. package/lib/WABinary/encode.d.ts.map +1 -0
  295. package/lib/WABinary/encode.js +216 -265
  296. package/lib/WABinary/encode.js.map +1 -0
  297. package/lib/WABinary/generic-utils.d.ts +15 -28
  298. package/lib/WABinary/generic-utils.d.ts.map +1 -0
  299. package/lib/WABinary/generic-utils.js +102 -142
  300. package/lib/WABinary/generic-utils.js.map +1 -0
  301. package/lib/WABinary/index.d.ts +6 -5
  302. package/lib/WABinary/index.d.ts.map +1 -0
  303. package/lib/WABinary/index.js +6 -25
  304. package/lib/WABinary/index.js.map +1 -0
  305. package/lib/WABinary/jid-utils.d.ts +48 -58
  306. package/lib/WABinary/jid-utils.d.ts.map +1 -0
  307. package/lib/WABinary/jid-utils.js +96 -104
  308. package/lib/WABinary/jid-utils.js.map +1 -0
  309. package/lib/WABinary/types.d.ts +19 -22
  310. package/lib/WABinary/types.d.ts.map +1 -0
  311. package/lib/WABinary/types.js +2 -3
  312. package/lib/WABinary/types.js.map +1 -0
  313. package/lib/WAM/BinaryInfo.d.ts +9 -16
  314. package/lib/WAM/BinaryInfo.d.ts.map +1 -0
  315. package/lib/WAM/BinaryInfo.js +10 -17
  316. package/lib/WAM/BinaryInfo.js.map +1 -0
  317. package/lib/WAM/constants.d.ts +40 -47
  318. package/lib/WAM/constants.d.ts.map +1 -0
  319. package/lib/WAM/constants.js +22853 -15371
  320. package/lib/WAM/constants.js.map +1 -0
  321. package/lib/WAM/encode.d.ts +3 -3
  322. package/lib/WAM/encode.d.ts.map +1 -0
  323. package/lib/WAM/encode.js +150 -164
  324. package/lib/WAM/encode.js.map +1 -0
  325. package/lib/WAM/index.d.ts +4 -3
  326. package/lib/WAM/index.d.ts.map +1 -0
  327. package/lib/WAM/index.js +4 -23
  328. package/lib/WAM/index.js.map +1 -0
  329. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -9
  330. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -0
  331. package/lib/WAUSync/Protocols/USyncContactProtocol.js +12 -19
  332. package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -0
  333. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +19 -22
  334. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +1 -0
  335. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +18 -26
  336. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +1 -0
  337. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +11 -12
  338. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +1 -0
  339. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +12 -20
  340. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +1 -0
  341. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +11 -12
  342. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +1 -0
  343. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +16 -24
  344. package/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +1 -0
  345. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +26 -0
  346. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +1 -0
  347. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
  348. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +1 -0
  349. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
  350. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -0
  351. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
  352. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -0
  353. package/lib/WAUSync/Protocols/index.d.ts +5 -6
  354. package/lib/WAUSync/Protocols/index.d.ts.map +1 -0
  355. package/lib/WAUSync/Protocols/index.js +5 -26
  356. package/lib/WAUSync/Protocols/index.js.map +1 -0
  357. package/lib/WAUSync/USyncQuery.d.ts +26 -28
  358. package/lib/WAUSync/USyncQuery.d.ts.map +1 -0
  359. package/lib/WAUSync/USyncQuery.js +64 -62
  360. package/lib/WAUSync/USyncQuery.js.map +1 -0
  361. package/lib/WAUSync/USyncUser.d.ts +11 -10
  362. package/lib/WAUSync/USyncUser.d.ts.map +1 -0
  363. package/lib/WAUSync/USyncUser.js +12 -19
  364. package/lib/WAUSync/USyncUser.js.map +1 -0
  365. package/lib/WAUSync/index.d.ts +4 -3
  366. package/lib/WAUSync/index.d.ts.map +1 -0
  367. package/lib/WAUSync/index.js +4 -23
  368. package/lib/WAUSync/index.js.map +1 -0
  369. package/lib/index.d.ts +12 -13
  370. package/lib/index.d.ts.map +1 -0
  371. package/lib/index.js +11 -33
  372. package/lib/index.js.map +1 -0
  373. package/package.json +99 -96
  374. package/lib/Defaults/baileys-version.json +0 -3
  375. package/lib/Defaults/phonenumber-mcc.json +0 -223
  376. package/lib/Signal/WASignalGroup/GroupProtocol.js +0 -1909
  377. package/lib/Signal/WASignalGroup/ciphertext-message.d.ts +0 -9
  378. package/lib/Signal/WASignalGroup/ciphertext-message.js +0 -19
  379. package/lib/Signal/WASignalGroup/ciphertext_message.js +0 -16
  380. package/lib/Signal/WASignalGroup/generate-proto.sh +0 -1
  381. package/lib/Signal/WASignalGroup/group-session-builder.js +0 -72
  382. package/lib/Signal/WASignalGroup/group.proto +0 -42
  383. package/lib/Signal/WASignalGroup/group_cipher.d.ts +0 -19
  384. package/lib/Signal/WASignalGroup/group_session_builder.js +0 -46
  385. package/lib/Signal/WASignalGroup/index.d.ts +0 -11
  386. package/lib/Signal/WASignalGroup/index.js +0 -61
  387. package/lib/Signal/WASignalGroup/keyhelper.d.ts +0 -16
  388. package/lib/Signal/WASignalGroup/keyhelper.js +0 -66
  389. package/lib/Signal/WASignalGroup/protobufs.js +0 -3
  390. package/lib/Signal/WASignalGroup/queue_job.js +0 -69
  391. package/lib/Signal/WASignalGroup/readme.md +0 -6
  392. package/lib/Signal/WASignalGroup/sender-chain-key.d.ts +0 -14
  393. package/lib/Signal/WASignalGroup/sender-chain-key.js +0 -47
  394. package/lib/Signal/WASignalGroup/sender-key-distribution-message.d.ts +0 -17
  395. package/lib/Signal/WASignalGroup/sender-key-distribution-message.js +0 -71
  396. package/lib/Signal/WASignalGroup/sender-key-message.d.ts +0 -19
  397. package/lib/Signal/WASignalGroup/sender-key-message.js +0 -73
  398. package/lib/Signal/WASignalGroup/sender-key-name.d.ts +0 -19
  399. package/lib/Signal/WASignalGroup/sender-key-name.js +0 -59
  400. package/lib/Signal/WASignalGroup/sender-key-record.d.ts +0 -32
  401. package/lib/Signal/WASignalGroup/sender-key-record.js +0 -58
  402. package/lib/Signal/WASignalGroup/sender-key-state.d.ts +0 -44
  403. package/lib/Signal/WASignalGroup/sender-key-state.js +0 -147
  404. package/lib/Signal/WASignalGroup/sender-message-key.d.ts +0 -11
  405. package/lib/Signal/WASignalGroup/sender-message-key.js +0 -33
  406. package/lib/Signal/WASignalGroup/sender_chain_key.js +0 -50
  407. package/lib/Signal/WASignalGroup/sender_key_distribution_message.js +0 -78
  408. package/lib/Signal/WASignalGroup/sender_key_message.js +0 -92
  409. package/lib/Signal/WASignalGroup/sender_key_name.js +0 -70
  410. package/lib/Signal/WASignalGroup/sender_key_record.js +0 -56
  411. package/lib/Signal/WASignalGroup/sender_key_state.js +0 -129
  412. package/lib/Socket/Client/abstract-socket-client.d.ts +0 -15
  413. package/lib/Socket/Client/abstract-socket-client.js +0 -13
  414. package/lib/Socket/Client/mobile-socket-client.d.ts +0 -12
  415. package/lib/Socket/Client/mobile-socket-client.js +0 -65
  416. package/lib/Socket/usync.d.ts +0 -37
  417. package/lib/Socket/usync.js +0 -83
  418. package/lib/Store/index.d.ts +0 -4
  419. package/lib/Store/index.js +0 -24
  420. package/lib/Store/make-cache-manager-store.d.ts +0 -14
  421. package/lib/Store/make-cache-manager-store.js +0 -90
  422. package/lib/Store/make-in-memory-store.d.ts +0 -123
  423. package/lib/Store/make-in-memory-store.js +0 -429
  424. package/lib/Store/make-ordered-dictionary.d.ts +0 -12
  425. package/lib/Store/make-ordered-dictionary.js +0 -86
  426. package/lib/Store/object-repository.d.ts +0 -10
  427. package/lib/Store/object-repository.js +0 -31
  428. package/lib/Types/Bussiness.d.ts +0 -28
  429. package/lib/Types/MexUpdates.d.ts +0 -9
  430. package/lib/Types/MexUpdates.js +0 -18
  431. package/lib/Utils/use-mongo-file-auth-state.d.ts +0 -6
  432. package/lib/Utils/use-mongo-file-auth-state.js +0 -84
  433. package/lib/Utils/use-single-file-auth-state.d.ts +0 -13
  434. package/lib/Utils/use-single-file-auth-state.js +0 -80
  435. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +0 -28
  436. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +0 -69
  437. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +0 -10
  438. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -38
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package proto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1028457684
4
+ /// WhatsApp Version: 2.3000.1023047013
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -48,181 +48,161 @@ message AIQueryFanout {
48
48
  optional int64 timestamp = 3;
49
49
  }
50
50
 
51
- message AIRichResponseCodeMetadata {
52
- optional string codeLanguage = 1;
53
- repeated AIRichResponseCodeBlock codeBlocks = 2;
54
- message AIRichResponseCodeBlock {
55
- optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
56
- optional string codeContent = 2;
57
- }
58
-
59
- enum AIRichResponseCodeHighlightType {
60
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
61
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
62
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
63
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
64
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
65
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
51
+ message AIRichResponseMessage {
52
+ optional AIRichResponseMessageType messageType = 1;
53
+ repeated AIRichResponseSubMessage submessages = 2;
54
+ optional AIRichResponseUnifiedResponse unifiedResponse = 3;
55
+ message AIRichResponseCodeMetadata {
56
+ optional string codeLanguage = 1;
57
+ repeated AIRichResponseCodeBlock codeBlocks = 2;
58
+ message AIRichResponseCodeBlock {
59
+ optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
60
+ optional string codeContent = 2;
61
+ }
62
+
63
+ enum AIRichResponseCodeHighlightType {
64
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
65
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
66
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
67
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
68
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
69
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
70
+ }
66
71
  }
67
- }
68
72
 
69
- message AIRichResponseContentItemsMetadata {
70
- repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
71
- optional ContentType contentType = 2;
72
- message AIRichResponseContentItemMetadata {
73
- oneof aIRichResponseContentItem {
74
- AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
73
+ message AIRichResponseContentItemsMetadata {
74
+ repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
75
+ optional ContentType contentType = 2;
76
+ message AIRichResponseContentItemMetadata {
77
+ oneof aIRichResponseContentItem {
78
+ AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
79
+ }
80
+ }
81
+
82
+ message AIRichResponseReelItem {
83
+ optional string title = 1;
84
+ optional string profileIconUrl = 2;
85
+ optional string thumbnailUrl = 3;
86
+ optional string videoUrl = 4;
87
+ }
88
+
89
+ enum ContentType {
90
+ DEFAULT = 0;
91
+ CAROUSEL = 1;
75
92
  }
76
93
  }
77
-
78
- message AIRichResponseReelItem {
79
- optional string title = 1;
80
- optional string profileIconUrl = 2;
81
- optional string thumbnailUrl = 3;
82
- optional string videoUrl = 4;
94
+
95
+ message AIRichResponseDynamicMetadata {
96
+ optional AIRichResponseDynamicMetadataType type = 1;
97
+ optional uint64 version = 2;
98
+ optional string url = 3;
99
+ optional uint32 loopCount = 4;
100
+ enum AIRichResponseDynamicMetadataType {
101
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
102
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
103
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
104
+ }
83
105
  }
84
-
85
- enum ContentType {
86
- DEFAULT = 0;
87
- CAROUSEL = 1;
106
+
107
+ message AIRichResponseGridImageMetadata {
108
+ optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
109
+ repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
88
110
  }
89
- }
90
111
 
91
- message AIRichResponseDynamicMetadata {
92
- optional AIRichResponseDynamicMetadataType type = 1;
93
- optional uint64 version = 2;
94
- optional string url = 3;
95
- optional uint32 loopCount = 4;
96
- enum AIRichResponseDynamicMetadataType {
97
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
98
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
99
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
112
+ message AIRichResponseImageURL {
113
+ optional string imagePreviewUrl = 1;
114
+ optional string imageHighResUrl = 2;
115
+ optional string sourceUrl = 3;
100
116
  }
101
- }
102
117
 
103
- message AIRichResponseGridImageMetadata {
104
- optional AIRichResponseImageURL gridImageUrl = 1;
105
- repeated AIRichResponseImageURL imageUrls = 2;
106
- }
118
+ message AIRichResponseInlineImageMetadata {
119
+ optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
120
+ optional string imageText = 2;
121
+ optional AIRichResponseImageAlignment alignment = 3;
122
+ optional string tapLinkUrl = 4;
123
+ enum AIRichResponseImageAlignment {
124
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
125
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
126
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
127
+ }
128
+ }
107
129
 
108
- message AIRichResponseImageURL {
109
- optional string imagePreviewUrl = 1;
110
- optional string imageHighResUrl = 2;
111
- optional string sourceUrl = 3;
112
- }
130
+ message AIRichResponseLatexMetadata {
131
+ optional string text = 1;
132
+ repeated AIRichResponseLatexExpression expressions = 2;
133
+ message AIRichResponseLatexExpression {
134
+ optional string latexExpression = 1;
135
+ optional string url = 2;
136
+ optional double width = 3;
137
+ optional double height = 4;
138
+ optional double fontHeight = 5;
139
+ optional double imageTopPadding = 6;
140
+ optional double imageLeadingPadding = 7;
141
+ optional double imageBottomPadding = 8;
142
+ optional double imageTrailingPadding = 9;
143
+ }
113
144
 
114
- message AIRichResponseInlineImageMetadata {
115
- optional AIRichResponseImageURL imageUrl = 1;
116
- optional string imageText = 2;
117
- optional AIRichResponseImageAlignment alignment = 3;
118
- optional string tapLinkUrl = 4;
119
- enum AIRichResponseImageAlignment {
120
- AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
121
- AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
122
- AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
123
145
  }
124
- }
125
146
 
126
- message AIRichResponseLatexMetadata {
127
- optional string text = 1;
128
- repeated AIRichResponseLatexExpression expressions = 2;
129
- message AIRichResponseLatexExpression {
130
- optional string latexExpression = 1;
131
- optional string url = 2;
132
- optional double width = 3;
133
- optional double height = 4;
134
- optional double fontHeight = 5;
135
- optional double imageTopPadding = 6;
136
- optional double imageLeadingPadding = 7;
137
- optional double imageBottomPadding = 8;
138
- optional double imageTrailingPadding = 9;
139
- }
140
-
141
- }
142
-
143
- message AIRichResponseMapMetadata {
144
- optional double centerLatitude = 1;
145
- optional double centerLongitude = 2;
146
- optional double latitudeDelta = 3;
147
- optional double longitudeDelta = 4;
148
- repeated AIRichResponseMapAnnotation annotations = 5;
149
- optional bool showInfoList = 6;
150
- message AIRichResponseMapAnnotation {
151
- optional uint32 annotationNumber = 1;
152
- optional double latitude = 2;
153
- optional double longitude = 3;
154
- optional string title = 4;
155
- optional string body = 5;
147
+ message AIRichResponseMapMetadata {
148
+ optional double centerLatitude = 1;
149
+ optional double centerLongitude = 2;
150
+ optional double latitudeDelta = 3;
151
+ optional double longitudeDelta = 4;
152
+ repeated AIRichResponseMapAnnotation annotations = 5;
153
+ optional bool showInfoList = 6;
154
+ message AIRichResponseMapAnnotation {
155
+ optional uint32 annotationNumber = 1;
156
+ optional double latitude = 2;
157
+ optional double longitude = 3;
158
+ optional string title = 4;
159
+ optional string body = 5;
160
+ }
161
+
156
162
  }
157
-
158
- }
159
163
 
160
- message AIRichResponseMessage {
161
- optional AIRichResponseMessageType messageType = 1;
162
- repeated AIRichResponseSubMessage submessages = 2;
163
- optional AIRichResponseUnifiedResponse unifiedResponse = 3;
164
- optional ContextInfo contextInfo = 4;
165
- }
166
-
167
- enum AIRichResponseMessageType {
168
- AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
169
- AI_RICH_RESPONSE_TYPE_STANDARD = 1;
170
- }
171
- message AIRichResponseSubMessage {
172
- optional AIRichResponseSubMessageType messageType = 1;
173
- optional AIRichResponseGridImageMetadata gridImageMetadata = 2;
174
- optional string messageText = 3;
175
- optional AIRichResponseInlineImageMetadata imageMetadata = 4;
176
- optional AIRichResponseCodeMetadata codeMetadata = 5;
177
- optional AIRichResponseTableMetadata tableMetadata = 6;
178
- optional AIRichResponseDynamicMetadata dynamicMetadata = 7;
179
- optional AIRichResponseLatexMetadata latexMetadata = 8;
180
- optional AIRichResponseMapMetadata mapMetadata = 9;
181
- optional AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
182
- }
183
-
184
- enum AIRichResponseSubMessageType {
185
- AI_RICH_RESPONSE_UNKNOWN = 0;
186
- AI_RICH_RESPONSE_GRID_IMAGE = 1;
187
- AI_RICH_RESPONSE_TEXT = 2;
188
- AI_RICH_RESPONSE_INLINE_IMAGE = 3;
189
- AI_RICH_RESPONSE_TABLE = 4;
190
- AI_RICH_RESPONSE_CODE = 5;
191
- AI_RICH_RESPONSE_DYNAMIC = 6;
192
- AI_RICH_RESPONSE_MAP = 7;
193
- AI_RICH_RESPONSE_LATEX = 8;
194
- AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
195
- }
196
- message AIRichResponseTableMetadata {
197
- repeated AIRichResponseTableRow rows = 1;
198
- optional string title = 2;
199
- message AIRichResponseTableRow {
200
- repeated string items = 1;
201
- optional bool isHeading = 2;
202
- }
203
-
204
- }
205
-
206
- message AIRichResponseUnifiedResponse {
207
- optional bytes data = 1;
208
- }
209
-
210
- message AIThreadInfo {
211
- optional AIThreadServerInfo serverInfo = 1;
212
- optional AIThreadClientInfo clientInfo = 2;
213
- message AIThreadClientInfo {
214
- optional AIThreadType type = 1;
215
- enum AIThreadType {
216
- UNKNOWN = 0;
217
- DEFAULT = 1;
218
- INCOGNITO = 2;
164
+ enum AIRichResponseMessageType {
165
+ AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
166
+ AI_RICH_RESPONSE_TYPE_STANDARD = 1;
167
+ }
168
+ message AIRichResponseSubMessage {
169
+ optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
170
+ optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
171
+ optional string messageText = 3;
172
+ optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
173
+ optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
174
+ optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
175
+ optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
176
+ optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
177
+ optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
178
+ optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
179
+ }
180
+
181
+ enum AIRichResponseSubMessageType {
182
+ AI_RICH_RESPONSE_UNKNOWN = 0;
183
+ AI_RICH_RESPONSE_GRID_IMAGE = 1;
184
+ AI_RICH_RESPONSE_TEXT = 2;
185
+ AI_RICH_RESPONSE_INLINE_IMAGE = 3;
186
+ AI_RICH_RESPONSE_TABLE = 4;
187
+ AI_RICH_RESPONSE_CODE = 5;
188
+ AI_RICH_RESPONSE_DYNAMIC = 6;
189
+ AI_RICH_RESPONSE_MAP = 7;
190
+ AI_RICH_RESPONSE_LATEX = 8;
191
+ AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
192
+ }
193
+ message AIRichResponseTableMetadata {
194
+ repeated AIRichResponseTableRow rows = 1;
195
+ message AIRichResponseTableRow {
196
+ repeated string items = 1;
197
+ optional bool isHeading = 2;
219
198
  }
199
+
220
200
  }
221
-
222
- message AIThreadServerInfo {
223
- optional string title = 1;
201
+
202
+ message AIRichResponseUnifiedResponse {
203
+ optional bytes data = 1;
224
204
  }
225
-
205
+
226
206
  }
227
207
 
228
208
  message Account {
@@ -296,11 +276,6 @@ message BizIdentityInfo {
296
276
  message BotAgeCollectionMetadata {
297
277
  optional bool ageCollectionEligible = 1;
298
278
  optional bool shouldTriggerAgeCollectionOnClient = 2;
299
- optional AgeCollectionType ageCollectionType = 3;
300
- enum AgeCollectionType {
301
- O18_BINARY = 0;
302
- WAFFLE = 1;
303
- }
304
279
  }
305
280
 
306
281
  message BotAvatarMetadata {
@@ -350,113 +325,7 @@ message BotCapabilityMetadata {
350
325
  PROACTIVE_MESSAGE = 33;
351
326
  RICH_RESPONSE_UNIFIED_RESPONSE = 34;
352
327
  PROMOTION_MESSAGE = 35;
353
- SIMPLIFIED_PROFILE_PAGE = 36;
354
- RICH_RESPONSE_SOURCES_IN_MESSAGE = 37;
355
- RICH_RESPONSE_SIDE_BY_SIDE_SURVEY = 38;
356
- RICH_RESPONSE_UNIFIED_TEXT_COMPONENT = 39;
357
- AI_SHARED_MEMORY = 40;
358
- RICH_RESPONSE_UNIFIED_SOURCES = 41;
359
- RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42;
360
- RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
361
- RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
362
- RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
363
- RICH_RESPONSE_IN_APP_SURVEY = 46;
364
- AI_RESPONSE_MODEL_BRANDING = 47;
365
- }
366
- }
367
-
368
- message BotFeedbackMessage {
369
- optional MessageKey messageKey = 1;
370
- optional BotFeedbackKind kind = 2;
371
- optional string text = 3;
372
- optional uint64 kindNegative = 4;
373
- optional uint64 kindPositive = 5;
374
- optional ReportKind kindReport = 6;
375
- optional SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;
376
- enum BotFeedbackKind {
377
- BOT_FEEDBACK_POSITIVE = 0;
378
- BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
379
- BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
380
- BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
381
- BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
382
- BOT_FEEDBACK_NEGATIVE_SAFE = 5;
383
- BOT_FEEDBACK_NEGATIVE_OTHER = 6;
384
- BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
385
- BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
386
- BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
387
- BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
388
- BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
389
- BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
390
- BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
391
- BOT_FEEDBACK_NEGATIVE = 14;
392
- }
393
- enum BotFeedbackKindMultipleNegative {
394
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
395
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
396
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
397
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
398
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
399
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
400
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
401
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
402
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
403
- }
404
- enum BotFeedbackKindMultiplePositive {
405
- BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
406
- }
407
- enum ReportKind {
408
- NONE = 0;
409
- GENERIC = 1;
410
- }
411
- message SideBySideSurveyMetadata {
412
- optional string selectedRequestId = 1;
413
- optional uint32 surveyId = 2;
414
- optional string simonSessionFbid = 3;
415
- optional string responseOtid = 4;
416
- optional string responseTimestampMsString = 5;
417
- optional bool isSelectedResponsePrimary = 6;
418
- optional string messageIdToEdit = 7;
419
- optional SideBySideSurveyAnalyticsData analyticsData = 8;
420
- optional SidebySideSurveyMetaAiAnalyticsData metaAiAnalyticsData = 9;
421
- message SideBySideSurveyAnalyticsData {
422
- optional string tessaEvent = 1;
423
- optional string tessaSessionFbid = 2;
424
- }
425
-
426
- message SidebySideSurveyMetaAiAnalyticsData {
427
- optional uint32 surveyId = 1;
428
- optional string primaryResponseId = 2;
429
- optional string testArmName = 3;
430
- optional string timestampMsString = 4;
431
- optional SideBySideSurveyCTAImpressionEventData ctaImpressionEvent = 5;
432
- optional SideBySideSurveyCTAClickEventData ctaClickEvent = 6;
433
- optional SideBySideSurveyCardImpressionEventData cardImpressionEvent = 7;
434
- optional SideBySideSurveyResponseEventData responseEvent = 8;
435
- optional SideBySideSurveyAbandonEventData abandonEvent = 9;
436
- message SideBySideSurveyAbandonEventData {
437
- optional string abandonDwellTimeMsString = 1;
438
- }
439
-
440
- message SideBySideSurveyCTAClickEventData {
441
- optional bool isSurveyExpired = 1;
442
- optional string clickDwellTimeMsString = 2;
443
- }
444
-
445
- message SideBySideSurveyCTAImpressionEventData {
446
- optional bool isSurveyExpired = 1;
447
- }
448
-
449
- message SideBySideSurveyCardImpressionEventData {
450
- }
451
-
452
- message SideBySideSurveyResponseEventData {
453
- optional string responseDwellTimeMsString = 1;
454
- }
455
-
456
- }
457
-
458
328
  }
459
-
460
329
  }
461
330
 
462
331
  message BotImagineMetadata {
@@ -513,22 +382,6 @@ message BotMemuMetadata {
513
382
  repeated BotMediaMetadata faceImages = 1;
514
383
  }
515
384
 
516
- message BotMessageOrigin {
517
- optional BotMessageOriginType type = 1;
518
- enum BotMessageOriginType {
519
- BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0;
520
- }
521
- }
522
-
523
- message BotMessageOriginMetadata {
524
- repeated BotMessageOrigin origins = 1;
525
- }
526
-
527
- message BotMessageSharingInfo {
528
- optional BotMetricsEntryPoint botEntryPointOrigin = 1;
529
- optional uint32 forwardScore = 2;
530
- }
531
-
532
385
  message BotMetadata {
533
386
  optional BotAvatarMetadata avatarMetadata = 1;
534
387
  optional string personaId = 2;
@@ -554,18 +407,9 @@ message BotMetadata {
554
407
  optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
555
408
  optional BotQuotaMetadata botQuotaMetadata = 23;
556
409
  optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
557
- optional string conversationStarterPromptId = 25;
558
- optional string botResponseId = 26;
559
- optional BotSignatureVerificationMetadata verificationMetadata = 27;
560
- optional BotUnifiedResponseMutation unifiedResponseMutation = 28;
561
- optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
562
- optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
563
- optional AIThreadInfo botThreadInfo = 31;
564
- optional bytes internalMetadata = 999;
565
410
  }
566
411
 
567
412
  enum BotMetricsEntryPoint {
568
- UNDEFINED_ENTRY_POINT = 0;
569
413
  FAVICON = 1;
570
414
  CHATLIST = 2;
571
415
  AISEARCH_NULL_STATE_PAPER_PLANE = 3;
@@ -590,18 +434,6 @@ enum BotMetricsEntryPoint {
590
434
  META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
591
435
  UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
592
436
  NEW_CHAT_AI_STUDIO = 24;
593
- AIVOICE_FAVICON_CALL_HISTORY = 25;
594
- ASK_META_AI_CONTEXT_MENU = 26;
595
- ASK_META_AI_CONTEXT_MENU_1ON1 = 27;
596
- ASK_META_AI_CONTEXT_MENU_GROUP = 28;
597
- INVOKE_META_AI_1ON1 = 29;
598
- INVOKE_META_AI_GROUP = 30;
599
- META_AI_FORWARD = 31;
600
- NEW_CHAT_AI_CONTACT = 32;
601
- MESSAGE_QUICK_ACTION_1_ON_1_CHAT = 33;
602
- MESSAGE_QUICK_ACTION_GROUP_CHAT = 34;
603
- ATTACHMENT_TRAY_1_ON_1_CHAT = 35;
604
- ATTACHMENT_TRAY_GROUP_CHAT = 36;
605
437
  }
606
438
  message BotMetricsMetadata {
607
439
  optional string destinationId = 1;
@@ -614,7 +446,6 @@ enum BotMetricsThreadEntryPoint {
614
446
  AI_HOME_THREAD = 2;
615
447
  AI_DEEPLINK_IMMERSIVE_THREAD = 3;
616
448
  AI_DEEPLINK_THREAD = 4;
617
- ASK_META_AI_CONTEXT_MENU_THREAD = 5;
618
449
  }
619
450
  message BotModeSelectionMetadata {
620
451
  repeated BotUserSelectionMode mode = 1;
@@ -627,7 +458,6 @@ message BotModeSelectionMetadata {
627
458
  message BotModelMetadata {
628
459
  optional ModelType modelType = 1;
629
460
  optional PremiumModelStatus premiumModelStatus = 2;
630
- optional string modelNameOverride = 3;
631
461
  enum ModelType {
632
462
  UNKNOWN_TYPE = 0;
633
463
  LLAMA_PROD = 1;
@@ -683,7 +513,7 @@ message BotProgressIndicatorMetadata {
683
513
  optional string sourceUrl = 3;
684
514
  optional string favIconUrl = 4;
685
515
  }
686
-
516
+
687
517
  message BotPlanningSearchSourcesMetadata {
688
518
  optional string sourceTitle = 1;
689
519
  optional BotPlanningSearchSourceProvider provider = 2;
@@ -695,13 +525,13 @@ message BotProgressIndicatorMetadata {
695
525
  BING = 3;
696
526
  }
697
527
  }
698
-
528
+
699
529
  message BotPlanningStepSectionMetadata {
700
530
  optional string sectionTitle = 1;
701
531
  optional string sectionBody = 2;
702
532
  repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
703
533
  }
704
-
534
+
705
535
  enum BotSearchSourceProvider {
706
536
  UNKNOWN_PROVIDER = 0;
707
537
  OTHER = 1;
@@ -715,7 +545,7 @@ message BotProgressIndicatorMetadata {
715
545
  FINISHED = 3;
716
546
  }
717
547
  }
718
-
548
+
719
549
  }
720
550
 
721
551
  message BotPromotionMessageMetadata {
@@ -724,7 +554,6 @@ message BotPromotionMessageMetadata {
724
554
  enum BotPromotionType {
725
555
  UNKNOWN_TYPE = 0;
726
556
  C50 = 1;
727
- SURVEY_PLATFORM = 2;
728
557
  }
729
558
  }
730
559
 
@@ -748,7 +577,7 @@ message BotQuotaMetadata {
748
577
  REASONING_FEATURE = 1;
749
578
  }
750
579
  }
751
-
580
+
752
581
  }
753
582
 
754
583
  message BotReminderMetadata {
@@ -778,7 +607,7 @@ message BotRenderingMetadata {
778
607
  optional string value = 1;
779
608
  repeated string associatedPrompts = 2;
780
609
  }
781
-
610
+
782
611
  }
783
612
 
784
613
  message BotSessionMetadata {
@@ -795,21 +624,6 @@ enum BotSessionSource {
795
624
  EMU_FLASH_FOLLOWUP = 5;
796
625
  VOICE = 6;
797
626
  }
798
- message BotSignatureVerificationMetadata {
799
- repeated BotSignatureVerificationUseCaseProof proofs = 1;
800
- }
801
-
802
- message BotSignatureVerificationUseCaseProof {
803
- optional int32 version = 1;
804
- optional BotSignatureUseCase useCase = 2;
805
- optional bytes signature = 3;
806
- repeated bytes certificateChain = 4;
807
- enum BotSignatureUseCase {
808
- UNSPECIFIED = 0;
809
- WA_BOT_MSG = 1;
810
- }
811
- }
812
-
813
627
  message BotSourcesMetadata {
814
628
  repeated BotSourceItem sources = 1;
815
629
  message BotSourceItem {
@@ -819,16 +633,14 @@ message BotSourcesMetadata {
819
633
  optional string sourceQuery = 4;
820
634
  optional string faviconCdnUrl = 5;
821
635
  optional uint32 citationNumber = 6;
822
- optional string sourceTitle = 7;
823
636
  enum SourceProvider {
824
637
  UNKNOWN = 0;
825
638
  BING = 1;
826
639
  GOOGLE = 2;
827
640
  SUPPORT = 3;
828
- OTHER = 4;
829
641
  }
830
642
  }
831
-
643
+
832
644
  }
833
645
 
834
646
  message BotSuggestedPromptMetadata {
@@ -838,21 +650,6 @@ message BotSuggestedPromptMetadata {
838
650
  optional string selectedPromptId = 4;
839
651
  }
840
652
 
841
- message BotUnifiedResponseMutation {
842
- optional SideBySideMetadata sbsMetadata = 1;
843
- repeated MediaDetailsMetadata mediaDetailsMetadataList = 2;
844
- message MediaDetailsMetadata {
845
- optional string id = 1;
846
- optional BotMediaMetadata highResMedia = 2;
847
- optional BotMediaMetadata previewMedia = 3;
848
- }
849
-
850
- message SideBySideMetadata {
851
- optional string primaryResponseId = 1;
852
- }
853
-
854
- }
855
-
856
653
  message CallLogRecord {
857
654
  optional CallResult callResult = 1;
858
655
  optional bool isDndMode = 2;
@@ -891,7 +688,7 @@ message CallLogRecord {
891
688
  optional string userJid = 1;
892
689
  optional CallLogRecord.CallResult callResult = 2;
893
690
  }
894
-
691
+
895
692
  enum SilenceReason {
896
693
  NONE = 0;
897
694
  SCHEDULED = 1;
@@ -913,9 +710,9 @@ message CertChain {
913
710
  optional uint64 notBefore = 4;
914
711
  optional uint64 notAfter = 5;
915
712
  }
916
-
713
+
917
714
  }
918
-
715
+
919
716
  }
920
717
 
921
718
  message ChatLockSettings {
@@ -950,29 +747,28 @@ message ChatRowOpaqueData {
950
747
  VIDEO = 2;
951
748
  }
952
749
  }
953
-
750
+
954
751
  message CtwaContextLinkData {
955
752
  optional string context = 1;
956
753
  optional string sourceUrl = 2;
957
754
  optional string icebreaker = 3;
958
755
  optional string phone = 4;
959
756
  }
960
-
757
+
961
758
  }
962
-
759
+
963
760
  }
964
761
 
965
762
  message Citation {
966
- optional string title = 1;
967
- optional string subtitle = 2;
968
- optional string cmsId = 3;
969
- optional string imageUrl = 4;
763
+ string title = 1;
764
+ string subtitle = 2;
765
+ string cmsId = 3;
766
+ string imageUrl = 4;
970
767
  }
971
768
 
972
769
  message ClientPairingProps {
973
770
  optional bool isChatDbLidMigrated = 1;
974
771
  optional bool isSyncdPureLidSession = 2;
975
- optional bool isSyncdSnapshotRecoveryEnabled = 3;
976
772
  }
977
773
 
978
774
  message ClientPayload {
@@ -1006,10 +802,6 @@ message ClientPayload {
1006
802
  optional TrafficAnonymization trafficAnonymization = 40;
1007
803
  optional bool lidDbMigrated = 41;
1008
804
  optional AccountType accountType = 42;
1009
- optional sfixed32 connectionSequenceInfo = 43;
1010
- optional bool paaLink = 44;
1011
- optional int32 preacksCount = 45;
1012
- optional int32 processingQueueSize = 46;
1013
805
  enum AccountType {
1014
806
  DEFAULT = 0;
1015
807
  GUEST = 1;
@@ -1052,7 +844,7 @@ message ClientPayload {
1052
844
  MNS = 5;
1053
845
  }
1054
846
  }
1055
-
847
+
1056
848
  message DevicePairingRegistrationData {
1057
849
  optional bytes eRegid = 1;
1058
850
  optional bytes eKeytype = 2;
@@ -1063,7 +855,7 @@ message ClientPayload {
1063
855
  optional bytes buildHash = 7;
1064
856
  optional bytes deviceProps = 8;
1065
857
  }
1066
-
858
+
1067
859
  enum IOSAppExtension {
1068
860
  SHARE_EXTENSION = 0;
1069
861
  SERVICE_EXTENSION = 1;
@@ -1074,7 +866,7 @@ message ClientPayload {
1074
866
  optional bytes token = 2;
1075
867
  optional bool enableReadReceipts = 3;
1076
868
  }
1077
-
869
+
1078
870
  enum Product {
1079
871
  WHATSAPP = 0;
1080
872
  MESSENGER = 1;
@@ -1110,7 +902,7 @@ message ClientPayload {
1110
902
  optional uint32 quaternary = 4;
1111
903
  optional uint32 quinary = 5;
1112
904
  }
1113
-
905
+
1114
906
  enum DeviceType {
1115
907
  PHONE = 0;
1116
908
  TABLET = 1;
@@ -1155,7 +947,6 @@ message ClientPayload {
1155
947
  IPAD = 33;
1156
948
  TEST = 34;
1157
949
  SMART_GLASSES = 35;
1158
- BLUE_VR = 36;
1159
950
  }
1160
951
  enum ReleaseChannel {
1161
952
  RELEASE = 0;
@@ -1164,7 +955,7 @@ message ClientPayload {
1164
955
  DEBUG = 3;
1165
956
  }
1166
957
  }
1167
-
958
+
1168
959
  message WebInfo {
1169
960
  optional string refToken = 1;
1170
961
  optional string version = 2;
@@ -1191,9 +982,9 @@ message ClientPayload {
1191
982
  optional string documentTypes = 10;
1192
983
  optional bytes features = 11;
1193
984
  }
1194
-
985
+
1195
986
  }
1196
-
987
+
1197
988
  }
1198
989
 
1199
990
  message CommentMetadata {
@@ -1264,14 +1055,6 @@ message ContextInfo {
1264
1055
  optional MemberLabel memberLabel = 62;
1265
1056
  optional bool isQuestion = 63;
1266
1057
  optional StatusSourceType statusSourceType = 64;
1267
- repeated StatusAttribution statusAttributions = 65;
1268
- optional bool isGroupStatus = 66;
1269
- optional ForwardOrigin forwardOrigin = 67;
1270
- optional QuestionReplyQuotedMessage questionReplyQuotedMessage = 68;
1271
- optional StatusAudienceMetadata statusAudienceMetadata = 69;
1272
- optional uint32 nonJidMentions = 70;
1273
- optional QuotedType quotedType = 71;
1274
- optional BotMessageSharingInfo botMessageSharingInfo = 72;
1275
1058
  message AdReplyInfo {
1276
1059
  optional string advertiserName = 1;
1277
1060
  optional MediaType mediaType = 2;
@@ -1283,20 +1066,15 @@ message ContextInfo {
1283
1066
  VIDEO = 2;
1284
1067
  }
1285
1068
  }
1286
-
1069
+
1287
1070
  message BusinessMessageForwardInfo {
1288
1071
  optional string businessOwnerJid = 1;
1289
1072
  }
1290
-
1073
+
1291
1074
  message DataSharingContext {
1292
1075
  optional bool showMmDisclosure = 1;
1293
1076
  optional string encryptedSignalTokenConsented = 2;
1294
1077
  repeated Parameters parameters = 3;
1295
- optional int32 dataSharingFlags = 4;
1296
- enum DataSharingFlags {
1297
- SHOW_MM_DISCLOSURE_ON_CLICK = 1;
1298
- SHOW_MM_DISCLOSURE_ON_READ = 2;
1299
- }
1300
1078
  message Parameters {
1301
1079
  optional string key = 1;
1302
1080
  optional string stringData = 2;
@@ -1304,9 +1082,9 @@ message ContextInfo {
1304
1082
  optional float floatData = 4;
1305
1083
  optional ContextInfo.DataSharingContext.Parameters contents = 5;
1306
1084
  }
1307
-
1085
+
1308
1086
  }
1309
-
1087
+
1310
1088
  message ExternalAdReplyInfo {
1311
1089
  optional string title = 1;
1312
1090
  optional string body = 2;
@@ -1333,8 +1111,6 @@ message ContextInfo {
1333
1111
  optional string automatedGreetingMessageCtaType = 23;
1334
1112
  optional bool wtwaAdFormat = 24;
1335
1113
  optional AdType adType = 25;
1336
- optional string wtwaWebsiteUrl = 26;
1337
- optional string adPreviewUrl = 27;
1338
1114
  enum AdType {
1339
1115
  CTWA = 0;
1340
1116
  CAWC = 1;
@@ -1345,23 +1121,20 @@ message ContextInfo {
1345
1121
  VIDEO = 2;
1346
1122
  }
1347
1123
  }
1348
-
1124
+
1349
1125
  message FeatureEligibilities {
1350
1126
  optional bool cannotBeReactedTo = 1;
1351
1127
  optional bool cannotBeRanked = 2;
1352
1128
  optional bool canRequestFeedback = 3;
1353
1129
  optional bool canBeReshared = 4;
1354
- optional bool canReceiveMultiReact = 5;
1355
1130
  }
1356
-
1357
- enum ForwardOrigin {
1358
- UNKNOWN = 0;
1359
- CHAT = 1;
1360
- STATUS = 2;
1361
- CHANNELS = 3;
1362
- META_AI = 4;
1363
- UGC = 5;
1131
+
1132
+ message ForwardedAIBotMessageInfo {
1133
+ optional string botName = 1;
1134
+ optional string botJid = 2;
1135
+ optional string creatorName = 3;
1364
1136
  }
1137
+
1365
1138
  message ForwardedNewsletterMessageInfo {
1366
1139
  optional string newsletterJid = 1;
1367
1140
  optional int32 serverMessageId = 2;
@@ -1374,7 +1147,7 @@ message ContextInfo {
1374
1147
  LINK_CARD = 3;
1375
1148
  }
1376
1149
  }
1377
-
1150
+
1378
1151
  enum PairedMediaType {
1379
1152
  NOT_PAIRED_MEDIA = 0;
1380
1153
  SD_VIDEO_PARENT = 1;
@@ -1383,34 +1156,12 @@ message ContextInfo {
1383
1156
  HD_IMAGE_CHILD = 4;
1384
1157
  MOTION_PHOTO_PARENT = 5;
1385
1158
  MOTION_PHOTO_CHILD = 6;
1386
- HEVC_VIDEO_PARENT = 7;
1387
- HEVC_VIDEO_CHILD = 8;
1388
- }
1389
- message QuestionReplyQuotedMessage {
1390
- optional int32 serverQuestionId = 1;
1391
- optional Message quotedQuestion = 2;
1392
- optional Message quotedResponse = 3;
1393
- }
1394
-
1395
- enum QuotedType {
1396
- EXPLICIT = 0;
1397
- AUTO = 1;
1398
1159
  }
1399
1160
  enum StatusAttributionType {
1400
1161
  NONE = 0;
1401
1162
  RESHARED_FROM_MENTION = 1;
1402
1163
  RESHARED_FROM_POST = 2;
1403
- RESHARED_FROM_POST_MANY_TIMES = 3;
1404
- FORWARDED_FROM_STATUS = 4;
1405
- }
1406
- message StatusAudienceMetadata {
1407
- optional AudienceType audienceType = 1;
1408
- enum AudienceType {
1409
- UNKNOWN = 0;
1410
- CLOSE_FRIENDS = 1;
1411
- }
1412
1164
  }
1413
-
1414
1165
  enum StatusSourceType {
1415
1166
  IMAGE = 0;
1416
1167
  VIDEO = 1;
@@ -1423,11 +1174,11 @@ message ContextInfo {
1423
1174
  optional string utmSource = 1;
1424
1175
  optional string utmCampaign = 2;
1425
1176
  }
1426
-
1177
+
1427
1178
  }
1428
1179
 
1429
1180
  message Conversation {
1430
- optional string id = 1;
1181
+ string id = 1;
1431
1182
  repeated HistorySyncMsg messages = 2;
1432
1183
  optional string newJid = 3;
1433
1184
  optional string oldJid = 4;
@@ -1480,7 +1231,6 @@ message Conversation {
1480
1231
  optional int64 limitSharingSettingTimestamp = 51;
1481
1232
  optional LimitSharing.TriggerType limitSharingTrigger = 52;
1482
1233
  optional bool limitSharingInitiatedByMe = 53;
1483
- optional bool maibaAiThreadEnabled = 54;
1484
1234
  enum EndOfHistoryTransferType {
1485
1235
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1486
1236
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
@@ -1491,12 +1241,6 @@ message Conversation {
1491
1241
  message DeviceCapabilities {
1492
1242
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
1493
1243
  optional LIDMigration lidMigration = 2;
1494
- optional BusinessBroadcast businessBroadcast = 3;
1495
- optional UserHasAvatar userHasAvatar = 4;
1496
- message BusinessBroadcast {
1497
- optional bool importListEnabled = 1;
1498
- }
1499
-
1500
1244
  enum ChatLockSupportLevel {
1501
1245
  NONE = 0;
1502
1246
  MINIMAL = 1;
@@ -1505,11 +1249,7 @@ message DeviceCapabilities {
1505
1249
  message LIDMigration {
1506
1250
  optional uint64 chatDbMigrationTimestamp = 1;
1507
1251
  }
1508
-
1509
- message UserHasAvatar {
1510
- optional bool userHasAvatar = 1;
1511
- }
1512
-
1252
+
1513
1253
  }
1514
1254
 
1515
1255
  message DeviceConsistencyCodeMessage {
@@ -1541,7 +1281,7 @@ message DeviceProps {
1541
1281
  optional uint32 quaternary = 4;
1542
1282
  optional uint32 quinary = 5;
1543
1283
  }
1544
-
1284
+
1545
1285
  message HistorySyncConfig {
1546
1286
  optional uint32 fullSyncDaysLimit = 1;
1547
1287
  optional uint32 fullSyncSizeMbLimit = 2;
@@ -1557,11 +1297,8 @@ message DeviceProps {
1557
1297
  optional bool supportFbidBotChatHistory = 12;
1558
1298
  optional bool supportAddOnHistorySyncMigration = 13;
1559
1299
  optional bool supportMessageAssociation = 14;
1560
- optional bool supportGroupHistory = 15;
1561
- optional bool onDemandReady = 16;
1562
- optional bool supportGuestChat = 17;
1563
1300
  }
1564
-
1301
+
1565
1302
  enum PlatformType {
1566
1303
  UNKNOWN = 0;
1567
1304
  CHROME = 1;
@@ -1632,13 +1369,10 @@ message EmbeddedMusic {
1632
1369
  optional string artworkDirectPath = 5;
1633
1370
  optional bytes artworkSha256 = 6;
1634
1371
  optional bytes artworkEncSha256 = 7;
1372
+ optional bytes artworkMediaKey = 11;
1635
1373
  optional string artistAttribution = 8;
1636
1374
  optional bytes countryBlocklist = 9;
1637
1375
  optional bool isExplicit = 10;
1638
- optional bytes artworkMediaKey = 11;
1639
- optional int64 musicSongStartTimeInMs = 12;
1640
- optional int64 derivedContentStartTimeInMs = 13;
1641
- optional int64 overlapDurationInMs = 14;
1642
1376
  }
1643
1377
 
1644
1378
  message EncryptedPairingRequest {
@@ -1684,12 +1418,6 @@ message Field {
1684
1418
  map<uint32, Field> subfield = 5;
1685
1419
  }
1686
1420
 
1687
- message ForwardedAIBotMessageInfo {
1688
- optional string botName = 1;
1689
- optional string botJid = 2;
1690
- optional string creatorName = 3;
1691
- }
1692
-
1693
1421
  message GlobalSettings {
1694
1422
  optional WallpaperSettings lightThemeWallpaper = 1;
1695
1423
  optional MediaVisibility mediaVisibility = 2;
@@ -1713,31 +1441,14 @@ message GlobalSettings {
1713
1441
  optional int64 chatDbLidMigrationTimestamp = 20;
1714
1442
  }
1715
1443
 
1716
- message GroupHistoryBundleInfo {
1717
- optional Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
1718
- optional ProcessState processState = 2;
1719
- enum ProcessState {
1720
- NOT_INJECTED = 0;
1721
- INJECTED = 1;
1722
- INJECTED_PARTIAL = 2;
1723
- INJECTION_FAILED = 3;
1724
- }
1725
- }
1726
-
1727
- message GroupHistoryIndividualMessageInfo {
1728
- optional MessageKey bundleMessageKey = 1;
1729
- optional bool editedAfterReceivedAsHistory = 2;
1730
- }
1731
-
1732
1444
  message GroupMention {
1733
1445
  optional string groupJid = 1;
1734
1446
  optional string groupSubject = 2;
1735
1447
  }
1736
1448
 
1737
1449
  message GroupParticipant {
1738
- optional string userJid = 1;
1450
+ string userJid = 1;
1739
1451
  optional Rank rank = 2;
1740
- optional MemberLabel memberLabel = 3;
1741
1452
  enum Rank {
1742
1453
  REGULAR = 0;
1743
1454
  ADMIN = 1;
@@ -1752,28 +1463,24 @@ message HandshakeMessage {
1752
1463
  message ClientFinish {
1753
1464
  optional bytes static = 1;
1754
1465
  optional bytes payload = 2;
1755
- optional bytes extendedCiphertext = 3;
1756
1466
  }
1757
-
1467
+
1758
1468
  message ClientHello {
1759
1469
  optional bytes ephemeral = 1;
1760
1470
  optional bytes static = 2;
1761
1471
  optional bytes payload = 3;
1762
- optional bool useExtended = 4;
1763
- optional bytes extendedCiphertext = 5;
1764
1472
  }
1765
-
1473
+
1766
1474
  message ServerHello {
1767
1475
  optional bytes ephemeral = 1;
1768
1476
  optional bytes static = 2;
1769
1477
  optional bytes payload = 3;
1770
- optional bytes extendedStatic = 4;
1771
1478
  }
1772
-
1479
+
1773
1480
  }
1774
1481
 
1775
1482
  message HistorySync {
1776
- optional HistorySyncType syncType = 1;
1483
+ HistorySyncType syncType = 1;
1777
1484
  repeated Conversation conversations = 2;
1778
1485
  repeated WebMessageInfo statusV3Messages = 3;
1779
1486
  optional uint32 chunkOrder = 5;
@@ -1821,12 +1528,12 @@ message HydratedTemplateButton {
1821
1528
  optional string displayText = 1;
1822
1529
  optional string phoneNumber = 2;
1823
1530
  }
1824
-
1531
+
1825
1532
  message HydratedQuickReplyButton {
1826
1533
  optional string displayText = 1;
1827
1534
  optional string id = 2;
1828
1535
  }
1829
-
1536
+
1830
1537
  message HydratedURLButton {
1831
1538
  optional string displayText = 1;
1832
1539
  optional string url = 2;
@@ -1838,7 +1545,7 @@ message HydratedTemplateButton {
1838
1545
  COMPACT = 3;
1839
1546
  }
1840
1547
  }
1841
-
1548
+
1842
1549
  }
1843
1550
 
1844
1551
  message IdentityKeyPairStructure {
@@ -1846,43 +1553,6 @@ message IdentityKeyPairStructure {
1846
1553
  optional bytes privateKey = 2;
1847
1554
  }
1848
1555
 
1849
- message InThreadSurveyMetadata {
1850
- optional string tessaSessionId = 1;
1851
- optional string simonSessionId = 2;
1852
- optional string simonSurveyId = 3;
1853
- optional string tessaRootId = 4;
1854
- optional string requestId = 5;
1855
- optional string tessaEvent = 6;
1856
- optional string invitationHeaderText = 7;
1857
- optional string invitationBodyText = 8;
1858
- optional string invitationCtaText = 9;
1859
- optional string invitationCtaUrl = 10;
1860
- optional string surveyTitle = 11;
1861
- repeated InThreadSurveyQuestion questions = 12;
1862
- optional string surveyContinueButtonText = 13;
1863
- optional string surveySubmitButtonText = 14;
1864
- optional string privacyStatementFull = 15;
1865
- repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
1866
- optional string feedbackToastText = 17;
1867
- message InThreadSurveyOption {
1868
- optional string stringValue = 1;
1869
- optional uint32 numericValue = 2;
1870
- optional string textTranslated = 3;
1871
- }
1872
-
1873
- message InThreadSurveyPrivacyStatementPart {
1874
- optional string text = 1;
1875
- optional string url = 2;
1876
- }
1877
-
1878
- message InThreadSurveyQuestion {
1879
- optional string questionText = 1;
1880
- optional string questionId = 2;
1881
- repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
1882
- }
1883
-
1884
- }
1885
-
1886
1556
  message InteractiveAnnotation {
1887
1557
  repeated Point polygonVertices = 1;
1888
1558
  optional bool shouldSkipConfirmation = 4;
@@ -1901,10 +1571,6 @@ message InteractiveAnnotation {
1901
1571
  }
1902
1572
  }
1903
1573
 
1904
- message InteractiveMessageAdditionalMetadata {
1905
- optional bool isGalaxyFlowCompleted = 1;
1906
- }
1907
-
1908
1574
  message KeepInChat {
1909
1575
  optional KeepType keepType = 1;
1910
1576
  optional int64 serverTimestamp = 2;
@@ -1932,8 +1598,8 @@ message KeyId {
1932
1598
  }
1933
1599
 
1934
1600
  message LIDMigrationMapping {
1935
- optional uint64 pn = 1;
1936
- optional uint64 assignedLid = 2;
1601
+ uint64 pn = 1;
1602
+ uint64 assignedLid = 2;
1937
1603
  optional uint64 latestLid = 3;
1938
1604
  }
1939
1605
 
@@ -2087,6 +1753,7 @@ message Message {
2087
1753
  optional FutureProofMessage associatedChildMessage = 91;
2088
1754
  optional FutureProofMessage groupStatusMentionMessage = 92;
2089
1755
  optional FutureProofMessage pollCreationMessageV4 = 93;
1756
+ optional FutureProofMessage pollCreationMessageV5 = 94;
2090
1757
  optional FutureProofMessage statusAddYours = 95;
2091
1758
  optional FutureProofMessage groupStatusMessage = 96;
2092
1759
  optional AIRichResponseMessage richResponseMessage = 97;
@@ -2095,57 +1762,46 @@ message Message {
2095
1762
  optional FutureProofMessage botTaskMessage = 100;
2096
1763
  optional FutureProofMessage questionMessage = 101;
2097
1764
  optional MessageHistoryNotice messageHistoryNotice = 102;
2098
- optional FutureProofMessage groupStatusMessageV2 = 103;
2099
- optional FutureProofMessage botForwardedMessage = 104;
2100
- optional StatusQuestionAnswerMessage statusQuestionAnswerMessage = 105;
2101
- optional FutureProofMessage questionReplyMessage = 106;
2102
- optional QuestionResponseMessage questionResponseMessage = 107;
2103
- optional StatusQuotedMessage statusQuotedMessage = 109;
2104
- optional StatusStickerInteractionMessage statusStickerInteractionMessage = 110;
2105
- optional PollCreationMessage pollCreationMessageV5 = 111;
2106
- optional PollResultSnapshotMessage pollResultSnapshotMessageV2 = 112;
2107
- optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
2108
- optional RequestContactInfoMessage requestContactInfoMessage = 114;
2109
1765
  message AlbumMessage {
2110
1766
  optional uint32 expectedImageCount = 2;
2111
1767
  optional uint32 expectedVideoCount = 3;
2112
1768
  optional ContextInfo contextInfo = 17;
2113
1769
  }
2114
-
1770
+
2115
1771
  message AppStateFatalExceptionNotification {
2116
1772
  repeated string collectionNames = 1;
2117
1773
  optional int64 timestamp = 2;
2118
1774
  }
2119
-
1775
+
2120
1776
  message AppStateSyncKey {
2121
1777
  optional Message.AppStateSyncKeyId keyId = 1;
2122
1778
  optional Message.AppStateSyncKeyData keyData = 2;
2123
1779
  }
2124
-
1780
+
2125
1781
  message AppStateSyncKeyData {
2126
1782
  optional bytes keyData = 1;
2127
1783
  optional Message.AppStateSyncKeyFingerprint fingerprint = 2;
2128
1784
  optional int64 timestamp = 3;
2129
1785
  }
2130
-
1786
+
2131
1787
  message AppStateSyncKeyFingerprint {
2132
1788
  optional uint32 rawId = 1;
2133
1789
  optional uint32 currentIndex = 2;
2134
1790
  repeated uint32 deviceIndexes = 3 [packed=true];
2135
1791
  }
2136
-
1792
+
2137
1793
  message AppStateSyncKeyId {
2138
1794
  optional bytes keyId = 1;
2139
1795
  }
2140
-
1796
+
2141
1797
  message AppStateSyncKeyRequest {
2142
1798
  repeated Message.AppStateSyncKeyId keyIds = 1;
2143
1799
  }
2144
-
1800
+
2145
1801
  message AppStateSyncKeyShare {
2146
1802
  repeated Message.AppStateSyncKey keys = 1;
2147
1803
  }
2148
-
1804
+
2149
1805
  message AudioMessage {
2150
1806
  optional string url = 1;
2151
1807
  optional string mimetype = 2;
@@ -2163,9 +1819,8 @@ message Message {
2163
1819
  optional fixed32 backgroundArgb = 20;
2164
1820
  optional bool viewOnce = 21;
2165
1821
  optional string accessibilityLabel = 22;
2166
- optional Message.MediaKeyDomain mediaKeyDomain = 23;
2167
1822
  }
2168
-
1823
+
2169
1824
  message BCallMessage {
2170
1825
  optional string sessionId = 1;
2171
1826
  optional MediaType mediaType = 2;
@@ -2177,7 +1832,48 @@ message Message {
2177
1832
  VIDEO = 2;
2178
1833
  }
2179
1834
  }
2180
-
1835
+
1836
+ message BotFeedbackMessage {
1837
+ optional MessageKey messageKey = 1;
1838
+ optional BotFeedbackKind kind = 2;
1839
+ optional string text = 3;
1840
+ optional uint64 kindNegative = 4;
1841
+ optional uint64 kindPositive = 5;
1842
+ optional ReportKind kindReport = 6;
1843
+ enum BotFeedbackKind {
1844
+ BOT_FEEDBACK_POSITIVE = 0;
1845
+ BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
1846
+ BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
1847
+ BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
1848
+ BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
1849
+ BOT_FEEDBACK_NEGATIVE_SAFE = 5;
1850
+ BOT_FEEDBACK_NEGATIVE_OTHER = 6;
1851
+ BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
1852
+ BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
1853
+ BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
1854
+ BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
1855
+ BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
1856
+ BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
1857
+ }
1858
+ enum BotFeedbackKindMultipleNegative {
1859
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
1860
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
1861
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
1862
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
1863
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
1864
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
1865
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
1866
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
1867
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
1868
+ }
1869
+ enum BotFeedbackKindMultiplePositive {
1870
+ BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1871
+ }
1872
+ enum ReportKind {
1873
+ GENERIC = 0;
1874
+ }
1875
+ }
1876
+
2181
1877
  message ButtonsMessage {
2182
1878
  optional string contentText = 6;
2183
1879
  optional string footerText = 7;
@@ -2199,19 +1895,19 @@ message Message {
2199
1895
  message ButtonText {
2200
1896
  optional string displayText = 1;
2201
1897
  }
2202
-
1898
+
2203
1899
  message NativeFlowInfo {
2204
1900
  optional string name = 1;
2205
1901
  optional string paramsJson = 2;
2206
1902
  }
2207
-
1903
+
2208
1904
  enum Type {
2209
1905
  UNKNOWN = 0;
2210
1906
  RESPONSE = 1;
2211
1907
  NATIVE_FLOW = 2;
2212
1908
  }
2213
1909
  }
2214
-
1910
+
2215
1911
  enum HeaderType {
2216
1912
  UNKNOWN = 0;
2217
1913
  EMPTY = 1;
@@ -2222,7 +1918,7 @@ message Message {
2222
1918
  LOCATION = 6;
2223
1919
  }
2224
1920
  }
2225
-
1921
+
2226
1922
  message ButtonsResponseMessage {
2227
1923
  optional string selectedButtonId = 1;
2228
1924
  optional ContextInfo contextInfo = 3;
@@ -2235,7 +1931,7 @@ message Message {
2235
1931
  DISPLAY_TEXT = 1;
2236
1932
  }
2237
1933
  }
2238
-
1934
+
2239
1935
  message Call {
2240
1936
  optional bytes callKey = 1;
2241
1937
  optional string conversionSource = 2;
@@ -2244,10 +1940,8 @@ message Message {
2244
1940
  optional string ctwaSignals = 5;
2245
1941
  optional bytes ctwaPayload = 6;
2246
1942
  optional ContextInfo contextInfo = 7;
2247
- optional string nativeFlowCallButtonPayload = 8;
2248
- optional string deeplinkPayload = 9;
2249
1943
  }
2250
-
1944
+
2251
1945
  message CallLogMessage {
2252
1946
  optional bool isVideo = 1;
2253
1947
  optional CallOutcome callOutcome = 2;
@@ -2268,30 +1962,29 @@ message Message {
2268
1962
  optional string jid = 1;
2269
1963
  optional Message.CallLogMessage.CallOutcome callOutcome = 2;
2270
1964
  }
2271
-
1965
+
2272
1966
  enum CallType {
2273
1967
  REGULAR = 0;
2274
1968
  SCHEDULED_CALL = 1;
2275
1969
  VOICE_CHAT = 2;
2276
1970
  }
2277
1971
  }
2278
-
1972
+
2279
1973
  message CancelPaymentRequestMessage {
2280
1974
  optional MessageKey key = 1;
2281
1975
  }
2282
-
1976
+
2283
1977
  message Chat {
2284
1978
  optional string displayName = 1;
2285
1979
  optional string id = 2;
2286
1980
  }
2287
-
1981
+
2288
1982
  message CloudAPIThreadControlNotification {
2289
1983
  optional CloudAPIThreadControl status = 1;
2290
1984
  optional int64 senderNotificationTimestampMs = 2;
2291
1985
  optional string consumerLid = 3;
2292
1986
  optional string consumerPhoneNumber = 4;
2293
1987
  optional CloudAPIThreadControlNotificationContent notificationContent = 5;
2294
- optional bool shouldSuppressNotification = 6;
2295
1988
  enum CloudAPIThreadControl {
2296
1989
  UNKNOWN = 0;
2297
1990
  CONTROL_PASSED = 1;
@@ -2301,36 +1994,36 @@ message Message {
2301
1994
  optional string handoffNotificationText = 1;
2302
1995
  optional string extraJson = 2;
2303
1996
  }
2304
-
1997
+
2305
1998
  }
2306
-
1999
+
2307
2000
  message CommentMessage {
2308
2001
  optional Message message = 1;
2309
2002
  optional MessageKey targetMessageKey = 2;
2310
2003
  }
2311
-
2004
+
2312
2005
  message ContactMessage {
2313
2006
  optional string displayName = 1;
2314
2007
  optional string vcard = 16;
2315
2008
  optional ContextInfo contextInfo = 17;
2316
2009
  }
2317
-
2010
+
2318
2011
  message ContactsArrayMessage {
2319
2012
  optional string displayName = 1;
2320
2013
  repeated Message.ContactMessage contacts = 2;
2321
2014
  optional ContextInfo contextInfo = 17;
2322
2015
  }
2323
-
2016
+
2324
2017
  message DeclinePaymentRequestMessage {
2325
2018
  optional MessageKey key = 1;
2326
2019
  }
2327
-
2020
+
2328
2021
  message DeviceSentMessage {
2329
2022
  optional string destinationJid = 1;
2330
2023
  optional Message message = 2;
2331
2024
  optional string phash = 3;
2332
2025
  }
2333
-
2026
+
2334
2027
  message DocumentMessage {
2335
2028
  optional string url = 1;
2336
2029
  optional string mimetype = 2;
@@ -2353,27 +2046,26 @@ message Message {
2353
2046
  optional uint32 thumbnailWidth = 19;
2354
2047
  optional string caption = 20;
2355
2048
  optional string accessibilityLabel = 21;
2356
- optional Message.MediaKeyDomain mediaKeyDomain = 22;
2357
2049
  }
2358
-
2050
+
2359
2051
  message EncCommentMessage {
2360
2052
  optional MessageKey targetMessageKey = 1;
2361
2053
  optional bytes encPayload = 2;
2362
2054
  optional bytes encIv = 3;
2363
2055
  }
2364
-
2056
+
2365
2057
  message EncEventResponseMessage {
2366
2058
  optional MessageKey eventCreationMessageKey = 1;
2367
2059
  optional bytes encPayload = 2;
2368
2060
  optional bytes encIv = 3;
2369
2061
  }
2370
-
2062
+
2371
2063
  message EncReactionMessage {
2372
2064
  optional MessageKey targetMessageKey = 1;
2373
2065
  optional bytes encPayload = 2;
2374
2066
  optional bytes encIv = 3;
2375
2067
  }
2376
-
2068
+
2377
2069
  message EventMessage {
2378
2070
  optional ContextInfo contextInfo = 1;
2379
2071
  optional bool isCanceled = 2;
@@ -2386,7 +2078,7 @@ message Message {
2386
2078
  optional bool extraGuestsAllowed = 9;
2387
2079
  optional bool isScheduleCall = 10;
2388
2080
  }
2389
-
2081
+
2390
2082
  message EventResponseMessage {
2391
2083
  optional EventResponseType response = 1;
2392
2084
  optional int64 timestampMs = 2;
@@ -2398,7 +2090,7 @@ message Message {
2398
2090
  MAYBE = 3;
2399
2091
  }
2400
2092
  }
2401
-
2093
+
2402
2094
  message ExtendedTextMessage {
2403
2095
  optional string text = 1;
2404
2096
  optional string matchedText = 2;
@@ -2428,10 +2120,6 @@ message Message {
2428
2120
  optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
2429
2121
  optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
2430
2122
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
2431
- repeated Message.VideoEndCard endCardTiles = 36;
2432
- optional string videoContentUrl = 37;
2433
- optional EmbeddedMusic musicMetadata = 38;
2434
- optional Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;
2435
2123
  enum FontType {
2436
2124
  SYSTEM = 0;
2437
2125
  SYSTEM_TEXT = 1;
@@ -2457,15 +2145,15 @@ message Message {
2457
2145
  PROFILE = 7;
2458
2146
  }
2459
2147
  }
2460
-
2148
+
2461
2149
  message FullHistorySyncOnDemandRequestMetadata {
2462
2150
  optional string requestId = 1;
2463
2151
  }
2464
-
2152
+
2465
2153
  message FutureProofMessage {
2466
2154
  optional Message message = 1;
2467
2155
  }
2468
-
2156
+
2469
2157
  message GroupInviteMessage {
2470
2158
  optional string groupJid = 1;
2471
2159
  optional string inviteCode = 2;
@@ -2480,7 +2168,7 @@ message Message {
2480
2168
  PARENT = 1;
2481
2169
  }
2482
2170
  }
2483
-
2171
+
2484
2172
  message HighlyStructuredMessage {
2485
2173
  optional string namespace = 1;
2486
2174
  optional string elementName = 2;
@@ -2501,7 +2189,7 @@ message Message {
2501
2189
  optional string currencyCode = 1;
2502
2190
  optional int64 amount1000 = 2;
2503
2191
  }
2504
-
2192
+
2505
2193
  message HSMDateTime {
2506
2194
  oneof datetimeOneof {
2507
2195
  Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeComponent component = 1;
@@ -2529,24 +2217,24 @@ message Message {
2529
2217
  SUNDAY = 7;
2530
2218
  }
2531
2219
  }
2532
-
2220
+
2533
2221
  message HSMDateTimeUnixEpoch {
2534
2222
  optional int64 timestamp = 1;
2535
2223
  }
2536
-
2224
+
2537
2225
  }
2538
-
2226
+
2539
2227
  }
2540
-
2228
+
2541
2229
  }
2542
-
2230
+
2543
2231
  message HistorySyncNotification {
2544
2232
  optional bytes fileSha256 = 1;
2545
2233
  optional uint64 fileLength = 2;
2546
2234
  optional bytes mediaKey = 3;
2547
2235
  optional bytes fileEncSha256 = 4;
2548
2236
  optional string directPath = 5;
2549
- optional Message.HistorySyncType syncType = 6;
2237
+ optional HistorySyncType syncType = 6;
2550
2238
  optional uint32 chunkOrder = 7;
2551
2239
  optional string originalMessageId = 8;
2552
2240
  optional uint32 progress = 9;
@@ -2555,18 +2243,18 @@ message Message {
2555
2243
  optional string peerDataRequestSessionId = 12;
2556
2244
  optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
2557
2245
  optional string encHandle = 14;
2246
+ enum HistorySyncType {
2247
+ INITIAL_BOOTSTRAP = 0;
2248
+ INITIAL_STATUS_V3 = 1;
2249
+ FULL = 2;
2250
+ RECENT = 3;
2251
+ PUSH_NAME = 4;
2252
+ NON_BLOCKING_DATA = 5;
2253
+ ON_DEMAND = 6;
2254
+ NO_HISTORY = 7;
2255
+ }
2558
2256
  }
2559
-
2560
- enum HistorySyncType {
2561
- INITIAL_BOOTSTRAP = 0;
2562
- INITIAL_STATUS_V3 = 1;
2563
- FULL = 2;
2564
- RECENT = 3;
2565
- PUSH_NAME = 4;
2566
- NON_BLOCKING_DATA = 5;
2567
- ON_DEMAND = 6;
2568
- NO_HISTORY = 7;
2569
- }
2257
+
2570
2258
  message ImageMessage {
2571
2259
  optional string url = 1;
2572
2260
  optional string mimetype = 2;
@@ -2597,8 +2285,6 @@ message Message {
2597
2285
  repeated InteractiveAnnotation annotations = 30;
2598
2286
  optional ImageSourceType imageSourceType = 31;
2599
2287
  optional string accessibilityLabel = 32;
2600
- optional Message.MediaKeyDomain mediaKeyDomain = 33;
2601
- optional string qrUrl = 34;
2602
2288
  enum ImageSourceType {
2603
2289
  USER_IMAGE = 0;
2604
2290
  AI_GENERATED = 1;
@@ -2606,11 +2292,11 @@ message Message {
2606
2292
  RASTERIZED_TEXT_STATUS = 3;
2607
2293
  }
2608
2294
  }
2609
-
2295
+
2610
2296
  message InitialSecurityNotificationSettingSync {
2611
2297
  optional bool securityNotificationEnabled = 1;
2612
2298
  }
2613
-
2299
+
2614
2300
  message InteractiveMessage {
2615
2301
  optional Header header = 1;
2616
2302
  optional Body body = 2;
@@ -2626,32 +2312,22 @@ message Message {
2626
2312
  message Body {
2627
2313
  optional string text = 1;
2628
2314
  }
2629
-
2315
+
2630
2316
  message CarouselMessage {
2631
2317
  repeated Message.InteractiveMessage cards = 1;
2632
2318
  optional int32 messageVersion = 2;
2633
- optional CarouselCardType carouselCardType = 3;
2634
- enum CarouselCardType {
2635
- UNKNOWN = 0;
2636
- HSCROLL_CARDS = 1;
2637
- ALBUM_IMAGE = 2;
2638
- }
2639
2319
  }
2640
-
2320
+
2641
2321
  message CollectionMessage {
2642
2322
  optional string bizJid = 1;
2643
2323
  optional string id = 2;
2644
2324
  optional int32 messageVersion = 3;
2645
2325
  }
2646
-
2326
+
2647
2327
  message Footer {
2648
2328
  optional string text = 1;
2649
- optional bool hasMediaAttachment = 3;
2650
- oneof media {
2651
- Message.AudioMessage audioMessage = 2;
2652
- }
2653
2329
  }
2654
-
2330
+
2655
2331
  message Header {
2656
2332
  optional string title = 1;
2657
2333
  optional string subtitle = 2;
@@ -2665,7 +2341,7 @@ message Message {
2665
2341
  Message.ProductMessage productMessage = 9;
2666
2342
  }
2667
2343
  }
2668
-
2344
+
2669
2345
  message NativeFlowMessage {
2670
2346
  repeated NativeFlowButton buttons = 1;
2671
2347
  optional string messageParamsJson = 2;
@@ -2674,9 +2350,9 @@ message Message {
2674
2350
  optional string name = 1;
2675
2351
  optional string buttonParamsJson = 2;
2676
2352
  }
2677
-
2353
+
2678
2354
  }
2679
-
2355
+
2680
2356
  message ShopMessage {
2681
2357
  optional string id = 1;
2682
2358
  optional Surface surface = 2;
@@ -2688,9 +2364,9 @@ message Message {
2688
2364
  WA = 3;
2689
2365
  }
2690
2366
  }
2691
-
2367
+
2692
2368
  }
2693
-
2369
+
2694
2370
  message InteractiveResponseMessage {
2695
2371
  optional Body body = 1;
2696
2372
  optional ContextInfo contextInfo = 15;
@@ -2705,15 +2381,15 @@ message Message {
2705
2381
  EXTENSIONS_1 = 1;
2706
2382
  }
2707
2383
  }
2708
-
2384
+
2709
2385
  message NativeFlowResponseMessage {
2710
2386
  optional string name = 1;
2711
2387
  optional string paramsJson = 2;
2712
2388
  optional int32 version = 3;
2713
2389
  }
2714
-
2390
+
2715
2391
  }
2716
-
2392
+
2717
2393
  message InvoiceMessage {
2718
2394
  optional string note = 1;
2719
2395
  optional string token = 2;
@@ -2730,33 +2406,19 @@ message Message {
2730
2406
  PDF = 1;
2731
2407
  }
2732
2408
  }
2733
-
2409
+
2734
2410
  message KeepInChatMessage {
2735
2411
  optional MessageKey key = 1;
2736
2412
  optional KeepType keepType = 2;
2737
2413
  optional int64 timestampMs = 3;
2738
2414
  }
2739
-
2415
+
2740
2416
  message LinkPreviewMetadata {
2741
2417
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
2742
2418
  optional Message.URLMetadata urlMetadata = 2;
2743
2419
  optional uint32 fbExperimentId = 3;
2744
- optional uint32 linkMediaDuration = 4;
2745
- optional SocialMediaPostType socialMediaPostType = 5;
2746
- optional bool linkInlineVideoMuted = 6;
2747
- optional string videoContentUrl = 7;
2748
- optional EmbeddedMusic musicMetadata = 8;
2749
- optional string videoContentCaption = 9;
2750
- enum SocialMediaPostType {
2751
- NONE = 0;
2752
- REEL = 1;
2753
- LIVE_VIDEO = 2;
2754
- LONG_VIDEO = 3;
2755
- SINGLE_IMAGE = 4;
2756
- CAROUSEL = 5;
2757
- }
2758
2420
  }
2759
-
2421
+
2760
2422
  message ListMessage {
2761
2423
  optional string title = 1;
2762
2424
  optional string description = 2;
@@ -2774,36 +2436,36 @@ message Message {
2774
2436
  message Product {
2775
2437
  optional string productId = 1;
2776
2438
  }
2777
-
2439
+
2778
2440
  message ProductListHeaderImage {
2779
2441
  optional string productId = 1;
2780
2442
  optional bytes jpegThumbnail = 2;
2781
2443
  }
2782
-
2444
+
2783
2445
  message ProductListInfo {
2784
2446
  repeated Message.ListMessage.ProductSection productSections = 1;
2785
2447
  optional Message.ListMessage.ProductListHeaderImage headerImage = 2;
2786
2448
  optional string businessOwnerJid = 3;
2787
2449
  }
2788
-
2450
+
2789
2451
  message ProductSection {
2790
2452
  optional string title = 1;
2791
2453
  repeated Message.ListMessage.Product products = 2;
2792
2454
  }
2793
-
2455
+
2794
2456
  message Row {
2795
2457
  optional string title = 1;
2796
2458
  optional string description = 2;
2797
2459
  optional string rowId = 3;
2798
2460
  }
2799
-
2461
+
2800
2462
  message Section {
2801
2463
  optional string title = 1;
2802
2464
  repeated Message.ListMessage.Row rows = 2;
2803
2465
  }
2804
-
2466
+
2805
2467
  }
2806
-
2468
+
2807
2469
  message ListResponseMessage {
2808
2470
  optional string title = 1;
2809
2471
  optional ListType listType = 2;
@@ -2817,9 +2479,9 @@ message Message {
2817
2479
  message SingleSelectReply {
2818
2480
  optional string selectedRowId = 1;
2819
2481
  }
2820
-
2482
+
2821
2483
  }
2822
-
2484
+
2823
2485
  message LiveLocationMessage {
2824
2486
  optional double degreesLatitude = 1;
2825
2487
  optional double degreesLongitude = 2;
@@ -2832,7 +2494,7 @@ message Message {
2832
2494
  optional bytes jpegThumbnail = 16;
2833
2495
  optional ContextInfo contextInfo = 17;
2834
2496
  }
2835
-
2497
+
2836
2498
  message LocationMessage {
2837
2499
  optional double degreesLatitude = 1;
2838
2500
  optional double degreesLongitude = 2;
@@ -2847,7 +2509,7 @@ message Message {
2847
2509
  optional bytes jpegThumbnail = 16;
2848
2510
  optional ContextInfo contextInfo = 17;
2849
2511
  }
2850
-
2512
+
2851
2513
  message MMSThumbnailMetadata {
2852
2514
  optional string thumbnailDirectPath = 1;
2853
2515
  optional bytes thumbnailSha256 = 2;
@@ -2856,16 +2518,8 @@ message Message {
2856
2518
  optional int64 mediaKeyTimestamp = 5;
2857
2519
  optional uint32 thumbnailHeight = 6;
2858
2520
  optional uint32 thumbnailWidth = 7;
2859
- optional Message.MediaKeyDomain mediaKeyDomain = 8;
2860
- }
2861
-
2862
- enum MediaKeyDomain {
2863
- UNSET = 0;
2864
- E2EE_CHAT = 1;
2865
- STATUS = 2;
2866
- CAPI = 3;
2867
- BOT = 4;
2868
2521
  }
2522
+
2869
2523
  message MessageHistoryBundle {
2870
2524
  optional string mimetype = 1;
2871
2525
  optional bytes fileSha256 = 2;
@@ -2876,18 +2530,18 @@ message Message {
2876
2530
  optional ContextInfo contextInfo = 7;
2877
2531
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
2878
2532
  }
2879
-
2533
+
2880
2534
  message MessageHistoryMetadata {
2881
2535
  repeated string historyReceivers = 1;
2882
- optional int64 oldestMessageTimestamp = 2;
2536
+ optional int64 firstMessageTimestamp = 2;
2883
2537
  optional int64 messageCount = 3;
2884
2538
  }
2885
-
2539
+
2886
2540
  message MessageHistoryNotice {
2887
2541
  optional ContextInfo contextInfo = 1;
2888
2542
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
2889
2543
  }
2890
-
2544
+
2891
2545
  message NewsletterAdminInviteMessage {
2892
2546
  optional string newsletterJid = 1;
2893
2547
  optional string newsletterName = 2;
@@ -2896,15 +2550,7 @@ message Message {
2896
2550
  optional int64 inviteExpiration = 5;
2897
2551
  optional ContextInfo contextInfo = 6;
2898
2552
  }
2899
-
2900
- message NewsletterFollowerInviteMessage {
2901
- optional string newsletterJid = 1;
2902
- optional string newsletterName = 2;
2903
- optional bytes jpegThumbnail = 3;
2904
- optional string caption = 4;
2905
- optional ContextInfo contextInfo = 5;
2906
- }
2907
-
2553
+
2908
2554
  message OrderMessage {
2909
2555
  optional string orderId = 1;
2910
2556
  optional bytes thumbnail = 2;
@@ -2930,13 +2576,7 @@ message Message {
2930
2576
  CATALOG = 1;
2931
2577
  }
2932
2578
  }
2933
-
2934
- message PaymentExtendedMetadata {
2935
- optional uint32 type = 1;
2936
- optional string platform = 2;
2937
- optional string messageParamsJson = 3;
2938
- }
2939
-
2579
+
2940
2580
  message PaymentInviteMessage {
2941
2581
  optional ServiceType serviceType = 1;
2942
2582
  optional int64 expiryTimestamp = 2;
@@ -2947,15 +2587,14 @@ message Message {
2947
2587
  UPI = 3;
2948
2588
  }
2949
2589
  }
2950
-
2590
+
2951
2591
  message PaymentLinkMetadata {
2952
2592
  optional PaymentLinkButton button = 1;
2953
2593
  optional PaymentLinkHeader header = 2;
2954
- optional PaymentLinkProvider provider = 3;
2955
2594
  message PaymentLinkButton {
2956
2595
  optional string displayText = 1;
2957
2596
  }
2958
-
2597
+
2959
2598
  message PaymentLinkHeader {
2960
2599
  optional PaymentLinkHeaderType headerType = 1;
2961
2600
  enum PaymentLinkHeaderType {
@@ -2963,13 +2602,9 @@ message Message {
2963
2602
  ORDER = 1;
2964
2603
  }
2965
2604
  }
2966
-
2967
- message PaymentLinkProvider {
2968
- optional string paramsJson = 1;
2969
- }
2970
-
2605
+
2971
2606
  }
2972
-
2607
+
2973
2608
  message PeerDataOperationRequestMessage {
2974
2609
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
2975
2610
  repeated RequestStickerReupload requestStickerReupload = 2;
@@ -2978,29 +2613,11 @@ message Message {
2978
2613
  repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
2979
2614
  optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
2980
2615
  optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
2981
- optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
2982
- optional GalaxyFlowAction galaxyFlowAction = 9;
2983
2616
  message FullHistorySyncOnDemandRequest {
2984
2617
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2985
2618
  optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
2986
2619
  }
2987
-
2988
- message GalaxyFlowAction {
2989
- optional GalaxyFlowActionType type = 1;
2990
- optional string flowId = 2;
2991
- optional string stanzaId = 3;
2992
- enum GalaxyFlowActionType {
2993
- NOTIFY_LAUNCH = 1;
2994
- }
2995
- }
2996
-
2997
- message HistorySyncChunkRetryRequest {
2998
- optional Message.HistorySyncType syncType = 1;
2999
- optional uint32 chunkOrder = 2;
3000
- optional string chunkNotificationId = 3;
3001
- optional bool regenerateChunk = 4;
3002
- }
3003
-
2620
+
3004
2621
  message HistorySyncOnDemandRequest {
3005
2622
  optional string chatJid = 1;
3006
2623
  optional string oldestMsgId = 2;
@@ -3009,27 +2626,27 @@ message Message {
3009
2626
  optional int64 oldestMsgTimestampMs = 5;
3010
2627
  optional string accountLid = 6;
3011
2628
  }
3012
-
2629
+
3013
2630
  message PlaceholderMessageResendRequest {
3014
2631
  optional MessageKey messageKey = 1;
3015
2632
  }
3016
-
2633
+
3017
2634
  message RequestStickerReupload {
3018
2635
  optional string fileSha256 = 1;
3019
2636
  }
3020
-
2637
+
3021
2638
  message RequestUrlPreview {
3022
2639
  optional string url = 1;
3023
2640
  optional bool includeHqThumbnail = 2;
3024
2641
  }
3025
-
2642
+
3026
2643
  message SyncDCollectionFatalRecoveryRequest {
3027
2644
  optional string collectionName = 1;
3028
2645
  optional int64 timestamp = 2;
3029
2646
  }
3030
-
2647
+
3031
2648
  }
3032
-
2649
+
3033
2650
  message PeerDataOperationRequestResponseMessage {
3034
2651
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
3035
2652
  optional string stanzaId = 2;
@@ -3043,23 +2660,15 @@ message Message {
3043
2660
  optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
3044
2661
  optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
3045
2662
  optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
3046
- optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
3047
- optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
3048
- message CompanionCanonicalUserNonceFetchResponse {
3049
- optional string nonce = 1;
3050
- optional string waFbid = 2;
3051
- optional bool forceRefresh = 3;
3052
- }
3053
-
3054
2663
  message CompanionMetaNonceFetchResponse {
3055
2664
  optional string nonce = 1;
3056
2665
  }
3057
-
2666
+
3058
2667
  message FullHistorySyncOnDemandRequestResponse {
3059
2668
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
3060
2669
  optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
3061
2670
  }
3062
-
2671
+
3063
2672
  enum FullHistorySyncOnDemandResponseCode {
3064
2673
  REQUEST_SUCCESS = 0;
3065
2674
  REQUEST_TIME_EXPIRED = 1;
@@ -3069,22 +2678,6 @@ message Message {
3069
2678
  ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
3070
2679
  ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
3071
2680
  }
3072
- message HistorySyncChunkRetryResponse {
3073
- optional Message.HistorySyncType syncType = 1;
3074
- optional uint32 chunkOrder = 2;
3075
- optional string requestId = 3;
3076
- optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode responseCode = 4;
3077
- optional bool canRecover = 5;
3078
- }
3079
-
3080
- enum HistorySyncChunkRetryResponseCode {
3081
- GENERATION_ERROR = 1;
3082
- CHUNK_CONSUMED = 2;
3083
- TIMEOUT = 3;
3084
- SESSION_EXHAUSTED = 4;
3085
- CHUNK_EXHAUSTED = 5;
3086
- DUPLICATED_REQUEST = 6;
3087
- }
3088
2681
  message LinkPreviewResponse {
3089
2682
  optional string url = 1;
3090
2683
  optional string title = 2;
@@ -3093,7 +2686,6 @@ message Message {
3093
2686
  optional string matchText = 6;
3094
2687
  optional string previewType = 7;
3095
2688
  optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
3096
- optional PaymentLinkPreviewMetadata previewMetadata = 9;
3097
2689
  message LinkPreviewHighQualityThumbnail {
3098
2690
  optional string directPath = 1;
3099
2691
  optional string thumbHash = 2;
@@ -3103,32 +2695,27 @@ message Message {
3103
2695
  optional int32 thumbWidth = 6;
3104
2696
  optional int32 thumbHeight = 7;
3105
2697
  }
3106
-
3107
- message PaymentLinkPreviewMetadata {
3108
- optional bool isBusinessVerified = 1;
3109
- optional string providerName = 2;
3110
- }
3111
-
2698
+
3112
2699
  }
3113
-
2700
+
3114
2701
  message PlaceholderMessageResendResponse {
3115
2702
  optional bytes webMessageInfoBytes = 1;
3116
2703
  }
3117
-
2704
+
3118
2705
  message SyncDSnapshotFatalRecoveryResponse {
3119
2706
  optional bytes collectionSnapshot = 1;
3120
2707
  optional bool isCompressed = 2;
3121
2708
  }
3122
-
2709
+
3123
2710
  message WaffleNonceFetchResponse {
3124
2711
  optional string nonce = 1;
3125
2712
  optional string waEntFbid = 2;
3126
2713
  }
3127
-
2714
+
3128
2715
  }
3129
-
2716
+
3130
2717
  }
3131
-
2718
+
3132
2719
  enum PeerDataOperationRequestType {
3133
2720
  UPLOAD_STICKER = 0;
3134
2721
  SEND_RECENT_STICKER_BOOTSTRAP = 1;
@@ -3139,9 +2726,6 @@ message Message {
3139
2726
  FULL_HISTORY_SYNC_ON_DEMAND = 6;
3140
2727
  COMPANION_META_NONCE_FETCH = 7;
3141
2728
  COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
3142
- COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
3143
- HISTORY_SYNC_CHUNK_RETRY = 10;
3144
- GALAXY_FLOW_ACTION = 11;
3145
2729
  }
3146
2730
  message PinInChatMessage {
3147
2731
  optional MessageKey key = 1;
@@ -3153,14 +2737,14 @@ message Message {
3153
2737
  UNPIN_FOR_ALL = 2;
3154
2738
  }
3155
2739
  }
3156
-
2740
+
3157
2741
  message PlaceholderMessage {
3158
2742
  optional PlaceholderType type = 1;
3159
2743
  enum PlaceholderType {
3160
2744
  MASK_LINKED_DEVICES = 0;
3161
2745
  }
3162
2746
  }
3163
-
2747
+
3164
2748
  enum PollContentType {
3165
2749
  UNKNOWN = 0;
3166
2750
  TEXT = 1;
@@ -3173,50 +2757,49 @@ message Message {
3173
2757
  optional uint32 selectableOptionsCount = 4;
3174
2758
  optional ContextInfo contextInfo = 5;
3175
2759
  optional Message.PollContentType pollContentType = 6;
3176
- optional Message.PollType pollType = 7;
2760
+ optional PollType pollType = 7;
3177
2761
  optional Option correctAnswer = 8;
3178
2762
  message Option {
3179
2763
  optional string optionName = 1;
3180
2764
  optional string optionHash = 2;
3181
2765
  }
3182
-
2766
+
2767
+ enum PollType {
2768
+ POLL = 0;
2769
+ QUIZ = 1;
2770
+ }
3183
2771
  }
3184
-
2772
+
3185
2773
  message PollEncValue {
3186
2774
  optional bytes encPayload = 1;
3187
2775
  optional bytes encIv = 2;
3188
2776
  }
3189
-
2777
+
3190
2778
  message PollResultSnapshotMessage {
3191
2779
  optional string name = 1;
3192
2780
  repeated PollVote pollVotes = 2;
3193
2781
  optional ContextInfo contextInfo = 3;
3194
- optional Message.PollType pollType = 4;
3195
2782
  message PollVote {
3196
2783
  optional string optionName = 1;
3197
2784
  optional int64 optionVoteCount = 2;
3198
2785
  }
3199
-
3200
- }
3201
-
3202
- enum PollType {
3203
- POLL = 0;
3204
- QUIZ = 1;
2786
+
3205
2787
  }
2788
+
3206
2789
  message PollUpdateMessage {
3207
2790
  optional MessageKey pollCreationMessageKey = 1;
3208
2791
  optional Message.PollEncValue vote = 2;
3209
2792
  optional Message.PollUpdateMessageMetadata metadata = 3;
3210
2793
  optional int64 senderTimestampMs = 4;
3211
2794
  }
3212
-
2795
+
3213
2796
  message PollUpdateMessageMetadata {
3214
2797
  }
3215
-
2798
+
3216
2799
  message PollVoteMessage {
3217
2800
  repeated bytes selectedOptions = 1;
3218
2801
  }
3219
-
2802
+
3220
2803
  message ProductMessage {
3221
2804
  optional ProductSnapshot product = 1;
3222
2805
  optional string businessOwnerJid = 2;
@@ -3229,7 +2812,7 @@ message Message {
3229
2812
  optional string title = 2;
3230
2813
  optional string description = 3;
3231
2814
  }
3232
-
2815
+
3233
2816
  message ProductSnapshot {
3234
2817
  optional Message.ImageMessage productImage = 1;
3235
2818
  optional string productId = 2;
@@ -3244,9 +2827,9 @@ message Message {
3244
2827
  optional int64 salePriceAmount1000 = 12;
3245
2828
  optional string signedUrl = 13;
3246
2829
  }
3247
-
2830
+
3248
2831
  }
3249
-
2832
+
3250
2833
  message ProtocolMessage {
3251
2834
  optional MessageKey key = 1;
3252
2835
  optional Type type = 2;
@@ -3262,7 +2845,7 @@ message Message {
3262
2845
  optional int64 timestampMs = 15;
3263
2846
  optional Message.PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16;
3264
2847
  optional Message.PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17;
3265
- optional BotFeedbackMessage botFeedbackMessage = 18;
2848
+ optional Message.BotFeedbackMessage botFeedbackMessage = 18;
3266
2849
  optional string invokerJid = 19;
3267
2850
  optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
3268
2851
  optional MediaNotifyMessage mediaNotifyMessage = 21;
@@ -3301,25 +2884,14 @@ message Message {
3301
2884
  GROUP_MEMBER_LABEL_CHANGE = 30;
3302
2885
  }
3303
2886
  }
3304
-
3305
- message QuestionResponseMessage {
3306
- optional MessageKey key = 1;
3307
- optional string text = 2;
3308
- }
3309
-
2887
+
3310
2888
  message ReactionMessage {
3311
2889
  optional MessageKey key = 1;
3312
2890
  optional string text = 2;
3313
2891
  optional string groupingKey = 3;
3314
2892
  optional int64 senderTimestampMs = 4;
3315
2893
  }
3316
-
3317
- message RequestContactInfoMessage {
3318
- optional string text = 1;
3319
- optional string ctaButtonText = 2;
3320
- optional ContextInfo contextInfo = 3;
3321
- }
3322
-
2894
+
3323
2895
  message RequestPaymentMessage {
3324
2896
  optional Message noteMessage = 4;
3325
2897
  optional string currencyCodeIso4217 = 1;
@@ -3329,11 +2901,11 @@ message Message {
3329
2901
  optional Money amount = 6;
3330
2902
  optional PaymentBackground background = 7;
3331
2903
  }
3332
-
2904
+
3333
2905
  message RequestPhoneNumberMessage {
3334
2906
  optional ContextInfo contextInfo = 1;
3335
2907
  }
3336
-
2908
+
3337
2909
  message RequestWelcomeMessageMetadata {
3338
2910
  optional LocalChatState localChatState = 1;
3339
2911
  enum LocalChatState {
@@ -3341,7 +2913,7 @@ message Message {
3341
2913
  NON_EMPTY = 1;
3342
2914
  }
3343
2915
  }
3344
-
2916
+
3345
2917
  message ScheduledCallCreationMessage {
3346
2918
  optional int64 scheduledTimestampMs = 1;
3347
2919
  optional CallType callType = 2;
@@ -3352,7 +2924,7 @@ message Message {
3352
2924
  VIDEO = 2;
3353
2925
  }
3354
2926
  }
3355
-
2927
+
3356
2928
  message ScheduledCallEditMessage {
3357
2929
  optional MessageKey key = 1;
3358
2930
  optional EditType editType = 2;
@@ -3361,7 +2933,7 @@ message Message {
3361
2933
  CANCEL = 1;
3362
2934
  }
3363
2935
  }
3364
-
2936
+
3365
2937
  message SecretEncryptedMessage {
3366
2938
  optional MessageKey targetMessageKey = 1;
3367
2939
  optional bytes encPayload = 2;
@@ -3373,19 +2945,18 @@ message Message {
3373
2945
  MESSAGE_EDIT = 2;
3374
2946
  }
3375
2947
  }
3376
-
2948
+
3377
2949
  message SendPaymentMessage {
3378
2950
  optional Message noteMessage = 2;
3379
2951
  optional MessageKey requestMessageKey = 3;
3380
2952
  optional PaymentBackground background = 4;
3381
- optional string transactionData = 5;
3382
2953
  }
3383
-
2954
+
3384
2955
  message SenderKeyDistributionMessage {
3385
2956
  optional string groupId = 1;
3386
2957
  optional bytes axolotlSenderKeyDistributionMessage = 2;
3387
2958
  }
3388
-
2959
+
3389
2960
  message StatusNotificationMessage {
3390
2961
  optional MessageKey responseMessageKey = 1;
3391
2962
  optional MessageKey originalMessageKey = 2;
@@ -3394,35 +2965,9 @@ message Message {
3394
2965
  UNKNOWN = 0;
3395
2966
  STATUS_ADD_YOURS = 1;
3396
2967
  STATUS_RESHARE = 2;
3397
- STATUS_QUESTION_ANSWER_RESHARE = 3;
3398
- }
3399
- }
3400
-
3401
- message StatusQuestionAnswerMessage {
3402
- optional MessageKey key = 1;
3403
- optional string text = 2;
3404
- }
3405
-
3406
- message StatusQuotedMessage {
3407
- optional StatusQuotedMessageType type = 1;
3408
- optional string text = 2;
3409
- optional bytes thumbnail = 3;
3410
- optional MessageKey originalStatusId = 4;
3411
- enum StatusQuotedMessageType {
3412
- QUESTION_ANSWER = 1;
3413
2968
  }
3414
2969
  }
3415
-
3416
- message StatusStickerInteractionMessage {
3417
- optional MessageKey key = 1;
3418
- optional string stickerKey = 2;
3419
- optional StatusStickerType type = 3;
3420
- enum StatusStickerType {
3421
- UNKNOWN = 0;
3422
- REACTION = 1;
3423
- }
3424
- }
3425
-
2970
+
3426
2971
  message StickerMessage {
3427
2972
  optional string url = 1;
3428
2973
  optional bytes fileSha256 = 2;
@@ -3444,9 +2989,8 @@ message Message {
3444
2989
  optional bool isAiSticker = 20;
3445
2990
  optional bool isLottie = 21;
3446
2991
  optional string accessibilityLabel = 22;
3447
- optional Message.MediaKeyDomain mediaKeyDomain = 23;
3448
2992
  }
3449
-
2993
+
3450
2994
  message StickerPackMessage {
3451
2995
  optional string stickerPackId = 1;
3452
2996
  optional string name = 2;
@@ -3478,20 +3022,20 @@ message Message {
3478
3022
  optional bool isLottie = 5;
3479
3023
  optional string mimetype = 6;
3480
3024
  }
3481
-
3025
+
3482
3026
  enum StickerPackOrigin {
3483
3027
  FIRST_PARTY = 0;
3484
3028
  THIRD_PARTY = 1;
3485
3029
  USER_CREATED = 2;
3486
3030
  }
3487
3031
  }
3488
-
3032
+
3489
3033
  message StickerSyncRMRMessage {
3490
3034
  repeated string filehash = 1;
3491
3035
  optional string rmrSource = 2;
3492
3036
  optional int64 requestTimestamp = 3;
3493
3037
  }
3494
-
3038
+
3495
3039
  message TemplateButtonReplyMessage {
3496
3040
  optional string selectedId = 1;
3497
3041
  optional string selectedDisplayText = 2;
@@ -3499,7 +3043,7 @@ message Message {
3499
3043
  optional uint32 selectedIndex = 4;
3500
3044
  optional uint32 selectedCarouselCardIndex = 5;
3501
3045
  }
3502
-
3046
+
3503
3047
  message TemplateMessage {
3504
3048
  optional ContextInfo contextInfo = 3;
3505
3049
  optional HydratedFourRowTemplate hydratedTemplate = 4;
@@ -3521,7 +3065,7 @@ message Message {
3521
3065
  Message.LocationMessage locationMessage = 5;
3522
3066
  }
3523
3067
  }
3524
-
3068
+
3525
3069
  message HydratedFourRowTemplate {
3526
3070
  optional string hydratedContentText = 6;
3527
3071
  optional string hydratedFooterText = 7;
@@ -3536,20 +3080,13 @@ message Message {
3536
3080
  Message.LocationMessage locationMessage = 5;
3537
3081
  }
3538
3082
  }
3539
-
3083
+
3540
3084
  }
3541
-
3085
+
3542
3086
  message URLMetadata {
3543
3087
  optional uint32 fbExperimentId = 1;
3544
3088
  }
3545
-
3546
- message VideoEndCard {
3547
- optional string username = 1;
3548
- optional string caption = 2;
3549
- optional string thumbnailImageUrl = 3;
3550
- optional string profilePictureUrl = 4;
3551
- }
3552
-
3089
+
3553
3090
  message VideoMessage {
3554
3091
  optional string url = 1;
3555
3092
  optional string mimetype = 2;
@@ -3578,22 +3115,13 @@ message Message {
3578
3115
  optional string accessibilityLabel = 26;
3579
3116
  repeated ProcessedVideo processedVideos = 27;
3580
3117
  optional uint32 externalShareFullVideoDurationInSeconds = 28;
3581
- optional uint64 motionPhotoPresentationOffsetMs = 29;
3582
- optional string metadataUrl = 30;
3583
- optional VideoSourceType videoSourceType = 31;
3584
- optional Message.MediaKeyDomain mediaKeyDomain = 32;
3585
3118
  enum Attribution {
3586
3119
  NONE = 0;
3587
3120
  GIPHY = 1;
3588
3121
  TENOR = 2;
3589
- KLIPY = 3;
3590
- }
3591
- enum VideoSourceType {
3592
- USER_VIDEO = 0;
3593
- AI_GENERATED = 1;
3594
3122
  }
3595
3123
  }
3596
-
3124
+
3597
3125
  }
3598
3126
 
3599
3127
  message MessageAddOn {
@@ -3639,11 +3167,6 @@ message MessageAssociation {
3639
3167
  MOTION_PHOTO = 12;
3640
3168
  STATUS_LINK_ACTION = 13;
3641
3169
  VIEW_ALL_REPLIES = 14;
3642
- STATUS_ADD_YOURS_AI_IMAGINE = 15;
3643
- STATUS_QUESTION = 16;
3644
- STATUS_ADD_YOURS_DIWALI = 17;
3645
- STATUS_REACTION = 18;
3646
- HEVC_VIDEO_DUAL_UPLOAD = 19;
3647
3170
  }
3648
3171
  }
3649
3172
 
@@ -3662,7 +3185,6 @@ message MessageContextInfo {
3662
3185
  optional string supportPayload = 12;
3663
3186
  optional LimitSharing limitSharing = 13;
3664
3187
  optional LimitSharing limitSharingV2 = 14;
3665
- repeated ThreadID threadId = 15;
3666
3188
  enum MessageAddonExpiryType {
3667
3189
  STATIC = 1;
3668
3190
  DEPENDENT_ON_PARENT = 2;
@@ -3712,7 +3234,6 @@ message MsgOpaqueData {
3712
3234
  optional PollEncValue encPollVote = 24;
3713
3235
  optional bool isSentCagPollCreation = 28;
3714
3236
  optional PollContentType pollContentType = 42;
3715
- optional PollType pollType = 46;
3716
3237
  optional PollVotesSnapshot pollVotesSnapshot = 41;
3717
3238
  optional string encReactionTargetMessageKey = 25;
3718
3239
  optional bytes encReactionEncPayload = 26;
@@ -3728,8 +3249,6 @@ message MsgOpaqueData {
3728
3249
  optional int64 eventStartTime = 37;
3729
3250
  optional EventLocation eventLocation = 38;
3730
3251
  optional int64 eventEndTime = 40;
3731
- optional bool eventIsScheduledCall = 44;
3732
- optional bool eventExtraGuestsAllowed = 45;
3733
3252
  optional bytes plainProtobufBytes = 43;
3734
3253
  message EventLocation {
3735
3254
  optional double degreesLatitude = 1;
@@ -3739,7 +3258,7 @@ message MsgOpaqueData {
3739
3258
  optional string url = 5;
3740
3259
  optional bytes jpegThumbnail = 6;
3741
3260
  }
3742
-
3261
+
3743
3262
  enum PollContentType {
3744
3263
  UNKNOWN = 0;
3745
3264
  TEXT = 1;
@@ -3749,20 +3268,16 @@ message MsgOpaqueData {
3749
3268
  optional string name = 1;
3750
3269
  optional string hash = 2;
3751
3270
  }
3752
-
3753
- enum PollType {
3754
- POLL = 0;
3755
- QUIZ = 1;
3756
- }
3271
+
3757
3272
  message PollVoteSnapshot {
3758
3273
  optional MsgOpaqueData.PollOption option = 1;
3759
3274
  optional int32 optionVoteCount = 2;
3760
3275
  }
3761
-
3276
+
3762
3277
  message PollVotesSnapshot {
3763
3278
  repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
3764
3279
  }
3765
-
3280
+
3766
3281
  }
3767
3282
 
3768
3283
  message MsgRowOpaqueData {
@@ -3780,7 +3295,7 @@ message NoiseCertificate {
3780
3295
  optional string subject = 4;
3781
3296
  optional bytes key = 5;
3782
3297
  }
3783
-
3298
+
3784
3299
  }
3785
3300
 
3786
3301
  message NotificationMessageInfo {
@@ -3842,9 +3357,6 @@ message PatchDebugData {
3842
3357
  DARWIN = 6;
3843
3358
  IPAD = 7;
3844
3359
  WEAROS = 8;
3845
- WASG = 9;
3846
- WEARM = 10;
3847
- CAPI = 11;
3848
3360
  }
3849
3361
  }
3850
3362
 
@@ -3866,7 +3378,7 @@ message PaymentBackground {
3866
3378
  optional bytes fileEncSha256 = 4;
3867
3379
  optional string directPath = 5;
3868
3380
  }
3869
-
3381
+
3870
3382
  enum Type {
3871
3383
  UNKNOWN = 0;
3872
3384
  DEFAULT = 1;
@@ -4045,11 +3557,6 @@ message Pushname {
4045
3557
  optional string pushname = 2;
4046
3558
  }
4047
3559
 
4048
- message QuarantinedMessage {
4049
- optional bytes originalData = 1;
4050
- optional string extractedText = 2;
4051
- }
4052
-
4053
3560
  message Reaction {
4054
3561
  optional MessageKey key = 1;
4055
3562
  optional string text = 2;
@@ -4105,17 +3612,17 @@ message SenderKeyStateStructure {
4105
3612
  optional uint32 iteration = 1;
4106
3613
  optional bytes seed = 2;
4107
3614
  }
4108
-
3615
+
4109
3616
  message SenderMessageKey {
4110
3617
  optional uint32 iteration = 1;
4111
3618
  optional bytes seed = 2;
4112
3619
  }
4113
-
3620
+
4114
3621
  message SenderSigningKey {
4115
3622
  optional bytes public = 1;
4116
3623
  optional bytes private = 2;
4117
3624
  }
4118
-
3625
+
4119
3626
  }
4120
3627
 
4121
3628
  message ServerErrorReceipt {
@@ -4145,16 +3652,16 @@ message SessionStructure {
4145
3652
  optional uint32 index = 1;
4146
3653
  optional bytes key = 2;
4147
3654
  }
4148
-
3655
+
4149
3656
  message MessageKey {
4150
3657
  optional uint32 index = 1;
4151
3658
  optional bytes cipherKey = 2;
4152
3659
  optional bytes macKey = 3;
4153
3660
  optional bytes iv = 4;
4154
3661
  }
4155
-
3662
+
4156
3663
  }
4157
-
3664
+
4158
3665
  message PendingKeyExchange {
4159
3666
  optional uint32 sequence = 1;
4160
3667
  optional bytes localBaseKey = 2;
@@ -4164,13 +3671,13 @@ message SessionStructure {
4164
3671
  optional bytes localIdentityKey = 7;
4165
3672
  optional bytes localIdentityKeyPrivate = 8;
4166
3673
  }
4167
-
3674
+
4168
3675
  message PendingPreKey {
4169
3676
  optional uint32 preKeyId = 1;
4170
3677
  optional int32 signedPreKeyId = 3;
4171
3678
  optional bytes baseKey = 2;
4172
3679
  }
4173
-
3680
+
4174
3681
  }
4175
3682
 
4176
3683
  message SignalMessage {
@@ -4188,105 +3695,12 @@ message SignedPreKeyRecordStructure {
4188
3695
  optional fixed64 timestamp = 5;
4189
3696
  }
4190
3697
 
4191
- message StatusAttribution {
4192
- optional Type type = 1;
4193
- optional string actionUrl = 2;
4194
- oneof attributionData {
4195
- StatusAttribution.StatusReshare statusReshare = 3;
4196
- StatusAttribution.ExternalShare externalShare = 4;
4197
- StatusAttribution.Music music = 5;
4198
- StatusAttribution.GroupStatus groupStatus = 6;
4199
- StatusAttribution.RLAttribution rlAttribution = 7;
4200
- StatusAttribution.AiCreatedAttribution aiCreatedAttribution = 8;
4201
- }
4202
- message AiCreatedAttribution {
4203
- optional Source source = 1;
4204
- enum Source {
4205
- UNKNOWN = 0;
4206
- STATUS_MIMICRY = 1;
4207
- }
4208
- }
4209
-
4210
- message ExternalShare {
4211
- optional string actionUrl = 1;
4212
- optional Source source = 2;
4213
- optional int32 duration = 3;
4214
- optional string actionFallbackUrl = 4;
4215
- enum Source {
4216
- UNKNOWN = 0;
4217
- INSTAGRAM = 1;
4218
- FACEBOOK = 2;
4219
- MESSENGER = 3;
4220
- SPOTIFY = 4;
4221
- YOUTUBE = 5;
4222
- PINTEREST = 6;
4223
- THREADS = 7;
4224
- APPLE_MUSIC = 8;
4225
- SHARECHAT = 9;
4226
- }
4227
- }
4228
-
4229
- message GroupStatus {
4230
- optional string authorJid = 1;
4231
- }
4232
-
4233
- message Music {
4234
- optional string authorName = 1;
4235
- optional string songId = 2;
4236
- optional string title = 3;
4237
- optional string author = 4;
4238
- optional string artistAttribution = 5;
4239
- optional bool isExplicit = 6;
4240
- }
4241
-
4242
- message RLAttribution {
4243
- optional Source source = 1;
4244
- enum Source {
4245
- UNKNOWN = 0;
4246
- RAY_BAN_META_GLASSES = 1;
4247
- OAKLEY_META_GLASSES = 2;
4248
- HYPERNOVA_GLASSES = 3;
4249
- }
4250
- }
4251
-
4252
- message StatusReshare {
4253
- optional Source source = 1;
4254
- optional Metadata metadata = 2;
4255
- message Metadata {
4256
- optional int32 duration = 1;
4257
- optional string channelJid = 2;
4258
- optional int32 channelMessageId = 3;
4259
- optional bool hasMultipleReshares = 4;
4260
- }
4261
-
4262
- enum Source {
4263
- UNKNOWN = 0;
4264
- INTERNAL_RESHARE = 1;
4265
- MENTION_RESHARE = 2;
4266
- CHANNEL_RESHARE = 3;
4267
- FORWARD = 4;
4268
- }
4269
- }
4270
-
4271
- enum Type {
4272
- UNKNOWN = 0;
4273
- RESHARE = 1;
4274
- EXTERNAL_SHARE = 2;
4275
- MUSIC = 3;
4276
- STATUS_MENTION = 4;
4277
- GROUP_STATUS = 5;
4278
- RL_ATTRIBUTION = 6;
4279
- AI_CREATED = 7;
4280
- LAYOUTS = 8;
4281
- }
4282
- }
4283
-
4284
3698
  message StatusMentionMessage {
4285
3699
  optional Message quotedStatus = 1;
4286
3700
  }
4287
3701
 
4288
3702
  message StatusPSA {
4289
- optional uint64 campaignId = 44;
3703
+ uint64 campaignId = 44;
4290
3704
  optional uint64 campaignExpirationTimestamp = 45;
4291
3705
  }
4292
3706
 
@@ -4303,8 +3717,6 @@ message StickerMetadata {
4303
3717
  optional float weight = 10;
4304
3718
  optional int64 lastStickerSentTs = 11;
4305
3719
  optional bool isLottie = 12;
4306
- optional string imageHash = 13;
4307
- optional bool isAvatarSticker = 14;
4308
3720
  }
4309
3721
 
4310
3722
  message SyncActionData {
@@ -4320,6 +3732,7 @@ message SyncActionValue {
4320
3732
  optional ContactAction contactAction = 3;
4321
3733
  optional MuteAction muteAction = 4;
4322
3734
  optional PinAction pinAction = 5;
3735
+ optional SecurityNotificationSetting securityNotificationSetting = 6;
4323
3736
  optional PushNameSetting pushNameSetting = 7;
4324
3737
  optional QuickReplyAction quickReplyAction = 8;
4325
3738
  optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11;
@@ -4351,7 +3764,6 @@ message SyncActionValue {
4351
3764
  optional ExternalWebBetaAction externalWebBetaAction = 40;
4352
3765
  optional PrivacySettingRelayAllCalls privacySettingRelayAllCalls = 41;
4353
3766
  optional CallLogAction callLogAction = 42;
4354
- optional UGCBot ugcBot = 43;
4355
3767
  optional StatusPrivacyAction statusPrivacy = 44;
4356
3768
  optional BotWelcomeRequestAction botWelcomeRequestAction = 45;
4357
3769
  optional DeleteIndividualCallLogAction deleteIndividualCallLog = 46;
@@ -4372,75 +3784,41 @@ message SyncActionValue {
4372
3784
  optional LidContactAction lidContactAction = 61;
4373
3785
  optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
4374
3786
  optional PaymentTosAction paymentTosAction = 63;
4375
- optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
4376
- optional BusinessBroadcastAssociationAction businessBroadcastAssociationAction = 65;
4377
- optional DetectedOutcomesStatusAction detectedOutcomesStatusAction = 66;
4378
- optional MaibaAIFeaturesControlAction maibaAiFeaturesControlAction = 68;
4379
- optional BusinessBroadcastListAction businessBroadcastListAction = 69;
4380
- optional MusicUserIdAction musicUserIdAction = 70;
4381
- optional StatusPostOptInNotificationPreferencesAction statusPostOptInNotificationPreferencesAction = 71;
4382
- optional AvatarUpdatedAction avatarUpdatedAction = 72;
4383
- optional PrivateProcessingSettingAction privateProcessingSettingAction = 74;
4384
3787
  message AgentAction {
4385
3788
  optional string name = 1;
4386
3789
  optional int32 deviceID = 2;
4387
3790
  optional bool isDeleted = 3;
4388
3791
  }
4389
-
3792
+
4390
3793
  message AndroidUnsupportedActions {
4391
3794
  optional bool allowed = 1;
4392
3795
  }
4393
-
3796
+
4394
3797
  message ArchiveChatAction {
4395
3798
  optional bool archived = 1;
4396
3799
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
4397
3800
  }
4398
-
4399
- message AvatarUpdatedAction {
4400
- optional AvatarEventType eventType = 1;
4401
- repeated SyncActionValue.StickerAction recentAvatarStickers = 2;
4402
- enum AvatarEventType {
4403
- UPDATED = 0;
4404
- CREATED = 1;
4405
- DELETED = 2;
4406
- }
4407
- }
4408
-
3801
+
4409
3802
  message BotWelcomeRequestAction {
4410
3803
  optional bool isSent = 1;
4411
3804
  }
4412
-
4413
- message BroadcastListParticipant {
4414
- optional string lidJid = 1;
4415
- optional string pnJid = 2;
4416
- }
4417
-
4418
- message BusinessBroadcastAssociationAction {
4419
- optional bool deleted = 1;
4420
- }
4421
-
4422
- message BusinessBroadcastListAction {
4423
- optional bool deleted = 1;
4424
- repeated SyncActionValue.BroadcastListParticipant participants = 2;
4425
- optional string listName = 3;
4426
- }
4427
-
3805
+
4428
3806
  message CallLogAction {
4429
3807
  optional CallLogRecord callLogRecord = 1;
4430
3808
  }
4431
-
3809
+
4432
3810
  message ChatAssignmentAction {
4433
3811
  optional string deviceAgentID = 1;
4434
3812
  }
4435
-
3813
+
4436
3814
  message ChatAssignmentOpenedStatusAction {
4437
3815
  optional bool chatOpened = 1;
4438
3816
  }
4439
-
3817
+
4440
3818
  message ClearChatAction {
4441
3819
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
4442
3820
  }
4443
-
3821
+
4444
3822
  message ContactAction {
4445
3823
  optional string fullName = 1;
4446
3824
  optional string firstName = 2;
@@ -4449,65 +3827,61 @@ message SyncActionValue {
4449
3827
  optional string pnJid = 5;
4450
3828
  optional string username = 6;
4451
3829
  }
4452
-
3830
+
4453
3831
  message CtwaPerCustomerDataSharingAction {
4454
3832
  optional bool isCtwaPerCustomerDataSharingEnabled = 1;
4455
3833
  }
4456
-
3834
+
4457
3835
  message CustomPaymentMethod {
4458
- optional string credentialId = 1;
4459
- optional string country = 2;
4460
- optional string type = 3;
3836
+ string credentialId = 1;
3837
+ string country = 2;
3838
+ string type = 3;
4461
3839
  repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
4462
3840
  }
4463
-
3841
+
4464
3842
  message CustomPaymentMethodMetadata {
4465
- optional string key = 1;
4466
- optional string value = 2;
3843
+ string key = 1;
3844
+ string value = 2;
4467
3845
  }
4468
-
3846
+
4469
3847
  message CustomPaymentMethodsAction {
4470
3848
  repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
4471
3849
  }
4472
-
3850
+
4473
3851
  message DeleteChatAction {
4474
3852
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
4475
3853
  }
4476
-
3854
+
4477
3855
  message DeleteIndividualCallLogAction {
4478
3856
  optional string peerJid = 1;
4479
3857
  optional bool isIncoming = 2;
4480
3858
  }
4481
-
3859
+
4482
3860
  message DeleteMessageForMeAction {
4483
3861
  optional bool deleteMedia = 1;
4484
3862
  optional int64 messageTimestamp = 2;
4485
3863
  }
4486
-
4487
- message DetectedOutcomesStatusAction {
4488
- optional bool isEnabled = 1;
4489
- }
4490
-
3864
+
4491
3865
  message ExternalWebBetaAction {
4492
3866
  optional bool isOptIn = 1;
4493
3867
  }
4494
-
3868
+
4495
3869
  message FavoritesAction {
4496
3870
  repeated Favorite favorites = 1;
4497
3871
  message Favorite {
4498
3872
  optional string id = 1;
4499
3873
  }
4500
-
3874
+
4501
3875
  }
4502
-
3876
+
4503
3877
  message KeyExpiration {
4504
3878
  optional int32 expiredKeyEpoch = 1;
4505
3879
  }
4506
-
3880
+
4507
3881
  message LabelAssociationAction {
4508
3882
  optional bool labeled = 1;
4509
3883
  }
4510
-
3884
+
4511
3885
  message LabelEditAction {
4512
3886
  optional string name = 1;
4513
3887
  optional int32 color = 2;
@@ -4528,39 +3902,31 @@ message SyncActionValue {
4528
3902
  SERVER_ASSIGNED = 7;
4529
3903
  }
4530
3904
  }
4531
-
3905
+
4532
3906
  message LabelReorderingAction {
4533
3907
  repeated int32 sortedLabelIds = 1;
4534
3908
  }
4535
-
3909
+
4536
3910
  message LidContactAction {
4537
3911
  optional string fullName = 1;
4538
3912
  optional string firstName = 2;
4539
3913
  optional string username = 3;
3914
+ optional bool saveOnPrimaryAddressbook = 4;
4540
3915
  }
4541
-
3916
+
4542
3917
  message LocaleSetting {
4543
3918
  optional string locale = 1;
4544
3919
  }
4545
-
3920
+
4546
3921
  message LockChatAction {
4547
3922
  optional bool locked = 1;
4548
3923
  }
4549
-
4550
- message MaibaAIFeaturesControlAction {
4551
- optional MaibaAIFeatureStatus aiFeatureStatus = 1;
4552
- enum MaibaAIFeatureStatus {
4553
- ENABLED = 0;
4554
- ENABLED_HAS_LEARNING = 1;
4555
- DISABLED = 2;
4556
- }
4557
- }
4558
-
3924
+
4559
3925
  message MarkChatAsReadAction {
4560
3926
  optional bool read = 1;
4561
3927
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
4562
3928
  }
4563
-
3929
+
4564
3930
  message MarketingMessageAction {
4565
3931
  optional string name = 1;
4566
3932
  optional string message = 2;
@@ -4573,14 +3939,14 @@ message SyncActionValue {
4573
3939
  PERSONALIZED = 0;
4574
3940
  }
4575
3941
  }
4576
-
3942
+
4577
3943
  message MarketingMessageBroadcastAction {
4578
3944
  optional int32 repliedCount = 1;
4579
3945
  }
4580
-
3946
+
4581
3947
  message MerchantPaymentPartnerAction {
4582
- optional Status status = 1;
4583
- optional string country = 2;
3948
+ Status status = 1;
3949
+ string country = 2;
4584
3950
  optional string gatewayName = 3;
4585
3951
  optional string credentialId = 4;
4586
3952
  enum Status {
@@ -4588,17 +3954,13 @@ message SyncActionValue {
4588
3954
  INACTIVE = 1;
4589
3955
  }
4590
3956
  }
4591
-
4592
- message MusicUserIdAction {
4593
- optional string musicUserId = 1;
4594
- }
4595
-
3957
+
4596
3958
  message MuteAction {
4597
3959
  optional bool muted = 1;
4598
3960
  optional int64 muteEndTimestamp = 2;
4599
3961
  optional bool autoMuted = 3;
4600
3962
  }
4601
-
3963
+
4602
3964
  message NoteEditAction {
4603
3965
  optional NoteType type = 1;
4604
3966
  optional string chatJid = 2;
@@ -4610,7 +3972,7 @@ message SyncActionValue {
4610
3972
  STRUCTURED = 2;
4611
3973
  }
4612
3974
  }
4613
-
3975
+
4614
3976
  message NotificationActivitySettingAction {
4615
3977
  optional NotificationActivitySetting notificationActivitySetting = 1;
4616
3978
  enum NotificationActivitySetting {
@@ -4620,63 +3982,51 @@ message SyncActionValue {
4620
3982
  DEFAULT_HIGHLIGHTS = 3;
4621
3983
  }
4622
3984
  }
4623
-
3985
+
4624
3986
  message NuxAction {
4625
3987
  optional bool acknowledged = 1;
4626
3988
  }
4627
-
3989
+
4628
3990
  message PaymentInfoAction {
4629
3991
  optional string cpi = 1;
4630
3992
  }
4631
-
3993
+
4632
3994
  message PaymentTosAction {
4633
- optional PaymentNotice paymentNotice = 1;
4634
- optional bool accepted = 2;
3995
+ PaymentNotice paymentNotice = 1;
3996
+ bool accepted = 2;
4635
3997
  enum PaymentNotice {
4636
3998
  BR_PAY_PRIVACY_POLICY = 0;
4637
3999
  }
4638
4000
  }
4639
-
4001
+
4640
4002
  message PinAction {
4641
4003
  optional bool pinned = 1;
4642
4004
  }
4643
-
4005
+
4644
4006
  message PnForLidChatAction {
4645
4007
  optional string pnJid = 1;
4646
4008
  }
4647
-
4009
+
4648
4010
  message PrimaryFeature {
4649
4011
  repeated string flags = 1;
4650
4012
  }
4651
-
4013
+
4652
4014
  message PrimaryVersionAction {
4653
4015
  optional string version = 1;
4654
4016
  }
4655
-
4656
- message PrivacySettingChannelsPersonalisedRecommendationAction {
4657
- optional bool isUserOptedOut = 1;
4658
- }
4659
-
4017
+
4660
4018
  message PrivacySettingDisableLinkPreviewsAction {
4661
4019
  optional bool isPreviewsDisabled = 1;
4662
4020
  }
4663
-
4021
+
4664
4022
  message PrivacySettingRelayAllCalls {
4665
4023
  optional bool isEnabled = 1;
4666
4024
  }
4667
-
4668
- message PrivateProcessingSettingAction {
4669
- optional PrivateProcessingStatus privateProcessingStatus = 1;
4670
- enum PrivateProcessingStatus {
4671
- ENABLED = 0;
4672
- DISABLED = 1;
4673
- }
4674
- }
4675
-
4025
+
4676
4026
  message PushNameSetting {
4677
4027
  optional string name = 1;
4678
4028
  }
4679
-
4029
+
4680
4030
  message QuickReplyAction {
4681
4031
  optional string shortcut = 1;
4682
4032
  optional string message = 2;
@@ -4684,23 +4034,23 @@ message SyncActionValue {
4684
4034
  optional int32 count = 4;
4685
4035
  optional bool deleted = 5;
4686
4036
  }
4687
-
4037
+
4688
4038
  message RecentEmojiWeightsAction {
4689
4039
  repeated RecentEmojiWeight weights = 1;
4690
4040
  }
4691
-
4041
+
4692
4042
  message RemoveRecentStickerAction {
4693
4043
  optional int64 lastStickerSentTs = 1;
4694
4044
  }
4695
-
4045
+
4046
+ message SecurityNotificationSetting {
4047
+ optional bool showNotification = 1;
4048
+ }
4049
+
4696
4050
  message StarAction {
4697
4051
  optional bool starred = 1;
4698
4052
  }
4699
-
4700
- message StatusPostOptInNotificationPreferencesAction {
4701
- optional bool enabled = 1;
4702
- }
4703
-
4053
+
4704
4054
  message StatusPrivacyAction {
4705
4055
  optional StatusDistributionMode mode = 1;
4706
4056
  repeated string userJid = 2;
@@ -4708,10 +4058,9 @@ message SyncActionValue {
4708
4058
  ALLOW_LIST = 0;
4709
4059
  DENY_LIST = 1;
4710
4060
  CONTACTS = 2;
4711
- CLOSE_FRIENDS = 3;
4712
4061
  }
4713
4062
  }
4714
-
4063
+
4715
4064
  message StickerAction {
4716
4065
  optional string url = 1;
4717
4066
  optional bytes fileEncSha256 = 2;
@@ -4724,43 +4073,37 @@ message SyncActionValue {
4724
4073
  optional bool isFavorite = 9;
4725
4074
  optional uint32 deviceIdHint = 10;
4726
4075
  optional bool isLottie = 11;
4727
- optional string imageHash = 12;
4728
- optional bool isAvatarSticker = 13;
4729
4076
  }
4730
-
4077
+
4731
4078
  message SubscriptionAction {
4732
4079
  optional bool isDeactivated = 1;
4733
4080
  optional bool isAutoRenewing = 2;
4734
4081
  optional int64 expirationDate = 3;
4735
4082
  }
4736
-
4083
+
4737
4084
  message SyncActionMessage {
4738
4085
  optional MessageKey key = 1;
4739
4086
  optional int64 timestamp = 2;
4740
4087
  }
4741
-
4088
+
4742
4089
  message SyncActionMessageRange {
4743
4090
  optional int64 lastMessageTimestamp = 1;
4744
4091
  optional int64 lastSystemMessageTimestamp = 2;
4745
4092
  repeated SyncActionValue.SyncActionMessage messages = 3;
4746
4093
  }
4747
-
4094
+
4748
4095
  message TimeFormatAction {
4749
4096
  optional bool isTwentyFourHourFormatEnabled = 1;
4750
4097
  }
4751
-
4752
- message UGCBot {
4753
- optional bytes definition = 1;
4754
- }
4755
-
4098
+
4756
4099
  message UnarchiveChatsSetting {
4757
4100
  optional bool unarchiveChats = 1;
4758
4101
  }
4759
-
4102
+
4760
4103
  message UserStatusMuteAction {
4761
4104
  optional bool muted = 1;
4762
4105
  }
4763
-
4106
+
4764
4107
  message UsernameChatStartModeAction {
4765
4108
  optional ChatStartMode chatStartMode = 1;
4766
4109
  enum ChatStartMode {
@@ -4768,20 +4111,18 @@ message SyncActionValue {
4768
4111
  PN = 2;
4769
4112
  }
4770
4113
  }
4771
-
4114
+
4772
4115
  message WaffleAccountLinkStateAction {
4773
4116
  optional AccountLinkState linkState = 2;
4774
4117
  enum AccountLinkState {
4775
4118
  ACTIVE = 0;
4776
- PAUSED = 1;
4777
- UNLINKED = 2;
4778
4119
  }
4779
4120
  }
4780
-
4121
+
4781
4122
  message WamoUserIdentifierAction {
4782
4123
  optional string identifier = 1;
4783
4124
  }
4784
-
4125
+
4785
4126
  }
4786
4127
 
4787
4128
  message SyncdIndex {
@@ -4850,27 +4191,17 @@ message TemplateButton {
4850
4191
  optional Message.HighlyStructuredMessage displayText = 1;
4851
4192
  optional Message.HighlyStructuredMessage phoneNumber = 2;
4852
4193
  }
4853
-
4194
+
4854
4195
  message QuickReplyButton {
4855
4196
  optional Message.HighlyStructuredMessage displayText = 1;
4856
4197
  optional string id = 2;
4857
4198
  }
4858
-
4199
+
4859
4200
  message URLButton {
4860
4201
  optional Message.HighlyStructuredMessage displayText = 1;
4861
4202
  optional Message.HighlyStructuredMessage url = 2;
4862
4203
  }
4863
-
4864
- }
4865
4204
 
4866
- message ThreadID {
4867
- optional ThreadType threadType = 1;
4868
- optional MessageKey threadKey = 2;
4869
- enum ThreadType {
4870
- UNKNOWN = 0;
4871
- VIEW_REPLIES = 1;
4872
- AI_THREAD = 2;
4873
- }
4874
4205
  }
4875
4206
 
4876
4207
  message UrlTrackingMap {
@@ -4881,7 +4212,7 @@ message UrlTrackingMap {
4881
4212
  optional string consentedUsersUrl = 3;
4882
4213
  optional uint32 cardIndex = 4;
4883
4214
  }
4884
-
4215
+
4885
4216
  }
4886
4217
 
4887
4218
  message UserPassword {
@@ -4907,13 +4238,13 @@ message UserPassword {
4907
4238
  uint32 asUnsignedInteger = 2;
4908
4239
  }
4909
4240
  }
4910
-
4241
+
4911
4242
  }
4912
-
4243
+
4913
4244
  }
4914
4245
 
4915
4246
  message UserReceipt {
4916
- optional string userJid = 1;
4247
+ string userJid = 1;
4917
4248
  optional int64 receiptTimestamp = 2;
4918
4249
  optional int64 readTimestamp = 3;
4919
4250
  optional int64 playedTimestamp = 4;
@@ -4932,7 +4263,7 @@ message VerifiedNameCertificate {
4932
4263
  repeated LocalizedName localizedNames = 8;
4933
4264
  optional uint64 issueTime = 10;
4934
4265
  }
4935
-
4266
+
4936
4267
  }
4937
4268
 
4938
4269
  message WallpaperSettings {
@@ -4995,7 +4326,7 @@ message WebFeatures {
4995
4326
  }
4996
4327
 
4997
4328
  message WebMessageInfo {
4998
- optional MessageKey key = 1;
4329
+ MessageKey key = 1;
4999
4330
  optional Message message = 2;
5000
4331
  optional uint64 messageTimestamp = 3;
5001
4332
  optional Status status = 4;
@@ -5057,10 +4388,6 @@ message WebMessageInfo {
5057
4388
  repeated string statusMentionSources = 71;
5058
4389
  repeated Citation supportAiCitations = 72;
5059
4390
  optional string botTargetId = 73;
5060
- optional GroupHistoryIndividualMessageInfo groupHistoryIndividualMessageInfo = 74;
5061
- optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
5062
- optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
5063
- optional QuarantinedMessage quarantinedMessage = 77;
5064
4391
  enum BizPrivacyStatus {
5065
4392
  E2EE = 0;
5066
4393
  FB = 2;
@@ -5295,8 +4622,6 @@ message WebMessageInfo {
5295
4622
  CHANGE_LIMIT_SHARING = 216;
5296
4623
  GROUP_MEMBER_LINK_MODE = 217;
5297
4624
  BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
5298
- PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219;
5299
- QUARANTINED_MESSAGE = 220;
5300
4625
  }
5301
4626
  }
5302
4627