naya-flore 4.7.2 → 4.7.3

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 (99) hide show
  1. package/README.md +0 -104
  2. package/WAProto/WAProto.proto +89 -1195
  3. package/WAProto/index.d.ts +1256 -13195
  4. package/WAProto/index.js +11405 -32544
  5. package/lib/Defaults/baileys-version.json +1 -1
  6. package/lib/Defaults/index.d.ts +0 -231
  7. package/lib/Defaults/index.js +102 -92
  8. package/lib/Defaults/phonenumber-mcc.json +221 -221
  9. package/lib/Signal/libsignal.js +9 -18
  10. package/lib/Socket/Client/abstract-socket-client.d.ts +2 -0
  11. package/lib/Socket/Client/index.d.ts +3 -2
  12. package/lib/Socket/Client/index.js +3 -2
  13. package/lib/Socket/Client/mobile-socket-client.d.ts +1 -0
  14. package/lib/Socket/Client/{websocket.d.ts → web-socket-client.d.ts} +1 -1
  15. package/lib/Socket/Client/{websocket.js → web-socket-client.js} +2 -2
  16. package/lib/Socket/business.d.ts +43 -42
  17. package/lib/Socket/chats.d.ts +8 -9
  18. package/lib/Socket/chats.js +34 -41
  19. package/lib/Socket/groups.d.ts +7 -7
  20. package/lib/Socket/groups.js +4 -2
  21. package/lib/Socket/index.d.ts +52 -51
  22. package/lib/Socket/messages-recv.d.ts +42 -41
  23. package/lib/Socket/messages-recv.js +127 -190
  24. package/lib/Socket/messages-send.d.ts +9 -16
  25. package/lib/Socket/messages-send.js +316 -467
  26. package/lib/Socket/newsletter.d.ts +28 -26
  27. package/lib/Socket/newsletter.js +3 -3
  28. package/lib/Socket/registration.d.ts +52 -49
  29. package/lib/Socket/registration.js +7 -7
  30. package/lib/Socket/socket.d.ts +0 -1
  31. package/lib/Socket/socket.js +23 -49
  32. package/lib/Socket/usync.d.ts +10 -11
  33. package/lib/Store/index.d.ts +2 -2
  34. package/lib/Store/index.js +2 -2
  35. package/lib/Store/make-cache-manager-store.d.ts +0 -1
  36. package/lib/Store/make-in-memory-store.js +1 -5
  37. package/lib/Store/make-ordered-dictionary.d.ts +1 -1
  38. package/lib/Types/Auth.d.ts +1 -0
  39. package/lib/Types/Call.d.ts +1 -1
  40. package/lib/Types/Chat.d.ts +7 -12
  41. package/lib/Types/Events.d.ts +2 -17
  42. package/lib/Types/GroupMetadata.d.ts +2 -3
  43. package/lib/Types/Label.d.ts +0 -11
  44. package/lib/Types/Label.js +1 -1
  45. package/lib/Types/LabelAssociation.js +1 -1
  46. package/lib/Types/Message.d.ts +10 -170
  47. package/lib/Types/Newsletter.js +3 -3
  48. package/lib/Types/Socket.d.ts +4 -7
  49. package/lib/Types/index.d.ts +0 -9
  50. package/lib/Types/index.js +1 -1
  51. package/lib/Utils/auth-utils.js +3 -3
  52. package/lib/Utils/business.d.ts +1 -1
  53. package/lib/Utils/business.js +2 -2
  54. package/lib/Utils/chat-utils.d.ts +12 -11
  55. package/lib/Utils/chat-utils.js +26 -42
  56. package/lib/Utils/crypto.d.ts +16 -15
  57. package/lib/Utils/crypto.js +23 -35
  58. package/lib/Utils/decode-wa-message.d.ts +0 -17
  59. package/lib/Utils/decode-wa-message.js +15 -43
  60. package/lib/Utils/generics.d.ts +17 -13
  61. package/lib/Utils/generics.js +15 -25
  62. package/lib/Utils/history.d.ts +2 -6
  63. package/lib/Utils/history.js +6 -4
  64. package/lib/Utils/logger.d.ts +3 -1
  65. package/lib/Utils/make-mutex.d.ts +2 -2
  66. package/lib/Utils/messages-media.d.ts +28 -25
  67. package/lib/Utils/messages-media.js +47 -38
  68. package/lib/Utils/messages.js +41 -454
  69. package/lib/Utils/noise-handler.d.ts +5 -4
  70. package/lib/Utils/process-message.js +2 -2
  71. package/lib/Utils/signal.d.ts +1 -2
  72. package/lib/Utils/signal.js +19 -11
  73. package/lib/Utils/use-multi-file-auth-state.d.ts +1 -0
  74. package/lib/Utils/use-multi-file-auth-state.js +3 -11
  75. package/lib/Utils/validate-connection.d.ts +1 -1
  76. package/lib/Utils/validate-connection.js +1 -1
  77. package/lib/WABinary/decode.d.ts +2 -1
  78. package/lib/WABinary/decode.js +7 -17
  79. package/lib/WABinary/encode.d.ts +2 -1
  80. package/lib/WABinary/encode.js +17 -33
  81. package/lib/WABinary/generic-utils.d.ts +3 -2
  82. package/lib/WABinary/generic-utils.js +2 -2
  83. package/lib/WABinary/jid-utils.d.ts +1 -1
  84. package/lib/WAM/BinaryInfo.d.ts +11 -2
  85. package/lib/WAM/encode.d.ts +2 -1
  86. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +3 -3
  87. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +25 -0
  88. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +53 -0
  89. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +8 -0
  90. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +24 -0
  91. package/lib/WAUSync/USyncQuery.d.ts +2 -0
  92. package/lib/WAUSync/USyncQuery.js +10 -0
  93. package/lib/WAUSync/USyncUser.d.ts +2 -0
  94. package/lib/WAUSync/USyncUser.js +4 -0
  95. package/lib/index.d.ts +0 -1
  96. package/lib/index.js +0 -1
  97. package/package.json +19 -32
  98. package/lib/Socket/Client/types.d.ts +0 -17
  99. package/lib/Socket/Client/types.js +0 -13
@@ -1,7 +1,5 @@
1
- syntax = "proto3";
2
- package waproto;
3
-
4
- /// WhatsApp Version: 2.3000.1020903593
1
+ syntax = "proto2";
2
+ package proto;
5
3
 
