alisaai-baileys 8.5.4 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/WAProto/WAProto.proto +97 -1527
  2. package/WAProto/index.d.ts +3534 -21575
  3. package/engine-requirements.js +10 -0
  4. package/lib/Defaults/baileys-version.json +2 -2
  5. package/lib/Defaults/index.d.ts +7 -16
  6. package/lib/Defaults/index.js +120 -90
  7. package/lib/Defaults/phonenumber-mcc.json +223 -0
  8. package/lib/Socket/Client/{types.d.ts → abstract-socket-client.d.ts} +2 -1
  9. package/lib/Socket/Client/index.d.ts +3 -2
  10. package/lib/Socket/Client/index.js +3 -2
  11. package/lib/Socket/Client/mobile-socket-client.d.ts +13 -0
  12. package/lib/Socket/Client/mobile-socket-client.js +65 -0
  13. package/lib/Socket/Client/{websocket.d.ts → web-socket-client.d.ts} +1 -2
  14. package/lib/Socket/Client/{websocket.js → web-socket-client.js} +5 -54
  15. package/lib/Socket/business.d.ts +58 -59
  16. package/lib/Socket/chats.d.ts +230 -45
  17. package/lib/Socket/chats.js +238 -139
  18. package/lib/Socket/groups.d.ts +32 -41
  19. package/lib/Socket/groups.js +23 -38
  20. package/lib/Socket/index.d.ts +64 -63
  21. package/lib/Socket/index.js +3 -2
  22. package/lib/Socket/messages-recv.js +65 -9
  23. package/lib/Socket/messages-send.d.ts +47 -49
  24. package/lib/Socket/messages-send.js +395 -543
  25. package/lib/Socket/newsletter.d.ts +37 -39
  26. package/lib/Socket/newsletter.js +135 -88
  27. package/lib/Socket/registration.d.ts +267 -0
  28. package/lib/Socket/registration.js +166 -0
  29. package/lib/Socket/setup.d.ts +253 -0
  30. package/lib/Socket/setup.js +5 -6
  31. package/lib/Socket/socket.d.ts +43 -270
  32. package/lib/Socket/socket.js +15 -8
  33. package/lib/Socket/usync.d.ts +3 -3
  34. package/lib/Store/index.d.ts +2 -1
  35. package/lib/Store/index.js +3 -1
  36. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  37. package/lib/Store/make-cache-manager-store.js +83 -0
  38. package/lib/Store/make-in-memory-store.d.ts +24 -24
  39. package/lib/Store/make-in-memory-store.js +14 -26
  40. package/lib/Store/make-ordered-dictionary.d.ts +1 -1
  41. package/lib/Store/make-ordered-dictionary.js +2 -2
  42. package/lib/Types/Auth.d.ts +7 -0
  43. package/lib/Types/Call.d.ts +1 -1
  44. package/lib/Types/Chat.d.ts +7 -14
  45. package/lib/Types/Contact.d.ts +1 -5
  46. package/lib/Types/Events.d.ts +2 -44
  47. package/lib/Types/GroupMetadata.d.ts +2 -11
  48. package/lib/Types/Label.js +1 -1
  49. package/lib/Types/LabelAssociation.js +1 -1
  50. package/lib/Types/Message.d.ts +21 -148
  51. package/lib/Types/Message.js +2 -0
  52. package/lib/Types/Newsletter.d.ts +97 -73
  53. package/lib/Types/Newsletter.js +38 -18
  54. package/lib/Types/Socket.d.ts +9 -17
  55. package/lib/Types/index.d.ts +1 -8
  56. package/lib/Types/index.js +2 -2
  57. package/lib/Utils/auth-utils.d.ts +3 -3
  58. package/lib/Utils/auth-utils.js +13 -6
  59. package/lib/Utils/business.js +2 -2
  60. package/lib/Utils/chat-utils.d.ts +16 -15
  61. package/lib/Utils/chat-utils.js +35 -36
  62. package/lib/Utils/crypto.d.ts +16 -15
  63. package/lib/Utils/crypto.js +29 -71
  64. package/lib/Utils/decode-wa-message.d.ts +6 -22
  65. package/lib/Utils/decode-wa-message.js +56 -65
  66. package/lib/Utils/event-buffer.d.ts +2 -2
  67. package/lib/Utils/event-buffer.js +7 -11
  68. package/lib/Utils/generics.d.ts +20 -17
  69. package/lib/Utils/generics.js +84 -102
  70. package/lib/Utils/history.d.ts +0 -4
  71. package/lib/Utils/history.js +6 -4
  72. package/lib/Utils/link-preview.d.ts +2 -2
  73. package/lib/Utils/link-preview.js +1 -34
  74. package/lib/Utils/logger.d.ts +3 -10
  75. package/lib/Utils/lt-hash.d.ts +2 -2
  76. package/lib/Utils/lt-hash.js +6 -6
  77. package/lib/Utils/make-mutex.d.ts +2 -2
  78. package/lib/Utils/messages-media.d.ts +24 -28
  79. package/lib/Utils/messages-media.js +111 -272
  80. package/lib/Utils/messages.d.ts +10 -13
  81. package/lib/Utils/messages.js +52 -337
  82. package/lib/Utils/noise-handler.d.ts +12 -10
  83. package/lib/Utils/noise-handler.js +23 -18
  84. package/lib/Utils/process-message.d.ts +4 -5
  85. package/lib/Utils/process-message.js +25 -108
  86. package/lib/Utils/signal.d.ts +1 -2
  87. package/lib/Utils/signal.js +26 -26
  88. package/lib/Utils/use-multi-file-auth-state.d.ts +1 -0
  89. package/lib/Utils/use-multi-file-auth-state.js +0 -6
  90. package/lib/Utils/validate-connection.d.ts +4 -3
  91. package/lib/Utils/validate-connection.js +1 -1
  92. package/lib/WABinary/constants.d.ts +27 -24
  93. package/lib/WABinary/constants.js +13 -1276
  94. package/lib/WABinary/decode.d.ts +4 -3
  95. package/lib/WABinary/decode.js +13 -26
  96. package/lib/WABinary/encode.d.ts +2 -1
  97. package/lib/WABinary/encode.js +152 -137
  98. package/lib/WABinary/generic-utils.d.ts +4 -1
  99. package/lib/WABinary/generic-utils.js +125 -37
  100. package/lib/WABinary/jid-utils.d.ts +5 -11
  101. package/lib/WABinary/jid-utils.js +5 -28
  102. package/lib/WAM/BinaryInfo.d.ts +11 -2
  103. package/lib/WAM/encode.d.ts +2 -1
  104. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  105. package/lib/index.d.ts +2 -6
  106. package/lib/index.js +13 -26
  107. package/package.json +31 -18
  108. package/WAProto/index.ts.ts +0 -53473
  109. package/lib/Socket/setup.ts +0 -623
  110. package/lib/WABinary/jid-utils.js.bak +0 -83
  111. /package/lib/Socket/Client/{types.js → abstract-socket-client.js} +0 -0
@@ -1,8 +1,6 @@
1
- syntax = "proto3";
1
+ syntax = "proto2";
2
2
  package proto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1023888953