6
4
  message ADVDeviceIdentity {
7
5
  optional uint32 rawId = 1;
@@ -42,166 +40,6 @@ message ADVSignedKeyIndexList {
42
40
  optional bytes accountSignatureKey = 3;
43
41
  }
44
42
 
45
- message AIRichResponseMessage {
46
- optional AIRichResponseMessageType messageType = 1;
47
- repeated AIRichResponseSubMessage submessages = 2;
48
- optional AIRichResponseAbstractData abstractData = 3;
49
- message AIRichResponseAbstractData {
50
- optional bytes data = 1;
51
- }
52
-
53
- message AIRichResponseCodeMetadata {
54
- optional string codeLanguage = 1;
55
- repeated AIRichResponseCodeBlock codeBlocks = 2;
56
- message AIRichResponseCodeBlock {
57
- optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
58
- optional string codeContent = 2;
59
- }
60
-
61
- enum AIRichResponseCodeHighlightType {
62
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
63
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
64
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
65
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
66
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
67
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
68
- }
69
- }
70
-
71
- message AIRichResponseContentItemsMetadata {
72
- repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
73
- optional ContentType contentType = 2;
74
- message AIRichResponseContentItemMetadata {
75
- oneof aIRichResponseContentItem {
76
- AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
77
- }
78
- }
79
-
80
- message AIRichResponseReelItem {
81
- optional string title = 1;
82
- optional string profileIconUrl = 2;
83
- optional string thumbnailUrl = 3;
84
- optional string videoUrl = 4;
85
- }
86
-
87
- enum ContentType {
88
- DEFAULT = 0;
89
- CAROUSEL = 1;
90
- }
91
- }
92
-
93
- message AIRichResponseDynamicMetadata {
94
- optional AIRichResponseDynamicMetadataType type = 1;
95
- optional uint64 version = 2;
96
- optional string url = 3;
97
- optional uint32 loopCount = 4;
98
- enum AIRichResponseDynamicMetadataType {
99
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
100
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
101
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
102
- }
103
- }
104
-
105
- message AIRichResponseGridImageMetadata {
106
- optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
107
- repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
108
- }
109
-
110
- message AIRichResponseImageURL {
111
- optional string imagePreviewUrl = 1;
112
- optional string imageHighResUrl = 2;
113
- optional string sourceUrl = 3;
114
- }
115
-
116
- message AIRichResponseInlineImageMetadata {
117
- optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
118
- optional string imageText = 2;
119
- optional AIRichResponseImageAlignment alignment = 3;
120
- optional string tapLinkUrl = 4;
121
- enum AIRichResponseImageAlignment {
122
- AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
123
- AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
124
- AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
125
- }
126
- }
127
-
128
- message AIRichResponseLatexMetadata {
129
- optional string text = 1;
130
- repeated AIRichResponseLatexExpression expressions = 2;
131
- message AIRichResponseLatexExpression {
132
- optional string latexExpression = 1;
133
- optional string url = 2;
134
- optional double width = 3;
135
- optional double height = 4;
136
- optional double fontHeight = 5;
137
- }
138
-
139
- }
140
-
141
- message AIRichResponseMapMetadata {
142
- optional double centerLatitude = 1;
143
- optional double centerLongitude = 2;
144
- optional double latitudeDelta = 3;
145
- optional double longitudeDelta = 4;
146
- repeated AIRichResponseMapAnnotation annotations = 5;
147
- optional bool showInfoList = 6;
148
- message AIRichResponseMapAnnotation {
149
- optional uint32 annotationNumber = 1;
150
- optional double latitude = 2;
151
- optional double longitude = 3;
152
- optional string title = 4;
153
- optional string body = 5;
154
- }
155
-
156
- }
157
-
158
- enum AIRichResponseMessageType {
159
- AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
160
- AI_RICH_RESPONSE_TYPE_STANDARD = 1;
161
- }
162
- message AIRichResponseSubMessage {
163
- optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
164
- optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
165
- optional string messageText = 3;
166
- optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
167
- optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
168
- optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
169
- optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
170
- optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
171
- optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
172
- optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
173
- }
174
-
175
- enum AIRichResponseSubMessageType {
176
- AI_RICH_RESPONSE_UNKNOWN = 0;
177
- AI_RICH_RESPONSE_GRID_IMAGE = 1;
178
- AI_RICH_RESPONSE_TEXT = 2;
179
- AI_RICH_RESPONSE_INLINE_IMAGE = 3;
180
- AI_RICH_RESPONSE_TABLE = 4;
181
- AI_RICH_RESPONSE_CODE = 5;
182
- AI_RICH_RESPONSE_DYNAMIC = 6;
183
- AI_RICH_RESPONSE_MAP = 7;
184
- AI_RICH_RESPONSE_LATEX = 8;
185
- AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
186
- }
187
- message AIRichResponseTableMetadata {
188
- repeated AIRichResponseTableRow rows = 1;
189
- message AIRichResponseTableRow {
190
- repeated string items = 1;
191
- optional bool isHeading = 2;
192
- }
193
-
194
- }
195
-
196
- }
197
-
198
- message Account {
199
- optional string lid = 1;
200
- optional string username = 2;
201
- optional string countryCode = 3;
202
- optional bool isUsernameDeleted = 4;
203
- }
204
-
205
43
  message ActionLink {
206
44
  optional string url = 1;
207
45
  optional string buttonTitle = 2;
@@ -271,165 +109,12 @@ message BotAvatarMetadata {
271
109
  optional uint32 wordCount = 5;
272
110
  }
273
111
 
274
- message BotCapabilityMetadata {
275
- repeated BotCapabilityType capabilities = 1;
276
- enum BotCapabilityType {
277
- UNKNOWN = 0;
278
- PROGRESS_INDICATOR = 1;
279
- RICH_RESPONSE_HEADING = 2;
280
- RICH_RESPONSE_NESTED_LIST = 3;
281
- AI_MEMORY = 4;
282
- RICH_RESPONSE_THREAD_SURFING = 5;
283
- RICH_RESPONSE_TABLE = 6;
284
- RICH_RESPONSE_CODE = 7;
285
- RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
286
- RICH_RESPONSE_INLINE_IMAGE = 9;
287
- WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
288
- WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
289
- WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
290
- WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
291
- WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
292
- WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
293
- WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
294
- WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
295
- WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
296
- WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
297
- WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
298
- RICH_RESPONSE_SUB_HEADING = 21;
299
- RICH_RESPONSE_GRID_IMAGE = 22;
300
- AI_STUDIO_UGC_MEMORY = 23;
301
- RICH_RESPONSE_LATEX = 24;
302
- RICH_RESPONSE_MAPS = 25;
303
- RICH_RESPONSE_INLINE_REELS = 26;
304
- AGENTIC_PLANNING = 27;
305
- ACCOUNT_LINKING = 28;
306
- STREAMING_DISAGGREGATION = 29;
307
- }
308
- }
309
-
310
- message BotImagineMetadata {
311
- optional ImagineType imagineType = 1;
312
- enum ImagineType {
313
- UNKNOWN = 0;
314
- IMAGINE = 1;
315
- MEMU = 2;
316
- FLASH = 3;
317
- EDIT = 4;
318
- }
319
- }
320
-
321
- message BotLinkedAccount {
322
- optional BotLinkedAccountType type = 1;
323
- enum BotLinkedAccountType {
324
- BOT_LINKED_ACCOUNT_TYPE_1P = 0;
325
- }
326
- }
327
-
328
- message BotLinkedAccountsMetadata {
329
- repeated BotLinkedAccount accounts = 1;
330
- optional bytes acAuthTokens = 2;
331
- }
332
-
333
- message BotMediaMetadata {
334
- optional string fileSha256 = 1;
335
- optional string mediaKey = 2;
336
- optional string fileEncSha256 = 3;
337
- optional string directPath = 4;
338
- optional int64 mediaKeyTimestamp = 5;
339
- optional string mimetype = 6;
340
- optional OrientationType orientationType = 7;
341
- enum OrientationType {
342
- CENTER = 1;
343
- LEFT = 2;
344
- RIGHT = 3;
345
- }
346
- }
347
-
348
- message BotMemoryFact {
349
- optional string fact = 1;
350
- optional string factId = 2;
351
- }
352
-
353
- message BotMemoryMetadata {
354
- repeated BotMemoryFact addedFacts = 1;
355
- repeated BotMemoryFact removedFacts = 2;
356
- optional string disclaimer = 3;
357
- }
358
-
359
- message BotMemuMetadata {
360
- repeated BotMediaMetadata faceImages = 1;
361
- }
362
-
363
112
  message BotMetadata {
364
113
  optional BotAvatarMetadata avatarMetadata = 1;
365
114
  optional string personaId = 2;
366
115
  optional BotPluginMetadata pluginMetadata = 3;
367
116
  optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
368
117
  optional string invokerJid = 5;
369
- optional BotSessionMetadata sessionMetadata = 6;
370
- optional BotMemuMetadata memuMetadata = 7;
371
- optional string timezone = 8;
372
- optional BotReminderMetadata reminderMetadata = 9;
373
- optional BotModelMetadata modelMetadata = 10;
374
- optional string messageDisclaimerText = 11;
375
- optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
376
- optional BotCapabilityMetadata capabilityMetadata = 13;
377
- optional BotImagineMetadata imagineMetadata = 14;
378
- optional BotMemoryMetadata memoryMetadata = 15;
379
- optional BotRenderingMetadata renderingMetadata = 16;
380
- optional BotMetricsMetadata botMetricsMetadata = 17;
381
- optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
382
- optional BotSourcesMetadata richResponseSourcesMetadata = 19;
383
- }
384
-
385
- enum BotMetricsEntryPoint {
386
- FAVICON = 1;
387
- CHATLIST = 2;
388
- AISEARCH_NULL_STATE_PAPER_PLANE = 3;
389
- AISEARCH_NULL_STATE_SUGGESTION = 4;
390
- AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
391
- AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
392
- AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
393
- AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
394
- AIVOICE_SEARCH_BAR = 9;
395
- AIVOICE_FAVICON = 10;
396
- AISTUDIO = 11;
397
- DEEPLINK = 12;
398
- NOTIFICATION = 13;
399
- PROFILE_MESSAGE_BUTTON = 14;
400
- FORWARD = 15;
401
- APP_SHORTCUT = 16;
402
- FF_FAMILY = 17;
403
- AI_TAB = 18;
404
- AI_HOME = 19;
405
- AI_DEEPLINK_IMMERSIVE = 20;
406
- AI_DEEPLINK = 21;
407
- }
408
- message BotMetricsMetadata {
409
- optional string destinationId = 1;
410
- optional BotMetricsEntryPoint destinationEntryPoint = 2;
411
- optional BotMetricsThreadEntryPoint threadOrigin = 3;
412
- }
413
-
414
- enum BotMetricsThreadEntryPoint {
415
- AI_TAB_THREAD = 1;
416
- AI_HOME_THREAD = 2;
417
- AI_DEEPLINK_IMMERSIVE_THREAD = 3;
418
- AI_DEEPLINK_THREAD = 4;
419
- }
420
- message BotModelMetadata {
421
- optional ModelType modelType = 1;
422
- optional PremiumModelStatus premiumModelStatus = 2;
423
- enum ModelType {
424
- UNKNOWN_TYPE = 0;
425
- LLAMA_PROD = 1;
426
- LLAMA_PROD_PREMIUM = 2;
427
- }
428
- enum PremiumModelStatus {
429
- UNKNOWN_STATUS = 0;
430
- AVAILABLE = 1;
431
- QUOTA_EXCEED_LIMIT = 2;
432
- }
433
118
  }
434
119
 
435
120
  message BotPluginMetadata {
@@ -440,153 +125,20 @@ message BotPluginMetadata {
440
125
  optional string searchProviderUrl = 5;
441
126
  optional uint32 referenceIndex = 6;
442
127
  optional uint32 expectedLinksCount = 7;
443
- optional string searchQuery = 9;
444
- optional MessageKey parentPluginMessageKey = 10;
445
- optional PluginType deprecatedField = 11;
446
- optional PluginType parentPluginType = 12;
447
- optional string faviconCdnUrl = 13;
128
+ optional uint32 pluginVersion = 8;
448
129
  enum PluginType {
449
- UNKNOWN_PLUGIN = 0;
450
130
  REELS = 1;
451
131
  SEARCH = 2;
452
132
  }
453
133
  enum SearchProvider {
454
- UNKNOWN = 0;
455
134
  BING = 1;
456
135
  GOOGLE = 2;
457
- SUPPORT = 3;
458
136
  }
459
137
  }
460
138
 
461
- message BotProgressIndicatorMetadata {
462
- optional string progressDescription = 1;
463
- repeated BotPlanningStepMetadata stepsMetadata = 2;
464
- message BotPlanningStepMetadata {
465
- optional string statusTitle = 1;
466
- optional string statusBody = 2;
467
- repeated BotPlanningSearchSourcesMetadata sourcesMetadata = 3;
468
- optional PlanningStepStatus status = 4;
469
- optional bool isReasoning = 5;
470
- optional bool isEnhancedSearch = 6;
471
- repeated BotPlanningStepSectionMetadata sections = 7;
472
- message BotPlanningSearchSourceMetadata {
473
- optional string title = 1;
474
- optional BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;
475
- optional string sourceUrl = 3;
476
- optional string favIconUrl = 4;
477
- }
478
-
479
- message BotPlanningSearchSourcesMetadata {
480
- optional string sourceTitle = 1;
481
- optional BotPlanningSearchSourceProvider provider = 2;
482
- optional string sourceUrl = 3;
483
- enum BotPlanningSearchSourceProvider {
484
- UNKNOWN = 0;
485
- OTHER = 1;
486
- GOOGLE = 2;
487
- BING = 3;
488
- }
489
- }
490
-
491
- message BotPlanningStepSectionMetadata {
492
- optional string sectionTitle = 1;
493
- optional string sectionBody = 2;
494
- repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
495
- }
496
-
497
- enum BotSearchSourceProvider {
498
- UNKNOWN_PROVIDER = 0;
499
- OTHER = 1;
500
- GOOGLE = 2;
501
- BING = 3;
502
- }
503
- enum PlanningStepStatus {
504
- UNKNOWN = 0;
505
- PLANNED = 1;
506
- EXECUTING = 2;
507
- FINISHED = 3;
508
- }
509
- }
510
-
511
- }
512
-
513
- message BotPromptSuggestion {
514
- optional string prompt = 1;
515
- optional string promptId = 2;
516
- }
517
-
518
- message BotPromptSuggestions {
519
- repeated BotPromptSuggestion suggestions = 1;
520
- }
521
-
522
- message BotReminderMetadata {
523
- optional MessageKey requestMessageKey = 1;
524
- optional ReminderAction action = 2;
525
- optional string name = 3;
526
- optional uint64 nextTriggerTimestamp = 4;
527
- optional ReminderFrequency frequency = 5;
528
- enum ReminderAction {
529
- NOTIFY = 1;
530
- CREATE = 2;
531
- DELETE = 3;
532
- UPDATE = 4;
533
- }
534
- enum ReminderFrequency {
535
- ONCE = 1;
536
- DAILY = 2;
537
- WEEKLY = 3;
538
- BIWEEKLY = 4;
539
- MONTHLY = 5;
540
- }
541
- }
542
-
543
- message BotRenderingMetadata {
544
- repeated Keyword keywords = 1;
545
- message Keyword {
546
- optional string value = 1;
547
- repeated string associatedPrompts = 2;
548
- }
549
-
550
- }
551
-
552
- message BotSessionMetadata {
553
- optional string sessionId = 1;
554
- optional BotSessionSource sessionSource = 2;
555
- }
556
-
557
- enum BotSessionSource {
558
- NONE = 0;
559
- NULL_STATE = 1;
560
- TYPEAHEAD = 2;
561
- USER_INPUT = 3;
562
- EMU_FLASH = 4;
563
- EMU_FLASH_FOLLOWUP = 5;
564
- VOICE = 6;
565
- }
566
- message BotSourcesMetadata {
567
- repeated BotSourceItem sources = 1;
568
- message BotSourceItem {
569
- optional SourceProvider provider = 1;
570
- optional string thumbnailCdnUrl = 2;
571
- optional string sourceProviderUrl = 3;
572
- optional string sourceQuery = 4;
573
- optional string faviconCdnUrl = 5;
574
- optional uint32 citationNumber = 6;
575
- enum SourceProvider {
576
- UNKNOWN = 0;
577
- BING = 1;
578
- GOOGLE = 2;
579
- SUPPORT = 3;
580
- }
581
- }
582
-
583
- }
584
-
585
139
  message BotSuggestedPromptMetadata {
586
140
  repeated string suggestedPrompts = 1;
587
141
  optional uint32 selectedPromptIndex = 2;
588
- optional BotPromptSuggestions promptSuggestions = 3;
589
- optional string selectedPromptId = 4;
590
142
  }
591
143
 
592
144
  message CallLogRecord {
@@ -654,11 +206,6 @@ message CertChain {
654
206
 
655
207
  }
656
208
 
657
- message ChatLockSettings {
658
- optional bool hideLockedChats = 1;
659
- optional UserPassword secretCode = 2;
660
- }
661
-
662
209
  message ChatRowOpaqueData {
663
210
  optional DraftMessage draftMessage = 1;
664
211
  message DraftMessage {
@@ -698,18 +245,6 @@ message ChatRowOpaqueData {
698
245
 
699
246
  }
700
247
 
701
- message Citation {
702
- required string title = 1;
703
- required string subtitle = 2;
704
- required string cmsId = 3;
705
- required string imageUrl = 4;
706
- }
707
-
708
- message ClientPairingProps {
709
- optional bool isChatDbLidMigrated = 1;
710
- optional bool isSyncdPureLidSession = 2;
711
- }
712
-
713
248
  message ClientPayload {
714
249
  optional uint64 username = 1;
715
250
  optional bool passive = 3;
@@ -738,8 +273,6 @@ message ClientPayload {
738
273
  optional int32 yearClass = 36;
739
274
  optional int32 memClass = 37;
740
275
  optional InteropData interopData = 38;
741
- optional TrafficAnonymization trafficAnonymization = 40;
742
- optional bool lidDbMigrated = 41;
743
276
  enum ConnectReason {
744
277
  PUSH = 0;
745
278
  USER_ACTIVATED = 1;
@@ -775,7 +308,6 @@ message ClientPayload {
775
308
  HARDCODED = 2;
776
309
  OVERRIDE = 3;
777
310
  FALLBACK = 4;
778
- MNS = 5;
779
311
  }
780
312
  }
781
313
 
@@ -798,7 +330,6 @@ message ClientPayload {
798
330
  message InteropData {
799
331
  optional uint64 accountId = 1;
800
332
  optional bytes token = 2;
801
- optional bool enableReadReceipts = 3;
802
333
  }
803
334
 
804
335
  enum Product {
@@ -807,10 +338,6 @@ message ClientPayload {
807
338
  INTEROP = 2;
808
339
  INTEROP_MSGR = 3;
809
340
  }
810
- enum TrafficAnonymization {
811
- OFF = 0;
812
- STANDARD = 1;
813
- }
814
341
  message UserAgent {
815
342
  optional Platform platform = 1;
816
343
  optional AppVersion appVersion = 2;
@@ -827,7 +354,6 @@ message ClientPayload {
827
354
  optional string deviceBoard = 13;
828
355
  optional string deviceExpId = 14;
829
356
  optional DeviceType deviceType = 15;
830
- optional string deviceModelType = 16;
831
357
  message AppVersion {
832
358
  optional uint32 primary = 1;
833
359
  optional uint32 secondary = 2;
@@ -900,7 +426,6 @@ message ClientPayload {
900
426
  WIN_STORE = 2;
901
427
  DARWIN = 3;
902
428
  WIN32 = 4;
903
- WIN_HYBRID = 5;
904
429
  }
905
430
  message WebdPayload {
906
431
  optional bool usesParticipantInKey = 1;
@@ -925,21 +450,6 @@ message CommentMetadata {
925
450
  optional uint32 replyCount = 2;
926
451
  }
927
452
 
928
- message CompanionCommitment {
929
- optional bytes hash = 1;
930
- }
931
-
932
- message CompanionEphemeralIdentity {
933
- optional bytes publicKey = 1;
934
- optional DeviceProps.PlatformType deviceType = 2;
935
- optional string ref = 3;
936
- }
937
-
938
- message Config {
939
- map<uint32, Field> field = 1;
940
- optional uint32 version = 2;
941
- }
942
-
943
453
  message ContextInfo {
944
454
  optional string stanzaId = 1;
945
455
  optional string participant = 2;
@@ -974,17 +484,6 @@ message ContextInfo {
974
484
  optional string smbClientCampaignId = 45;
975
485
  optional string smbServerCampaignId = 46;
976
486
  optional DataSharingContext dataSharingContext = 47;
977
- optional bool alwaysShowAdAttribution = 48;
978
- optional FeatureEligibilities featureEligibilities = 49;
979
- optional string entryPointConversionExternalSource = 50;
980
- optional string entryPointConversionExternalMedium = 51;
981
- optional string ctwaSignals = 54;
982
- optional bytes ctwaPayload = 55;
983
- optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
984
- optional StatusAttributionType statusAttributionType = 57;
985
- optional UrlTrackingMap urlTrackingMap = 58;
986
- optional PairedMediaType pairedMediaType = 59;
987
- optional uint32 rankingVersion = 60;
988
487
  message AdReplyInfo {
989
488
  optional string advertiserName = 1;
990
489
  optional MediaType mediaType = 2;
@@ -1003,16 +502,6 @@ message ContextInfo {
1003
502
 
1004
503
  message DataSharingContext {
1005
504
  optional bool showMmDisclosure = 1;
1006
- optional string encryptedSignalTokenConsented = 2;
1007
- repeated Parameters parameters = 3;
1008
- message Parameters {
1009
- optional string key = 1;
1010
- optional string stringData = 2;
1011
- optional int64 intData = 3;
1012
- optional float floatData = 4;
1013
- optional ContextInfo.DataSharingContext.Parameters contents = 5;
1014
- }
1015
-
1016
505
  }
1017
506
 
1018
507
  message ExternalAdReplyInfo {
@@ -1030,15 +519,6 @@ message ContextInfo {
1030
519
  optional bool showAdAttribution = 12;
1031
520
  optional string ctwaClid = 13;
1032
521
  optional string ref = 14;
1033
- optional bool clickToWhatsappCall = 15;
1034
- optional bool adContextPreviewDismissed = 16;
1035
- optional string sourceApp = 17;
1036
- optional bool automatedGreetingMessageShown = 18;
1037
- optional string greetingMessageBody = 19;
1038
- optional string ctaPayload = 20;
1039
- optional bool disableNudge = 21;
1040
- optional string originalImageUrl = 22;
1041
- optional bool wtwaAdFormat = 23;
1042
522
  enum MediaType {
1043
523
  NONE = 0;
1044
524
  IMAGE = 1;
@@ -1046,19 +526,6 @@ message ContextInfo {
1046
526
  }
1047
527
  }
1048
528
 
1049
- message FeatureEligibilities {
1050
- optional bool cannotBeReactedTo = 1;
1051
- optional bool cannotBeRanked = 2;
1052
- optional bool canRequestFeedback = 3;
1053
- optional bool canBeReshared = 4;
1054
- }
1055
-
1056
- message ForwardedAIBotMessageInfo {
1057
- optional string botName = 1;
1058
- optional string botJid = 2;
1059
- optional string creatorName = 3;
1060
- }
1061
-
1062
529
  message ForwardedNewsletterMessageInfo {
1063
530
  optional string newsletterJid = 1;
1064
531
  optional int32 serverMessageId = 2;
@@ -1072,18 +539,6 @@ message ContextInfo {
1072
539
  }
1073
540
  }
1074
541
 
1075
- enum PairedMediaType {
1076
- NOT_PAIRED_MEDIA = 0;
1077
- SD_VIDEO_PARENT = 1;
1078
- HD_VIDEO_CHILD = 2;
1079
- SD_IMAGE_PARENT = 3;
1080
- HD_IMAGE_CHILD = 4;
1081
- }
1082
- enum StatusAttributionType {
1083
- NONE = 0;
1084
- RESHARED_FROM_MENTION = 1;
1085
- RESHARED_FROM_POST = 2;
1086
- }
1087
542
  message UTMInfo {
1088
543
  optional string utmSource = 1;
1089
544
  optional string utmCampaign = 2;
@@ -1137,12 +592,6 @@ message Conversation {
1137
592
  optional string username = 43;
1138
593
  optional string lidOriginType = 44;
1139
594
  optional uint32 commentsCount = 45;
1140
- optional bool locked = 46;
1141
- optional PrivacySystemMessage systemMessageToInsert = 47;
1142
- optional bool capiCreatedGroup = 48;
1143
- optional string accountLid = 49;
1144
- optional bool limitSharing = 50;
1145
- optional int64 limitSharingSettingTimestamp = 51;
1146
595
  enum EndOfHistoryTransferType {
1147
596
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1148
597
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
@@ -1150,20 +599,6 @@ message Conversation {
1150
599
  }
1151
600
  }
1152
601
 
1153
- message DeviceCapabilities {
1154
- optional ChatLockSupportLevel chatLockSupportLevel = 1;
1155
- optional LIDMigration lidMigration = 2;
1156
- enum ChatLockSupportLevel {
1157
- NONE = 0;
1158
- MINIMAL = 1;
1159
- FULL = 2;
1160
- }
1161
- message LIDMigration {
1162
- optional uint64 chatDbMigrationTimestamp = 1;
1163
- }
1164
-
1165
- }
1166
-
1167
602
  message DeviceConsistencyCodeMessage {
1168
603
  optional uint32 generation = 1;
1169
604
  optional bytes signature = 2;
@@ -1203,12 +638,6 @@ message DeviceProps {
1203
638
  optional bool supportCallLogHistory = 6;
1204
639
  optional bool supportBotUserAgentChatHistory = 7;
1205
640
  optional bool supportCagReactionsAndPolls = 8;
1206
- optional bool supportBizHostedMsg = 9;
1207
- optional bool supportRecentSyncChunkMessageCountTuning = 10;
1208
- optional bool supportHostedGroupMsg = 11;
1209
- optional bool supportFbidBotChatHistory = 12;
1210
- optional bool supportAddOnHistorySyncMigration = 13;
1211
- optional bool supportMessageAssociation = 14;
1212
641
  }
1213
642
 
1214
643
  enum PlatformType {
@@ -1235,8 +664,6 @@ message DeviceProps {
1235
664
  AR_DEVICE = 20;
1236
665
  UWP = 21;
1237
666
  VR = 22;
1238
- CLOUD_API = 23;
1239
- SMARTGLASSES = 24;
1240
667
  }
1241
668
  }
1242
669
 
@@ -1257,50 +684,14 @@ message DisappearingMode {
1257
684
  ACCOUNT_SETTING = 2;
1258
685
  BULK_CHANGE = 3;
1259
686
  BIZ_SUPPORTS_FB_HOSTING = 4;
1260
- UNKNOWN_GROUPS = 5;
1261
- }
1262
- }
1263
-
1264
- message EmbeddedContent {
1265
- oneof content {
1266
- EmbeddedMessage embeddedMessage = 1;
1267
- EmbeddedMusic embeddedMusic = 2;
1268
687
  }
1269
688
  }
1270
689
 
1271
- message EmbeddedMessage {
1272
- optional string stanzaId = 1;
1273
- optional Message message = 2;
1274
- }
1275
-
1276
- message EmbeddedMusic {
1277
- optional string musicContentMediaId = 1;
1278
- optional string songId = 2;
1279
- optional string author = 3;
1280
- optional string title = 4;
1281
- optional string artworkDirectPath = 5;
1282
- optional bytes artworkSha256 = 6;
1283
- optional bytes artworkEncSha256 = 7;
1284
- optional bytes artworkMediaKey = 11;
1285
- optional string artistAttribution = 8;
1286
- optional bytes countryBlocklist = 9;
1287
- optional bool isExplicit = 10;
1288
- }
1289
-
1290
- message EncryptedPairingRequest {
1291
- optional bytes encryptedPayload = 1;
1292
- optional bytes iv = 2;
1293
- }
1294
-
1295
690
  message EphemeralSetting {
1296
691
  optional sfixed32 duration = 1;
1297
692
  optional sfixed64 timestamp = 2;
1298
693
  }
1299
694
 
1300
- message EventAdditionalMetadata {
1301
- optional bool isStale = 1;
1302
- }
1303
-
1304
695
  message EventResponse {
1305
696
  optional MessageKey eventResponseMessageKey = 1;
1306
697
  optional int64 timestampMs = 2;
@@ -1322,14 +713,6 @@ message ExternalBlobReference {
1322
713
  optional bytes fileEncSha256 = 6;
1323
714
  }
1324
715
 
1325
- message Field {
1326
- optional uint32 minVersion = 1;
1327
- optional uint32 maxVersion = 2;
1328
- optional uint32 notReportableMinVersion = 3;
1329
- optional bool isMessage = 4;
1330
- map<uint32, Field> subfield = 5;
1331
- }
1332
-
1333
716
  message GlobalSettings {
1334
717
  optional WallpaperSettings lightThemeWallpaper = 1;
1335
718
  optional MediaVisibility mediaVisibility = 2;
@@ -1349,7 +732,6 @@ message GlobalSettings {
1349
732
  optional int32 photoQualityMode = 16;
1350
733
  optional NotificationSettings individualNotificationSettings = 17;
1351
734
  optional NotificationSettings groupNotificationSettings = 18;
1352
- optional ChatLockSettings chatLockSettings = 19;
1353
735
  }
1354
736
 
1355
737
  message GroupMention {
@@ -1405,9 +787,6 @@ message HistorySync {
1405
787
  repeated CallLogRecord callLogRecords = 13;
1406
788
  optional BotAIWaitListState aiWaitListState = 14;
1407
789
  repeated PhoneNumberToLIDMapping phoneNumberToLidMappings = 15;
1408
- optional string companionMetaNonce = 16;
1409
- optional bytes shareableChatIdentifierEncryptionKey = 17;
1410
- repeated Account accounts = 18;
1411
790
  enum BotAIWaitListState {
1412
791
  IN_WAITLIST = 0;
1413
792
  AI_AVAILABLE = 1;
@@ -1467,18 +846,9 @@ message IdentityKeyPairStructure {
1467
846
  message InteractiveAnnotation {
1468
847
  repeated Point polygonVertices = 1;
1469
848
  optional bool shouldSkipConfirmation = 4;
1470
- optional EmbeddedContent embeddedContent = 5;
1471
- optional StatusLinkType statusLinkType = 8;
1472
849
  oneof action {
1473
850
  Location location = 2;
1474
851
  ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
1475
- bool embeddedAction = 6;
1476
- TapLinkAction tapAction = 7;
1477
- }
1478
- enum StatusLinkType {
1479
- RASTERIZED_LINK_PREVIEW = 1;
1480
- RASTERIZED_LINK_TRUNCATED = 2;
1481
- RASTERIZED_LINK_FULL_URL = 3;
1482
852
  }
1483
853
  }
1484
854
 
@@ -1508,34 +878,6 @@ message KeyId {
1508
878
  optional bytes id = 1;
1509
879
  }
1510
880
 
1511
- message LIDMigrationMapping {
1512
- required uint64 pn = 1;
1513
- required uint64 assignedLid = 2;
1514
- optional uint64 latestLid = 3;
1515
- }
1516
-
1517
- message LIDMigrationMappingSyncMessage {
1518
- optional bytes encodedMappingPayload = 1;
1519
- }
1520
-
1521
- message LIDMigrationMappingSyncPayload {
1522
- repeated LIDMigrationMapping pnToLidMappings = 1;
1523
- }
1524
-
1525
- message LegacyMessage {
1526
- optional Message.EventResponseMessage eventResponseMessage = 1;
1527
- optional Message.PollVoteMessage pollVote = 2;
1528
- }
1529
-
1530
- message LimitSharing {
1531
- optional bool sharingLimited = 1;
1532
- optional Trigger trigger = 2;
1533
- enum Trigger {
1534
- CHAT_SETTING = 0;
1535
- BIZ_SUPPORTS_FB_HOSTING = 1;
1536
- }
1537
- }
1538
-
1539
881
  message LocalizedName {
1540
882
  optional string lg = 1;
1541
883
  optional string lc = 2;
@@ -1552,6 +894,38 @@ message MediaData {
1552
894
  optional string localPath = 1;
1553
895
  }
1554
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
+
1555
929
  message MediaNotifyMessage {
1556
930
  optional string expressPathUrl = 1;
1557
931
  optional bytes fileEncSha256 = 2;
@@ -1562,7 +936,6 @@ message MediaRetryNotification {
1562
936
  optional string stanzaId = 1;
1563
937
  optional string directPath = 2;
1564
938
  optional ResultType result = 3;
1565
- optional bytes messageSecret = 4;
1566
939
  enum ResultType {
1567
940
  GENERAL_ERROR = 0;
1568
941
  SUCCESS = 1;
@@ -1640,32 +1013,11 @@ message Message {
1640
1013
  optional BCallMessage bcallMessage = 72;
1641
1014
  optional FutureProofMessage lottieStickerMessage = 74;
1642
1015
  optional EventMessage eventMessage = 75;
1643
- optional EncEventResponseMessage encEventResponseMessage = 76;
1644
1016
  optional CommentMessage commentMessage = 77;
1645
1017
  optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
1018
+ optional ExtendedTextMessageWithParentKey extendedTextMessageWithParentKey = 79;
1646
1019
  optional PlaceholderMessage placeholderMessage = 80;
1647
- optional SecretEncryptedMessage secretEncryptedMessage = 82;
1648
- optional AlbumMessage albumMessage = 83;
1649
- optional FutureProofMessage eventCoverImage = 85;
1650
- optional StickerPackMessage stickerPackMessage = 86;
1651
- optional FutureProofMessage statusMentionMessage = 87;
1652
- optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
1653
- optional FutureProofMessage pollCreationOptionImageMessage = 90;
1654
- optional FutureProofMessage associatedChildMessage = 91;
1655
- optional FutureProofMessage groupStatusMentionMessage = 92;
1656
- optional FutureProofMessage pollCreationMessageV4 = 93;
1657
- optional FutureProofMessage pollCreationMessageV5 = 94;
1658
- optional FutureProofMessage statusAddYours = 95;
1659
- optional FutureProofMessage groupStatusMessage = 96;
1660
- optional AIRichResponseMessage richResponseMessage = 97;
1661
- optional StatusNotificationMessage statusNotificationMessage = 98;
1662
- optional FutureProofMessage limitSharingMessage = 99;
1663
- message AlbumMessage {
1664
- optional uint32 expectedImageCount = 2;
1665
- optional uint32 expectedVideoCount = 3;
1666
- optional ContextInfo contextInfo = 17;
1667
- }
1668
-
1020
+ optional EncEventUpdateMessage encEventUpdateMessage = 81;
1669
1021
  message AppStateFatalExceptionNotification {
1670
1022
  repeated string collectionNames = 1;
1671
1023
  optional int64 timestamp = 2;
@@ -1716,7 +1068,6 @@ message Message {
1716
1068
  optional bytes waveform = 19;
1717
1069
  optional fixed32 backgroundArgb = 20;
1718
1070
  optional bool viewOnce = 21;
1719
- optional string accessibilityLabel = 22;
1720
1071
  }
1721
1072
 
1722
1073
  message BCallMessage {
@@ -1737,7 +1088,6 @@ message Message {
1737
1088
  optional string text = 3;
1738
1089
  optional uint64 kindNegative = 4;
1739
1090
  optional uint64 kindPositive = 5;
1740
- optional ReportKind kindReport = 6;
1741
1091
  enum BotFeedbackKind {
1742
1092
  BOT_FEEDBACK_POSITIVE = 0;
1743
1093
  BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
@@ -1749,9 +1099,6 @@ message Message {
1749
1099
  BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
1750
1100
  BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
1751
1101
  BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
1752
- BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
1753
- BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
1754
- BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
1755
1102
  }
1756
1103
  enum BotFeedbackKindMultipleNegative {
1757
1104
  BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
@@ -1767,9 +1114,6 @@ message Message {
1767
1114
  enum BotFeedbackKindMultiplePositive {
1768
1115
  BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1769
1116
  }
1770
- enum ReportKind {
1771
- GENERIC = 0;
1772
- }
1773
1117
  }
1774
1118
 
1775
1119
  message ButtonsMessage {
@@ -1835,8 +1179,6 @@ message Message {
1835
1179
  optional string conversionSource = 2;
1836
1180
  optional bytes conversionData = 3;
1837
1181
  optional uint32 conversionDelaySeconds = 4;
1838
- optional string ctwaSignals = 5;
1839
- optional bytes ctwaPayload = 6;
1840
1182
  }
1841
1183
 
1842
1184
  message CallLogMessage {
@@ -1876,18 +1218,6 @@ message Message {
1876
1218
  optional string id = 2;
1877
1219
  }
1878
1220
 
1879
- message CloudAPIThreadControlNotification {
1880
- optional CloudAPIThreadControl status = 1;
1881
- optional int64 senderNotificationTimestampMs = 2;
1882
- optional string consumerLid = 3;
1883
- optional string consumerPhoneNumber = 4;
1884
- enum CloudAPIThreadControl {
1885
- UNKNOWN = 0;
1886
- CONTROL_PASSED = 1;
1887
- CONTROL_TAKEN = 2;
1888
- }
1889
- }
1890
-
1891
1221
  message CommentMessage {
1892
1222
  optional Message message = 1;
1893
1223
  optional MessageKey targetMessageKey = 2;
@@ -1936,7 +1266,6 @@ message Message {
1936
1266
  optional uint32 thumbnailHeight = 18;
1937
1267
  optional uint32 thumbnailWidth = 19;
1938
1268
  optional string caption = 20;
1939
- optional string accessibilityLabel = 21;
1940
1269
  }
1941
1270
 
1942
1271
  message EncCommentMessage {
@@ -1945,7 +1274,7 @@ message Message {
1945
1274
  optional bytes encIv = 3;
1946
1275
  }
1947
1276
 
1948
- message EncEventResponseMessage {
1277
+ message EncEventUpdateMessage {
1949
1278
  optional MessageKey eventCreationMessageKey = 1;
1950
1279
  optional bytes encPayload = 2;
1951
1280
  optional bytes encIv = 3;
@@ -1957,6 +1286,11 @@ message Message {
1957
1286
  optional bytes encIv = 3;
1958
1287
  }
1959
1288
 
1289
+ message EventEditMessage {
1290
+ optional Message.EventMessage eventEditMessage = 1;
1291
+ optional int64 editTimestampMs = 2;
1292
+ }
1293
+
1960
1294
  message EventMessage {
1961
1295
  optional ContextInfo contextInfo = 1;
1962
1296
  optional bool isCanceled = 2;
@@ -1965,25 +1299,27 @@ message Message {
1965
1299
  optional Message.LocationMessage location = 5;
1966
1300
  optional string joinLink = 6;
1967
1301
  optional int64 startTime = 7;
1968
- optional int64 endTime = 8;
1969
- optional bool extraGuestsAllowed = 9;
1970
1302
  }
1971
1303
 
1972
1304
  message EventResponseMessage {
1973
1305
  optional EventResponseType response = 1;
1974
1306
  optional int64 timestampMs = 2;
1975
- optional int32 extraGuestCount = 3;
1976
1307
  enum EventResponseType {
1977
1308
  UNKNOWN = 0;
1978
1309
  GOING = 1;
1979
1310
  NOT_GOING = 2;
1980
- MAYBE = 3;
1981
1311
  }
1982
1312
  }
1983
1313
 
1314
+ message EventUpdateMessage {
1315
+ optional Message.EventResponseMessage response = 1;
1316
+ optional Message.EventEditMessage edit = 2;
1317
+ }
1318
+
1984
1319
  message ExtendedTextMessage {
1985
1320
  optional string text = 1;
1986
1321
  optional string matchedText = 2;
1322
+ optional string canonicalUrl = 4;
1987
1323
  optional string description = 5;
1988
1324
  optional string title = 6;
1989
1325
  optional fixed32 textArgb = 7;
@@ -2005,10 +1341,6 @@ message Message {
2005
1341
  optional bytes inviteLinkParentGroupThumbnailV2 = 28;
2006
1342
  optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
2007
1343
  optional bool viewOnce = 30;
2008
- optional uint32 videoHeight = 31;
2009
- optional uint32 videoWidth = 32;
2010
- optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
2011
- optional LinkPreviewMetadata linkPreviewMetadata = 34;
2012
1344
  enum FontType {
2013
1345
  SYSTEM = 0;
2014
1346
  SYSTEM_TEXT = 1;
@@ -2025,22 +1357,17 @@ message Message {
2025
1357
  SUB = 2;
2026
1358
  DEFAULT_SUB = 3;
2027
1359
  }
2028
- message LinkPreviewMetadata {
2029
- optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
2030
- }
2031
-
2032
1360
  enum PreviewType {
2033
1361
  NONE = 0;
2034
1362
  VIDEO = 1;
2035
1363
  PLACEHOLDER = 4;
2036
1364
  IMAGE = 5;
2037
- PAYMENT_LINKS = 6;
2038
- PROFILE = 7;
2039
1365
  }
2040
1366
  }
2041
1367
 
2042
- message FullHistorySyncOnDemandRequestMetadata {
2043
- optional string requestId = 1;
1368
+ message ExtendedTextMessageWithParentKey {
1369
+ optional MessageKey key = 1;
1370
+ optional Message.ExtendedTextMessage extendedTextMessage = 2;
2044
1371
  }
2045
1372
 
2046
1373
  message FutureProofMessage {
@@ -2134,8 +1461,6 @@ message Message {
2134
1461
  optional int64 oldestMsgInChunkTimestampSec = 10;
2135
1462
  optional bytes initialHistBootstrapInlinePayload = 11;
2136
1463
  optional string peerDataRequestSessionId = 12;
2137
- optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
2138
- optional string encHandle = 14;
2139
1464
  enum HistorySyncType {
2140
1465
  INITIAL_BOOTSTRAP = 0;
2141
1466
  INITIAL_STATUS_V3 = 1;
@@ -2144,7 +1469,6 @@ message Message {
2144
1469
  PUSH_NAME = 4;
2145
1470
  NON_BLOCKING_DATA = 5;
2146
1471
  ON_DEMAND = 6;
2147
- NO_HISTORY = 7;
2148
1472
  }
2149
1473
  }
2150
1474
 
@@ -2176,14 +1500,6 @@ message Message {
2176
1500
  optional bytes thumbnailEncSha256 = 28;
2177
1501
  optional string staticUrl = 29;
2178
1502
  repeated InteractiveAnnotation annotations = 30;
2179
- optional ImageSourceType imageSourceType = 31;
2180
- optional string accessibilityLabel = 32;
2181
- enum ImageSourceType {
2182
- USER_IMAGE = 0;
2183
- AI_GENERATED = 1;
2184
- AI_MODIFIED = 2;
2185
- RASTERIZED_TEXT_STATUS = 3;
2186
- }
2187
1503
  }
2188
1504
 
2189
1505
  message InitialSecurityNotificationSettingSync {
@@ -2195,7 +1511,6 @@ message Message {
2195
1511
  optional Body body = 2;
2196
1512
  optional Footer footer = 3;
2197
1513
  optional ContextInfo contextInfo = 15;
2198
- optional UrlTrackingMap urlTrackingMap = 16;
2199
1514
  oneof interactiveMessage {
2200
1515
  Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
2201
1516
  Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
@@ -2231,7 +1546,6 @@ message Message {
2231
1546
  bytes jpegThumbnail = 6;
2232
1547
  Message.VideoMessage videoMessage = 7;
2233
1548
  Message.LocationMessage locationMessage = 8;
2234
- Message.ProductMessage productMessage = 9;
2235
1549
  }
2236
1550
  }
2237
1551
 
@@ -2397,16 +1711,6 @@ message Message {
2397
1711
  optional ContextInfo contextInfo = 17;
2398
1712
  }
2399
1713
 
2400
- message MMSThumbnailMetadata {
2401
- optional string thumbnailDirectPath = 1;
2402
- optional bytes thumbnailSha256 = 2;
2403
- optional bytes thumbnailEncSha256 = 3;
2404
- optional bytes mediaKey = 4;
2405
- optional int64 mediaKeyTimestamp = 5;
2406
- optional uint32 thumbnailHeight = 6;
2407
- optional uint32 thumbnailWidth = 7;
2408
- }
2409
-
2410
1714
  message MessageHistoryBundle {
2411
1715
  optional string mimetype = 2;
2412
1716
  optional bytes fileSha256 = 3;
@@ -2424,7 +1728,6 @@ message Message {
2424
1728
  optional bytes jpegThumbnail = 3;
2425
1729
  optional string caption = 4;
2426
1730
  optional int64 inviteExpiration = 5;
2427
- optional ContextInfo contextInfo = 6;
2428
1731
  }
2429
1732
 
2430
1733
  message OrderMessage {
@@ -2463,42 +1766,18 @@ message Message {
2463
1766
  }
2464
1767
  }
2465
1768
 
2466
- message PaymentLinkMetadata {
2467
- optional PaymentLinkButton button = 1;
2468
- optional PaymentLinkHeader header = 2;
2469
- message PaymentLinkButton {
2470
- required string displayText = 1;
2471
- }
2472
-
2473
- message PaymentLinkHeader {
2474
- required PaymentLinkHeaderType headerType = 1;
2475
- enum PaymentLinkHeaderType {
2476
- LINK_PREVIEW = 0;
2477
- ORDER = 1;
2478
- }
2479
- }
2480
-
2481
- }
2482
-
2483
1769
  message PeerDataOperationRequestMessage {
2484
1770
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
2485
1771
  repeated RequestStickerReupload requestStickerReupload = 2;
2486
1772
  repeated RequestUrlPreview requestUrlPreview = 3;
2487
1773
  optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
2488
1774
  repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
2489
- optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
2490
- message FullHistorySyncOnDemandRequest {
2491
- optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2492
- optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
2493
- }
2494
-
2495
1775
  message HistorySyncOnDemandRequest {
2496
1776
  optional string chatJid = 1;
2497
1777
  optional string oldestMsgId = 2;
2498
1778
  optional bool oldestMsgFromMe = 3;
2499
1779
  optional int32 onDemandMsgCount = 4;
2500
1780
  optional int64 oldestMsgTimestampMs = 5;
2501
- optional string accountLid = 6;
2502
1781
  }
2503
1782
 
2504
1783
  message PlaceholderMessageResendRequest {
@@ -2525,32 +1804,12 @@ message Message {
2525
1804
  optional Message.StickerMessage stickerMessage = 2;
2526
1805
  optional LinkPreviewResponse linkPreviewResponse = 3;
2527
1806
  optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
2528
- optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
2529
- optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
2530
- optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
2531
- message CompanionMetaNonceFetchResponse {
2532
- optional string nonce = 1;
2533
- }
2534
-
2535
- message FullHistorySyncOnDemandRequestResponse {
2536
- optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2537
- optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
2538
- }
2539
-
2540
- enum FullHistorySyncOnDemandResponseCode {
2541
- REQUEST_SUCCESS = 0;
2542
- REQUEST_TIME_EXPIRED = 1;
2543
- DECLINED_SHARING_HISTORY = 2;
2544
- GENERIC_ERROR = 3;
2545
- ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
2546
- ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
2547
- ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
2548
- }
2549
1807
  message LinkPreviewResponse {
2550
1808
  optional string url = 1;
2551
1809
  optional string title = 2;
2552
1810
  optional string description = 3;
2553
1811
  optional bytes thumbData = 4;
1812
+ optional string canonicalUrl = 5;
2554
1813
  optional string matchText = 6;
2555
1814
  optional string previewType = 7;
2556
1815
  optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
@@ -2570,11 +1829,6 @@ message Message {
2570
1829
  optional bytes webMessageInfoBytes = 1;
2571
1830
  }
2572
1831
 
2573
- message WaffleNonceFetchResponse {
2574
- optional string nonce = 1;
2575
- optional string waEntFbid = 2;
2576
- }
2577
-
2578
1832
  }
2579
1833
 
2580
1834
  }
@@ -2585,9 +1839,6 @@ message Message {
2585
1839
  GENERATE_LINK_PREVIEW = 2;
2586
1840
  HISTORY_SYNC_ON_DEMAND = 3;
2587
1841
  PLACEHOLDER_MESSAGE_RESEND = 4;
2588
- WAFFLE_LINKING_NONCE_FETCH = 5;
2589
- FULL_HISTORY_SYNC_ON_DEMAND = 6;
2590
- COMPANION_META_NONCE_FETCH = 7;
2591
1842
  }
2592
1843
  message PinInChatMessage {
2593
1844
  optional MessageKey key = 1;
@@ -2607,29 +1858,16 @@ message Message {
2607
1858
  }
2608
1859
  }
2609
1860
 
2610
- enum PollContentType {
2611
- UNKNOWN = 0;
2612
- TEXT = 1;
2613
- IMAGE = 2;
2614
- }
2615
1861
  message PollCreationMessage {
2616
1862
  optional bytes encKey = 1;
2617
1863
  optional string name = 2;
2618
1864
  repeated Option options = 3;
2619
1865
  optional uint32 selectableOptionsCount = 4;
2620
1866
  optional ContextInfo contextInfo = 5;
2621
- optional Message.PollContentType pollContentType = 6;
2622
- optional PollType pollType = 7;
2623
- optional Option correctAnswer = 8;
2624
1867
  message Option {
2625
1868
  optional string optionName = 1;
2626
- optional string optionHash = 2;
2627
1869
  }
2628
1870
 
2629
- enum PollType {
2630
- POLL = 0;
2631
- QUIZ = 1;
2632
- }
2633
1871
  }
2634
1872
 
2635
1873
  message PollEncValue {
@@ -2637,17 +1875,6 @@ message Message {
2637
1875
  optional bytes encIv = 2;
2638
1876
  }
2639
1877
 
2640
- message PollResultSnapshotMessage {
2641
- optional string name = 1;
2642
- repeated PollVote pollVotes = 2;
2643
- optional ContextInfo contextInfo = 3;
2644
- message PollVote {
2645
- optional string optionName = 1;
2646
- optional int64 optionVoteCount = 2;
2647
- }
2648
-
2649
- }
2650
-
2651
1878
  message PollUpdateMessage {
2652
1879
  optional MessageKey pollCreationMessageKey = 1;
2653
1880
  optional Message.PollEncValue vote = 2;
@@ -2687,7 +1914,6 @@ message Message {
2687
1914
  optional uint32 productImageCount = 9;
2688
1915
  optional string firstImageId = 11;
2689
1916
  optional int64 salePriceAmount1000 = 12;
2690
- optional string signedUrl = 13;
2691
1917
  }
2692
1918
 
2693
1919
  }
@@ -2711,9 +1937,6 @@ message Message {
2711
1937
  optional string invokerJid = 19;
2712
1938
  optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
2713
1939
  optional MediaNotifyMessage mediaNotifyMessage = 21;
2714
- optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
2715
- optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
2716
- optional LimitSharing limitSharing = 24;
2717
1940
  enum Type {
2718
1941
  REVOKE = 0;
2719
1942
  EPHEMERAL_SETTING = 3;
@@ -2731,13 +1954,6 @@ message Message {
2731
1954
  REQUEST_WELCOME_MESSAGE = 18;
2732
1955
  BOT_FEEDBACK_MESSAGE = 19;
2733
1956
  MEDIA_NOTIFY_MESSAGE = 20;
2734
- CLOUD_API_THREAD_CONTROL_NOTIFICATION = 21;
2735
- LID_MIGRATION_MAPPING_SYNC = 22;
2736
- REMINDER_MESSAGE = 23;
2737
- BOT_MEMU_ONBOARDING_MESSAGE = 24;
2738
- STATUS_MENTION_MESSAGE = 25;
2739
- STOP_GENERATION_MESSAGE = 26;
2740
- LIMIT_SHARING = 27;
2741
1957
  }
2742
1958
  }
2743
1959
 
@@ -2790,17 +2006,6 @@ message Message {
2790
2006
  }
2791
2007
  }
2792
2008
 
2793
- message SecretEncryptedMessage {
2794
- optional MessageKey targetMessageKey = 1;
2795
- optional bytes encPayload = 2;
2796
- optional bytes encIv = 3;
2797
- optional SecretEncType secretEncType = 4;
2798
- enum SecretEncType {
2799
- UNKNOWN = 0;
2800
- EVENT_EDIT = 1;
2801
- }
2802
- }
2803
-
2804
2009
  message SendPaymentMessage {
2805
2010
  optional Message noteMessage = 2;
2806
2011
  optional MessageKey requestMessageKey = 3;
@@ -2812,17 +2017,6 @@ message Message {
2812
2017
  optional bytes axolotlSenderKeyDistributionMessage = 2;
2813
2018
  }
2814
2019
 
2815
- message StatusNotificationMessage {
2816
- optional MessageKey responseMessageKey = 1;
2817
- optional MessageKey originalMessageKey = 2;
2818
- optional StatusNotificationType type = 3;
2819
- enum StatusNotificationType {
2820
- UNKNOWN = 0;
2821
- STATUS_ADD_YOURS = 1;
2822
- STATUS_RESHARE = 2;
2823
- }
2824
- }
2825
-
2826
2020
  message StickerMessage {
2827
2021
  optional string url = 1;
2828
2022
  optional bytes fileSha256 = 2;
@@ -2843,46 +2037,6 @@ message Message {
2843
2037
  optional bool isAvatar = 19;
2844
2038
  optional bool isAiSticker = 20;
2845
2039
  optional bool isLottie = 21;
2846
- optional string accessibilityLabel = 22;
2847
- }
2848
-
2849
- message StickerPackMessage {
2850
- optional string stickerPackId = 1;
2851
- optional string name = 2;
2852
- optional string publisher = 3;
2853
- repeated Sticker stickers = 4;
2854
- optional uint64 fileLength = 5;
2855
- optional bytes fileSha256 = 6;
2856
- optional bytes fileEncSha256 = 7;
2857
- optional bytes mediaKey = 8;
2858
- optional string directPath = 9;
2859
- optional string caption = 10;
2860
- optional ContextInfo contextInfo = 11;
2861
- optional string packDescription = 12;
2862
- optional int64 mediaKeyTimestamp = 13;
2863
- optional string trayIconFileName = 14;
2864
- optional string thumbnailDirectPath = 15;
2865
- optional bytes thumbnailSha256 = 16;
2866
- optional bytes thumbnailEncSha256 = 17;
2867
- optional uint32 thumbnailHeight = 18;
2868
- optional uint32 thumbnailWidth = 19;
2869
- optional string imageDataHash = 20;
2870
- optional uint64 stickerPackSize = 21;
2871
- optional StickerPackOrigin stickerPackOrigin = 22;
2872
- message Sticker {
2873
- optional string fileName = 1;
2874
- optional bool isAnimated = 2;
2875
- repeated string emojis = 3;
2876
- optional string accessibilityLabel = 4;
2877
- optional bool isLottie = 5;
2878
- optional string mimetype = 6;
2879
- }
2880
-
2881
- enum StickerPackOrigin {
2882
- FIRST_PARTY = 0;
2883
- THIRD_PARTY = 1;
2884
- USER_CREATED = 2;
2885
- }
2886
2040
  }
2887
2041
 
2888
2042
  message StickerSyncRMRMessage {
@@ -2963,8 +2117,6 @@ message Message {
2963
2117
  optional bytes thumbnailEncSha256 = 23;
2964
2118
  optional string staticUrl = 24;
2965
2119
  repeated InteractiveAnnotation annotations = 25;
2966
- optional string accessibilityLabel = 26;
2967
- repeated ProcessedVideo processedVideos = 27;
2968
2120
  enum Attribution {
2969
2121
  NONE = 0;
2970
2122
  GIPHY = 1;
@@ -2974,50 +2126,8 @@ message Message {
2974
2126
 
2975
2127
  }
2976
2128
 
2977
- message MessageAddOn {
2978
- optional MessageAddOnType messageAddOnType = 1;
2979
- optional Message messageAddOn = 2;
2980
- optional int64 senderTimestampMs = 3;
2981
- optional int64 serverTimestampMs = 4;
2982
- optional WebMessageInfo.Status status = 5;
2983
- optional MessageAddOnContextInfo addOnContextInfo = 6;
2984
- optional MessageKey messageAddOnKey = 7;
2985
- optional LegacyMessage legacyMessage = 8;
2986
- enum MessageAddOnType {
2987
- UNDEFINED = 0;
2988
- REACTION = 1;
2989
- EVENT_RESPONSE = 2;
2990
- POLL_UPDATE = 3;
2991
- PIN_IN_CHAT = 4;
2992
- }
2993
- }
2994
-
2995
2129
  message MessageAddOnContextInfo {
2996
2130
  optional uint32 messageAddOnDurationInSecs = 1;
2997
- optional MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 2;
2998
- }
2999
-
3000
- message MessageAssociation {
3001
- optional AssociationType associationType = 1;
3002
- optional MessageKey parentMessageKey = 2;
3003
- optional int32 messageIndex = 3;
3004
- enum AssociationType {
3005
- UNKNOWN = 0;
3006
- MEDIA_ALBUM = 1;
3007
- BOT_PLUGIN = 2;
3008
- EVENT_COVER_IMAGE = 3;
3009
- STATUS_POLL = 4;
3010
- HD_VIDEO_DUAL_UPLOAD = 5;
3011
- STATUS_TAPPABLE_MESSAGE = 6;
3012
- MEDIA_POLL = 7;
3013
- STATUS_ADD_YOURS = 8;
3014
- STATUS_NOTIFICATION = 9;
3015
- HD_IMAGE_DUAL_UPLOAD = 10;
3016
- STICKER_ANNOTATION = 11;
3017
- MOTION_PHOTO = 12;
3018
- STATUS_LINK_ACTION = 13;
3019
- VIEW_ALL_REPLIES = 14;
3020
- }
3021
2131
  }
3022
2132
 
3023
2133
  message MessageContextInfo {
@@ -3029,14 +2139,6 @@ message MessageContextInfo {
3029
2139
  optional bytes botMessageSecret = 6;
3030
2140
  optional BotMetadata botMetadata = 7;
3031
2141
  optional int32 reportingTokenVersion = 8;
3032
- optional MessageAddonExpiryType messageAddOnExpiryType = 9;
3033
- optional MessageAssociation messageAssociation = 10;
3034
- optional bool capiCreatedGroup = 11;
3035
- optional string supportPayload = 12;
3036
- enum MessageAddonExpiryType {
3037
- STATIC = 1;
3038
- DEPENDENT_ON_PARENT = 2;
3039
- }
3040
2142
  }
3041
2143
 
3042
2144
  message MessageKey {
@@ -3066,6 +2168,7 @@ message MsgOpaqueData {
3066
2168
  optional double lat = 7;
3067
2169
  optional int32 paymentAmount1000 = 8;
3068
2170
  optional string paymentNoteMsgBody = 9;
2171
+ optional string canonicalUrl = 10;
3069
2172
  optional string matchedText = 11;
3070
2173
  optional string title = 12;
3071
2174
  optional string description = 13;
@@ -3081,8 +2184,6 @@ message MsgOpaqueData {
3081
2184
  optional string pollUpdateParentKey = 23;
3082
2185
  optional PollEncValue encPollVote = 24;
3083
2186
  optional bool isSentCagPollCreation = 28;
3084
- optional PollContentType pollContentType = 42;
3085
- optional PollVotesSnapshot pollVotesSnapshot = 41;
3086
2187
  optional string encReactionTargetMessageKey = 25;
3087
2188
  optional bytes encReactionEncPayload = 26;
3088
2189
  optional bytes encReactionEncIv = 27;
@@ -3090,39 +2191,8 @@ message MsgOpaqueData {
3090
2191
  optional string targetMessageKey = 30;
3091
2192
  optional bytes encPayload = 31;
3092
2193
  optional bytes encIv = 32;
3093
- optional string eventName = 33;
3094
- optional bool isEventCanceled = 34;
3095
- optional string eventDescription = 35;
3096
- optional string eventJoinLink = 36;
3097
- optional int64 eventStartTime = 37;
3098
- optional EventLocation eventLocation = 38;
3099
- optional int64 eventEndTime = 40;
3100
- message EventLocation {
3101
- optional double degreesLatitude = 1;
3102
- optional double degreesLongitude = 2;
3103
- optional string name = 3;
3104
- optional string address = 4;
3105
- optional string url = 5;
3106
- optional bytes jpegThumbnail = 6;
3107
- }
3108
-
3109
- enum PollContentType {
3110
- UNKNOWN = 0;
3111
- TEXT = 1;
3112
- IMAGE = 2;
3113
- }
3114
2194
  message PollOption {
3115
2195
  optional string name = 1;
3116
- optional string hash = 2;
3117
- }
3118
-
3119
- message PollVoteSnapshot {
3120
- optional MsgOpaqueData.PollOption option = 1;
3121
- optional int32 optionVoteCount = 2;
3122
- }
3123
-
3124
- message PollVotesSnapshot {
3125
- repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
3126
2196
  }
3127
2197
 
3128
2198
  }
@@ -3161,12 +2231,6 @@ message NotificationSettings {
3161
2231
  optional string callVibrate = 6;
3162
2232
  }
3163
2233
 
3164
- message PairingRequest {
3165
- optional bytes companionPublicKey = 1;
3166
- optional bytes companionIdentityKey = 2;
3167
- optional bytes advSecret = 3;
3168
- }
3169
-
3170
2234
  message PastParticipant {
3171
2235
  optional string userJid = 1;
3172
2236
  optional LeaveReason leaveReason = 2;
@@ -3202,8 +2266,6 @@ message PatchDebugData {
3202
2266
  WEB = 4;
3203
2267
  UWP = 5;
3204
2268
  DARWIN = 6;
3205
- IPAD = 7;
3206
- WEAROS = 8;
3207
2269
  }
3208
2270
  }
3209
2271
 
@@ -3367,43 +2429,46 @@ message PremiumMessageInfo {
3367
2429
  optional string serverCampaignId = 1;
3368
2430
  }
3369
2431
 
3370
- message PrimaryEphemeralIdentity {
3371
- optional bytes publicKey = 1;
3372
- optional bytes nonce = 2;
3373
- }
3374
-
3375
- enum PrivacySystemMessage {
3376
- E2EE_MSG = 1;
3377
- NE2EE_SELF = 2;
3378
- NE2EE_OTHER = 3;
3379
- }
3380
- message ProcessedVideo {
3381
- optional string directPath = 1;
3382
- optional bytes fileSha256 = 2;
3383
- optional uint32 height = 3;
3384
- optional uint32 width = 4;
3385
- optional uint64 fileLength = 5;
3386
- optional uint32 bitrate = 6;
3387
- optional VideoQuality quality = 7;
3388
- repeated string capabilities = 8;
3389
- enum VideoQuality {
3390
- UNDEFINED = 0;
3391
- LOW = 1;
3392
- MID = 2;
3393
- HIGH = 3;
3394
- }
3395
- }
3396
-
3397
- message ProloguePayload {
3398
- optional bytes companionEphemeralIdentity = 1;
3399
- optional CompanionCommitment commitment = 2;
3400
- }
3401
-
3402
2432
  message Pushname {
3403
2433
  optional string id = 1;
3404
2434
  optional string pushname = 2;
3405
2435
  }
3406
2436
 
2437
+ message QP {
2438
+ enum ClauseType {
2439
+ AND = 1;
2440
+ OR = 2;
2441
+ NOR = 3;
2442
+ }
2443
+ message Filter {
2444
+ required string filterName = 1;
2445
+ repeated QP.FilterParameters parameters = 2;
2446
+ optional QP.FilterResult filterResult = 3;
2447
+ required QP.FilterClientNotSupportedConfig clientNotSupportedConfig = 4;
2448
+ }
2449
+
2450
+ message FilterClause {
2451
+ required QP.ClauseType clauseType = 1;
2452
+ repeated QP.FilterClause clauses = 2;
2453
+ repeated QP.Filter filters = 3;
2454
+ }
2455
+
2456
+ enum FilterClientNotSupportedConfig {
2457
+ PASS_BY_DEFAULT = 1;
2458
+ FAIL_BY_DEFAULT = 2;
2459
+ }
2460
+ message FilterParameters {
2461
+ optional string key = 1;
2462
+ optional string value = 2;
2463
+ }
2464
+
2465
+ enum FilterResult {
2466
+ TRUE = 1;
2467
+ FALSE = 2;
2468
+ UNKNOWN = 3;
2469
+ }
2470
+ }
2471
+
3407
2472
  message Reaction {
3408
2473
  optional MessageKey key = 1;
3409
2474
  optional string text = 2;
@@ -3422,13 +2487,6 @@ message RecordStructure {
3422
2487
  repeated SessionStructure previousSessions = 2;
3423
2488
  }
3424
2489
 
3425
- message Reportable {
3426
- optional uint32 minVersion = 1;
3427
- optional uint32 maxVersion = 2;
3428
- optional uint32 notReportableMinVersion = 3;
3429
- optional bool never = 4;
3430
- }
3431
-
3432
2490
  message ReportingTokenInfo {
3433
2491
  optional bytes reportingTag = 1;
3434
2492
  }
@@ -3542,10 +2600,6 @@ message SignedPreKeyRecordStructure {
3542
2600
  optional fixed64 timestamp = 5;
3543
2601
  }
3544
2602
 
3545
- message StatusMentionMessage {
3546
- optional Message quotedStatus = 1;
3547
- }
3548
-
3549
2603
  message StatusPSA {
3550
2604
  required uint64 campaignId = 44;
3551
2605
  optional uint64 campaignExpirationTimestamp = 45;
@@ -3563,7 +2617,6 @@ message StickerMetadata {
3563
2617
  optional uint64 fileLength = 9;
3564
2618
  optional float weight = 10;
3565
2619
  optional int64 lastStickerSentTs = 11;
3566
- optional bool isLottie = 12;
3567
2620
  }
3568
2621
 
3569
2622
  message SyncActionData {
@@ -3617,17 +2670,6 @@ message SyncActionValue {
3617
2670
  optional LabelReorderingAction labelReorderingAction = 47;
3618
2671
  optional PaymentInfoAction paymentInfoAction = 48;
3619
2672
  optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
3620
- optional LockChatAction lockChatAction = 50;
3621
- optional ChatLockSettings chatLockSettings = 51;
3622
- optional WamoUserIdentifierAction wamoUserIdentifierAction = 52;
3623
- optional PrivacySettingDisableLinkPreviewsAction privacySettingDisableLinkPreviewsAction = 53;
3624
- optional DeviceCapabilities deviceCapabilities = 54;
3625
- optional NoteEditAction noteEditAction = 55;
3626
- optional FavoritesAction favoritesAction = 56;
3627
- optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
3628
- optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
3629
- optional UsernameChatStartModeAction usernameChatStartMode = 59;
3630
- optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
3631
2673
  message AgentAction {
3632
2674
  optional string name = 1;
3633
2675
  optional int32 deviceID = 2;
@@ -3704,14 +2746,6 @@ message SyncActionValue {
3704
2746
  optional bool isOptIn = 1;
3705
2747
  }
3706
2748
 
3707
- message FavoritesAction {
3708
- repeated Favorite favorites = 1;
3709
- message Favorite {
3710
- optional string id = 1;
3711
- }
3712
-
3713
- }
3714
-
3715
2749
  message KeyExpiration {
3716
2750
  optional int32 expiredKeyEpoch = 1;
3717
2751
  }
@@ -3726,16 +2760,6 @@ message SyncActionValue {
3726
2760
  optional int32 predefinedId = 3;
3727
2761
  optional bool deleted = 4;
3728
2762
  optional int32 orderIndex = 5;
3729
- optional bool isActive = 6;
3730
- optional ListType type = 7;
3731
- enum ListType {
3732
- NONE = 0;
3733
- UNREAD = 1;
3734
- GROUPS = 2;
3735
- FAVORITES = 3;
3736
- PREDEFINED = 4;
3737
- CUSTOM = 5;
3738
- }
3739
2763
  }
3740
2764
 
3741
2765
  message LabelReorderingAction {
@@ -3746,10 +2770,6 @@ message SyncActionValue {
3746
2770
  optional string locale = 1;
3747
2771
  }
3748
2772
 
3749
- message LockChatAction {
3750
- optional bool locked = 1;
3751
- }
3752
-
3753
2773
  message MarkChatAsReadAction {
3754
2774
  optional bool read = 1;
3755
2775
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
@@ -3772,45 +2792,12 @@ message SyncActionValue {
3772
2792
  optional int32 repliedCount = 1;
3773
2793
  }
3774
2794
 
3775
- message MerchantPaymentPartnerAction {
3776
- required Status status = 1;
3777
- required string country = 2;
3778
- optional string gatewayName = 3;
3779
- optional string credentialId = 4;
3780
- enum Status {
3781
- ACTIVE = 0;
3782
- INACTIVE = 1;
3783
- }
3784
- }
3785
-
3786
2795
  message MuteAction {
3787
2796
  optional bool muted = 1;
3788
2797
  optional int64 muteEndTimestamp = 2;
3789
2798
  optional bool autoMuted = 3;
3790
2799
  }
3791
2800
 
3792
- message NoteEditAction {
3793
- optional NoteType type = 1;
3794
- optional string chatJid = 2;
3795
- optional int64 createdAt = 3;
3796
- optional bool deleted = 4;
3797
- optional string unstructuredContent = 5;
3798
- enum NoteType {
3799
- UNSTRUCTURED = 1;
3800
- STRUCTURED = 2;
3801
- }
3802
- }
3803
-
3804
- message NotificationActivitySettingAction {
3805
- optional NotificationActivitySetting notificationActivitySetting = 1;
3806
- enum NotificationActivitySetting {
3807
- DEFAULT_ALL_MESSAGES = 0;
3808
- ALL_MESSAGES = 1;
3809
- HIGHLIGHTS = 2;
3810
- DEFAULT_HIGHLIGHTS = 3;
3811
- }
3812
- }
3813
-
3814
2801
  message NuxAction {
3815
2802
  optional bool acknowledged = 1;
3816
2803
  }
@@ -3835,10 +2822,6 @@ message SyncActionValue {
3835
2822
  optional string version = 1;
3836
2823
  }
3837
2824
 
3838
- message PrivacySettingDisableLinkPreviewsAction {
3839
- optional bool isPreviewsDisabled = 1;
3840
- }
3841
-
3842
2825
  message PrivacySettingRelayAllCalls {
3843
2826
  optional bool isEnabled = 1;
3844
2827
  }
@@ -3892,7 +2875,6 @@ message SyncActionValue {
3892
2875
  optional uint64 fileLength = 8;
3893
2876
  optional bool isFavorite = 9;
3894
2877
  optional uint32 deviceIdHint = 10;
3895
- optional bool isLottie = 11;
3896
2878
  }
3897
2879
 
3898
2880
  message SubscriptionAction {
@@ -3924,25 +2906,6 @@ message SyncActionValue {
3924
2906
  optional bool muted = 1;
3925
2907
  }
3926
2908
 
3927
- message UsernameChatStartModeAction {
3928
- optional ChatStartMode chatStartMode = 1;
3929
- enum ChatStartMode {
3930
- LID = 1;
3931
- PN = 2;
3932
- }
3933
- }
3934
-
3935
- message WaffleAccountLinkStateAction {
3936
- optional AccountLinkState linkState = 2;
3937
- enum AccountLinkState {
3938
- ACTIVE = 0;
3939
- }
3940
- }
3941
-
3942
- message WamoUserIdentifierAction {
3943
- optional string identifier = 1;
3944
- }
3945
-
3946
2909
  }
3947
2910
 
3948
2911
  message SyncdIndex {
@@ -3995,11 +2958,6 @@ message SyncdVersion {
3995
2958
  optional uint64 version = 1;
3996
2959
  }
3997
2960
 
3998
- message TapLinkAction {
3999
- optional string title = 1;
4000
- optional string tapUrl = 2;
4001
- }
4002
-
4003
2961
  message TemplateButton {
4004
2962
  optional uint32 index = 4;
4005
2963
  oneof button {
@@ -4024,45 +2982,6 @@ message TemplateButton {
4024
2982
 
4025
2983
  }
4026
2984
 
4027
- message UrlTrackingMap {
4028
- repeated UrlTrackingMapElement urlTrackingMapElements = 1;
4029
- message UrlTrackingMapElement {
4030
- optional string originalUrl = 1;
4031
- optional string unconsentedUsersUrl = 2;
4032
- optional string consentedUsersUrl = 3;
4033
- optional uint32 cardIndex = 4;
4034
- }
4035
-
4036
- }
4037
-
4038
- message UserPassword {
4039
- optional Encoding encoding = 1;
4040
- optional Transformer transformer = 2;
4041
- repeated TransformerArg transformerArg = 3;
4042
- optional bytes transformedData = 4;
4043
- enum Encoding {
4044
- UTF8 = 0;
4045
- UTF8_BROKEN = 1;
4046
- }
4047
- enum Transformer {
4048
- NONE = 0;
4049
- PBKDF2_HMAC_SHA512 = 1;
4050
- PBKDF2_HMAC_SHA384 = 2;
4051
- }
4052
- message TransformerArg {
4053
- optional string key = 1;
4054
- optional Value value = 2;
4055
- message Value {
4056
- oneof value {
4057
- bytes asBlob = 1;
4058
- uint32 asUnsignedInteger = 2;
4059
- }
4060
- }
4061
-
4062
- }
4063
-
4064
- }
4065
-
4066
2985
  message UserReceipt {
4067
2986
  required string userJid = 1;
4068
2987
  optional int64 receiptTimestamp = 2;
@@ -4198,16 +3117,6 @@ message WebMessageInfo {
4198
3117
  repeated EventResponse eventResponses = 61;
4199
3118
  optional ReportingTokenInfo reportingTokenInfo = 62;
4200
3119
  optional uint64 newsletterServerId = 63;
4201
- optional EventAdditionalMetadata eventAdditionalMetadata = 64;
4202
- optional bool isMentionedInStatus = 65;
4203
- repeated string statusMentions = 66;
4204
- optional MessageKey targetMessageId = 67;
4205
- repeated MessageAddOn messageAddOns = 68;
4206
- optional StatusMentionMessage statusMentionMessageInfo = 69;
4207
- optional bool isSupportAiMessage = 70;
4208
- repeated string statusMentionSources = 71;
4209
- repeated Citation supportAiCitations = 72;
4210
- optional string botTargetId = 73;
4211
3120
  enum BizPrivacyStatus {
4212
3121
  E2EE = 0;
4213
3122
  FB = 2;
@@ -4424,21 +3333,6 @@ message WebMessageInfo {
4424
3333
  REMINDER_SETUP_MESSAGE = 198;
4425
3334
  REMINDER_SENT_MESSAGE = 199;
4426
3335
  REMINDER_CANCEL_MESSAGE = 200;
4427
- BIZ_COEX_PRIVACY_INIT = 201;
4428
- BIZ_COEX_PRIVACY_TRANSITION = 202;
4429
- GROUP_DEACTIVATED = 203;
4430
- COMMUNITY_DEACTIVATE_SIBLING_GROUP = 204;
4431
- EVENT_UPDATED = 205;
4432
- EVENT_CANCELED = 206;
4433
- COMMUNITY_OWNER_UPDATED = 207;
4434
- COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208;
4435
- CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209;
4436
- STATUS_MENTION = 210;
4437
- USER_CONTROLS_SYSTEM_MESSAGE = 211;
4438
- SUPPORT_SYSTEM_MESSAGE = 212;
4439
- CHANGE_LID = 213;
4440
- BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE = 214;
4441
- BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE = 215;
4442
3336
  }
4443
3337
  }
4444
3338