5
-
6
4
  message ADVDeviceIdentity {
7
5
  optional uint32 rawId = 1;
8
6
  optional uint64 timestamp = 2;
@@ -42,178 +40,6 @@ message ADVSignedKeyIndexList {
42
40
  optional bytes accountSignatureKey = 3;
43
41
  }
44
42
 
45
- message AIQueryFanout {
46
- optional MessageKey messageKey = 1;
47
- optional Message message = 2;
48
- optional int64 timestamp = 3;
49
- }
50
-
51
- message AIRichResponseMessage {
52
- optional AIRichResponseMessageType messageType = 1;
53
- repeated AIRichResponseSubMessage submessages = 2;
54
- optional AIRichResponseUnifiedResponse unifiedResponse = 3;
55
- optional ContextInfo contextInfo = 4;
56
- message AIRichResponseCodeMetadata {
57
- optional string codeLanguage = 1;
58
- repeated AIRichResponseCodeBlock codeBlocks = 2;
59
- message AIRichResponseCodeBlock {
60
- optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
61
- optional string codeContent = 2;
62
- }
63
-
64
- enum AIRichResponseCodeHighlightType {
65
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
66
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
67
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
68
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
69
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
70
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
71
- }
72
- }
73
-
74
- message AIRichResponseContentItemsMetadata {
75
- repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
76
- optional ContentType contentType = 2;
77
- message AIRichResponseContentItemMetadata {
78
- oneof aIRichResponseContentItem {
79
- AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
80
- }
81
- }
82
-
83
- message AIRichResponseReelItem {
84
- optional string title = 1;
85
- optional string profileIconUrl = 2;
86
- optional string thumbnailUrl = 3;
87
- optional string videoUrl = 4;
88
- }
89
-
90
- enum ContentType {
91
- DEFAULT = 0;
92
- CAROUSEL = 1;
93
- }
94
- }
95
-
96
- message AIRichResponseDynamicMetadata {
97
- optional AIRichResponseDynamicMetadataType type = 1;
98
- optional uint64 version = 2;
99
- optional string url = 3;
100
- optional uint32 loopCount = 4;
101
- enum AIRichResponseDynamicMetadataType {
102
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
103
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
104
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
105
- }
106
- }
107
-
108
- message AIRichResponseGridImageMetadata {
109
- optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
110
- repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
111
- }
112
-
113
- message AIRichResponseImageURL {
114
- optional string imagePreviewUrl = 1;
115
- optional string imageHighResUrl = 2;
116
- optional string sourceUrl = 3;
117
- }
118
-
119
- message AIRichResponseInlineImageMetadata {
120
- optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
121
- optional string imageText = 2;
122
- optional AIRichResponseImageAlignment alignment = 3;
123
- optional string tapLinkUrl = 4;
124
- enum AIRichResponseImageAlignment {
125
- AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
126
- AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
127
- AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
128
- }
129
- }
130
-
131
- message AIRichResponseLatexMetadata {
132
- optional string text = 1;
133
- repeated AIRichResponseLatexExpression expressions = 2;
134
- message AIRichResponseLatexExpression {
135
- optional string latexExpression = 1;
136
- optional string url = 2;
137
- optional double width = 3;
138
- optional double height = 4;
139
- optional double fontHeight = 5;
140
- optional double imageTopPadding = 6;
141
- optional double imageLeadingPadding = 7;
142
- optional double imageBottomPadding = 8;
143
- optional double imageTrailingPadding = 9;
144
- }
145
-
146
- }
147
-
148
- message AIRichResponseMapMetadata {
149
- optional double centerLatitude = 1;
150
- optional double centerLongitude = 2;
151
- optional double latitudeDelta = 3;
152
- optional double longitudeDelta = 4;
153
- repeated AIRichResponseMapAnnotation annotations = 5;
154
- optional bool showInfoList = 6;
155
- message AIRichResponseMapAnnotation {
156
- optional uint32 annotationNumber = 1;
157
- optional double latitude = 2;
158
- optional double longitude = 3;
159
- optional string title = 4;
160
- optional string body = 5;
161
- }
162
-
163
- }
164
-
165
- enum AIRichResponseMessageType {
166
- AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
167
- AI_RICH_RESPONSE_TYPE_STANDARD = 1;
168
- }
169
- message AIRichResponseSubMessage {
170
- optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
171
- optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
172
- optional string messageText = 3;
173
- optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
174
- optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
175
- optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
176
- optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
177
- optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
178
- optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
179
- optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
180
- }
181
-
182
- enum AIRichResponseSubMessageType {
183
- AI_RICH_RESPONSE_UNKNOWN = 0;
184
- AI_RICH_RESPONSE_GRID_IMAGE = 1;
185
- AI_RICH_RESPONSE_TEXT = 2;
186
- AI_RICH_RESPONSE_INLINE_IMAGE = 3;
187
- AI_RICH_RESPONSE_TABLE = 4;
188
- AI_RICH_RESPONSE_CODE = 5;
189
- AI_RICH_RESPONSE_DYNAMIC = 6;
190
- AI_RICH_RESPONSE_MAP = 7;
191
- AI_RICH_RESPONSE_LATEX = 8;
192
- AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
193
- }
194
- message AIRichResponseTableMetadata {
195
- repeated AIRichResponseTableRow rows = 1;
196
- optional string title = 2;
197
- message AIRichResponseTableRow {
198
- repeated string items = 1;
199
- optional bool isHeading = 2;
200
- }
201
-
202
- }
203
-
204
- message AIRichResponseUnifiedResponse {
205
- optional bytes data = 1;
206
- }
207
-
208
- }
209
-
210
- message Account {
211
- optional string lid = 1;
212
- optional string username = 2;
213
- optional string countryCode = 3;
214
- optional bool isUsernameDeleted = 4;
215
- }
216
-
217
43
  message ActionLink {
218
44
  optional string url = 1;
219
45
  optional string buttonTitle = 2;
@@ -275,11 +101,6 @@ message BizIdentityInfo {
275
101
  }
276
102
  }
277
103
 
278
- message BotAgeCollectionMetadata {
279
- optional bool ageCollectionEligible = 1;
280
- optional bool shouldTriggerAgeCollectionOnClient = 2;
281
- }
282
-
283
104
  message BotAvatarMetadata {
284
105
  optional uint32 sentiment = 1;
285
106
  optional string behaviorGraph = 2;
@@ -288,193 +109,12 @@ message BotAvatarMetadata {
288
109
  optional uint32 wordCount = 5;
289
110
  }
290
111
 
291
- message BotCapabilityMetadata {
292
- repeated BotCapabilityType capabilities = 1;
293
- enum BotCapabilityType {
294
- UNKNOWN = 0;
295
- PROGRESS_INDICATOR = 1;
296
- RICH_RESPONSE_HEADING = 2;
297
- RICH_RESPONSE_NESTED_LIST = 3;
298
- AI_MEMORY = 4;
299
- RICH_RESPONSE_THREAD_SURFING = 5;
300
- RICH_RESPONSE_TABLE = 6;
301
- RICH_RESPONSE_CODE = 7;
302
- RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
303
- RICH_RESPONSE_INLINE_IMAGE = 9;
304
- WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
305
- WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
306
- WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
307
- WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
308
- WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
309
- WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
310
- WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
311
- WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
312
- WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
313
- WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
314
- WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
315
- RICH_RESPONSE_SUB_HEADING = 21;
316
- RICH_RESPONSE_GRID_IMAGE = 22;
317
- AI_STUDIO_UGC_MEMORY = 23;
318
- RICH_RESPONSE_LATEX = 24;
319
- RICH_RESPONSE_MAPS = 25;
320
- RICH_RESPONSE_INLINE_REELS = 26;
321
- AGENTIC_PLANNING = 27;
322
- ACCOUNT_LINKING = 28;
323
- STREAMING_DISAGGREGATION = 29;
324
- RICH_RESPONSE_GRID_IMAGE_3P = 30;
325
- RICH_RESPONSE_LATEX_INLINE = 31;
326
- QUERY_PLAN = 32;
327
- PROACTIVE_MESSAGE = 33;
328
- RICH_RESPONSE_UNIFIED_RESPONSE = 34;
329
- PROMOTION_MESSAGE = 35;
330
- SIMPLIFIED_PROFILE_PAGE = 36;
331
- }
332
- }
333
-
334
- message BotImagineMetadata {
335
- optional ImagineType imagineType = 1;
336
- enum ImagineType {
337
- UNKNOWN = 0;
338
- IMAGINE = 1;
339
- MEMU = 2;
340
- FLASH = 3;
341
- EDIT = 4;
342
- }
343
- }
344
-
345
- message BotLinkedAccount {
346
- optional BotLinkedAccountType type = 1;
347
- enum BotLinkedAccountType {
348
- BOT_LINKED_ACCOUNT_TYPE_1P = 0;
349
- }
350
- }
351
-
352
- message BotLinkedAccountsMetadata {
353
- repeated BotLinkedAccount accounts = 1;
354
- optional bytes acAuthTokens = 2;
355
- optional int32 acErrorCode = 3;
356
- }
357
-
358
- message BotMediaMetadata {
359
- optional string fileSha256 = 1;
360
- optional string mediaKey = 2;
361
- optional string fileEncSha256 = 3;
362
- optional string directPath = 4;
363
- optional int64 mediaKeyTimestamp = 5;
364
- optional string mimetype = 6;
365
- optional OrientationType orientationType = 7;
366
- enum OrientationType {
367
- CENTER = 1;
368
- LEFT = 2;
369
- RIGHT = 3;
370
- }
371
- }
372
-
373
- message BotMemoryFact {
374
- optional string fact = 1;
375
- optional string factId = 2;
376
- }
377
-
378
- message BotMemoryMetadata {
379
- repeated BotMemoryFact addedFacts = 1;
380
- repeated BotMemoryFact removedFacts = 2;
381
- optional string disclaimer = 3;
382
- }
383
-
384
- message BotMemuMetadata {
385
- repeated BotMediaMetadata faceImages = 1;
386
- }
387
-
388
112
  message BotMetadata {
389
113
  optional BotAvatarMetadata avatarMetadata = 1;
390
114
  optional string personaId = 2;
391
115
  optional BotPluginMetadata pluginMetadata = 3;
392
116
  optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
393
117
  optional string invokerJid = 5;
394
- optional BotSessionMetadata sessionMetadata = 6;
395
- optional BotMemuMetadata memuMetadata = 7;
396
- optional string timezone = 8;
397
- optional BotReminderMetadata reminderMetadata = 9;
398
- optional BotModelMetadata modelMetadata = 10;
399
- optional string messageDisclaimerText = 11;
400
- optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
401
- optional BotCapabilityMetadata capabilityMetadata = 13;
402
- optional BotImagineMetadata imagineMetadata = 14;
403
- optional BotMemoryMetadata memoryMetadata = 15;
404
- optional BotRenderingMetadata renderingMetadata = 16;
405
- optional BotMetricsMetadata botMetricsMetadata = 17;
406
- optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
407
- optional BotSourcesMetadata richResponseSourcesMetadata = 19;
408
- optional bytes aiConversationContext = 20;
409
- optional BotPromotionMessageMetadata botPromotionMessageMetadata = 21;
410
- optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
411
- optional BotQuotaMetadata botQuotaMetadata = 23;
412
- optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
413
- optional string conversationStarterPromptId = 25;
414
- optional string botResponseId = 26;
415
- optional BotSignatureVerificationMetadata verificationMetadata = 27;
416
- }
417
-
418
- enum BotMetricsEntryPoint {
419
- FAVICON = 1;
420
- CHATLIST = 2;
421
- AISEARCH_NULL_STATE_PAPER_PLANE = 3;
422
- AISEARCH_NULL_STATE_SUGGESTION = 4;
423
- AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
424
- AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
425
- AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
426
- AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
427
- AIVOICE_SEARCH_BAR = 9;
428
- AIVOICE_FAVICON = 10;
429
- AISTUDIO = 11;
430
- DEEPLINK = 12;
431
- NOTIFICATION = 13;
432
- PROFILE_MESSAGE_BUTTON = 14;
433
- FORWARD = 15;
434
- APP_SHORTCUT = 16;
435
- FF_FAMILY = 17;
436
- AI_TAB = 18;
437
- AI_HOME = 19;
438
- AI_DEEPLINK_IMMERSIVE = 20;
439
- AI_DEEPLINK = 21;
440
- META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
441
- UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
442
- NEW_CHAT_AI_STUDIO = 24;
443
- AIVOICE_FAVICON_CALL_HISTORY = 25;
444
- }
445
- message BotMetricsMetadata {
446
- optional string destinationId = 1;
447
- optional BotMetricsEntryPoint destinationEntryPoint = 2;
448
- optional BotMetricsThreadEntryPoint threadOrigin = 3;
449
- }
450
-
451
- enum BotMetricsThreadEntryPoint {
452
- AI_TAB_THREAD = 1;
453
- AI_HOME_THREAD = 2;
454
- AI_DEEPLINK_IMMERSIVE_THREAD = 3;
455
- AI_DEEPLINK_THREAD = 4;
456
- }
457
- message BotModeSelectionMetadata {
458
- repeated BotUserSelectionMode mode = 1;
459
- enum BotUserSelectionMode {
460
- UNKNOWN_MODE = 0;
461
- REASONING_MODE = 1;
462
- }
463
- }
464
-
465
- message BotModelMetadata {
466
- optional ModelType modelType = 1;
467
- optional PremiumModelStatus premiumModelStatus = 2;
468
- enum ModelType {
469
- UNKNOWN_TYPE = 0;
470
- LLAMA_PROD = 1;
471
- LLAMA_PROD_PREMIUM = 2;
472
- }
473
- enum PremiumModelStatus {
474
- UNKNOWN_STATUS = 0;
475
- AVAILABLE = 1;
476
- QUOTA_EXCEED_LIMIT = 2;
477
- }
478
118
  }
479
119
 
480
120
  message BotPluginMetadata {
@@ -485,190 +125,20 @@ message BotPluginMetadata {
485
125
  optional string searchProviderUrl = 5;
486
126
  optional uint32 referenceIndex = 6;
487
127
  optional uint32 expectedLinksCount = 7;
488
- optional string searchQuery = 9;
489
- optional MessageKey parentPluginMessageKey = 10;
490
- optional PluginType deprecatedField = 11;
491
- optional PluginType parentPluginType = 12;
492
- optional string faviconCdnUrl = 13;
128
+ optional uint32 pluginVersion = 8;
493
129
  enum PluginType {
494
- UNKNOWN_PLUGIN = 0;
495
130
  REELS = 1;
496
131
  SEARCH = 2;
497
132
  }
498
133
  enum SearchProvider {
499
- UNKNOWN = 0;
500
134
  BING = 1;
501
135
  GOOGLE = 2;
502
- SUPPORT = 3;
503
- }
504
- }
505
-
506
- message BotProgressIndicatorMetadata {
507
- optional string progressDescription = 1;
508
- repeated BotPlanningStepMetadata stepsMetadata = 2;
509
- message BotPlanningStepMetadata {
510
- optional string statusTitle = 1;
511
- optional string statusBody = 2;
512
- repeated BotPlanningSearchSourcesMetadata sourcesMetadata = 3;
513
- optional PlanningStepStatus status = 4;
514
- optional bool isReasoning = 5;
515
- optional bool isEnhancedSearch = 6;
516
- repeated BotPlanningStepSectionMetadata sections = 7;
517
- message BotPlanningSearchSourceMetadata {
518
- optional string title = 1;
519
- optional BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;
520
- optional string sourceUrl = 3;
521
- optional string favIconUrl = 4;
522
- }
523
-
524
- message BotPlanningSearchSourcesMetadata {
525
- optional string sourceTitle = 1;
526
- optional BotPlanningSearchSourceProvider provider = 2;
527
- optional string sourceUrl = 3;
528
- enum BotPlanningSearchSourceProvider {
529
- UNKNOWN = 0;
530
- OTHER = 1;
531
- GOOGLE = 2;
532
- BING = 3;
533
- }
534
- }
535
-
536
- message BotPlanningStepSectionMetadata {
537
- optional string sectionTitle = 1;
538
- optional string sectionBody = 2;
539
- repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
540
- }
541
-
542
- enum BotSearchSourceProvider {
543
- UNKNOWN_PROVIDER = 0;
544
- OTHER = 1;
545
- GOOGLE = 2;
546
- BING = 3;
547
- }
548
- enum PlanningStepStatus {
549
- UNKNOWN = 0;
550
- PLANNED = 1;
551
- EXECUTING = 2;
552
- FINISHED = 3;
553
- }
554
- }
555
-
556
- }
557
-
558
- message BotPromotionMessageMetadata {
559
- optional BotPromotionType promotionType = 1;
560
- optional string buttonTitle = 2;
561
- enum BotPromotionType {
562
- UNKNOWN_TYPE = 0;
563
- C50 = 1;
564
136
  }
565
137
  }
566
138
 
567
- message BotPromptSuggestion {
568
- optional string prompt = 1;
569
- optional string promptId = 2;
570
- }
571
-
572
- message BotPromptSuggestions {
573
- repeated BotPromptSuggestion suggestions = 1;
574
- }
575
-
576
- message BotQuotaMetadata {
577
- repeated BotFeatureQuotaMetadata botFeatureQuotaMetadata = 1;
578
- message BotFeatureQuotaMetadata {
579
- optional BotFeatureType featureType = 1;
580
- optional uint32 remainingQuota = 2;
581
- optional uint64 expirationTimestamp = 3;
582
- enum BotFeatureType {
583
- UNKNOWN_FEATURE = 0;
584
- REASONING_FEATURE = 1;
585
- }
586
- }
587
-
588
- }
589
-
590
- message BotReminderMetadata {
591
- optional MessageKey requestMessageKey = 1;
592
- optional ReminderAction action = 2;
593
- optional string name = 3;
594
- optional uint64 nextTriggerTimestamp = 4;
595
- optional ReminderFrequency frequency = 5;
596
- enum ReminderAction {
597
- NOTIFY = 1;
598
- CREATE = 2;
599
- DELETE = 3;
600
- UPDATE = 4;
601
- }
602
- enum ReminderFrequency {
603
- ONCE = 1;
604
- DAILY = 2;
605
- WEEKLY = 3;
606
- BIWEEKLY = 4;
607
- MONTHLY = 5;
608
- }
609
- }
610
-
611
- message BotRenderingMetadata {
612
- repeated Keyword keywords = 1;
613
- message Keyword {
614
- optional string value = 1;
615
- repeated string associatedPrompts = 2;
616
- }
617
-
618
- }
619
-
620
- message BotSessionMetadata {
621
- optional string sessionId = 1;
622
- optional BotSessionSource sessionSource = 2;
623
- }
624
-
625
- enum BotSessionSource {
626
- NONE = 0;
627
- NULL_STATE = 1;
628
- TYPEAHEAD = 2;
629
- USER_INPUT = 3;
630
- EMU_FLASH = 4;
631
- EMU_FLASH_FOLLOWUP = 5;
632
- VOICE = 6;
633
- }
634
- message BotSignatureVerificationMetadata {
635
- repeated BotSignatureVerificationUseCaseProof proofs = 1;
636
- }
637
-
638
- message BotSignatureVerificationUseCaseProof {
639
- optional int32 version = 1;
640
- optional BotSignatureUseCase useCase = 2;
641
- optional bytes signature = 3;
642
- optional bytes certificateChain = 4;
643
- enum BotSignatureUseCase {
644
- WA_BOT_MSG = 0;
645
- }
646
- }
647
-
648
- message BotSourcesMetadata {
649
- repeated BotSourceItem sources = 1;
650
- message BotSourceItem {
651
- optional SourceProvider provider = 1;
652
- optional string thumbnailCdnUrl = 2;
653
- optional string sourceProviderUrl = 3;
654
- optional string sourceQuery = 4;
655
- optional string faviconCdnUrl = 5;
656
- optional uint32 citationNumber = 6;
657
- enum SourceProvider {
658
- UNKNOWN = 0;
659
- BING = 1;
660
- GOOGLE = 2;
661
- SUPPORT = 3;
662
- }
663
- }
664
-
665
- }
666
-
667
139
  message BotSuggestedPromptMetadata {
668
140
  repeated string suggestedPrompts = 1;
669
141
  optional uint32 selectedPromptIndex = 2;
670
- optional BotPromptSuggestions promptSuggestions = 3;
671
- optional string selectedPromptId = 4;
672
142
  }
673
143
 
674
144
  message CallLogRecord {
@@ -736,11 +206,6 @@ message CertChain {
736
206
 
737
207
  }
738
208
 
739
- message ChatLockSettings {
740
- optional bool hideLockedChats = 1;
741
- optional UserPassword secretCode = 2;
742
- }
743
-
744
209
  message ChatRowOpaqueData {
745
210
  optional DraftMessage draftMessage = 1;
746
211
  message DraftMessage {
@@ -780,19 +245,6 @@ message ChatRowOpaqueData {
780
245
 
781
246
  }
782
247
 
783
- message Citation {
784
- required string title = 1;
785
- required string subtitle = 2;
786
- required string cmsId = 3;
787
- required string imageUrl = 4;
788
- }
789
-
790
- message ClientPairingProps {
791
- optional bool isChatDbLidMigrated = 1;
792
- optional bool isSyncdPureLidSession = 2;
793
- optional bool isSyncdSnapshotRecoveryEnabled = 3;
794
- }
795
-
796
248
  message ClientPayload {
797
249
  optional uint64 username = 1;
798
250
  optional bool passive = 3;
@@ -821,13 +273,6 @@ message ClientPayload {
821
273
  optional int32 yearClass = 36;
822
274
  optional int32 memClass = 37;
823
275
  optional InteropData interopData = 38;
824
- optional TrafficAnonymization trafficAnonymization = 40;
825
- optional bool lidDbMigrated = 41;
826
- optional AccountType accountType = 42;
827
- enum AccountType {
828
- DEFAULT = 0;
829
- GUEST = 1;
830
- }
831
276
  enum ConnectReason {
832
277
  PUSH = 0;
833
278
  USER_ACTIVATED = 1;
@@ -863,7 +308,6 @@ message ClientPayload {
863
308
  HARDCODED = 2;
864
309
  OVERRIDE = 3;
865
310
  FALLBACK = 4;
866
- MNS = 5;
867
311
  }
868
312
  }
869
313
 
@@ -886,7 +330,6 @@ message ClientPayload {
886
330
  message InteropData {
887
331
  optional uint64 accountId = 1;
888
332
  optional bytes token = 2;
889
- optional bool enableReadReceipts = 3;
890
333
  }
891
334
 
892
335
  enum Product {
@@ -894,11 +337,6 @@ message ClientPayload {
894
337
  MESSENGER = 1;
895
338
  INTEROP = 2;
896
339
  INTEROP_MSGR = 3;
897
- WHATSAPP_LID = 4;
898
- }
899
- enum TrafficAnonymization {
900
- OFF = 0;
901
- STANDARD = 1;
902
340
  }
903
341
  message UserAgent {
904
342
  optional Platform platform = 1;
@@ -916,7 +354,6 @@ message ClientPayload {
916
354
  optional string deviceBoard = 13;
917
355
  optional string deviceExpId = 14;
918
356
  optional DeviceType deviceType = 15;
919
- optional string deviceModelType = 16;
920
357
  message AppVersion {
921
358
  optional uint32 primary = 1;
922
359
  optional uint32 secondary = 2;
@@ -989,7 +426,6 @@ message ClientPayload {
989
426
  WIN_STORE = 2;
990
427
  DARWIN = 3;
991
428
  WIN32 = 4;
992
- WIN_HYBRID = 5;
993
429
  }
994
430
  message WebdPayload {
995
431
  optional bool usesParticipantInKey = 1;
@@ -1014,21 +450,6 @@ message CommentMetadata {
1014
450
  optional uint32 replyCount = 2;
1015
451
  }
1016
452
 
1017
- message CompanionCommitment {
1018
- optional bytes hash = 1;
1019
- }
1020
-
1021
- message CompanionEphemeralIdentity {
1022
- optional bytes publicKey = 1;
1023
- optional DeviceProps.PlatformType deviceType = 2;
1024
- optional string ref = 3;
1025
- }
1026
-
1027
- message Config {
1028
- map<uint32, Field> field = 1;
1029
- optional uint32 version = 2;
1030
- }
1031
-
1032
453
  message ContextInfo {
1033
454
  optional string stanzaId = 1;
1034
455
  optional string participant = 2;
@@ -1063,21 +484,6 @@ message ContextInfo {
1063
484
  optional string smbClientCampaignId = 45;
1064
485
  optional string smbServerCampaignId = 46;
1065
486
  optional DataSharingContext dataSharingContext = 47;
1066
- optional bool alwaysShowAdAttribution = 48;
1067
- optional FeatureEligibilities featureEligibilities = 49;
1068
- optional string entryPointConversionExternalSource = 50;
1069
- optional string entryPointConversionExternalMedium = 51;
1070
- optional string ctwaSignals = 54;
1071
- optional bytes ctwaPayload = 55;
1072
- optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
1073
- optional StatusAttributionType statusAttributionType = 57;
1074
- optional UrlTrackingMap urlTrackingMap = 58;
1075
- optional PairedMediaType pairedMediaType = 59;
1076
- optional uint32 rankingVersion = 60;
1077
- optional MemberLabel memberLabel = 62;
1078
- optional bool isQuestion = 63;
1079
- optional StatusSourceType statusSourceType = 64;
1080
- repeated StatusAttribution statusAttributions = 65;
1081
487
  message AdReplyInfo {
1082
488
  optional string advertiserName = 1;
1083
489
  optional MediaType mediaType = 2;
@@ -1096,16 +502,6 @@ message ContextInfo {
1096
502
 
1097
503
  message DataSharingContext {
1098
504
  optional bool showMmDisclosure = 1;
1099
- optional string encryptedSignalTokenConsented = 2;
1100
- repeated Parameters parameters = 3;
1101
- message Parameters {
1102
- optional string key = 1;
1103
- optional string stringData = 2;
1104
- optional int64 intData = 3;
1105
- optional float floatData = 4;
1106
- optional ContextInfo.DataSharingContext.Parameters contents = 5;
1107
- }
1108
-
1109
505
  }
1110
506
 
1111
507
  message ExternalAdReplyInfo {
@@ -1123,21 +519,6 @@ message ContextInfo {
1123
519
  optional bool showAdAttribution = 12;
1124
520
  optional string ctwaClid = 13;
1125
521
  optional string ref = 14;
1126
- optional bool clickToWhatsappCall = 15;
1127
- optional bool adContextPreviewDismissed = 16;
1128
- optional string sourceApp = 17;
1129
- optional bool automatedGreetingMessageShown = 18;
1130
- optional string greetingMessageBody = 19;
1131
- optional string ctaPayload = 20;
1132
- optional bool disableNudge = 21;
1133
- optional string originalImageUrl = 22;
1134
- optional string automatedGreetingMessageCtaType = 23;
1135
- optional bool wtwaAdFormat = 24;
1136
- optional AdType adType = 25;
1137
- enum AdType {
1138
- CTWA = 0;
1139
- CAWC = 1;
1140
- }
1141
522
  enum MediaType {
1142
523
  NONE = 0;
1143
524
  IMAGE = 1;
@@ -1145,19 +526,6 @@ message ContextInfo {
1145
526
  }
1146
527
  }
1147
528
 
1148
- message FeatureEligibilities {
1149
- optional bool cannotBeReactedTo = 1;
1150
- optional bool cannotBeRanked = 2;
1151
- optional bool canRequestFeedback = 3;
1152
- optional bool canBeReshared = 4;
1153
- }
1154
-
1155
- message ForwardedAIBotMessageInfo {
1156
- optional string botName = 1;
1157
- optional string botJid = 2;
1158
- optional string creatorName = 3;
1159
- }
1160
-
1161
529
  message ForwardedNewsletterMessageInfo {
1162
530
  optional string newsletterJid = 1;
1163
531
  optional int32 serverMessageId = 2;
@@ -1171,28 +539,6 @@ message ContextInfo {
1171
539
  }
1172
540
  }
1173
541
 
1174
- enum PairedMediaType {
1175
- NOT_PAIRED_MEDIA = 0;
1176
- SD_VIDEO_PARENT = 1;
1177
- HD_VIDEO_CHILD = 2;
1178
- SD_IMAGE_PARENT = 3;
1179
- HD_IMAGE_CHILD = 4;
1180
- MOTION_PHOTO_PARENT = 5;
1181
- MOTION_PHOTO_CHILD = 6;
1182
- }
1183
- enum StatusAttributionType {
1184
- NONE = 0;
1185
- RESHARED_FROM_MENTION = 1;
1186
- RESHARED_FROM_POST = 2;
1187
- }
1188
- enum StatusSourceType {
1189
- IMAGE = 0;
1190
- VIDEO = 1;
1191
- GIF = 2;
1192
- AUDIO = 3;
1193
- TEXT = 4;
1194
- MUSIC_STANDALONE = 5;
1195
- }
1196
542
  message UTMInfo {
1197
543
  optional string utmSource = 1;
1198
544
  optional string utmCampaign = 2;
@@ -1246,14 +592,6 @@ message Conversation {
1246
592
  optional string username = 43;
1247
593
  optional string lidOriginType = 44;
1248
594
  optional uint32 commentsCount = 45;
1249
- optional bool locked = 46;
1250
- optional PrivacySystemMessage systemMessageToInsert = 47;
1251
- optional bool capiCreatedGroup = 48;
1252
- optional string accountLid = 49;
1253
- optional bool limitSharing = 50;
1254
- optional int64 limitSharingSettingTimestamp = 51;
1255
- optional LimitSharing.TriggerType limitSharingTrigger = 52;
1256
- optional bool limitSharingInitiatedByMe = 53;
1257
595
  enum EndOfHistoryTransferType {
1258
596
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1259
597
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
@@ -1261,20 +599,6 @@ message Conversation {
1261
599
  }
1262
600
  }
1263
601
 
1264
- message DeviceCapabilities {
1265
- optional ChatLockSupportLevel chatLockSupportLevel = 1;
1266
- optional LIDMigration lidMigration = 2;
1267
- enum ChatLockSupportLevel {
1268
- NONE = 0;
1269
- MINIMAL = 1;
1270
- FULL = 2;
1271
- }
1272
- message LIDMigration {
1273
- optional uint64 chatDbMigrationTimestamp = 1;
1274
- }
1275
-
1276
- }
1277
-
1278
602
  message DeviceConsistencyCodeMessage {
1279
603
  optional uint32 generation = 1;
1280
604
  optional bytes signature = 2;
@@ -1314,12 +638,6 @@ message DeviceProps {
1314
638
  optional bool supportCallLogHistory = 6;
1315
639
  optional bool supportBotUserAgentChatHistory = 7;
1316
640
  optional bool supportCagReactionsAndPolls = 8;
1317
- optional bool supportBizHostedMsg = 9;
1318
- optional bool supportRecentSyncChunkMessageCountTuning = 10;
1319
- optional bool supportHostedGroupMsg = 11;
1320
- optional bool supportFbidBotChatHistory = 12;
1321
- optional bool supportAddOnHistorySyncMigration = 13;
1322
- optional bool supportMessageAssociation = 14;
1323
641
  }
1324
642
 
1325
643
  enum PlatformType {
@@ -1346,8 +664,6 @@ message DeviceProps {
1346
664
  AR_DEVICE = 20;
1347
665
  UWP = 21;
1348
666
  VR = 22;
1349
- CLOUD_API = 23;
1350
- SMARTGLASSES = 24;
1351
667
  }
1352
668
  }
1353
669
 
@@ -1368,50 +684,14 @@ message DisappearingMode {
1368
684
  ACCOUNT_SETTING = 2;
1369
685
  BULK_CHANGE = 3;
1370
686
  BIZ_SUPPORTS_FB_HOSTING = 4;
1371
- UNKNOWN_GROUPS = 5;
1372
- }
1373
- }
1374
-
1375
- message EmbeddedContent {
1376
- oneof content {
1377
- EmbeddedMessage embeddedMessage = 1;
1378
- EmbeddedMusic embeddedMusic = 2;
1379
687
  }
1380
688
  }
1381
689
 
1382
- message EmbeddedMessage {
1383
- optional string stanzaId = 1;
1384
- optional Message message = 2;
1385
- }
1386
-
1387
- message EmbeddedMusic {
1388
- optional string musicContentMediaId = 1;
1389
- optional string songId = 2;
1390
- optional string author = 3;
1391
- optional string title = 4;
1392
- optional string artworkDirectPath = 5;
1393
- optional bytes artworkSha256 = 6;
1394
- optional bytes artworkEncSha256 = 7;
1395
- optional bytes artworkMediaKey = 11;
1396
- optional string artistAttribution = 8;
1397
- optional bytes countryBlocklist = 9;
1398
- optional bool isExplicit = 10;
1399
- }
1400
-
1401
- message EncryptedPairingRequest {
1402
- optional bytes encryptedPayload = 1;
1403
- optional bytes iv = 2;
1404
- }
1405
-
1406
690
  message EphemeralSetting {
1407
691
  optional sfixed32 duration = 1;
1408
692
  optional sfixed64 timestamp = 2;
1409
693
  }
1410
694
 
1411
- message EventAdditionalMetadata {
1412
- optional bool isStale = 1;
1413
- }
1414
-
1415
695
  message EventResponse {
1416
696
  optional MessageKey eventResponseMessageKey = 1;
1417
697
  optional int64 timestampMs = 2;
@@ -1433,14 +713,6 @@ message ExternalBlobReference {
1433
713
  optional bytes fileEncSha256 = 6;
1434
714
  }
1435
715
 
1436
- message Field {
1437
- optional uint32 minVersion = 1;
1438
- optional uint32 maxVersion = 2;
1439
- optional uint32 notReportableMinVersion = 3;
1440
- optional bool isMessage = 4;
1441
- map<uint32, Field> subfield = 5;
1442
- }
1443
-
1444
716
  message GlobalSettings {
1445
717
  optional WallpaperSettings lightThemeWallpaper = 1;
1446
718
  optional MediaVisibility mediaVisibility = 2;
@@ -1460,8 +732,6 @@ message GlobalSettings {
1460
732
  optional int32 photoQualityMode = 16;
1461
733
  optional NotificationSettings individualNotificationSettings = 17;
1462
734
  optional NotificationSettings groupNotificationSettings = 18;
1463
- optional ChatLockSettings chatLockSettings = 19;
1464
- optional int64 chatDbLidMigrationTimestamp = 20;
1465
735
  }
1466
736
 
1467
737
  message GroupMention {
@@ -1517,9 +787,6 @@ message HistorySync {
1517
787
  repeated CallLogRecord callLogRecords = 13;
1518
788
  optional BotAIWaitListState aiWaitListState = 14;
1519
789
  repeated PhoneNumberToLIDMapping phoneNumberToLidMappings = 15;
1520
- optional string companionMetaNonce = 16;
1521
- optional bytes shareableChatIdentifierEncryptionKey = 17;
1522
- repeated Account accounts = 18;
1523
790
  enum BotAIWaitListState {
1524
791
  IN_WAITLIST = 0;
1525
792
  AI_AVAILABLE = 1;
@@ -1579,18 +846,9 @@ message IdentityKeyPairStructure {
1579
846
  message InteractiveAnnotation {
1580
847
  repeated Point polygonVertices = 1;
1581
848
  optional bool shouldSkipConfirmation = 4;
1582
- optional EmbeddedContent embeddedContent = 5;
1583
- optional StatusLinkType statusLinkType = 8;
1584
849
  oneof action {
1585
850
  Location location = 2;
1586
851
  ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
1587
- bool embeddedAction = 6;
1588
- TapLinkAction tapAction = 7;
1589
- }
1590
- enum StatusLinkType {
1591
- RASTERIZED_LINK_PREVIEW = 1;
1592
- RASTERIZED_LINK_TRUNCATED = 2;
1593
- RASTERIZED_LINK_FULL_URL = 3;
1594
852
  }
1595
853
  }
1596
854
 
@@ -1620,39 +878,6 @@ message KeyId {
1620
878
  optional bytes id = 1;
1621
879
  }
1622
880
 
1623
- message LIDMigrationMapping {
1624
- required uint64 pn = 1;
1625
- required uint64 assignedLid = 2;
1626
- optional uint64 latestLid = 3;
1627
- }
1628
-
1629
- message LIDMigrationMappingSyncMessage {
1630
- optional bytes encodedMappingPayload = 1;
1631
- }
1632
-
1633
- message LIDMigrationMappingSyncPayload {
1634
- repeated LIDMigrationMapping pnToLidMappings = 1;
1635
- optional uint64 chatDbMigrationTimestamp = 2;
1636
- }
1637
-
1638
- message LegacyMessage {
1639
- optional Message.EventResponseMessage eventResponseMessage = 1;
1640
- optional Message.PollVoteMessage pollVote = 2;
1641
- }
1642
-
1643
- message LimitSharing {
1644
- optional bool sharingLimited = 1;
1645
- optional TriggerType trigger = 2;
1646
- optional int64 limitSharingSettingTimestamp = 3;
1647
- optional bool initiatedByMe = 4;
1648
- enum TriggerType {
1649
- UNKNOWN = 0;
1650
- CHAT_SETTING = 1;
1651
- BIZ_SUPPORTS_FB_HOSTING = 2;
1652
- UNKNOWN_GROUP = 3;
1653
- }
1654
- }
1655
-
1656
881
  message LocalizedName {
1657
882
  optional string lg = 1;
1658
883
  optional string lc = 2;
@@ -1669,6 +894,38 @@ message MediaData {
1669
894
  optional string localPath = 1;
1670
895
  }
1671
896
 
897
+ message MediaEntry {
898
+ optional bytes fileSha256 = 1;
899
+ optional bytes mediaKey = 2;
900
+ optional bytes fileEncSha256 = 3;
901
+ optional string directPath = 4;
902
+ optional int64 mediaKeyTimestamp = 5;
903
+ optional string serverMediaType = 6;
904
+ optional bytes uploadToken = 7;
905
+ optional bytes validatedTimestamp = 8;
906
+ optional bytes sidecar = 9;
907
+ optional string objectId = 10;
908
+ optional string fbid = 11;
909
+ optional DownloadableThumbnail downloadableThumbnail = 12;
910
+ optional string handle = 13;
911
+ optional string filename = 14;
912
+ optional ProgressiveJpegDetails progressiveJpegDetails = 15;
913
+ message DownloadableThumbnail {
914
+ optional bytes fileSha256 = 1;
915
+ optional bytes fileEncSha256 = 2;
916
+ optional string directPath = 3;
917
+ optional bytes mediaKey = 4;
918
+ optional int64 mediaKeyTimestamp = 5;
919
+ optional string objectId = 6;
920
+ }
921
+
922
+ message ProgressiveJpegDetails {
923
+ repeated int64 scanLengths = 1;
924
+ optional bytes sidecar = 2;
925
+ }
926
+
927
+ }
928
+
1672
929
  message MediaNotifyMessage {
1673
930
  optional string expressPathUrl = 1;
1674
931
  optional bytes fileEncSha256 = 2;
@@ -1679,7 +936,6 @@ message MediaRetryNotification {
1679
936
  optional string stanzaId = 1;
1680
937
  optional string directPath = 2;
1681
938
  optional ResultType result = 3;
1682
- optional bytes messageSecret = 4;
1683
939
  enum ResultType {
1684
940
  GENERAL_ERROR = 0;
1685
941
  SUCCESS = 1;
@@ -1693,11 +949,6 @@ enum MediaVisibility {
1693
949
  OFF = 1;
1694
950
  ON = 2;
1695
951
  }
1696
- message MemberLabel {
1697
- optional string label = 1;
1698
- optional int64 labelTimestamp = 2;
1699
- }
1700
-
1701
952
  message Message {
1702
953
  optional string conversation = 1;
1703
954
  optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
@@ -1758,41 +1009,16 @@ message Message {
1758
1009
  optional FutureProofMessage botInvokeMessage = 67;
1759
1010
  optional CallLogMessage callLogMesssage = 69;
1760
1011
  optional MessageHistoryBundle messageHistoryBundle = 70;
1012
+ optional FutureProofMessage groupStatusMessageV2 = 103;
1761
1013
  optional EncCommentMessage encCommentMessage = 71;
1762
1014
  optional BCallMessage bcallMessage = 72;
1763
1015
  optional FutureProofMessage lottieStickerMessage = 74;
1764
1016
  optional EventMessage eventMessage = 75;
1765
- optional EncEventResponseMessage encEventResponseMessage = 76;
1766
1017
  optional CommentMessage commentMessage = 77;
1767
1018
  optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
1019
+ optional ExtendedTextMessageWithParentKey extendedTextMessageWithParentKey = 79;
1768
1020
  optional PlaceholderMessage placeholderMessage = 80;
1769
- optional SecretEncryptedMessage secretEncryptedMessage = 82;
1770
- optional AlbumMessage albumMessage = 83;
1771
- optional FutureProofMessage eventCoverImage = 85;
1772
- optional StickerPackMessage stickerPackMessage = 86;
1773
- optional FutureProofMessage statusMentionMessage = 87;
1774
- optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
1775
- optional FutureProofMessage pollCreationOptionImageMessage = 90;
1776
- optional FutureProofMessage associatedChildMessage = 91;
1777
- optional FutureProofMessage groupStatusMentionMessage = 92;
1778
- optional FutureProofMessage pollCreationMessageV4 = 93;
1779
- optional FutureProofMessage pollCreationMessageV5 = 94;
1780
- optional FutureProofMessage statusAddYours = 95;
1781
- optional FutureProofMessage groupStatusMessage = 96;
1782
- optional AIRichResponseMessage richResponseMessage = 97;
1783
- optional StatusNotificationMessage statusNotificationMessage = 98;
1784
- optional FutureProofMessage limitSharingMessage = 99;
1785
- optional FutureProofMessage botTaskMessage = 100;
1786
- optional FutureProofMessage questionMessage = 101;
1787
- optional MessageHistoryNotice messageHistoryNotice = 102;
1788
- optional FutureProofMessage groupStatusMessageV2 = 103;
1789
- optional FutureProofMessage botForwardedMessage = 104;
1790
- message AlbumMessage {
1791
- optional uint32 expectedImageCount = 2;
1792
- optional uint32 expectedVideoCount = 3;
1793
- optional ContextInfo contextInfo = 17;
1794
- }
1795
-
1021
+ optional EncEventUpdateMessage encEventUpdateMessage = 81;
1796
1022
  message AppStateFatalExceptionNotification {
1797
1023
  repeated string collectionNames = 1;
1798
1024
  optional int64 timestamp = 2;
@@ -1843,7 +1069,6 @@ message Message {
1843
1069
  optional bytes waveform = 19;
1844
1070
  optional fixed32 backgroundArgb = 20;
1845
1071
  optional bool viewOnce = 21;
1846
- optional string accessibilityLabel = 22;
1847
1072
  }
1848
1073
 
1849
1074
  message BCallMessage {
@@ -1864,7 +1089,6 @@ message Message {
1864
1089
  optional string text = 3;
1865
1090
  optional uint64 kindNegative = 4;
1866
1091
  optional uint64 kindPositive = 5;
1867
- optional ReportKind kindReport = 6;
1868
1092
  enum BotFeedbackKind {
1869
1093
  BOT_FEEDBACK_POSITIVE = 0;
1870
1094
  BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
@@ -1876,11 +1100,6 @@ message Message {
1876
1100
  BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
1877
1101
  BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
1878
1102
  BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
1879
- BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
1880
- BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
1881
- BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
1882
- BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
1883
- BOT_FEEDBACK_NEGATIVE = 14;
1884
1103
  }
1885
1104
  enum BotFeedbackKindMultipleNegative {
1886
1105
  BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
@@ -1896,10 +1115,6 @@ message Message {
1896
1115
  enum BotFeedbackKindMultiplePositive {
1897
1116
  BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1898
1117
  }
1899
- enum ReportKind {
1900
- NONE = 0;
1901
- GENERIC = 1;
1902
- }
1903
1118
  }
1904
1119
 
1905
1120
  message ButtonsMessage {
@@ -1965,9 +1180,6 @@ message Message {
1965
1180
  optional string conversionSource = 2;
1966
1181
  optional bytes conversionData = 3;
1967
1182
  optional uint32 conversionDelaySeconds = 4;
1968
- optional string ctwaSignals = 5;
1969
- optional bytes ctwaPayload = 6;
1970
- optional ContextInfo contextInfo = 7;
1971
1183
  }
1972
1184
 
1973
1185
  message CallLogMessage {
@@ -2007,24 +1219,6 @@ message Message {
2007
1219
  optional string id = 2;
2008
1220
  }
2009
1221
 
2010
- message CloudAPIThreadControlNotification {
2011
- optional CloudAPIThreadControl status = 1;
2012
- optional int64 senderNotificationTimestampMs = 2;
2013
- optional string consumerLid = 3;
2014
- optional string consumerPhoneNumber = 4;
2015
- optional CloudAPIThreadControlNotificationContent notificationContent = 5;
2016
- enum CloudAPIThreadControl {
2017
- UNKNOWN = 0;
2018
- CONTROL_PASSED = 1;
2019
- CONTROL_TAKEN = 2;
2020
- }
2021
- message CloudAPIThreadControlNotificationContent {
2022
- optional string handoffNotificationText = 1;
2023
- optional string extraJson = 2;
2024
- }
2025
-
2026
- }
2027
-
2028
1222
  message CommentMessage {
2029
1223
  optional Message message = 1;
2030
1224
  optional MessageKey targetMessageKey = 2;
@@ -2073,7 +1267,6 @@ message Message {
2073
1267
  optional uint32 thumbnailHeight = 18;
2074
1268
  optional uint32 thumbnailWidth = 19;
2075
1269
  optional string caption = 20;
2076
- optional string accessibilityLabel = 21;
2077
1270
  }
2078
1271
 
2079
1272
  message EncCommentMessage {
@@ -2082,7 +1275,7 @@ message Message {
2082
1275
  optional bytes encIv = 3;
2083
1276
  }
2084
1277
 
2085
- message EncEventResponseMessage {
1278
+ message EncEventUpdateMessage {
2086
1279
  optional MessageKey eventCreationMessageKey = 1;
2087
1280
  optional bytes encPayload = 2;
2088
1281
  optional bytes encIv = 3;
@@ -2094,6 +1287,11 @@ message Message {
2094
1287
  optional bytes encIv = 3;
2095
1288
  }
2096
1289
 
1290
+ message EventEditMessage {
1291
+ optional Message.EventMessage eventEditMessage = 1;
1292
+ optional int64 editTimestampMs = 2;
1293
+ }
1294
+
2097
1295
  message EventMessage {
2098
1296
  optional ContextInfo contextInfo = 1;
2099
1297
  optional bool isCanceled = 2;
@@ -2102,26 +1300,27 @@ message Message {
2102
1300
  optional Message.LocationMessage location = 5;
2103
1301
  optional string joinLink = 6;
2104
1302
  optional int64 startTime = 7;
2105
- optional int64 endTime = 8;
2106
- optional bool extraGuestsAllowed = 9;
2107
- optional bool isScheduleCall = 10;
2108
1303
  }
2109
1304
 
2110
1305
  message EventResponseMessage {
2111
1306
  optional EventResponseType response = 1;
2112
1307
  optional int64 timestampMs = 2;
2113
- optional int32 extraGuestCount = 3;
2114
1308
  enum EventResponseType {
2115
1309
  UNKNOWN = 0;
2116
1310
  GOING = 1;
2117
1311
  NOT_GOING = 2;
2118
- MAYBE = 3;
2119
1312
  }
2120
1313
  }
2121
1314
 
1315
+ message EventUpdateMessage {
1316
+ optional Message.EventResponseMessage response = 1;
1317
+ optional Message.EventEditMessage edit = 2;
1318
+ }
1319
+
2122
1320
  message ExtendedTextMessage {
2123
1321
  optional string text = 1;
2124
1322
  optional string matchedText = 2;
1323
+ optional string canonicalUrl = 4;
2125
1324
  optional string description = 5;
2126
1325
  optional string title = 6;
2127
1326
  optional fixed32 textArgb = 7;
@@ -2143,11 +1342,6 @@ message Message {
2143
1342
  optional bytes inviteLinkParentGroupThumbnailV2 = 28;
2144
1343
  optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
2145
1344
  optional bool viewOnce = 30;
2146
- optional uint32 videoHeight = 31;
2147
- optional uint32 videoWidth = 32;
2148
- optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
2149
- optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
2150
- optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
2151
1345
  enum FontType {
2152
1346
  SYSTEM = 0;
2153
1347
  SYSTEM_TEXT = 1;
@@ -2169,13 +1363,12 @@ message Message {
2169
1363
  VIDEO = 1;
2170
1364
  PLACEHOLDER = 4;
2171
1365
  IMAGE = 5;
2172
- PAYMENT_LINKS = 6;
2173
- PROFILE = 7;
2174
1366
  }
2175
1367
  }
2176
1368
 
2177
- message FullHistorySyncOnDemandRequestMetadata {
2178
- optional string requestId = 1;
1369
+ message ExtendedTextMessageWithParentKey {
1370
+ optional MessageKey key = 1;
1371
+ optional Message.ExtendedTextMessage extendedTextMessage = 2;
2179
1372
  }
2180
1373
 
2181
1374
  message FutureProofMessage {
@@ -2269,8 +1462,6 @@ message Message {
2269
1462
  optional int64 oldestMsgInChunkTimestampSec = 10;
2270
1463
  optional bytes initialHistBootstrapInlinePayload = 11;
2271
1464
  optional string peerDataRequestSessionId = 12;
2272
- optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
2273
- optional string encHandle = 14;
2274
1465
  enum HistorySyncType {
2275
1466
  INITIAL_BOOTSTRAP = 0;
2276
1467
  INITIAL_STATUS_V3 = 1;
@@ -2279,7 +1470,6 @@ message Message {
2279
1470
  PUSH_NAME = 4;
2280
1471
  NON_BLOCKING_DATA = 5;
2281
1472
  ON_DEMAND = 6;
2282
- NO_HISTORY = 7;
2283
1473
  }
2284
1474
  }
2285
1475
 
@@ -2311,14 +1501,6 @@ message Message {
2311
1501
  optional bytes thumbnailEncSha256 = 28;
2312
1502
  optional string staticUrl = 29;
2313
1503
  repeated InteractiveAnnotation annotations = 30;
2314
- optional ImageSourceType imageSourceType = 31;
2315
- optional string accessibilityLabel = 32;
2316
- enum ImageSourceType {
2317
- USER_IMAGE = 0;
2318
- AI_GENERATED = 1;
2319
- AI_MODIFIED = 2;
2320
- RASTERIZED_TEXT_STATUS = 3;
2321
- }
2322
1504
  }
2323
1505
 
2324
1506
  message InitialSecurityNotificationSettingSync {
@@ -2330,7 +1512,6 @@ message Message {
2330
1512
  optional Body body = 2;
2331
1513
  optional Footer footer = 3;
2332
1514
  optional ContextInfo contextInfo = 15;
2333
- optional UrlTrackingMap urlTrackingMap = 16;
2334
1515
  oneof interactiveMessage {
2335
1516
  Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
2336
1517
  Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
@@ -2366,7 +1547,6 @@ message Message {
2366
1547
  bytes jpegThumbnail = 6;
2367
1548
  Message.VideoMessage videoMessage = 7;
2368
1549
  Message.LocationMessage locationMessage = 8;
2369
- Message.ProductMessage productMessage = 9;
2370
1550
  }
2371
1551
  }
2372
1552
 
@@ -2441,22 +1621,6 @@ message Message {
2441
1621
  optional int64 timestampMs = 3;
2442
1622
  }
2443
1623
 
2444
- message LinkPreviewMetadata {
2445
- optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
2446
- optional Message.URLMetadata urlMetadata = 2;
2447
- optional uint32 fbExperimentId = 3;
2448
- optional uint32 linkMediaDuration = 4;
2449
- optional SocialMediaPostType socialMediaPostType = 5;
2450
- enum SocialMediaPostType {
2451
- NONE = 0;
2452
- REEL = 1;
2453
- LIVE_VIDEO = 2;
2454
- LONG_VIDEO = 3;
2455
- SINGLE_IMAGE = 4;
2456
- CAROUSEL = 5;
2457
- }
2458
- }
2459
-
2460
1624
  message ListMessage {
2461
1625
  optional string title = 1;
2462
1626
  optional string description = 2;
@@ -2548,36 +1712,15 @@ message Message {
2548
1712
  optional ContextInfo contextInfo = 17;
2549
1713
  }
2550
1714
 
2551
- message MMSThumbnailMetadata {
2552
- optional string thumbnailDirectPath = 1;
2553
- optional bytes thumbnailSha256 = 2;
2554
- optional bytes thumbnailEncSha256 = 3;
2555
- optional bytes mediaKey = 4;
2556
- optional int64 mediaKeyTimestamp = 5;
2557
- optional uint32 thumbnailHeight = 6;
2558
- optional uint32 thumbnailWidth = 7;
2559
- }
2560
-
2561
1715
  message MessageHistoryBundle {
2562
- optional string mimetype = 1;
2563
- optional bytes fileSha256 = 2;
2564
- optional bytes mediaKey = 3;
2565
- optional bytes fileEncSha256 = 4;
2566
- optional string directPath = 5;
2567
- optional int64 mediaKeyTimestamp = 6;
2568
- optional ContextInfo contextInfo = 7;
2569
- optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
2570
- }
2571
-
2572
- message MessageHistoryMetadata {
2573
- repeated string historyReceivers = 1;
2574
- optional int64 firstMessageTimestamp = 2;
2575
- optional int64 messageCount = 3;
2576
- }
2577
-
2578
- message MessageHistoryNotice {
2579
- optional ContextInfo contextInfo = 1;
2580
- optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
1716
+ optional string mimetype = 2;
1717
+ optional bytes fileSha256 = 3;
1718
+ optional bytes mediaKey = 5;
1719
+ optional bytes fileEncSha256 = 6;
1720
+ optional string directPath = 7;
1721
+ optional int64 mediaKeyTimestamp = 8;
1722
+ optional ContextInfo contextInfo = 9;
1723
+ repeated string participants = 10;
2581
1724
  }
2582
1725
 
2583
1726
  message NewsletterAdminInviteMessage {
@@ -2586,7 +1729,6 @@ message Message {
2586
1729
  optional bytes jpegThumbnail = 3;
2587
1730
  optional string caption = 4;
2588
1731
  optional int64 inviteExpiration = 5;
2589
- optional ContextInfo contextInfo = 6;
2590
1732
  }
2591
1733
 
2592
1734
  message OrderMessage {
@@ -2604,7 +1746,6 @@ message Message {
2604
1746
  optional ContextInfo contextInfo = 17;
2605
1747
  optional int32 messageVersion = 12;
2606
1748
  optional MessageKey orderRequestMessageId = 13;
2607
- optional string catalogType = 15;
2608
1749
  enum OrderStatus {
2609
1750
  INQUIRY = 1;
2610
1751
  ACCEPTED = 2;
@@ -2626,48 +1767,18 @@ message Message {
2626
1767
  }
2627
1768
  }
2628
1769
 
2629
- message PaymentLinkMetadata {
2630
- optional PaymentLinkButton button = 1;
2631
- optional PaymentLinkHeader header = 2;
2632
- optional PaymentLinkProvider provider = 3;
2633
- message PaymentLinkButton {
2634
- optional string displayText = 1;
2635
- }
2636
-
2637
- message PaymentLinkHeader {
2638
- optional PaymentLinkHeaderType headerType = 1;
2639
- enum PaymentLinkHeaderType {
2640
- LINK_PREVIEW = 0;
2641
- ORDER = 1;
2642
- }
2643
- }
2644
-
2645
- message PaymentLinkProvider {
2646
- optional string paramsJson = 1;
2647
- }
2648
-
2649
- }
2650
-
2651
1770
  message PeerDataOperationRequestMessage {
2652
1771
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
2653
1772
  repeated RequestStickerReupload requestStickerReupload = 2;
2654
1773
  repeated RequestUrlPreview requestUrlPreview = 3;
2655
1774
  optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
2656
1775
  repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
2657
- optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
2658
- optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
2659
- message FullHistorySyncOnDemandRequest {
2660
- optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2661
- optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
2662
- }
2663
-
2664
1776
  message HistorySyncOnDemandRequest {
2665
1777
  optional string chatJid = 1;
2666
1778
  optional string oldestMsgId = 2;
2667
1779
  optional bool oldestMsgFromMe = 3;
2668
1780
  optional int32 onDemandMsgCount = 4;
2669
1781
  optional int64 oldestMsgTimestampMs = 5;
2670
- optional string accountLid = 6;
2671
1782
  }
2672
1783
 
2673
1784
  message PlaceholderMessageResendRequest {
@@ -2683,11 +1794,6 @@ message Message {
2683
1794
  optional bool includeHqThumbnail = 2;
2684
1795
  }
2685
1796
 
2686
- message SyncDCollectionFatalRecoveryRequest {
2687
- optional string collectionName = 1;
2688
- optional int64 timestamp = 2;
2689
- }
2690
-
2691
1797
  }
2692
1798
 
2693
1799
  message PeerDataOperationRequestResponseMessage {
@@ -2699,38 +1805,12 @@ message Message {
2699
1805
  optional Message.StickerMessage stickerMessage = 2;
2700
1806
  optional LinkPreviewResponse linkPreviewResponse = 3;
2701
1807
  optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
2702
- optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
2703
- optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
2704
- optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
2705
- optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
2706
- optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
2707
- message CompanionCanonicalUserNonceFetchResponse {
2708
- optional string nonce = 1;
2709
- }
2710
-
2711
- message CompanionMetaNonceFetchResponse {
2712
- optional string nonce = 1;
2713
- }
2714
-
2715
- message FullHistorySyncOnDemandRequestResponse {
2716
- optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2717
- optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
2718
- }
2719
-
2720
- enum FullHistorySyncOnDemandResponseCode {
2721
- REQUEST_SUCCESS = 0;
2722
- REQUEST_TIME_EXPIRED = 1;
2723
- DECLINED_SHARING_HISTORY = 2;
2724
- GENERIC_ERROR = 3;
2725
- ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
2726
- ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
2727
- ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
2728
- }
2729
1808
  message LinkPreviewResponse {
2730
1809
  optional string url = 1;
2731
1810
  optional string title = 2;
2732
1811
  optional string description = 3;
2733
1812
  optional bytes thumbData = 4;
1813
+ optional string canonicalUrl = 5;
2734
1814
  optional string matchText = 6;
2735
1815
  optional string previewType = 7;
2736
1816
  optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
@@ -2750,16 +1830,6 @@ message Message {
2750
1830
  optional bytes webMessageInfoBytes = 1;
2751
1831
  }
2752
1832
 
2753
- message SyncDSnapshotFatalRecoveryResponse {
2754
- optional bytes collectionSnapshot = 1;
2755
- optional bool isCompressed = 2;
2756
- }
2757
-
2758
- message WaffleNonceFetchResponse {
2759
- optional string nonce = 1;
2760
- optional string waEntFbid = 2;
2761
- }
2762
-
2763
1833
  }
2764
1834
 
2765
1835
  }
@@ -2770,11 +1840,6 @@ message Message {
2770
1840
  GENERATE_LINK_PREVIEW = 2;
2771
1841
  HISTORY_SYNC_ON_DEMAND = 3;
2772
1842
  PLACEHOLDER_MESSAGE_RESEND = 4;
2773
- WAFFLE_LINKING_NONCE_FETCH = 5;
2774
- FULL_HISTORY_SYNC_ON_DEMAND = 6;
2775
- COMPANION_META_NONCE_FETCH = 7;
2776
- COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
2777
- COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
2778
1843
  }
2779
1844
  message PinInChatMessage {
2780
1845
  optional MessageKey key = 1;
@@ -2794,29 +1859,16 @@ message Message {
2794
1859
  }
2795
1860
  }
2796
1861
 
2797
- enum PollContentType {
2798
- UNKNOWN = 0;
2799
- TEXT = 1;
2800
- IMAGE = 2;
2801
- }
2802
1862
  message PollCreationMessage {
2803
1863
  optional bytes encKey = 1;
2804
1864
  optional string name = 2;
2805
1865
  repeated Option options = 3;
2806
1866
  optional uint32 selectableOptionsCount = 4;
2807
1867
  optional ContextInfo contextInfo = 5;
2808
- optional Message.PollContentType pollContentType = 6;
2809
- optional PollType pollType = 7;
2810
- optional Option correctAnswer = 8;
2811
1868
  message Option {
2812
1869
  optional string optionName = 1;
2813
- optional string optionHash = 2;
2814
1870
  }
2815
1871
 
2816
- enum PollType {
2817
- POLL = 0;
2818
- QUIZ = 1;
2819
- }
2820
1872
  }
2821
1873
 
2822
1874
  message PollEncValue {
@@ -2824,17 +1876,6 @@ message Message {
2824
1876
  optional bytes encIv = 2;
2825
1877
  }
2826
1878
 
2827
- message PollResultSnapshotMessage {
2828
- optional string name = 1;
2829
- repeated PollVote pollVotes = 2;
2830
- optional ContextInfo contextInfo = 3;
2831
- message PollVote {
2832
- optional string optionName = 1;
2833
- optional int64 optionVoteCount = 2;
2834
- }
2835
-
2836
- }
2837
-
2838
1879
  message PollUpdateMessage {
2839
1880
  optional MessageKey pollCreationMessageKey = 1;
2840
1881
  optional Message.PollEncValue vote = 2;
@@ -2874,7 +1915,6 @@ message Message {
2874
1915
  optional uint32 productImageCount = 9;
2875
1916
  optional string firstImageId = 11;
2876
1917
  optional int64 salePriceAmount1000 = 12;
2877
- optional string signedUrl = 13;
2878
1918
  }
2879
1919
 
2880
1920
  }
@@ -2898,12 +1938,6 @@ message Message {
2898
1938
  optional string invokerJid = 19;
2899
1939
  optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
2900
1940
  optional MediaNotifyMessage mediaNotifyMessage = 21;
2901
- optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
2902
- optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
2903
- optional LimitSharing limitSharing = 24;
2904
- optional bytes aiPsiMetadata = 25;
2905
- optional AIQueryFanout aiQueryFanout = 26;
2906
- optional MemberLabel memberLabel = 27;
2907
1941
  enum Type {
2908
1942
  REVOKE = 0;
2909
1943
  EPHEMERAL_SETTING = 3;
@@ -2921,16 +1955,6 @@ message Message {
2921
1955
  REQUEST_WELCOME_MESSAGE = 18;
2922
1956
  BOT_FEEDBACK_MESSAGE = 19;
2923
1957
  MEDIA_NOTIFY_MESSAGE = 20;
2924
- CLOUD_API_THREAD_CONTROL_NOTIFICATION = 21;
2925
- LID_MIGRATION_MAPPING_SYNC = 22;
2926
- REMINDER_MESSAGE = 23;
2927
- BOT_MEMU_ONBOARDING_MESSAGE = 24;
2928
- STATUS_MENTION_MESSAGE = 25;
2929
- STOP_GENERATION_MESSAGE = 26;
2930
- LIMIT_SHARING = 27;
2931
- AI_PSI_METADATA = 28;
2932
- AI_QUERY_FANOUT = 29;
2933
- GROUP_MEMBER_LABEL_CHANGE = 30;
2934
1958
  }
2935
1959
  }
2936
1960
 
@@ -2983,18 +2007,6 @@ message Message {
2983
2007
  }
2984
2008
  }
2985
2009
 
2986
- message SecretEncryptedMessage {
2987
- optional MessageKey targetMessageKey = 1;
2988
- optional bytes encPayload = 2;
2989
- optional bytes encIv = 3;
2990
- optional SecretEncType secretEncType = 4;
2991
- enum SecretEncType {
2992
- UNKNOWN = 0;
2993
- EVENT_EDIT = 1;
2994
- MESSAGE_EDIT = 2;
2995
- }
2996
- }
2997
-
2998
2010
  message SendPaymentMessage {
2999
2011
  optional Message noteMessage = 2;
3000
2012
  optional MessageKey requestMessageKey = 3;
@@ -3006,17 +2018,6 @@ message Message {
3006
2018
  optional bytes axolotlSenderKeyDistributionMessage = 2;
3007
2019
  }
3008
2020
 
3009
- message StatusNotificationMessage {
3010
- optional MessageKey responseMessageKey = 1;
3011
- optional MessageKey originalMessageKey = 2;
3012
- optional StatusNotificationType type = 3;
3013
- enum StatusNotificationType {
3014
- UNKNOWN = 0;
3015
- STATUS_ADD_YOURS = 1;
3016
- STATUS_RESHARE = 2;
3017
- }
3018
- }
3019
-
3020
2021
  message StickerMessage {
3021
2022
  optional string url = 1;
3022
2023
  optional bytes fileSha256 = 2;
@@ -3037,46 +2038,6 @@ message Message {
3037
2038
  optional bool isAvatar = 19;
3038
2039
  optional bool isAiSticker = 20;
3039
2040
  optional bool isLottie = 21;
3040
- optional string accessibilityLabel = 22;
3041
- }
3042
-
3043
- message StickerPackMessage {
3044
- optional string stickerPackId = 1;
3045
- optional string name = 2;
3046
- optional string publisher = 3;
3047
- repeated Sticker stickers = 4;
3048
- optional uint64 fileLength = 5;
3049
- optional bytes fileSha256 = 6;
3050
- optional bytes fileEncSha256 = 7;
3051
- optional bytes mediaKey = 8;
3052
- optional string directPath = 9;
3053
- optional string caption = 10;
3054
- optional ContextInfo contextInfo = 11;
3055
- optional string packDescription = 12;
3056
- optional int64 mediaKeyTimestamp = 13;
3057
- optional string trayIconFileName = 14;
3058
- optional string thumbnailDirectPath = 15;
3059
- optional bytes thumbnailSha256 = 16;
3060
- optional bytes thumbnailEncSha256 = 17;
3061
- optional uint32 thumbnailHeight = 18;
3062
- optional uint32 thumbnailWidth = 19;
3063
- optional string imageDataHash = 20;
3064
- optional uint64 stickerPackSize = 21;
3065
- optional StickerPackOrigin stickerPackOrigin = 22;
3066
- message Sticker {
3067
- optional string fileName = 1;
3068
- optional bool isAnimated = 2;
3069
- repeated string emojis = 3;
3070
- optional string accessibilityLabel = 4;
3071
- optional bool isLottie = 5;
3072
- optional string mimetype = 6;
3073
- }
3074
-
3075
- enum StickerPackOrigin {
3076
- FIRST_PARTY = 0;
3077
- THIRD_PARTY = 1;
3078
- USER_CREATED = 2;
3079
- }
3080
2041
  }
3081
2042
 
3082
2043
  message StickerSyncRMRMessage {
@@ -3132,10 +2093,6 @@ message Message {
3132
2093
 
3133
2094
  }
3134
2095
 
3135
- message URLMetadata {
3136
- optional uint32 fbExperimentId = 1;
3137
- }
3138
-
3139
2096
  message VideoMessage {
3140
2097
  optional string url = 1;
3141
2098
  optional string mimetype = 2;
@@ -3161,70 +2118,17 @@ message Message {
3161
2118
  optional bytes thumbnailEncSha256 = 23;
3162
2119
  optional string staticUrl = 24;
3163
2120
  repeated InteractiveAnnotation annotations = 25;
3164
- optional string accessibilityLabel = 26;
3165
- repeated ProcessedVideo processedVideos = 27;
3166
- optional uint32 externalShareFullVideoDurationInSeconds = 28;
3167
- optional uint64 motionPhotoPresentationOffsetMs = 29;
3168
- optional string metadataUrl = 30;
3169
- optional VideoSourceType videoSourceType = 31;
3170
2121
  enum Attribution {
3171
2122
  NONE = 0;
3172
2123
  GIPHY = 1;
3173
2124
  TENOR = 2;
3174
2125
  }
3175
- enum VideoSourceType {
3176
- USER_VIDEO = 0;
3177
- AI_GENERATED = 1;
3178
- }
3179
2126
  }
3180
2127
 
3181
2128
  }
3182
2129
 
3183
- message MessageAddOn {
3184
- optional MessageAddOnType messageAddOnType = 1;
3185
- optional Message messageAddOn = 2;
3186
- optional int64 senderTimestampMs = 3;
3187
- optional int64 serverTimestampMs = 4;
3188
- optional WebMessageInfo.Status status = 5;
3189
- optional MessageAddOnContextInfo addOnContextInfo = 6;
3190
- optional MessageKey messageAddOnKey = 7;
3191
- optional LegacyMessage legacyMessage = 8;
3192
- enum MessageAddOnType {
3193
- UNDEFINED = 0;
3194
- REACTION = 1;
3195
- EVENT_RESPONSE = 2;
3196
- POLL_UPDATE = 3;
3197
- PIN_IN_CHAT = 4;
3198
- }
3199
- }
3200
-
3201
2130
  message MessageAddOnContextInfo {
3202
2131
  optional uint32 messageAddOnDurationInSecs = 1;
3203
- optional MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 2;
3204
- }
3205
-
3206
- message MessageAssociation {
3207
- optional AssociationType associationType = 1;
3208
- optional MessageKey parentMessageKey = 2;
3209
- optional int32 messageIndex = 3;
3210
- enum AssociationType {
3211
- UNKNOWN = 0;
3212
- MEDIA_ALBUM = 1;
3213
- BOT_PLUGIN = 2;
3214
- EVENT_COVER_IMAGE = 3;
3215
- STATUS_POLL = 4;
3216
- HD_VIDEO_DUAL_UPLOAD = 5;
3217
- STATUS_EXTERNAL_RESHARE = 6;
3218
- MEDIA_POLL = 7;
3219
- STATUS_ADD_YOURS = 8;
3220
- STATUS_NOTIFICATION = 9;
3221
- HD_IMAGE_DUAL_UPLOAD = 10;
3222
- STICKER_ANNOTATION = 11;
3223
- MOTION_PHOTO = 12;
3224
- STATUS_LINK_ACTION = 13;
3225
- VIEW_ALL_REPLIES = 14;
3226
- STATUS_ADD_YOURS_AI_IMAGINE = 15;
3227
- }
3228
2132
  }
3229
2133
 
3230
2134
  message MessageContextInfo {
@@ -3236,17 +2140,6 @@ message MessageContextInfo {
3236
2140
  optional bytes botMessageSecret = 6;
3237
2141
  optional BotMetadata botMetadata = 7;
3238
2142
  optional int32 reportingTokenVersion = 8;
3239
- optional MessageAddonExpiryType messageAddOnExpiryType = 9;
3240
- optional MessageAssociation messageAssociation = 10;
3241
- optional bool capiCreatedGroup = 11;
3242
- optional string supportPayload = 12;
3243
- optional LimitSharing limitSharing = 13;
3244
- optional LimitSharing limitSharingV2 = 14;
3245
- repeated ThreadID threadId = 15;
3246
- enum MessageAddonExpiryType {
3247
- STATIC = 1;
3248
- DEPENDENT_ON_PARENT = 2;
3249
- }
3250
2143
  }
3251
2144
 
3252
2145
  message MessageKey {
@@ -3276,6 +2169,7 @@ message MsgOpaqueData {
3276
2169
  optional double lat = 7;
3277
2170
  optional int32 paymentAmount1000 = 8;
3278
2171
  optional string paymentNoteMsgBody = 9;
2172
+ optional string canonicalUrl = 10;
3279
2173
  optional string matchedText = 11;
3280
2174
  optional string title = 12;
3281
2175
  optional string description = 13;
@@ -3291,8 +2185,6 @@ message MsgOpaqueData {
3291
2185
  optional string pollUpdateParentKey = 23;
3292
2186
  optional PollEncValue encPollVote = 24;
3293
2187
  optional bool isSentCagPollCreation = 28;
3294
- optional PollContentType pollContentType = 42;
3295
- optional PollVotesSnapshot pollVotesSnapshot = 41;
3296
2188
  optional string encReactionTargetMessageKey = 25;
3297
2189
  optional bytes encReactionEncPayload = 26;
3298
2190
  optional bytes encReactionEncIv = 27;
@@ -3300,40 +2192,8 @@ message MsgOpaqueData {
3300
2192
  optional string targetMessageKey = 30;
3301
2193
  optional bytes encPayload = 31;
3302
2194
  optional bytes encIv = 32;
3303
- optional string eventName = 33;
3304
- optional bool isEventCanceled = 34;
3305
- optional string eventDescription = 35;
3306
- optional string eventJoinLink = 36;
3307
- optional int64 eventStartTime = 37;
3308
- optional EventLocation eventLocation = 38;
3309
- optional int64 eventEndTime = 40;
3310
- optional bytes plainProtobufBytes = 43;
3311
- message EventLocation {
3312
- optional double degreesLatitude = 1;
3313
- optional double degreesLongitude = 2;
3314
- optional string name = 3;
3315
- optional string address = 4;
3316
- optional string url = 5;
3317
- optional bytes jpegThumbnail = 6;
3318
- }
3319
-
3320
- enum PollContentType {
3321
- UNKNOWN = 0;
3322
- TEXT = 1;
3323
- IMAGE = 2;
3324
- }
3325
2195
  message PollOption {
3326
2196
  optional string name = 1;
3327
- optional string hash = 2;
3328
- }
3329
-
3330
- message PollVoteSnapshot {
3331
- optional MsgOpaqueData.PollOption option = 1;
3332
- optional int32 optionVoteCount = 2;
3333
- }
3334
-
3335
- message PollVotesSnapshot {
3336
- repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
3337
2197
  }
3338
2198
 
3339
2199
  }
@@ -3372,12 +2232,6 @@ message NotificationSettings {
3372
2232
  optional string callVibrate = 6;
3373
2233
  }
3374
2234
 
3375
- message PairingRequest {
3376
- optional bytes companionPublicKey = 1;
3377
- optional bytes companionIdentityKey = 2;
3378
- optional bytes advSecret = 3;
3379
- }
3380
-
3381
2235
  message PastParticipant {
3382
2236
  optional string userJid = 1;
3383
2237
  optional LeaveReason leaveReason = 2;
@@ -3413,8 +2267,6 @@ message PatchDebugData {
3413
2267
  WEB = 4;
3414
2268
  UWP = 5;
3415
2269
  DARWIN = 6;
3416
- IPAD = 7;
3417
- WEAROS = 8;
3418
2270
  }
3419
2271
  }
3420
2272
 
@@ -3578,43 +2430,46 @@ message PremiumMessageInfo {
3578
2430
  optional string serverCampaignId = 1;
3579
2431
  }
3580
2432
 
3581
- message PrimaryEphemeralIdentity {
3582
- optional bytes publicKey = 1;
3583
- optional bytes nonce = 2;
3584
- }
3585
-
3586
- enum PrivacySystemMessage {
3587
- E2EE_MSG = 1;
3588
- NE2EE_SELF = 2;
3589
- NE2EE_OTHER = 3;
3590
- }
3591
- message ProcessedVideo {
3592
- optional string directPath = 1;
3593
- optional bytes fileSha256 = 2;
3594
- optional uint32 height = 3;
3595
- optional uint32 width = 4;
3596
- optional uint64 fileLength = 5;
3597
- optional uint32 bitrate = 6;
3598
- optional VideoQuality quality = 7;
3599
- repeated string capabilities = 8;
3600
- enum VideoQuality {
3601
- UNDEFINED = 0;
3602
- LOW = 1;
3603
- MID = 2;
3604
- HIGH = 3;
3605
- }
3606
- }
3607
-
3608
- message ProloguePayload {
3609
- optional bytes companionEphemeralIdentity = 1;
3610
- optional CompanionCommitment commitment = 2;
3611
- }
3612
-
3613
2433
  message Pushname {
3614
2434
  optional string id = 1;
3615
2435
  optional string pushname = 2;
3616
2436
  }
3617
2437
 
2438
+ message QP {
2439
+ enum ClauseType {
2440
+ AND = 1;
2441
+ OR = 2;
2442
+ NOR = 3;
2443
+ }
2444
+ message Filter {
2445
+ required string filterName = 1;
2446
+ repeated QP.FilterParameters parameters = 2;
2447
+ optional QP.FilterResult filterResult = 3;
2448
+ required QP.FilterClientNotSupportedConfig clientNotSupportedConfig = 4;
2449
+ }
2450
+
2451
+ message FilterClause {
2452
+ required QP.ClauseType clauseType = 1;
2453
+ repeated QP.FilterClause clauses = 2;
2454
+ repeated QP.Filter filters = 3;
2455
+ }
2456
+
2457
+ enum FilterClientNotSupportedConfig {
2458
+ PASS_BY_DEFAULT = 1;
2459
+ FAIL_BY_DEFAULT = 2;
2460
+ }
2461
+ message FilterParameters {
2462
+ optional string key = 1;
2463
+ optional string value = 2;
2464
+ }
2465
+
2466
+ enum FilterResult {
2467
+ TRUE = 1;
2468
+ FALSE = 2;
2469
+ UNKNOWN = 3;
2470
+ }
2471
+ }
2472
+
3618
2473
  message Reaction {
3619
2474
  optional MessageKey key = 1;
3620
2475
  optional string text = 2;
@@ -3633,13 +2488,6 @@ message RecordStructure {
3633
2488
  repeated SessionStructure previousSessions = 2;
3634
2489
  }
3635
2490
 
3636
- message Reportable {
3637
- optional uint32 minVersion = 1;
3638
- optional uint32 maxVersion = 2;
3639
- optional uint32 notReportableMinVersion = 3;
3640
- optional bool never = 4;
3641
- }
3642
-
3643
2491
  message ReportingTokenInfo {
3644
2492
  optional bytes reportingTag = 1;
3645
2493
  }
@@ -3753,75 +2601,6 @@ message SignedPreKeyRecordStructure {
3753
2601
  optional fixed64 timestamp = 5;
3754
2602
  }
3755
2603
 
3756
- message StatusAttribution {
3757
- optional Type type = 1;
3758
- optional string actionUrl = 2;
3759
- oneof attributionData {
3760
- StatusAttribution.StatusReshare statusReshare = 3;
3761
- StatusAttribution.ExternalShare externalShare = 4;
3762
- StatusAttribution.Music music = 5;
3763
- StatusAttribution.GroupStatus groupStatus = 6;
3764
- }
3765
- message ExternalShare {
3766
- optional string actionUrl = 1;
3767
- optional Source source = 2;
3768
- optional int32 duration = 3;
3769
- optional string actionFallbackUrl = 4;
3770
- enum Source {
3771
- UNKNOWN = 0;
3772
- INSTAGRAM = 1;
3773
- FACEBOOK = 2;
3774
- MESSENGER = 3;
3775
- SPOTIFY = 4;
3776
- YOUTUBE = 5;
3777
- PINTEREST = 6;
3778
- }
3779
- }
3780
-
3781
- message GroupStatus {
3782
- optional string authorJid = 1;
3783
- }
3784
-
3785
- message Music {
3786
- optional string authorName = 1;
3787
- optional string songId = 2;
3788
- optional string title = 3;
3789
- optional string author = 4;
3790
- optional string artistAttribution = 5;
3791
- optional bool isExplicit = 6;
3792
- }
3793
-
3794
- message StatusReshare {
3795
- optional Source source = 1;
3796
- optional Metadata metadata = 2;
3797
- message Metadata {
3798
- optional int32 duration = 1;
3799
- optional string channelJid = 2;
3800
- optional int32 channelMessageId = 3;
3801
- optional bool hasMultipleReshares = 4;
3802
- }
3803
-
3804
- enum Source {
3805
- UNKNOWN = 0;
3806
- INTERNAL_RESHARE = 1;
3807
- MENTION_RESHARE = 2;
3808
- CHANNEL_RESHARE = 3;
3809
- }
3810
- }
3811
-
3812
- enum Type {
3813
- RESHARE = 0;
3814
- EXTERNAL_SHARE = 1;
3815
- MUSIC = 2;
3816
- STATUS_MENTION = 3;
3817
- GROUP_STATUS = 4;
3818
- }
3819
- }
3820
-
3821
- message StatusMentionMessage {
3822
- optional Message quotedStatus = 1;
3823
- }
3824
-
3825
2604
  message StatusPSA {
3826
2605
  required uint64 campaignId = 44;
3827
2606
  optional uint64 campaignExpirationTimestamp = 45;
@@ -3839,7 +2618,6 @@ message StickerMetadata {
3839
2618
  optional uint64 fileLength = 9;
3840
2619
  optional float weight = 10;
3841
2620
  optional int64 lastStickerSentTs = 11;
3842
- optional bool isLottie = 12;
3843
2621
  }
3844
2622
 
3845
2623
  message SyncActionData {
@@ -3893,22 +2671,6 @@ message SyncActionValue {
3893
2671
  optional LabelReorderingAction labelReorderingAction = 47;
3894
2672
  optional PaymentInfoAction paymentInfoAction = 48;
3895
2673
  optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
3896
- optional LockChatAction lockChatAction = 50;
3897
- optional ChatLockSettings chatLockSettings = 51;
3898
- optional WamoUserIdentifierAction wamoUserIdentifierAction = 52;
3899
- optional PrivacySettingDisableLinkPreviewsAction privacySettingDisableLinkPreviewsAction = 53;
3900
- optional DeviceCapabilities deviceCapabilities = 54;
3901
- optional NoteEditAction noteEditAction = 55;
3902
- optional FavoritesAction favoritesAction = 56;
3903
- optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
3904
- optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
3905
- optional UsernameChatStartModeAction usernameChatStartMode = 59;
3906
- optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
3907
- optional LidContactAction lidContactAction = 61;
3908
- optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
3909
- optional PaymentTosAction paymentTosAction = 63;
3910
- optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
3911
- optional BusinessBroadcastAssociationAction businessBroadcastAssociationAction = 65;
3912
2674
  message AgentAction {
3913
2675
  optional string name = 1;
3914
2676
  optional int32 deviceID = 2;
@@ -3928,10 +2690,6 @@ message SyncActionValue {
3928
2690
  optional bool isSent = 1;
3929
2691
  }
3930
2692
 
3931
- message BusinessBroadcastAssociationAction {
3932
- optional bool deleted = 1;
3933
- }
3934
-
3935
2693
  message CallLogAction {
3936
2694
  optional CallLogRecord callLogRecord = 1;
3937
2695
  }
@@ -3953,12 +2711,6 @@ message SyncActionValue {
3953
2711
  optional string firstName = 2;
3954
2712
  optional string lidJid = 3;
3955
2713
  optional bool saveOnPrimaryAddressbook = 4;
3956
- optional string pnJid = 5;
3957
- optional string username = 6;
3958
- }
3959
-
3960
- message CtwaPerCustomerDataSharingAction {
3961
- optional bool isCtwaPerCustomerDataSharingEnabled = 1;
3962
2714
  }
3963
2715
 
3964
2716
  message CustomPaymentMethod {
@@ -3995,14 +2747,6 @@ message SyncActionValue {
3995
2747
  optional bool isOptIn = 1;
3996
2748
  }
3997
2749
 
3998
- message FavoritesAction {
3999
- repeated Favorite favorites = 1;
4000
- message Favorite {
4001
- optional string id = 1;
4002
- }
4003
-
4004
- }
4005
-
4006
2750
  message KeyExpiration {
4007
2751
  optional int32 expiredKeyEpoch = 1;
4008
2752
  }
@@ -4017,40 +2761,16 @@ message SyncActionValue {
4017
2761
  optional int32 predefinedId = 3;
4018
2762
  optional bool deleted = 4;
4019
2763
  optional int32 orderIndex = 5;
4020
- optional bool isActive = 6;
4021
- optional ListType type = 7;
4022
- optional bool isImmutable = 8;
4023
- enum ListType {
4024
- NONE = 0;
4025
- UNREAD = 1;
4026
- GROUPS = 2;
4027
- FAVORITES = 3;
4028
- PREDEFINED = 4;
4029
- CUSTOM = 5;
4030
- COMMUNITY = 6;
4031
- SERVER_ASSIGNED = 7;
4032
- }
4033
2764
  }
4034
2765
 
4035
2766
  message LabelReorderingAction {
4036
2767
  repeated int32 sortedLabelIds = 1;
4037
2768
  }
4038
2769
 
4039
- message LidContactAction {
4040
- optional string fullName = 1;
4041
- optional string firstName = 2;
4042
- optional string username = 3;
4043
- optional bool saveOnPrimaryAddressbook = 4;
4044
- }
4045
-
4046
2770
  message LocaleSetting {
4047
2771
  optional string locale = 1;
4048
2772
  }
4049
2773
 
4050
- message LockChatAction {
4051
- optional bool locked = 1;
4052
- }
4053
-
4054
2774
  message MarkChatAsReadAction {
4055
2775
  optional bool read = 1;
4056
2776
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
@@ -4073,45 +2793,12 @@ message SyncActionValue {
4073
2793
  optional int32 repliedCount = 1;
4074
2794
  }
4075
2795
 
4076
- message MerchantPaymentPartnerAction {
4077
- required Status status = 1;
4078
- required string country = 2;
4079
- optional string gatewayName = 3;
4080
- optional string credentialId = 4;
4081
- enum Status {
4082
- ACTIVE = 0;
4083
- INACTIVE = 1;
4084
- }
4085
- }
4086
-
4087
2796
  message MuteAction {
4088
2797
  optional bool muted = 1;
4089
2798
  optional int64 muteEndTimestamp = 2;
4090
2799
  optional bool autoMuted = 3;
4091
2800
  }
4092
2801
 
4093
- message NoteEditAction {
4094
- optional NoteType type = 1;
4095
- optional string chatJid = 2;
4096
- optional int64 createdAt = 3;
4097
- optional bool deleted = 4;
4098
- optional string unstructuredContent = 5;
4099
- enum NoteType {
4100
- UNSTRUCTURED = 1;
4101
- STRUCTURED = 2;
4102
- }
4103
- }
4104
-
4105
- message NotificationActivitySettingAction {
4106
- optional NotificationActivitySetting notificationActivitySetting = 1;
4107
- enum NotificationActivitySetting {
4108
- DEFAULT_ALL_MESSAGES = 0;
4109
- ALL_MESSAGES = 1;
4110
- HIGHLIGHTS = 2;
4111
- DEFAULT_HIGHLIGHTS = 3;
4112
- }
4113
- }
4114
-
4115
2802
  message NuxAction {
4116
2803
  optional bool acknowledged = 1;
4117
2804
  }
@@ -4120,14 +2807,6 @@ message SyncActionValue {
4120
2807
  optional string cpi = 1;
4121
2808
  }
4122
2809
 
4123
- message PaymentTosAction {
4124
- required PaymentNotice paymentNotice = 1;
4125
- required bool accepted = 2;
4126
- enum PaymentNotice {
4127
- BR_PAY_PRIVACY_POLICY = 0;
4128
- }
4129
- }
4130
-
4131
2810
  message PinAction {
4132
2811
  optional bool pinned = 1;
4133
2812
  }
@@ -4144,14 +2823,6 @@ message SyncActionValue {
4144
2823
  optional string version = 1;
4145
2824
  }
4146
2825
 
4147
- message PrivacySettingChannelsPersonalisedRecommendationAction {
4148
- optional bool isUserOptedOut = 1;
4149
- }
4150
-
4151
- message PrivacySettingDisableLinkPreviewsAction {
4152
- optional bool isPreviewsDisabled = 1;
4153
- }
4154
-
4155
2826
  message PrivacySettingRelayAllCalls {
4156
2827
  optional bool isEnabled = 1;
4157
2828
  }
@@ -4205,7 +2876,6 @@ message SyncActionValue {
4205
2876
  optional uint64 fileLength = 8;
4206
2877
  optional bool isFavorite = 9;
4207
2878
  optional uint32 deviceIdHint = 10;
4208
- optional bool isLottie = 11;
4209
2879
  }
4210
2880
 
4211
2881
  message SubscriptionAction {
@@ -4237,25 +2907,6 @@ message SyncActionValue {
4237
2907
  optional bool muted = 1;
4238
2908
  }
4239
2909
 
4240
- message UsernameChatStartModeAction {
4241
- optional ChatStartMode chatStartMode = 1;
4242
- enum ChatStartMode {
4243
- LID = 1;
4244
- PN = 2;
4245
- }
4246
- }
4247
-
4248
- message WaffleAccountLinkStateAction {
4249
- optional AccountLinkState linkState = 2;
4250
- enum AccountLinkState {
4251
- ACTIVE = 0;
4252
- }
4253
- }
4254
-
4255
- message WamoUserIdentifierAction {
4256
- optional string identifier = 1;
4257
- }
4258
-
4259
2910
  }
4260
2911
 
4261
2912
  message SyncdIndex {
@@ -4308,11 +2959,6 @@ message SyncdVersion {
4308
2959
  optional uint64 version = 1;
4309
2960
  }
4310
2961
 
4311
- message TapLinkAction {
4312
- optional string title = 1;
4313
- optional string tapUrl = 2;
4314
- }
4315
-
4316
2962
  message TemplateButton {
4317
2963
  optional uint32 index = 4;
4318
2964
  oneof button {
@@ -4337,54 +2983,6 @@ message TemplateButton {
4337
2983
 
4338
2984
  }
4339
2985
 
4340
- message ThreadID {
4341
- optional ThreadType threadType = 1;
4342
- optional MessageKey threadKey = 2;
4343
- enum ThreadType {
4344
- UNKNOWN = 0;
4345
- VIEW_REPLIES = 1;
4346
- }
4347
- }
4348
-
4349
- message UrlTrackingMap {
4350
- repeated UrlTrackingMapElement urlTrackingMapElements = 1;
4351
- message UrlTrackingMapElement {
4352
- optional string originalUrl = 1;
4353
- optional string unconsentedUsersUrl = 2;
4354
- optional string consentedUsersUrl = 3;
4355
- optional uint32 cardIndex = 4;
4356
- }
4357
-
4358
- }
4359
-
4360
- message UserPassword {
4361
- optional Encoding encoding = 1;
4362
- optional Transformer transformer = 2;
4363
- repeated TransformerArg transformerArg = 3;
4364
- optional bytes transformedData = 4;
4365
- enum Encoding {
4366
- UTF8 = 0;
4367
- UTF8_BROKEN = 1;
4368
- }
4369
- enum Transformer {
4370
- NONE = 0;
4371
- PBKDF2_HMAC_SHA512 = 1;
4372
- PBKDF2_HMAC_SHA384 = 2;
4373
- }
4374
- message TransformerArg {
4375
- optional string key = 1;
4376
- optional Value value = 2;
4377
- message Value {
4378
- oneof value {
4379
- bytes asBlob = 1;
4380
- uint32 asUnsignedInteger = 2;
4381
- }
4382
- }
4383
-
4384
- }
4385
-
4386
- }
4387
-
4388
2986
  message UserReceipt {
4389
2987
  required string userJid = 1;
4390
2988
  optional int64 receiptTimestamp = 2;
@@ -4520,16 +3118,6 @@ message WebMessageInfo {
4520
3118
  repeated EventResponse eventResponses = 61;
4521
3119
  optional ReportingTokenInfo reportingTokenInfo = 62;
4522
3120
  optional uint64 newsletterServerId = 63;
4523
- optional EventAdditionalMetadata eventAdditionalMetadata = 64;
4524
- optional bool isMentionedInStatus = 65;
4525
- repeated string statusMentions = 66;
4526
- optional MessageKey targetMessageId = 67;
4527
- repeated MessageAddOn messageAddOns = 68;
4528
- optional StatusMentionMessage statusMentionMessageInfo = 69;
4529
- optional bool isSupportAiMessage = 70;
4530
- repeated string statusMentionSources = 71;
4531
- repeated Citation supportAiCitations = 72;
4532
- optional string botTargetId = 73;
4533
3121
  enum BizPrivacyStatus {
4534
3122
  E2EE = 0;
4535
3123
  FB = 2;
@@ -4746,24 +3334,6 @@ message WebMessageInfo {
4746
3334
  REMINDER_SETUP_MESSAGE = 198;
4747
3335
  REMINDER_SENT_MESSAGE = 199;
4748
3336
  REMINDER_CANCEL_MESSAGE = 200;
4749
- BIZ_COEX_PRIVACY_INIT = 201;
4750
- BIZ_COEX_PRIVACY_TRANSITION = 202;
4751
- GROUP_DEACTIVATED = 203;
4752
- COMMUNITY_DEACTIVATE_SIBLING_GROUP = 204;
4753
- EVENT_UPDATED = 205;
4754
- EVENT_CANCELED = 206;
4755
- COMMUNITY_OWNER_UPDATED = 207;
4756
- COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208;
4757
- CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209;
4758
- STATUS_MENTION = 210;
4759
- USER_CONTROLS_SYSTEM_MESSAGE = 211;
4760
- SUPPORT_SYSTEM_MESSAGE = 212;
4761
- CHANGE_LID = 213;
4762
- BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE = 214;
4763
- BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE = 215;
4764
- CHANGE_LIMIT_SHARING = 216;
4765
- GROUP_MEMBER_LINK_MODE = 217;
4766
- BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
4767
3337
  }
4768
3338
  }
4769
3339