@alannxd/baileys 6.0.5 → 6.0.9

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 (123) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +341 -286
  3. package/WAProto/WAProto.proto +1782 -359
  4. package/WAProto/index.d.ts +75133 -9893
  5. package/WAProto/index.js +205861 -60606
  6. package/lib/Socket/luxu.js +6 -117
  7. package/lib/Socket/messages-send.js +637 -493
  8. package/lib/Socket/newsletter.js +229 -156
  9. package/lib/Utils/browser-utils.js +26 -6
  10. package/lib/Utils/decode-wa-message.js +33 -0
  11. package/lib/Utils/generics.js +10 -0
  12. package/lib/Utils/index.js +1 -0
  13. package/lib/Utils/message-composer.js +273 -0
  14. package/lib/Utils/messages.js +361 -24
  15. package/lib/WABinary/generic-utils.js +8 -1
  16. package/lib/WABinary/jid-utils.js +2 -0
  17. package/lib/index.js +1 -2
  18. package/package.json +5 -4
  19. package/lib/Defaults/index.d.ts +0 -75
  20. package/lib/Signal/Group/ciphertext-message.d.ts +0 -10
  21. package/lib/Signal/Group/group-session-builder.d.ts +0 -15
  22. package/lib/Signal/Group/group_cipher.d.ts +0 -17
  23. package/lib/Signal/Group/index.d.ts +0 -12
  24. package/lib/Signal/Group/keyhelper.d.ts +0 -11
  25. package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
  26. package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
  27. package/lib/Signal/Group/sender-key-message.d.ts +0 -19
  28. package/lib/Signal/Group/sender-key-name.d.ts +0 -18
  29. package/lib/Signal/Group/sender-key-record.d.ts +0 -31
  30. package/lib/Signal/Group/sender-key-state.d.ts +0 -39
  31. package/lib/Signal/Group/sender-message-key.d.ts +0 -12
  32. package/lib/Signal/libsignal.d.ts +0 -5
  33. package/lib/Signal/lid-mapping.d.ts +0 -23
  34. package/lib/Socket/Client/index.d.ts +0 -3
  35. package/lib/Socket/Client/types.d.ts +0 -16
  36. package/lib/Socket/Client/websocket.d.ts +0 -13
  37. package/lib/Socket/business.d.ts +0 -217
  38. package/lib/Socket/chats.d.ts +0 -124
  39. package/lib/Socket/communities.d.ts +0 -273
  40. package/lib/Socket/groups.d.ts +0 -162
  41. package/lib/Socket/index.d.ts +0 -260
  42. package/lib/Socket/luxu.d.ts +0 -22
  43. package/lib/Socket/messages-recv.d.ts +0 -213
  44. package/lib/Socket/messages-send.d.ts +0 -199
  45. package/lib/Socket/mex.d.ts +0 -3
  46. package/lib/Socket/newsletter.d.ts +0 -170
  47. package/lib/Socket/socket.d.ts +0 -59
  48. package/lib/Store/index.d.ts +0 -10
  49. package/lib/Store/keyed-db.d.ts +0 -22
  50. package/lib/Store/make-cache-manager-store.d.ts +0 -19
  51. package/lib/Store/make-in-memory-store.d.ts +0 -39
  52. package/lib/Store/make-ordered-dictionary.d.ts +0 -14
  53. package/lib/Store/object-repository.d.ts +0 -11
  54. package/lib/Types/Auth.d.ts +0 -117
  55. package/lib/Types/Bussines.d.ts +0 -25
  56. package/lib/Types/Call.d.ts +0 -15
  57. package/lib/Types/Chat.d.ts +0 -124
  58. package/lib/Types/Contact.d.ts +0 -26
  59. package/lib/Types/Events.d.ts +0 -256
  60. package/lib/Types/GroupMetadata.d.ts +0 -71
  61. package/lib/Types/Label.d.ts +0 -47
  62. package/lib/Types/LabelAssociation.d.ts +0 -30
  63. package/lib/Types/Message.d.ts +0 -320
  64. package/lib/Types/Mex.d.ts +0 -141
  65. package/lib/Types/Product.d.ts +0 -79
  66. package/lib/Types/Signal.d.ts +0 -87
  67. package/lib/Types/Socket.d.ts +0 -136
  68. package/lib/Types/State.d.ts +0 -97
  69. package/lib/Types/USync.d.ts +0 -26
  70. package/lib/Types/index.d.ts +0 -65
  71. package/lib/Utils/auth-utils.d.ts +0 -24
  72. package/lib/Utils/browser-utils.d.ts +0 -4
  73. package/lib/Utils/business.d.ts +0 -23
  74. package/lib/Utils/chat-utils.d.ts +0 -100
  75. package/lib/Utils/companion-reg-client-utils.d.ts +0 -17
  76. package/lib/Utils/crypto.d.ts +0 -37
  77. package/lib/Utils/decode-wa-message.d.ts +0 -66
  78. package/lib/Utils/event-buffer.d.ts +0 -36
  79. package/lib/Utils/generics.d.ts +0 -91
  80. package/lib/Utils/history.d.ts +0 -24
  81. package/lib/Utils/identity-change-handler.d.ts +0 -44
  82. package/lib/Utils/index.d.ts +0 -22
  83. package/lib/Utils/link-preview.d.ts +0 -21
  84. package/lib/Utils/logger.d.ts +0 -12
  85. package/lib/Utils/lt-hash.d.ts +0 -8
  86. package/lib/Utils/make-mutex.d.ts +0 -9
  87. package/lib/Utils/message-retry-manager.d.ts +0 -115
  88. package/lib/Utils/messages-media.d.ts +0 -133
  89. package/lib/Utils/messages.d.ts +0 -91
  90. package/lib/Utils/noise-handler.d.ts +0 -20
  91. package/lib/Utils/offline-node-processor.d.ts +0 -17
  92. package/lib/Utils/pre-key-manager.d.ts +0 -28
  93. package/lib/Utils/process-message.d.ts +0 -60
  94. package/lib/Utils/reporting-utils.d.ts +0 -11
  95. package/lib/Utils/signal.d.ts +0 -47
  96. package/lib/Utils/stanza-ack.d.ts +0 -11
  97. package/lib/Utils/sync-action-utils.d.ts +0 -19
  98. package/lib/Utils/tc-token-utils.d.ts +0 -37
  99. package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
  100. package/lib/Utils/validate-connection.d.ts +0 -11
  101. package/lib/WABinary/constants.d.ts +0 -28
  102. package/lib/WABinary/decode.d.ts +0 -7
  103. package/lib/WABinary/encode.d.ts +0 -3
  104. package/lib/WABinary/generic-utils.d.ts +0 -18
  105. package/lib/WABinary/index.d.ts +0 -6
  106. package/lib/WABinary/jid-utils.d.ts +0 -48
  107. package/lib/WABinary/types.d.ts +0 -19
  108. package/lib/WAM/BinaryInfo.d.ts +0 -9
  109. package/lib/WAM/constants.d.ts +0 -40
  110. package/lib/WAM/encode.d.ts +0 -3
  111. package/lib/WAM/index.d.ts +0 -4
  112. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
  113. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -23
  114. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -13
  115. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -13
  116. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +0 -10
  117. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +0 -26
  118. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +0 -10
  119. package/lib/WAUSync/Protocols/index.d.ts +0 -6
  120. package/lib/WAUSync/USyncQuery.d.ts +0 -30
  121. package/lib/WAUSync/USyncUser.d.ts +0 -17
  122. package/lib/WAUSync/index.d.ts +0 -4
  123. package/lib/index.d.ts +0 -13
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package proto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1029496320
4
+ /// WhatsApp Version: 2.3000.1041467552
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -14,6 +14,7 @@ message ADVDeviceIdentity {
14
14
  enum ADVEncryptionType {
15
15
  E2EE = 0;
16
16
  HOSTED = 1;
17
+ NON_E2EE = 2;
17
18
  }
18
19
  message ADVKeyIndexList {
19
20
  optional uint32 rawId = 1;
@@ -54,14 +55,32 @@ message AIHomeState {
54
55
  optional string imageWdsIdentifier = 5;
55
56
  optional string imageTintColor = 6;
56
57
  optional string imageBackgroundColor = 7;
58
+ optional string cardTypeId = 8;
57
59
  enum AIHomeActionType {
58
60
  PROMPT = 0;
59
61
  CREATE_IMAGE = 1;
60
62
  ANIMATE_PHOTO = 2;
61
63
  ANALYZE_FILE = 3;
64
+ COLLABORATE = 4;
65
+ OPEN_GREETING_CARD = 5;
62
66
  }
63
67
  }
68
+
69
+ }
70
+
71
+ message AIMediaCollectionMessage {
72
+ optional string collectionId = 1;
73
+ optional uint32 expectedMediaCount = 2;
74
+ optional bool hasGlobalCaption = 3;
75
+ }
76
+
77
+ message AIMediaCollectionMetadata {
78
+ optional string collectionId = 1;
79
+ optional uint32 uploadOrderIndex = 2;
80
+ }
64
81
 
82
+ message AIMetadataOperation {
83
+ optional HatchMetadataSync hatchMetadataSync = 1;
65
84
  }
66
85
 
67
86
  message AIQueryFanout {
@@ -82,7 +101,7 @@ message AIRichResponseCodeMetadata {
82
101
  optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
83
102
  optional string codeContent = 2;
84
103
  }
85
-
104
+
86
105
  enum AIRichResponseCodeHighlightType {
87
106
  AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
88
107
  AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
@@ -101,14 +120,14 @@ message AIRichResponseContentItemsMetadata {
101
120
  AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
102
121
  }
103
122
  }
104
-
123
+
105
124
  message AIRichResponseReelItem {
106
125
  optional string title = 1;
107
126
  optional string profileIconUrl = 2;
108
127
  optional string thumbnailUrl = 3;
109
128
  optional string videoUrl = 4;
110
129
  }
111
-
130
+
112
131
  enum ContentType {
113
132
  DEFAULT = 0;
114
133
  CAROUSEL = 1;
@@ -164,7 +183,7 @@ message AIRichResponseLatexMetadata {
164
183
  optional double imageBottomPadding = 8;
165
184
  optional double imageTrailingPadding = 9;
166
185
  }
167
-
186
+
168
187
  }
169
188
 
170
189
  message AIRichResponseMapMetadata {
@@ -181,7 +200,7 @@ message AIRichResponseMapMetadata {
181
200
  optional string title = 4;
182
201
  optional string body = 5;
183
202
  }
184
-
203
+
185
204
  }
186
205
 
187
206
  message AIRichResponseMessage {
@@ -227,29 +246,41 @@ message AIRichResponseTableMetadata {
227
246
  repeated string items = 1;
228
247
  optional bool isHeading = 2;
229
248
  }
230
-
249
+
231
250
  }
232
251
 
233
252
  message AIRichResponseUnifiedResponse {
234
253
  optional bytes data = 1;
235
254
  }
236
255
 
256
+ enum AISubscriptionRequestType {
257
+ UNSPECIFIED = 0;
258
+ THINK_HARD = 1;
259
+ IMAGE_GEN = 2;
260
+ VIDEO_GEN = 3;
261
+ }
262
+ message AISubscriptionUpsellMetadata {
263
+ optional AISubscriptionRequestType requestType = 1;
264
+ }
265
+
237
266
  message AIThreadInfo {
238
267
  optional AIThreadServerInfo serverInfo = 1;
239
268
  optional AIThreadClientInfo clientInfo = 2;
240
269
  message AIThreadClientInfo {
241
270
  optional AIThreadType type = 1;
271
+ optional string sourceChatJid = 2;
242
272
  enum AIThreadType {
243
273
  UNKNOWN = 0;
244
274
  DEFAULT = 1;
245
275
  INCOGNITO = 2;
276
+ SIDE_CHAT = 3;
246
277
  }
247
278
  }
248
-
279
+
249
280
  message AIThreadServerInfo {
250
281
  optional string title = 1;
251
282
  }
252
-
283
+
253
284
  }
254
285
 
255
286
  message Account {
@@ -259,6 +290,13 @@ message Account {
259
290
  optional bool isUsernameDeleted = 4;
260
291
  }
261
292
 
293
+ message AccountLinkingOpaqueData {
294
+ optional string accesstoken = 1;
295
+ optional string fbid = 2;
296
+ optional string nonce = 3;
297
+ optional string encryptedPassword = 4;
298
+ }
299
+
262
300
  message ActionLink {
263
301
  optional string url = 1;
264
302
  optional string buttonTitle = 2;
@@ -330,12 +368,12 @@ message BotAgeCollectionMetadata {
330
368
  }
331
369
  }
332
370
 
333
- message BotAvatarMetadata {
334
- optional uint32 sentiment = 1;
335
- optional string behaviorGraph = 2;
336
- optional uint32 action = 3;
337
- optional uint32 intensity = 4;
338
- optional uint32 wordCount = 5;
371
+ message BotAgentDeepLinkMetadata {
372
+ optional string token = 1;
373
+ }
374
+
375
+ message BotAgentMetadata {
376
+ optional BotAgentDeepLinkMetadata deepLinkMetadata = 1;
339
377
  }
340
378
 
341
379
  message BotCapabilityMetadata {
@@ -391,6 +429,36 @@ message BotCapabilityMetadata {
391
429
  AI_RESPONSE_MODEL_BRANDING = 47;
392
430
  SESSION_TRANSPARENCY_SYSTEM_MESSAGE = 48;
393
431
  RICH_RESPONSE_UR_REASONING = 49;
432
+ RICH_RESPONSE_UR_ZEITGEIST_CITATIONS = 50;
433
+ RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL = 51;
434
+ AI_IMAGINE_LOADING_INDICATOR = 52;
435
+ RICH_RESPONSE_UR_IMAGINE = 53;
436
+ AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR = 54;
437
+ RICH_RESPONSE_UR_BLOKS_ENABLED = 55;
438
+ RICH_RESPONSE_INLINE_LINKS_ENABLED = 56;
439
+ RICH_RESPONSE_UR_IMAGINE_VIDEO = 57;
440
+ JSON_PATCH_STREAMING = 58;
441
+ AI_TAB_FORCE_CLIPPY = 59;
442
+ UNIFIED_RESPONSE_EMBEDDED_SCREENS = 60;
443
+ AI_SUBSCRIPTION_ENABLED = 61;
444
+ UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED = 62;
445
+ UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED = 63;
446
+ AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64;
447
+ AI_SUBSCRIPTION_METERING_ENABLED = 65;
448
+ }
449
+ }
450
+
451
+ message BotCommandMetadata {
452
+ optional string commandName = 1;
453
+ optional string commandDescription = 2;
454
+ optional string commandPrompt = 3;
455
+ }
456
+
457
+ message BotDocumentMessageMetadata {
458
+ optional DocumentPluginType pluginType = 1;
459
+ enum DocumentPluginType {
460
+ TEXT_EXTRACTION = 0;
461
+ OCR_AND_IMAGES = 1;
394
462
  }
395
463
  }
396
464
 
@@ -452,7 +520,7 @@ message BotFeedbackMessage {
452
520
  optional string tessaSessionFbid = 2;
453
521
  optional string simonSessionFbid = 3;
454
522
  }
455
-
523
+
456
524
  message SidebySideSurveyMetaAiAnalyticsData {
457
525
  optional uint32 surveyId = 1;
458
526
  optional string primaryResponseId = 2;
@@ -466,32 +534,41 @@ message BotFeedbackMessage {
466
534
  message SideBySideSurveyAbandonEventData {
467
535
  optional string abandonDwellTimeMsString = 1;
468
536
  }
469
-
537
+
470
538
  message SideBySideSurveyCTAClickEventData {
471
539
  optional bool isSurveyExpired = 1;
472
540
  optional string clickDwellTimeMsString = 2;
473
541
  }
474
-
542
+
475
543
  message SideBySideSurveyCTAImpressionEventData {
476
544
  optional bool isSurveyExpired = 1;
477
545
  }
478
-
546
+
479
547
  message SideBySideSurveyCardImpressionEventData {
480
548
  }
481
-
549
+
482
550
  message SideBySideSurveyResponseEventData {
483
551
  optional string responseDwellTimeMsString = 1;
484
552
  optional string selectedResponseId = 2;
485
553
  }
486
-
554
+
487
555
  }
488
-
556
+
489
557
  }
558
+
559
+ }
560
+
561
+ message BotGroupMetadata {
562
+ repeated BotGroupParticipantMetadata participantsMetadata = 1;
563
+ }
490
564
 
565
+ message BotGroupParticipantMetadata {
566
+ optional string botFbid = 1;
491
567
  }
492
568
 
493
569
  message BotImagineMetadata {
494
570
  optional ImagineType imagineType = 1;
571
+ optional string shortPrompt = 2;
495
572
  enum ImagineType {
496
573
  UNKNOWN = 0;
497
574
  IMAGINE = 1;
@@ -501,6 +578,16 @@ message BotImagineMetadata {
501
578
  }
502
579
  }
503
580
 
581
+ message BotInfrastructureDiagnostics {
582
+ optional BotBackend botBackend = 1;
583
+ repeated string toolsUsed = 2;
584
+ optional bool isThinking = 3;
585
+ enum BotBackend {
586
+ AAPI = 0;
587
+ CLIPPY = 1;
588
+ }
589
+ }
590
+
504
591
  message BotLinkedAccount {
505
592
  optional BotLinkedAccountType type = 1;
506
593
  enum BotLinkedAccountType {
@@ -561,7 +648,6 @@ message BotMessageSharingInfo {
561
648
  }
562
649
 
563
650
  message BotMetadata {
564
- optional BotAvatarMetadata avatarMetadata = 1;
565
651
  optional string personaId = 2;
566
652
  optional BotPluginMetadata pluginMetadata = 3;
567
653
  optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
@@ -594,6 +680,15 @@ message BotMetadata {
594
680
  optional AIThreadInfo botThreadInfo = 31;
595
681
  optional AIRegenerateMetadata regenerateMetadata = 32;
596
682
  optional SessionTransparencyMetadata sessionTransparencyMetadata = 33;
683
+ optional BotDocumentMessageMetadata botDocumentMessageMetadata = 34;
684
+ optional BotGroupMetadata botGroupMetadata = 35;
685
+ optional BotRenderingConfigMetadata botRenderingConfigMetadata = 36;
686
+ optional BotInfrastructureDiagnostics botInfrastructureDiagnostics = 37;
687
+ optional AIMediaCollectionMetadata aiMediaCollectionMetadata = 38;
688
+ optional BotCommandMetadata commandMetadata = 39;
689
+ optional BotResolvedToolCallMetadata resolvedToolCallMetadata = 40;
690
+ optional AISubscriptionUpsellMetadata subscriptionUpsellMetadata = 41;
691
+ optional BotPttPromptMetadata pttPromptMetadata = 42;
597
692
  optional bytes internalMetadata = 999;
598
693
  }
599
694
 
@@ -637,6 +732,15 @@ enum BotMetricsEntryPoint {
637
732
  ATTACHMENT_TRAY_GROUP_CHAT = 36;
638
733
  ASK_META_AI_MEDIA_VIEWER_1ON1 = 37;
639
734
  ASK_META_AI_MEDIA_VIEWER_GROUP = 38;
735
+ MEDIA_PICKER_1_ON_1_CHAT = 39;
736
+ MEDIA_PICKER_GROUP_CHAT = 40;
737
+ ASK_META_AI_NO_SEARCH_RESULTS = 41;
738
+ META_AI_SETTINGS = 45;
739
+ WEB_INTRO_PANEL = 46;
740
+ WEB_NAVIGATION_BAR = 47;
741
+ GROUP_MEMBER = 54;
742
+ CHATLIST_SEARCH = 55;
743
+ NEW_CHAT_LIST = 56;
640
744
  }
641
745
  message BotMetricsMetadata {
642
746
  optional string destinationId = 1;
@@ -653,9 +757,10 @@ enum BotMetricsThreadEntryPoint {
653
757
  }
654
758
  message BotModeSelectionMetadata {
655
759
  repeated BotUserSelectionMode mode = 1;
760
+ repeated uint32 overrideMode = 2;
656
761
  enum BotUserSelectionMode {
657
- UNKNOWN_MODE = 0;
658
- REASONING_MODE = 1;
762
+ DEFAULT_MODE = 0;
763
+ THINK_HARD_MODE = 1;
659
764
  }
660
765
  }
661
766
 
@@ -704,6 +809,7 @@ message BotPluginMetadata {
704
809
  message BotProgressIndicatorMetadata {
705
810
  optional string progressDescription = 1;
706
811
  repeated BotPlanningStepMetadata stepsMetadata = 2;
812
+ optional int64 estimatedCompletionTime = 3;
707
813
  message BotPlanningStepMetadata {
708
814
  optional string statusTitle = 1;
709
815
  optional string statusBody = 2;
@@ -718,7 +824,7 @@ message BotProgressIndicatorMetadata {
718
824
  optional string sourceUrl = 3;
719
825
  optional string favIconUrl = 4;
720
826
  }
721
-
827
+
722
828
  message BotPlanningSearchSourcesMetadata {
723
829
  optional string sourceTitle = 1;
724
830
  optional BotPlanningSearchSourceProvider provider = 2;
@@ -730,13 +836,13 @@ message BotProgressIndicatorMetadata {
730
836
  BING = 3;
731
837
  }
732
838
  }
733
-
839
+
734
840
  message BotPlanningStepSectionMetadata {
735
841
  optional string sectionTitle = 1;
736
842
  optional string sectionBody = 2;
737
843
  repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
738
844
  }
739
-
845
+
740
846
  enum BotSearchSourceProvider {
741
847
  UNKNOWN_PROVIDER = 0;
742
848
  OTHER = 1;
@@ -750,7 +856,7 @@ message BotProgressIndicatorMetadata {
750
856
  FINISHED = 3;
751
857
  }
752
858
  }
753
-
859
+
754
860
  }
755
861
 
756
862
  message BotPromotionMessageMetadata {
@@ -772,6 +878,10 @@ message BotPromptSuggestions {
772
878
  repeated BotPromptSuggestion suggestions = 1;
773
879
  }
774
880
 
881
+ message BotPttPromptMetadata {
882
+ optional string transcript = 1;
883
+ }
884
+
775
885
  message BotQuotaMetadata {
776
886
  repeated BotFeatureQuotaMetadata botFeatureQuotaMetadata = 1;
777
887
  message BotFeatureQuotaMetadata {
@@ -783,7 +893,7 @@ message BotQuotaMetadata {
783
893
  REASONING_FEATURE = 1;
784
894
  }
785
895
  }
786
-
896
+
787
897
  }
788
898
 
789
899
  message BotReminderMetadata {
@@ -807,13 +917,23 @@ message BotReminderMetadata {
807
917
  }
808
918
  }
809
919
 
920
+ message BotRenderingConfigMetadata {
921
+ optional string bloksVersioningId = 1;
922
+ optional double pixelDensity = 2;
923
+ }
924
+
810
925
  message BotRenderingMetadata {
811
926
  repeated Keyword keywords = 1;
812
927
  message Keyword {
813
928
  optional string value = 1;
814
929
  repeated string associatedPrompts = 2;
815
930
  }
931
+
932
+ }
816
933
 
934
+ message BotResolvedToolCallMetadata {
935
+ optional string toolCallId = 1;
936
+ optional string resolutionDataSerialized = 2;
817
937
  }
818
938
 
819
939
  message BotSessionMetadata {
@@ -829,6 +949,7 @@ enum BotSessionSource {
829
949
  EMU_FLASH = 4;
830
950
  EMU_FLASH_FOLLOWUP = 5;
831
951
  VOICE = 6;
952
+ AI_HOME_SESSION = 7;
832
953
  }
833
954
  message BotSignatureVerificationMetadata {
834
955
  repeated BotSignatureVerificationUseCaseProof proofs = 1;
@@ -842,6 +963,8 @@ message BotSignatureVerificationUseCaseProof {
842
963
  enum BotSignatureUseCase {
843
964
  UNSPECIFIED = 0;
844
965
  WA_BOT_MSG = 1;
966
+ WA_TEE_BOT_MSG = 2;
967
+ P2P_PILLS = 3;
845
968
  }
846
969
  }
847
970
 
@@ -863,7 +986,7 @@ message BotSourcesMetadata {
863
986
  OTHER = 4;
864
987
  }
865
988
  }
866
-
989
+
867
990
  }
868
991
 
869
992
  message BotSuggestedPromptMetadata {
@@ -881,14 +1004,37 @@ message BotUnifiedResponseMutation {
881
1004
  optional BotMediaMetadata highResMedia = 2;
882
1005
  optional BotMediaMetadata previewMedia = 3;
883
1006
  }
884
-
1007
+
885
1008
  message SideBySideMetadata {
886
1009
  optional string primaryResponseId = 1;
887
1010
  optional bool surveyCtaHasRendered = 2;
888
1011
  }
889
-
1012
+
890
1013
  }
891
1014
 
1015
+ enum COMMAND_COMMAND_TYPE {
1016
+ EVERYONE = 1;
1017
+ SILENT = 2;
1018
+ AI = 3;
1019
+ AI_IMAGINE = 4;
1020
+ }
1021
+ enum CONSUMER_APPLICATION_EXTENDED_TEXT_MESSAGE_PREVIEW_TYPE {
1022
+ NONE = 0;
1023
+ VIDEO = 1;
1024
+ }
1025
+ enum CONSUMER_APPLICATION_METADATA_SPECIAL_TEXT_SIZE {
1026
+ SMALL = 1;
1027
+ MEDIUM = 2;
1028
+ LARGE = 3;
1029
+ }
1030
+ enum CONSUMER_APPLICATION_STATUS_TEXT_MESAGE_FONT_TYPE {
1031
+ SANS_SERIF = 0;
1032
+ SERIF = 1;
1033
+ NORICAN_REGULAR = 2;
1034
+ BRYNDAN_WRITE = 3;
1035
+ BEBASNEUE_REGULAR = 4;
1036
+ OSWALD_HEAVY = 5;
1037
+ }
892
1038
  message CallLogRecord {
893
1039
  optional CallResult callResult = 1;
894
1040
  optional bool isDndMode = 2;
@@ -927,7 +1073,7 @@ message CallLogRecord {
927
1073
  optional string userJid = 1;
928
1074
  optional CallLogRecord.CallResult callResult = 2;
929
1075
  }
930
-
1076
+
931
1077
  enum SilenceReason {
932
1078
  NONE = 0;
933
1079
  SCHEDULED = 1;
@@ -949,9 +1095,9 @@ message CertChain {
949
1095
  optional uint64 notBefore = 4;
950
1096
  optional uint64 notAfter = 5;
951
1097
  }
952
-
1098
+
953
1099
  }
954
-
1100
+
955
1101
  }
956
1102
 
957
1103
  message ChatLockSettings {
@@ -986,29 +1132,31 @@ message ChatRowOpaqueData {
986
1132
  VIDEO = 2;
987
1133
  }
988
1134
  }
989
-
1135
+
990
1136
  message CtwaContextLinkData {
991
1137
  optional string context = 1;
992
1138
  optional string sourceUrl = 2;
993
1139
  optional string icebreaker = 3;
994
1140
  optional string phone = 4;
995
1141
  }
996
-
1142
+
997
1143
  }
998
-
1144
+
999
1145
  }
1000
1146
 
1001
1147
  message Citation {
1002
- string title = 1;
1003
- string subtitle = 2;
1004
- string cmsId = 3;
1005
- string imageUrl = 4;
1148
+ optional string title = 1;
1149
+ optional string subtitle = 2;
1150
+ optional string cmsId = 3;
1151
+ optional string imageUrl = 4;
1006
1152
  }
1007
1153
 
1008
1154
  message ClientPairingProps {
1009
1155
  optional bool isChatDbLidMigrated = 1;
1010
1156
  optional bool isSyncdPureLidSession = 2;
1011
1157
  optional bool isSyncdSnapshotRecoveryEnabled = 3;
1158
+ optional bool isHsThumbnailSyncEnabled = 4;
1159
+ optional bytes subscriptionSyncPayload = 5;
1012
1160
  }
1013
1161
 
1014
1162
  message ClientPayload {
@@ -1046,6 +1194,8 @@ message ClientPayload {
1046
1194
  optional bool paaLink = 44;
1047
1195
  optional int32 preacksCount = 45;
1048
1196
  optional int32 processingQueueSize = 46;
1197
+ repeated string pairedPeripherals = 47;
1198
+ optional bytes testIsolationId = 48;
1049
1199
  enum AccountType {
1050
1200
  DEFAULT = 0;
1051
1201
  GUEST = 1;
@@ -1086,9 +1236,11 @@ message ClientPayload {
1086
1236
  OVERRIDE = 3;
1087
1237
  FALLBACK = 4;
1088
1238
  MNS = 5;
1239
+ MNS_SECONDARY = 6;
1240
+ SOCKS_PROXY = 7;
1089
1241
  }
1090
1242
  }
1091
-
1243
+
1092
1244
  message DevicePairingRegistrationData {
1093
1245
  optional bytes eRegid = 1;
1094
1246
  optional bytes eKeytype = 2;
@@ -1099,7 +1251,7 @@ message ClientPayload {
1099
1251
  optional bytes buildHash = 7;
1100
1252
  optional bytes deviceProps = 8;
1101
1253
  }
1102
-
1254
+
1103
1255
  enum IOSAppExtension {
1104
1256
  SHARE_EXTENSION = 0;
1105
1257
  SERVICE_EXTENSION = 1;
@@ -1110,7 +1262,7 @@ message ClientPayload {
1110
1262
  optional bytes token = 2;
1111
1263
  optional bool enableReadReceipts = 3;
1112
1264
  }
1113
-
1265
+
1114
1266
  enum Product {
1115
1267
  WHATSAPP = 0;
1116
1268
  MESSENGER = 1;
@@ -1139,6 +1291,7 @@ message ClientPayload {
1139
1291
  optional string deviceExpId = 14;
1140
1292
  optional DeviceType deviceType = 15;
1141
1293
  optional string deviceModelType = 16;
1294
+ optional DistributionChannel distributionChannel = 17;
1142
1295
  message AppVersion {
1143
1296
  optional uint32 primary = 1;
1144
1297
  optional uint32 secondary = 2;
@@ -1146,7 +1299,7 @@ message ClientPayload {
1146
1299
  optional uint32 quaternary = 4;
1147
1300
  optional uint32 quinary = 5;
1148
1301
  }
1149
-
1302
+
1150
1303
  enum DeviceType {
1151
1304
  PHONE = 0;
1152
1305
  TABLET = 1;
@@ -1154,6 +1307,12 @@ message ClientPayload {
1154
1307
  WEARABLE = 3;
1155
1308
  VR = 4;
1156
1309
  }
1310
+ enum DistributionChannel {
1311
+ APPSTORE = 0;
1312
+ WEBSITE = 1;
1313
+ TESTFLIGHT = 2;
1314
+ INTERNAL = 3;
1315
+ }
1157
1316
  enum Platform {
1158
1317
  ANDROID = 0;
1159
1318
  IOS = 1;
@@ -1201,12 +1360,14 @@ message ClientPayload {
1201
1360
  DEBUG = 3;
1202
1361
  }
1203
1362
  }
1204
-
1363
+
1205
1364
  message WebInfo {
1206
1365
  optional string refToken = 1;
1207
1366
  optional string version = 2;
1208
1367
  optional WebdPayload webdPayload = 3;
1209
1368
  optional WebSubPlatform webSubPlatform = 4;
1369
+ optional string browser = 5;
1370
+ optional string browserVersion = 6;
1210
1371
  enum WebSubPlatform {
1211
1372
  WEB_BROWSER = 0;
1212
1373
  APP_STORE = 1;
@@ -1228,9 +1389,9 @@ message ClientPayload {
1228
1389
  optional string documentTypes = 10;
1229
1390
  optional bytes features = 11;
1230
1391
  }
1231
-
1392
+
1232
1393
  }
1233
-
1394
+
1234
1395
  }
1235
1396
 
1236
1397
  enum CollectionName {
@@ -1241,6 +1402,19 @@ enum CollectionName {
1241
1402
  CRITICAL_BLOCK = 4;
1242
1403
  CRITICAL_UNBLOCK_LOW = 5;
1243
1404
  }
1405
+ message CombinedFingerprint {
1406
+ optional uint32 version = 1;
1407
+ optional FingerprintData localFingerprint = 2;
1408
+ optional FingerprintData remoteFingerprint = 3;
1409
+ }
1410
+
1411
+ message Command {
1412
+ optional COMMAND_COMMAND_TYPE commandType = 1;
1413
+ optional uint32 offset = 2;
1414
+ optional uint32 length = 3;
1415
+ optional string validationToken = 4;
1416
+ }
1417
+
1244
1418
  message CommentMetadata {
1245
1419
  optional MessageKey commentParentKey = 1;
1246
1420
  optional uint32 replyCount = 2;
@@ -1261,6 +1435,213 @@ message Config {
1261
1435
  optional uint32 version = 2;
1262
1436
  }
1263
1437
 
1438
+ message ConsumerApplication {
1439
+ optional Payload payload = 1;
1440
+ optional Metadata metadata = 2;
1441
+ message ApplicationData {
1442
+ oneof applicationContent {
1443
+ ConsumerApplication.RevokeMessage revoke = 1;
1444
+ }
1445
+ }
1446
+
1447
+ message AudioMessage {
1448
+ optional SubProtocol audio = 1;
1449
+ optional bool ptt = 2;
1450
+ }
1451
+
1452
+ message ContactMessage {
1453
+ optional SubProtocol contact = 1;
1454
+ }
1455
+
1456
+ message ContactsArrayMessage {
1457
+ optional string displayName = 1;
1458
+ repeated ConsumerApplication.ContactMessage contacts = 2;
1459
+ }
1460
+
1461
+ message Content {
1462
+ oneof content {
1463
+ MessageText messageText = 1;
1464
+ ConsumerApplication.ImageMessage imageMessage = 2;
1465
+ ConsumerApplication.ContactMessage contactMessage = 3;
1466
+ ConsumerApplication.LocationMessage locationMessage = 4;
1467
+ ConsumerApplication.ExtendedTextMessage extendedTextMessage = 5;
1468
+ ConsumerApplication.StatusTextMesage statusTextMessage = 6;
1469
+ ConsumerApplication.DocumentMessage documentMessage = 7;
1470
+ ConsumerApplication.AudioMessage audioMessage = 8;
1471
+ ConsumerApplication.VideoMessage videoMessage = 9;
1472
+ ConsumerApplication.ContactsArrayMessage contactsArrayMessage = 10;
1473
+ ConsumerApplication.LiveLocationMessage liveLocationMessage = 11;
1474
+ ConsumerApplication.StickerMessage stickerMessage = 12;
1475
+ ConsumerApplication.GroupInviteMessage groupInviteMessage = 13;
1476
+ ConsumerApplication.ViewOnceMessage viewOnceMessage = 14;
1477
+ ConsumerApplication.ReactionMessage reactionMessage = 16;
1478
+ ConsumerApplication.PollCreationMessage pollCreationMessage = 17;
1479
+ ConsumerApplication.PollUpdateMessage pollUpdateMessage = 18;
1480
+ ConsumerApplication.EditMessage editMessage = 19;
1481
+ }
1482
+ }
1483
+
1484
+ message DocumentMessage {
1485
+ optional SubProtocol document = 1;
1486
+ optional string fileName = 2;
1487
+ }
1488
+
1489
+ message EditMessage {
1490
+ optional MessageKey key = 1;
1491
+ optional MessageText message = 2;
1492
+ optional int64 timestampMs = 3;
1493
+ }
1494
+
1495
+ message ExtendedTextMessage {
1496
+ optional MessageText text = 1;
1497
+ optional string matchedText = 2;
1498
+ optional string canonicalUrl = 3;
1499
+ optional string description = 4;
1500
+ optional string title = 5;
1501
+ optional SubProtocol thumbnail = 6;
1502
+ optional CONSUMER_APPLICATION_EXTENDED_TEXT_MESSAGE_PREVIEW_TYPE previewType = 7;
1503
+ }
1504
+
1505
+ message GroupInviteMessage {
1506
+ optional string groupJid = 1;
1507
+ optional string inviteCode = 2;
1508
+ optional int64 inviteExpiration = 3;
1509
+ optional string groupName = 4;
1510
+ optional bytes jpegThumbnail = 5;
1511
+ optional MessageText caption = 6;
1512
+ }
1513
+
1514
+ message ImageMessage {
1515
+ optional SubProtocol image = 1;
1516
+ optional MessageText caption = 2;
1517
+ }
1518
+
1519
+ message InteractiveAnnotation {
1520
+ repeated ConsumerApplication.Point polygonVertices = 1;
1521
+ oneof action {
1522
+ ConsumerApplication.Location location = 2;
1523
+ }
1524
+ }
1525
+
1526
+ message LiveLocationMessage {
1527
+ optional ConsumerApplication.Location location = 1;
1528
+ optional uint32 accuracyInMeters = 2;
1529
+ optional float speedInMps = 3;
1530
+ optional uint32 degreesClockwiseFromMagneticNorth = 4;
1531
+ optional MessageText caption = 5;
1532
+ optional int64 sequenceNumber = 6;
1533
+ optional uint32 timeOffset = 7;
1534
+ }
1535
+
1536
+ message Location {
1537
+ optional double degreesLatitude = 1;
1538
+ optional double degreesLongitude = 2;
1539
+ optional string name = 3;
1540
+ }
1541
+
1542
+ message LocationMessage {
1543
+ optional ConsumerApplication.Location location = 1;
1544
+ optional string address = 2;
1545
+ }
1546
+
1547
+ message MediaPayload {
1548
+ optional SubProtocol protocol = 1;
1549
+ }
1550
+
1551
+ message Metadata {
1552
+ optional CONSUMER_APPLICATION_METADATA_SPECIAL_TEXT_SIZE specialTextSize = 1;
1553
+ }
1554
+
1555
+ message Option {
1556
+ optional string optionName = 1;
1557
+ }
1558
+
1559
+ message Payload {
1560
+ oneof payload {
1561
+ ConsumerApplication.Content content = 1;
1562
+ ConsumerApplication.ApplicationData applicationData = 2;
1563
+ ConsumerApplication.Signal signal = 3;
1564
+ ConsumerApplication.SubProtocolPayload subProtocol = 4;
1565
+ }
1566
+ }
1567
+
1568
+ message Point {
1569
+ optional double x = 1;
1570
+ optional double y = 2;
1571
+ }
1572
+
1573
+ message PollAddOptionMessage {
1574
+ repeated ConsumerApplication.Option pollOption = 1;
1575
+ }
1576
+
1577
+ message PollCreationMessage {
1578
+ optional bytes encKey = 1;
1579
+ optional string name = 2;
1580
+ repeated ConsumerApplication.Option options = 3;
1581
+ optional uint32 selectableOptionsCount = 4;
1582
+ }
1583
+
1584
+ message PollEncValue {
1585
+ optional bytes encPayload = 1;
1586
+ optional bytes encIv = 2;
1587
+ }
1588
+
1589
+ message PollUpdateMessage {
1590
+ optional MessageKey pollCreationMessageKey = 1;
1591
+ optional ConsumerApplication.PollEncValue vote = 2;
1592
+ optional ConsumerApplication.PollEncValue addOption = 3;
1593
+ }
1594
+
1595
+ message PollVoteMessage {
1596
+ repeated bytes selectedOptions = 1;
1597
+ optional int64 senderTimestampMs = 2;
1598
+ }
1599
+
1600
+ message ReactionMessage {
1601
+ optional MessageKey key = 1;
1602
+ optional string text = 2;
1603
+ optional string groupingKey = 3;
1604
+ optional int64 senderTimestampMs = 4;
1605
+ optional string reactionMetadataDataclassData = 5;
1606
+ optional int32 style = 6;
1607
+ }
1608
+
1609
+ message RevokeMessage {
1610
+ optional MessageKey key = 1;
1611
+ }
1612
+
1613
+ message Signal {
1614
+ }
1615
+
1616
+ message StatusTextMesage {
1617
+ optional ConsumerApplication.ExtendedTextMessage text = 1;
1618
+ optional fixed32 textArgb = 6;
1619
+ optional fixed32 backgroundArgb = 7;
1620
+ optional CONSUMER_APPLICATION_STATUS_TEXT_MESAGE_FONT_TYPE font = 8;
1621
+ }
1622
+
1623
+ message StickerMessage {
1624
+ optional SubProtocol sticker = 1;
1625
+ }
1626
+
1627
+ message SubProtocolPayload {
1628
+ optional FUTURE_PROOF_BEHAVIOR futureProof = 1;
1629
+ }
1630
+
1631
+ message VideoMessage {
1632
+ optional SubProtocol video = 1;
1633
+ optional MessageText caption = 2;
1634
+ }
1635
+
1636
+ message ViewOnceMessage {
1637
+ oneof viewOnceContent {
1638
+ ConsumerApplication.ImageMessage imageMessage = 1;
1639
+ ConsumerApplication.VideoMessage videoMessage = 2;
1640
+ }
1641
+ }
1642
+
1643
+ }
1644
+
1264
1645
  message ContextInfo {
1265
1646
  optional string stanzaId = 1;
1266
1647
  optional string participant = 2;
@@ -1317,6 +1698,13 @@ message ContextInfo {
1317
1698
  optional uint32 nonJidMentions = 70;
1318
1699
  optional QuotedType quotedType = 71;
1319
1700
  optional BotMessageSharingInfo botMessageSharingInfo = 72;
1701
+ optional bool isSpoiler = 73;
1702
+ optional MediaDomainInfo mediaDomainInfo = 74;
1703
+ optional PartiallySelectedContent partiallySelectedContent = 75;
1704
+ optional uint32 afterReadDuration = 76;
1705
+ optional CrossAppSource crossAppSource = 77;
1706
+ optional BusinessInteractionPills businessInteractionPills = 78;
1707
+ optional string posterStatusId = 79;
1320
1708
  message AdReplyInfo {
1321
1709
  optional string advertiserName = 1;
1322
1710
  optional MediaType mediaType = 2;
@@ -1328,11 +1716,57 @@ message ContextInfo {
1328
1716
  VIDEO = 2;
1329
1717
  }
1330
1718
  }
1331
-
1719
+
1720
+ message BusinessInteractionPills {
1721
+ optional string businessJid = 1;
1722
+ repeated Pill pills = 2;
1723
+ optional EntryPoint entryPoint = 3;
1724
+ optional bytes signedPayload = 4;
1725
+ optional BotSignatureVerificationMetadata signatureEnvelope = 5;
1726
+ enum EntryPoint {
1727
+ ENTRY_POINT_UNKNOWN = 0;
1728
+ P2P_LINK_SHARE = 1;
1729
+ CONTACT_CARD_SHARING = 2;
1730
+ PHONE_NUMBER = 3;
1731
+ STATUS = 4;
1732
+ IN_THREAD_CONTEXT_CARD = 5;
1733
+ }
1734
+ message Pill {
1735
+ optional ContextInfo.BusinessInteractionPills.PillType pillType = 1;
1736
+ optional string actionUrl = 2;
1737
+ }
1738
+
1739
+ enum PillType {
1740
+ UNKNOWN = 0;
1741
+ VIEW_BUSINESS = 1;
1742
+ CHAT = 2;
1743
+ CALL = 3;
1744
+ CATALOG = 4;
1745
+ CHANNEL = 5;
1746
+ BOOK_APPOINTMENT = 6;
1747
+ OFFERS = 7;
1748
+ BESTSELLERS = 8;
1749
+ MENU = 9;
1750
+ ABOUT = 10;
1751
+ SHOP = 11;
1752
+ ORDER = 12;
1753
+ }
1754
+ message SignedPayload {
1755
+ optional string verifiedName = 1;
1756
+ repeated ContextInfo.BusinessInteractionPills.Pill pills = 2;
1757
+ }
1758
+
1759
+ }
1760
+
1332
1761
  message BusinessMessageForwardInfo {
1333
1762
  optional string businessOwnerJid = 1;
1334
1763
  }
1335
-
1764
+
1765
+ enum CrossAppSource {
1766
+ CROSS_APP_SOURCE_UNKNOWN = 0;
1767
+ CROSS_APP_SOURCE_INSTAGRAM = 1;
1768
+ CROSS_APP_SOURCE_FACEBOOK = 2;
1769
+ }
1336
1770
  message DataSharingContext {
1337
1771
  optional bool showMmDisclosure = 1;
1338
1772
  optional string encryptedSignalTokenConsented = 2;
@@ -1349,9 +1783,9 @@ message ContextInfo {
1349
1783
  optional float floatData = 4;
1350
1784
  optional ContextInfo.DataSharingContext.Parameters contents = 5;
1351
1785
  }
1352
-
1786
+
1353
1787
  }
1354
-
1788
+
1355
1789
  message ExternalAdReplyInfo {
1356
1790
  optional string title = 1;
1357
1791
  optional string body = 2;
@@ -1380,6 +1814,11 @@ message ContextInfo {
1380
1814
  optional AdType adType = 25;
1381
1815
  optional string wtwaWebsiteUrl = 26;
1382
1816
  optional string adPreviewUrl = 27;
1817
+ optional bool containsCtwaFlowsAutoReply = 28;
1818
+ optional int32 agmThumbnailStrategy = 29;
1819
+ optional int32 agmTitleStrategy = 30;
1820
+ optional int32 agmSubtitleStrategy = 31;
1821
+ optional int32 agmHeaderInteractionStrategy = 32;
1383
1822
  enum AdType {
1384
1823
  CTWA = 0;
1385
1824
  CAWC = 1;
@@ -1390,7 +1829,7 @@ message ContextInfo {
1390
1829
  VIDEO = 2;
1391
1830
  }
1392
1831
  }
1393
-
1832
+
1394
1833
  message FeatureEligibilities {
1395
1834
  optional bool cannotBeReactedTo = 1;
1396
1835
  optional bool cannotBeRanked = 2;
@@ -1398,7 +1837,7 @@ message ContextInfo {
1398
1837
  optional bool canBeReshared = 4;
1399
1838
  optional bool canReceiveMultiReact = 5;
1400
1839
  }
1401
-
1840
+
1402
1841
  enum ForwardOrigin {
1403
1842
  UNKNOWN = 0;
1404
1843
  CHAT = 1;
@@ -1413,13 +1852,14 @@ message ContextInfo {
1413
1852
  optional string newsletterName = 3;
1414
1853
  optional ContentType contentType = 4;
1415
1854
  optional string accessibilityText = 5;
1855
+ optional string profileName = 6;
1416
1856
  enum ContentType {
1417
1857
  UPDATE = 1;
1418
1858
  UPDATE_CARD = 2;
1419
1859
  LINK_CARD = 3;
1420
1860
  }
1421
1861
  }
1422
-
1862
+
1423
1863
  enum PairedMediaType {
1424
1864
  NOT_PAIRED_MEDIA = 0;
1425
1865
  SD_VIDEO_PARENT = 1;
@@ -1431,12 +1871,16 @@ message ContextInfo {
1431
1871
  HEVC_VIDEO_PARENT = 7;
1432
1872
  HEVC_VIDEO_CHILD = 8;
1433
1873
  }
1874
+ message PartiallySelectedContent {
1875
+ optional string text = 1;
1876
+ }
1877
+
1434
1878
  message QuestionReplyQuotedMessage {
1435
1879
  optional int32 serverQuestionId = 1;
1436
1880
  optional Message quotedQuestion = 2;
1437
1881
  optional Message quotedResponse = 3;
1438
1882
  }
1439
-
1883
+
1440
1884
  enum QuotedType {
1441
1885
  EXPLICIT = 0;
1442
1886
  AUTO = 1;
@@ -1450,12 +1894,14 @@ message ContextInfo {
1450
1894
  }
1451
1895
  message StatusAudienceMetadata {
1452
1896
  optional AudienceType audienceType = 1;
1897
+ optional string listName = 2;
1898
+ optional string listEmoji = 3;
1453
1899
  enum AudienceType {
1454
1900
  UNKNOWN = 0;
1455
1901
  CLOSE_FRIENDS = 1;
1456
1902
  }
1457
1903
  }
1458
-
1904
+
1459
1905
  enum StatusSourceType {
1460
1906
  IMAGE = 0;
1461
1907
  VIDEO = 1;
@@ -1468,11 +1914,11 @@ message ContextInfo {
1468
1914
  optional string utmSource = 1;
1469
1915
  optional string utmCampaign = 2;
1470
1916
  }
1471
-
1917
+
1472
1918
  }
1473
1919
 
1474
1920
  message Conversation {
1475
- string id = 1;
1921
+ optional string id = 1;
1476
1922
  repeated HistorySyncMsg messages = 2;
1477
1923
  optional string newJid = 3;
1478
1924
  optional string oldJid = 4;
@@ -1526,10 +1972,25 @@ message Conversation {
1526
1972
  optional LimitSharing.TriggerType limitSharingTrigger = 52;
1527
1973
  optional bool limitSharingInitiatedByMe = 53;
1528
1974
  optional bool maibaAiThreadEnabled = 54;
1975
+ optional bool isMarketingMessageThread = 55;
1976
+ optional bool isSenderNewAccount = 56;
1977
+ optional uint32 afterReadDuration = 57;
1978
+ optional bool isSenderSuspicious = 58;
1979
+ optional GroupAppealStatus appealStatus = 59;
1980
+ optional uint64 appealUpdateTime = 60;
1981
+ optional string authAgentParentCompanyName = 61;
1982
+ optional string authAgentObaPhoneNumber = 62;
1529
1983
  enum EndOfHistoryTransferType {
1530
1984
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1531
1985
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
1532
1986
  COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY = 2;
1987
+ COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS = 3;
1988
+ }
1989
+ enum GroupAppealStatus {
1990
+ NO_APPEAL = 0;
1991
+ APPEAL_IN_REVIEW = 1;
1992
+ APPEAL_APPROVED = 2;
1993
+ APPEAL_REJECTED = 3;
1533
1994
  }
1534
1995
  }
1535
1996
 
@@ -1539,10 +2000,24 @@ message DeviceCapabilities {
1539
2000
  optional BusinessBroadcast businessBroadcast = 3;
1540
2001
  optional UserHasAvatar userHasAvatar = 4;
1541
2002
  optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
2003
+ optional AiThread aiThread = 6;
2004
+ message AiThread {
2005
+ optional SupportLevel supportLevel = 1;
2006
+ enum SupportLevel {
2007
+ NONE = 0;
2008
+ INFRA = 1;
2009
+ FULL = 2;
2010
+ }
2011
+ }
2012
+
1542
2013
  message BusinessBroadcast {
1543
2014
  optional bool importListEnabled = 1;
2015
+ optional bool companionSupportEnabled = 2;
2016
+ optional bool campaignSyncEnabled = 3;
2017
+ optional bool insightsSyncEnabled = 4;
2018
+ optional int32 recipientLimit = 5;
1544
2019
  }
1545
-
2020
+
1546
2021
  enum ChatLockSupportLevel {
1547
2022
  NONE = 0;
1548
2023
  MINIMAL = 1;
@@ -1551,7 +2026,7 @@ message DeviceCapabilities {
1551
2026
  message LIDMigration {
1552
2027
  optional uint64 chatDbMigrationTimestamp = 1;
1553
2028
  }
1554
-
2029
+
1555
2030
  enum MemberNameTagPrimarySupport {
1556
2031
  DISABLED = 0;
1557
2032
  RECEIVER_ENABLED = 1;
@@ -1560,7 +2035,7 @@ message DeviceCapabilities {
1560
2035
  message UserHasAvatar {
1561
2036
  optional bool userHasAvatar = 1;
1562
2037
  }
1563
-
2038
+
1564
2039
  }
1565
2040
 
1566
2041
  message DeviceConsistencyCodeMessage {
@@ -1592,7 +2067,7 @@ message DeviceProps {
1592
2067
  optional uint32 quaternary = 4;
1593
2068
  optional uint32 quinary = 5;
1594
2069
  }
1595
-
2070
+
1596
2071
  message HistorySyncConfig {
1597
2072
  optional uint32 fullSyncDaysLimit = 1;
1598
2073
  optional uint32 fullSyncSizeMbLimit = 2;
@@ -1613,8 +2088,13 @@ message DeviceProps {
1613
2088
  optional bool supportGuestChat = 17;
1614
2089
  optional bool completeOnDemandReady = 18;
1615
2090
  optional uint32 thumbnailSyncDaysLimit = 19;
2091
+ optional uint32 initialSyncMaxMessagesPerChat = 20;
2092
+ optional bool supportManusHistory = 21;
2093
+ optional bool supportHatchHistory = 22;
2094
+ repeated string supportedBotChannelFbids = 23;
2095
+ optional bool supportInlineContacts = 24;
1616
2096
  }
1617
-
2097
+
1618
2098
  enum PlatformType {
1619
2099
  UNKNOWN = 0;
1620
2100
  CHROME = 1;
@@ -1729,6 +2209,11 @@ message ExternalBlobReference {
1729
2209
  optional bytes fileEncSha256 = 6;
1730
2210
  }
1731
2211
 
2212
+ enum FUTURE_PROOF_BEHAVIOR {
2213
+ PLACEHOLDER = 0;
2214
+ NO_PLACEHOLDER = 1;
2215
+ IGNORE = 2;
2216
+ }
1732
2217
  message Field {
1733
2218
  optional uint32 minVersion = 1;
1734
2219
  optional uint32 maxVersion = 2;
@@ -1737,6 +2222,15 @@ message Field {
1737
2222
  map<uint32, Field> subfield = 5;
1738
2223
  }
1739
2224
 
2225
+ message FingerprintData {
2226
+ optional bytes publicKey = 1;
2227
+ optional bytes pnIdentifier = 2;
2228
+ optional bytes lidIdentifier = 3;
2229
+ optional bytes usernameIdentifier = 4;
2230
+ optional HostedState hostedState = 5;
2231
+ optional bytes hashedPublicKey = 6;
2232
+ }
2233
+
1740
2234
  message ForwardedAIBotMessageInfo {
1741
2235
  optional string botName = 1;
1742
2236
  optional string botJid = 2;
@@ -1766,6 +2260,13 @@ message GlobalSettings {
1766
2260
  optional int64 chatDbLidMigrationTimestamp = 20;
1767
2261
  }
1768
2262
 
2263
+ message GroupHistory {
2264
+ repeated WebMessageInfo messages = 1;
2265
+ repeated UnCountedAssociatedMessageList uncountedAssociatedMessageLists = 2;
2266
+ repeated WebMessageInfo commentMessages = 3;
2267
+ repeated WebMessageInfo outOfWindowPinnedMessages = 4;
2268
+ }
2269
+
1769
2270
  message GroupHistoryBundleInfo {
1770
2271
  optional Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
1771
2272
  optional ProcessState processState = 2;
@@ -1775,6 +2276,7 @@ message GroupHistoryBundleInfo {
1775
2276
  INJECTED_PARTIAL = 2;
1776
2277
  INJECTION_FAILED = 3;
1777
2278
  INJECTION_FAILED_NO_RETRY = 4;
2279
+ DEDUPED = 5;
1778
2280
  }
1779
2281
  }
1780
2282
 
@@ -1783,13 +2285,20 @@ message GroupHistoryIndividualMessageInfo {
1783
2285
  optional bool editedAfterReceivedAsHistory = 2;
1784
2286
  }
1785
2287
 
2288
+ message GroupHistoryWithMessageBytes {
2289
+ repeated WebMessageInfoWithMessageBytes messages = 1;
2290
+ repeated UnCountedAssociatedMessageListWithMessageBytes uncountedAssociatedMessageLists = 2;
2291
+ repeated WebMessageInfoWithMessageBytes commentMessages = 3;
2292
+ repeated WebMessageInfoWithMessageBytes outOfWindowPinnedMessages = 4;
2293
+ }
2294
+
1786
2295
  message GroupMention {
1787
2296
  optional string groupJid = 1;
1788
2297
  optional string groupSubject = 2;
1789
2298
  }
1790
2299
 
1791
2300
  message GroupParticipant {
1792
- string userJid = 1;
2301
+ optional string userJid = 1;
1793
2302
  optional Rank rank = 2;
1794
2303
  optional MemberLabel memberLabel = 3;
1795
2304
  enum Rank {
@@ -1799,6 +2308,17 @@ message GroupParticipant {
1799
2308
  }
1800
2309
  }
1801
2310
 
2311
+ message GroupRootKeyShare {
2312
+ repeated GroupRootKeyShareEntry keys = 1;
2313
+ }
2314
+
2315
+ message GroupRootKeyShareEntry {
2316
+ optional bytes groupRootKey = 1;
2317
+ optional string keyId = 2;
2318
+ optional int64 expiryTimestampMs = 3;
2319
+ optional int64 createdTimestampMs = 4;
2320
+ }
2321
+
1802
2322
  message HandshakeMessage {
1803
2323
  optional ClientHello clientHello = 2;
1804
2324
  optional ServerHello serverHello = 3;
@@ -1807,27 +2327,53 @@ message HandshakeMessage {
1807
2327
  optional bytes static = 1;
1808
2328
  optional bytes payload = 2;
1809
2329
  optional bytes extendedCiphertext = 3;
2330
+ optional bytes paddedBytes = 4;
2331
+ optional bool simulateXxkemFs = 5;
1810
2332
  }
1811
-
2333
+
1812
2334
  message ClientHello {
1813
2335
  optional bytes ephemeral = 1;
1814
2336
  optional bytes static = 2;
1815
2337
  optional bytes payload = 3;
1816
2338
  optional bool useExtended = 4;
1817
2339
  optional bytes extendedCiphertext = 5;
2340
+ optional bytes paddedBytes = 6;
2341
+ optional bool sendServerHelloPaddedBytes = 7;
2342
+ optional bool simulateXxkemFs = 8;
2343
+ optional HandshakeMessage.HandshakePqMode pqMode = 9;
2344
+ optional bytes extendedEphemeral = 10;
2345
+ }
2346
+
2347
+ enum HandshakePqMode {
2348
+ HANDSHAKE_PQ_MODE_UNKNOWN = 0;
2349
+ XXKEM = 1;
2350
+ XXKEM_FS = 2;
2351
+ WA_CLASSICAL = 3;
2352
+ WA_PQ = 4;
2353
+ IKKEM = 5;
2354
+ IKKEM_FS = 6;
2355
+ XXKEM_2 = 7;
2356
+ IKKEM_2 = 8;
1818
2357
  }
1819
-
1820
2358
  message ServerHello {
1821
2359
  optional bytes ephemeral = 1;
1822
2360
  optional bytes static = 2;
1823
2361
  optional bytes payload = 3;
1824
2362
  optional bytes extendedStatic = 4;
2363
+ optional bytes paddingBytes = 5;
2364
+ optional bytes extendedCiphertext = 6;
1825
2365
  }
2366
+
2367
+ }
1826
2368
 
2369
+ message HatchMetadataSync {
2370
+ optional bytes data = 1;
2371
+ optional int64 timestampMs = 2;
2372
+ optional string requestId = 3;
1827
2373
  }
1828
2374
 
1829
2375
  message HistorySync {
1830
- HistorySyncType syncType = 1;
2376
+ optional HistorySyncType syncType = 1;
1831
2377
  repeated Conversation conversations = 2;
1832
2378
  repeated WebMessageInfo statusV3Messages = 3;
1833
2379
  optional uint32 chunkOrder = 5;
@@ -1844,6 +2390,9 @@ message HistorySync {
1844
2390
  optional string companionMetaNonce = 16;
1845
2391
  optional bytes shareableChatIdentifierEncryptionKey = 17;
1846
2392
  repeated Account accounts = 18;
2393
+ optional bytes nctSalt = 19;
2394
+ repeated InlineContact inlineContacts = 20;
2395
+ optional bool inlineContactsProvided = 21;
1847
2396
  enum BotAIWaitListState {
1848
2397
  IN_WAITLIST = 0;
1849
2398
  AI_AVAILABLE = 1;
@@ -1864,6 +2413,10 @@ message HistorySyncMsg {
1864
2413
  optional uint64 msgOrderId = 2;
1865
2414
  }
1866
2415
 
2416
+ enum HostedState {
2417
+ E2EE = 0;
2418
+ HOSTED = 1;
2419
+ }
1867
2420
  message HydratedTemplateButton {
1868
2421
  optional uint32 index = 4;
1869
2422
  oneof hydratedButton {
@@ -1875,12 +2428,12 @@ message HydratedTemplateButton {
1875
2428
  optional string displayText = 1;
1876
2429
  optional string phoneNumber = 2;
1877
2430
  }
1878
-
2431
+
1879
2432
  message HydratedQuickReplyButton {
1880
2433
  optional string displayText = 1;
1881
2434
  optional string id = 2;
1882
2435
  }
1883
-
2436
+
1884
2437
  message HydratedURLButton {
1885
2438
  optional string displayText = 1;
1886
2439
  optional string url = 2;
@@ -1892,7 +2445,7 @@ message HydratedTemplateButton {
1892
2445
  COMPACT = 3;
1893
2446
  }
1894
2447
  }
1895
-
2448
+
1896
2449
  }
1897
2450
 
1898
2451
  message IdentityKeyPairStructure {
@@ -1918,23 +2471,32 @@ message InThreadSurveyMetadata {
1918
2471
  optional string privacyStatementFull = 15;
1919
2472
  repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
1920
2473
  optional string feedbackToastText = 17;
2474
+ optional int32 startQuestionIndex = 18;
1921
2475
  message InThreadSurveyOption {
1922
2476
  optional string stringValue = 1;
1923
2477
  optional uint32 numericValue = 2;
1924
2478
  optional string textTranslated = 3;
1925
2479
  }
1926
-
2480
+
1927
2481
  message InThreadSurveyPrivacyStatementPart {
1928
2482
  optional string text = 1;
1929
2483
  optional string url = 2;
1930
2484
  }
1931
-
2485
+
1932
2486
  message InThreadSurveyQuestion {
1933
2487
  optional string questionText = 1;
1934
2488
  optional string questionId = 2;
1935
2489
  repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
1936
2490
  }
2491
+
2492
+ }
1937
2493
 
2494
+ message InlineContact {
2495
+ optional string pnJid = 1;
2496
+ optional string lidJid = 2;
2497
+ optional string fullName = 3;
2498
+ optional string firstName = 4;
2499
+ optional string username = 5;
1938
2500
  }
1939
2501
 
1940
2502
  message InteractiveAnnotation {
@@ -1986,8 +2548,8 @@ message KeyId {
1986
2548
  }
1987
2549
 
1988
2550
  message LIDMigrationMapping {
1989
- uint64 pn = 1;
1990
- uint64 assignedLid = 2;
2551
+ optional uint64 pn = 1;
2552
+ optional uint64 assignedLid = 2;
1991
2553
  optional uint64 latestLid = 3;
1992
2554
  }
1993
2555
 
@@ -2030,10 +2592,57 @@ message Location {
2030
2592
  optional string name = 3;
2031
2593
  }
2032
2594
 
2595
+ enum MENTION_MENTION_TYPE {
2596
+ PROFILE = 0;
2597
+ }
2033
2598
  message MediaData {
2034
2599
  optional string localPath = 1;
2035
2600
  }
2036
2601
 
2602
+ message MediaDomainInfo {
2603
+ optional MediaKeyDomain mediaKeyDomain = 1;
2604
+ optional bytes e2EeMediaKey = 2;
2605
+ }
2606
+
2607
+ message MediaEntry {
2608
+ optional bytes fileSha256 = 1;
2609
+ optional bytes mediaKey = 2;
2610
+ optional bytes fileEncSha256 = 3;
2611
+ optional string directPath = 4;
2612
+ optional int64 mediaKeyTimestamp = 5;
2613
+ optional string serverMediaType = 6;
2614
+ optional bytes uploadToken = 7;
2615
+ optional bytes validatedTimestamp = 8;
2616
+ optional bytes sidecar = 9;
2617
+ optional string objectId = 10;
2618
+ optional string fbid = 11;
2619
+ optional DownloadableThumbnail downloadableThumbnail = 12;
2620
+ optional string handle = 13;
2621
+ optional string filename = 14;
2622
+ optional ProgressiveJpegDetails progressiveJpegDetails = 15;
2623
+ optional int64 size = 16;
2624
+ optional int64 lastDownloadAttemptTimestamp = 17;
2625
+ message DownloadableThumbnail {
2626
+ optional bytes fileSha256 = 1;
2627
+ optional bytes fileEncSha256 = 2;
2628
+ optional string directPath = 3;
2629
+ optional bytes mediaKey = 4;
2630
+ optional int64 mediaKeyTimestamp = 5;
2631
+ optional string objectId = 6;
2632
+ }
2633
+
2634
+ message ProgressiveJpegDetails {
2635
+ repeated uint32 scanLengths = 1;
2636
+ optional bytes sidecar = 2;
2637
+ }
2638
+
2639
+ }
2640
+
2641
+ enum MediaKeyDomain {
2642
+ MEDIA_KEY_DOMAIN_UNKNOWN = 0;
2643
+ MEDIA_KEY_DOMAIN_E2EE = 1;
2644
+ MEDIA_KEY_DOMAIN_NON_E2EE = 2;
2645
+ }
2037
2646
  message MediaNotifyMessage {
2038
2647
  optional string expressPathUrl = 1;
2039
2648
  optional bytes fileEncSha256 = 2;
@@ -2063,6 +2672,13 @@ message MemberLabel {
2063
2672
  optional int64 labelTimestamp = 2;
2064
2673
  }
2065
2674
 
2675
+ message Mention {
2676
+ optional MENTION_MENTION_TYPE mentionType = 1;
2677
+ optional string mentionedJid = 2;
2678
+ optional uint32 offset = 3;
2679
+ optional uint32 length = 4;
2680
+ }
2681
+
2066
2682
  message Message {
2067
2683
  optional string conversation = 1;
2068
2684
  optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
@@ -2158,47 +2774,59 @@ message Message {
2158
2774
  optional StatusStickerInteractionMessage statusStickerInteractionMessage = 110;
2159
2775
  optional PollCreationMessage pollCreationMessageV5 = 111;
2160
2776
  optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
2161
- optional PollResultSnapshotMessage pollResultSnapshotMessageV3 = 114;
2777
+ optional PollResultSnapshotMessage pollResultSnapshotMessageV3 = 115;
2778
+ optional FutureProofMessage newsletterAdminProfileMessage = 116;
2779
+ optional FutureProofMessage newsletterAdminProfileMessageV2 = 117;
2780
+ optional FutureProofMessage spoilerMessage = 118;
2781
+ optional PollCreationMessage pollCreationMessageV6 = 119;
2782
+ optional ConditionalRevealMessage conditionalRevealMessage = 120;
2783
+ optional PollAddOptionMessage pollAddOptionMessage = 121;
2784
+ optional EventInviteMessage eventInviteMessage = 122;
2785
+ optional GroupRootKeyShare groupRootKeyShare = 123;
2786
+ optional PaymentReminderMessage paymentReminderMessage = 124;
2787
+ optional SplitPaymentMessage splitPaymentMessage = 125;
2788
+ optional FutureProofMessage newsletterAdminProfileStatusMessage = 126;
2789
+ optional RootSecretDistributeMessage rootSecretDistributeMessage = 127;
2162
2790
  message AlbumMessage {
2163
2791
  optional uint32 expectedImageCount = 2;
2164
2792
  optional uint32 expectedVideoCount = 3;
2165
2793
  optional ContextInfo contextInfo = 17;
2166
2794
  }
2167
-
2795
+
2168
2796
  message AppStateFatalExceptionNotification {
2169
2797
  repeated string collectionNames = 1;
2170
2798
  optional int64 timestamp = 2;
2171
2799
  }
2172
-
2800
+
2173
2801
  message AppStateSyncKey {
2174
2802
  optional Message.AppStateSyncKeyId keyId = 1;
2175
2803
  optional Message.AppStateSyncKeyData keyData = 2;
2176
2804
  }
2177
-
2805
+
2178
2806
  message AppStateSyncKeyData {
2179
2807
  optional bytes keyData = 1;
2180
2808
  optional Message.AppStateSyncKeyFingerprint fingerprint = 2;
2181
2809
  optional int64 timestamp = 3;
2182
2810
  }
2183
-
2811
+
2184
2812
  message AppStateSyncKeyFingerprint {
2185
2813
  optional uint32 rawId = 1;
2186
2814
  optional uint32 currentIndex = 2;
2187
2815
  repeated uint32 deviceIndexes = 3 [packed=true];
2188
2816
  }
2189
-
2817
+
2190
2818
  message AppStateSyncKeyId {
2191
2819
  optional bytes keyId = 1;
2192
2820
  }
2193
-
2821
+
2194
2822
  message AppStateSyncKeyRequest {
2195
2823
  repeated Message.AppStateSyncKeyId keyIds = 1;
2196
2824
  }
2197
-
2825
+
2198
2826
  message AppStateSyncKeyShare {
2199
2827
  repeated Message.AppStateSyncKey keys = 1;
2200
2828
  }
2201
-
2829
+
2202
2830
  message AudioMessage {
2203
2831
  optional string url = 1;
2204
2832
  optional string mimetype = 2;
@@ -2216,9 +2844,8 @@ message Message {
2216
2844
  optional fixed32 backgroundArgb = 20;
2217
2845
  optional bool viewOnce = 21;
2218
2846
  optional string accessibilityLabel = 22;
2219
- optional Message.MediaKeyDomain mediaKeyDomain = 23;
2220
2847
  }
2221
-
2848
+
2222
2849
  message BCallMessage {
2223
2850
  optional string sessionId = 1;
2224
2851
  optional MediaType mediaType = 2;
@@ -2230,7 +2857,7 @@ message Message {
2230
2857
  VIDEO = 2;
2231
2858
  }
2232
2859
  }
2233
-
2860
+
2234
2861
  message ButtonsMessage {
2235
2862
  optional string contentText = 6;
2236
2863
  optional string footerText = 7;
@@ -2252,19 +2879,19 @@ message Message {
2252
2879
  message ButtonText {
2253
2880
  optional string displayText = 1;
2254
2881
  }
2255
-
2882
+
2256
2883
  message NativeFlowInfo {
2257
2884
  optional string name = 1;
2258
2885
  optional string paramsJson = 2;
2259
2886
  }
2260
-
2887
+
2261
2888
  enum Type {
2262
2889
  UNKNOWN = 0;
2263
2890
  RESPONSE = 1;
2264
2891
  NATIVE_FLOW = 2;
2265
2892
  }
2266
2893
  }
2267
-
2894
+
2268
2895
  enum HeaderType {
2269
2896
  UNKNOWN = 0;
2270
2897
  EMPTY = 1;
@@ -2275,7 +2902,7 @@ message Message {
2275
2902
  LOCATION = 6;
2276
2903
  }
2277
2904
  }
2278
-
2905
+
2279
2906
  message ButtonsResponseMessage {
2280
2907
  optional string selectedButtonId = 1;
2281
2908
  optional ContextInfo contextInfo = 3;
@@ -2288,7 +2915,7 @@ message Message {
2288
2915
  DISPLAY_TEXT = 1;
2289
2916
  }
2290
2917
  }
2291
-
2918
+
2292
2919
  message Call {
2293
2920
  optional bytes callKey = 1;
2294
2921
  optional string conversionSource = 2;
@@ -2299,8 +2926,10 @@ message Message {
2299
2926
  optional ContextInfo contextInfo = 7;
2300
2927
  optional string nativeFlowCallButtonPayload = 8;
2301
2928
  optional string deeplinkPayload = 9;
2929
+ optional MessageContextInfo messageContextInfo = 10;
2930
+ optional uint32 callEntryPoint = 11;
2302
2931
  }
2303
-
2932
+
2304
2933
  message CallLogMessage {
2305
2934
  optional bool isVideo = 1;
2306
2935
  optional CallOutcome callOutcome = 2;
@@ -2321,23 +2950,58 @@ message Message {
2321
2950
  optional string jid = 1;
2322
2951
  optional Message.CallLogMessage.CallOutcome callOutcome = 2;
2323
2952
  }
2324
-
2953
+
2325
2954
  enum CallType {
2326
2955
  REGULAR = 0;
2327
2956
  SCHEDULED_CALL = 1;
2328
2957
  VOICE_CHAT = 2;
2329
2958
  }
2330
2959
  }
2331
-
2960
+
2332
2961
  message CancelPaymentRequestMessage {
2333
2962
  optional MessageKey key = 1;
2334
2963
  }
2335
-
2964
+
2336
2965
  message Chat {
2337
2966
  optional string displayName = 1;
2338
2967
  optional string id = 2;
2339
2968
  }
2340
-
2969
+
2970
+ message ChatCustomImageWallpaper {
2971
+ optional string directPath = 1;
2972
+ optional bytes mediaKey = 2;
2973
+ optional bytes fileEncSha256 = 3;
2974
+ optional bytes fileSha256 = 4;
2975
+ optional float dimLevel = 5;
2976
+ }
2977
+
2978
+ message ChatDefaultWallpaper {
2979
+ optional bool isDoodleEnabled = 1;
2980
+ }
2981
+
2982
+ message ChatSolidColorWallpaper {
2983
+ optional string colorLight = 1;
2984
+ optional string colorDark = 2;
2985
+ optional bool isDoodleEnabled = 3;
2986
+ }
2987
+
2988
+ message ChatStockImageWallpaper {
2989
+ optional string stockImageId = 1;
2990
+ optional float dimLevel = 2;
2991
+ }
2992
+
2993
+ message ChatThemeSetting {
2994
+ optional int64 settingTimestampMs = 1;
2995
+ optional bool clearTheme = 2;
2996
+ optional string colorSchemeId = 3;
2997
+ oneof wallpaper {
2998
+ Message.ChatDefaultWallpaper defaultWallpaper = 10;
2999
+ Message.ChatSolidColorWallpaper solidColor = 11;
3000
+ Message.ChatStockImageWallpaper stockImage = 12;
3001
+ Message.ChatCustomImageWallpaper customImage = 13;
3002
+ }
3003
+ }
3004
+
2341
3005
  message CloudAPIThreadControlNotification {
2342
3006
  optional CloudAPIThreadControl status = 1;
2343
3007
  optional int64 senderNotificationTimestampMs = 2;
@@ -2349,41 +3013,54 @@ message Message {
2349
3013
  UNKNOWN = 0;
2350
3014
  CONTROL_PASSED = 1;
2351
3015
  CONTROL_TAKEN = 2;
3016
+ INFO = 3;
2352
3017
  }
2353
3018
  message CloudAPIThreadControlNotificationContent {
2354
3019
  optional string handoffNotificationText = 1;
2355
3020
  optional string extraJson = 2;
2356
3021
  }
2357
-
3022
+
2358
3023
  }
2359
-
3024
+
2360
3025
  message CommentMessage {
2361
3026
  optional Message message = 1;
2362
3027
  optional MessageKey targetMessageKey = 2;
2363
3028
  }
2364
-
3029
+
3030
+ message ConditionalRevealMessage {
3031
+ optional bytes encPayload = 1;
3032
+ optional bytes encIv = 2;
3033
+ optional ConditionalRevealMessageType conditionalRevealMessageType = 3;
3034
+ optional string revealKeyId = 4;
3035
+ enum ConditionalRevealMessageType {
3036
+ UNKNOWN = 0;
3037
+ SCHEDULED_MESSAGE = 1;
3038
+ }
3039
+ }
3040
+
2365
3041
  message ContactMessage {
2366
3042
  optional string displayName = 1;
2367
3043
  optional string vcard = 16;
2368
3044
  optional ContextInfo contextInfo = 17;
3045
+ optional bool isSelfContact = 18;
2369
3046
  }
2370
-
3047
+
2371
3048
  message ContactsArrayMessage {
2372
3049
  optional string displayName = 1;
2373
3050
  repeated Message.ContactMessage contacts = 2;
2374
3051
  optional ContextInfo contextInfo = 17;
2375
3052
  }
2376
-
3053
+
2377
3054
  message DeclinePaymentRequestMessage {
2378
3055
  optional MessageKey key = 1;
2379
3056
  }
2380
-
3057
+
2381
3058
  message DeviceSentMessage {
2382
3059
  optional string destinationJid = 1;
2383
3060
  optional Message message = 2;
2384
3061
  optional string phash = 3;
2385
3062
  }
2386
-
3063
+
2387
3064
  message DocumentMessage {
2388
3065
  optional string url = 1;
2389
3066
  optional string mimetype = 2;
@@ -2406,27 +3083,38 @@ message Message {
2406
3083
  optional uint32 thumbnailWidth = 19;
2407
3084
  optional string caption = 20;
2408
3085
  optional string accessibilityLabel = 21;
2409
- optional Message.MediaKeyDomain mediaKeyDomain = 22;
2410
3086
  }
2411
-
3087
+
2412
3088
  message EncCommentMessage {
2413
3089
  optional MessageKey targetMessageKey = 1;
2414
3090
  optional bytes encPayload = 2;
2415
3091
  optional bytes encIv = 3;
2416
3092
  }
2417
-
3093
+
2418
3094
  message EncEventResponseMessage {
2419
3095
  optional MessageKey eventCreationMessageKey = 1;
2420
3096
  optional bytes encPayload = 2;
2421
3097
  optional bytes encIv = 3;
2422
3098
  }
2423
-
3099
+
2424
3100
  message EncReactionMessage {
2425
3101
  optional MessageKey targetMessageKey = 1;
2426
3102
  optional bytes encPayload = 2;
2427
3103
  optional bytes encIv = 3;
2428
3104
  }
2429
-
3105
+
3106
+ message EventInviteMessage {
3107
+ optional ContextInfo contextInfo = 1;
3108
+ optional string eventId = 2;
3109
+ optional string eventTitle = 3;
3110
+ optional bytes jpegThumbnail = 4;
3111
+ optional int64 startTime = 5;
3112
+ optional string caption = 6;
3113
+ optional bool isCanceled = 7;
3114
+ optional int64 endTime = 8;
3115
+ optional string callLink = 9;
3116
+ }
3117
+
2430
3118
  message EventMessage {
2431
3119
  optional ContextInfo contextInfo = 1;
2432
3120
  optional bool isCanceled = 2;
@@ -2441,7 +3129,7 @@ message Message {
2441
3129
  optional bool hasReminder = 11;
2442
3130
  optional int64 reminderOffsetSec = 12;
2443
3131
  }
2444
-
3132
+
2445
3133
  message EventResponseMessage {
2446
3134
  optional EventResponseType response = 1;
2447
3135
  optional int64 timestampMs = 2;
@@ -2453,7 +3141,7 @@ message Message {
2453
3141
  MAYBE = 3;
2454
3142
  }
2455
3143
  }
2456
-
3144
+
2457
3145
  message ExtendedTextMessage {
2458
3146
  optional string text = 1;
2459
3147
  optional string matchedText = 2;
@@ -2512,15 +3200,22 @@ message Message {
2512
3200
  PROFILE = 7;
2513
3201
  }
2514
3202
  }
2515
-
3203
+
3204
+ message FullHistorySyncOnDemandConfig {
3205
+ optional uint64 historyFromTimestamp = 1;
3206
+ optional uint32 historyDurationDays = 2;
3207
+ }
3208
+
2516
3209
  message FullHistorySyncOnDemandRequestMetadata {
2517
3210
  optional string requestId = 1;
3211
+ optional string businessProduct = 2;
3212
+ optional bytes opaqueClientData = 3;
2518
3213
  }
2519
-
3214
+
2520
3215
  message FutureProofMessage {
2521
3216
  optional Message message = 1;
2522
3217
  }
2523
-
3218
+
2524
3219
  message GroupInviteMessage {
2525
3220
  optional string groupJid = 1;
2526
3221
  optional string inviteCode = 2;
@@ -2535,7 +3230,7 @@ message Message {
2535
3230
  PARENT = 1;
2536
3231
  }
2537
3232
  }
2538
-
3233
+
2539
3234
  message HighlyStructuredMessage {
2540
3235
  optional string namespace = 1;
2541
3236
  optional string elementName = 2;
@@ -2556,7 +3251,7 @@ message Message {
2556
3251
  optional string currencyCode = 1;
2557
3252
  optional int64 amount1000 = 2;
2558
3253
  }
2559
-
3254
+
2560
3255
  message HSMDateTime {
2561
3256
  oneof datetimeOneof {
2562
3257
  Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeComponent component = 1;
@@ -2584,21 +3279,21 @@ message Message {
2584
3279
  SUNDAY = 7;
2585
3280
  }
2586
3281
  }
2587
-
3282
+
2588
3283
  message HSMDateTimeUnixEpoch {
2589
3284
  optional int64 timestamp = 1;
2590
3285
  }
2591
-
3286
+
2592
3287
  }
2593
-
3288
+
2594
3289
  }
2595
-
3290
+
2596
3291
  }
2597
-
3292
+
2598
3293
  message HistorySyncMessageAccessStatus {
2599
3294
  optional bool completeAccessGranted = 1;
2600
3295
  }
2601
-
3296
+
2602
3297
  message HistorySyncNotification {
2603
3298
  optional bytes fileSha256 = 1;
2604
3299
  optional uint64 fileLength = 2;
@@ -2616,7 +3311,7 @@ message Message {
2616
3311
  optional string encHandle = 14;
2617
3312
  optional Message.HistorySyncMessageAccessStatus messageAccessStatus = 15;
2618
3313
  }
2619
-
3314
+
2620
3315
  enum HistorySyncType {
2621
3316
  INITIAL_BOOTSTRAP = 0;
2622
3317
  INITIAL_STATUS_V3 = 1;
@@ -2658,7 +3353,6 @@ message Message {
2658
3353
  repeated InteractiveAnnotation annotations = 30;
2659
3354
  optional ImageSourceType imageSourceType = 31;
2660
3355
  optional string accessibilityLabel = 32;
2661
- optional Message.MediaKeyDomain mediaKeyDomain = 33;
2662
3356
  optional string qrUrl = 34;
2663
3357
  enum ImageSourceType {
2664
3358
  USER_IMAGE = 0;
@@ -2667,15 +3361,23 @@ message Message {
2667
3361
  RASTERIZED_TEXT_STATUS = 3;
2668
3362
  }
2669
3363
  }
2670
-
3364
+
2671
3365
  message InitialSecurityNotificationSettingSync {
2672
3366
  optional bool securityNotificationEnabled = 1;
2673
3367
  }
2674
-
3368
+
3369
+ enum InsightDeliveryState {
3370
+ SENT = 0;
3371
+ DELIVERED = 1;
3372
+ READ = 2;
3373
+ REPLIED = 3;
3374
+ QUICK_REPLIED = 4;
3375
+ }
2675
3376
  message InteractiveMessage {
2676
3377
  optional Header header = 1;
2677
3378
  optional Body body = 2;
2678
3379
  optional Footer footer = 3;
3380
+ optional BloksWidget bloksWidget = 8;
2679
3381
  optional ContextInfo contextInfo = 15;
2680
3382
  optional UrlTrackingMap urlTrackingMap = 16;
2681
3383
  oneof interactiveMessage {
@@ -2684,10 +3386,17 @@ message Message {
2684
3386
  Message.InteractiveMessage.NativeFlowMessage nativeFlowMessage = 6;
2685
3387
  Message.InteractiveMessage.CarouselMessage carouselMessage = 7;
2686
3388
  }
3389
+ message BloksWidget {
3390
+ optional string uuid = 1;
3391
+ optional string data = 2;
3392
+ optional string type = 3;
3393
+ optional string fallback = 4;
3394
+ }
3395
+
2687
3396
  message Body {
2688
3397
  optional string text = 1;
2689
3398
  }
2690
-
3399
+
2691
3400
  message CarouselMessage {
2692
3401
  repeated Message.InteractiveMessage cards = 1;
2693
3402
  optional int32 messageVersion = 2;
@@ -2698,13 +3407,13 @@ message Message {
2698
3407
  ALBUM_IMAGE = 2;
2699
3408
  }
2700
3409
  }
2701
-
3410
+
2702
3411
  message CollectionMessage {
2703
3412
  optional string bizJid = 1;
2704
3413
  optional string id = 2;
2705
3414
  optional int32 messageVersion = 3;
2706
3415
  }
2707
-
3416
+
2708
3417
  message Footer {
2709
3418
  optional string text = 1;
2710
3419
  optional bool hasMediaAttachment = 3;
@@ -2712,11 +3421,12 @@ message Message {
2712
3421
  Message.AudioMessage audioMessage = 2;
2713
3422
  }
2714
3423
  }
2715
-
3424
+
2716
3425
  message Header {
2717
3426
  optional string title = 1;
2718
3427
  optional string subtitle = 2;
2719
3428
  optional bool hasMediaAttachment = 5;
3429
+ optional Message.InteractiveMessage.BloksWidget bloksWidget = 10;
2720
3430
  oneof media {
2721
3431
  Message.DocumentMessage documentMessage = 3;
2722
3432
  Message.ImageMessage imageMessage = 4;
@@ -2726,7 +3436,7 @@ message Message {
2726
3436
  Message.ProductMessage productMessage = 9;
2727
3437
  }
2728
3438
  }
2729
-
3439
+
2730
3440
  message NativeFlowMessage {
2731
3441
  repeated NativeFlowButton buttons = 1;
2732
3442
  optional string messageParamsJson = 2;
@@ -2735,9 +3445,9 @@ message Message {
2735
3445
  optional string name = 1;
2736
3446
  optional string buttonParamsJson = 2;
2737
3447
  }
2738
-
3448
+
2739
3449
  }
2740
-
3450
+
2741
3451
  message ShopMessage {
2742
3452
  optional string id = 1;
2743
3453
  optional Surface surface = 2;
@@ -2749,9 +3459,9 @@ message Message {
2749
3459
  WA = 3;
2750
3460
  }
2751
3461
  }
2752
-
3462
+
2753
3463
  }
2754
-
3464
+
2755
3465
  message InteractiveResponseMessage {
2756
3466
  optional Body body = 1;
2757
3467
  optional ContextInfo contextInfo = 15;
@@ -2766,15 +3476,15 @@ message Message {
2766
3476
  EXTENSIONS_1 = 1;
2767
3477
  }
2768
3478
  }
2769
-
3479
+
2770
3480
  message NativeFlowResponseMessage {
2771
3481
  optional string name = 1;
2772
3482
  optional string paramsJson = 2;
2773
3483
  optional int32 version = 3;
2774
3484
  }
2775
-
3485
+
2776
3486
  }
2777
-
3487
+
2778
3488
  message InvoiceMessage {
2779
3489
  optional string note = 1;
2780
3490
  optional string token = 2;
@@ -2791,13 +3501,13 @@ message Message {
2791
3501
  PDF = 1;
2792
3502
  }
2793
3503
  }
2794
-
3504
+
2795
3505
  message KeepInChatMessage {
2796
3506
  optional MessageKey key = 1;
2797
3507
  optional KeepType keepType = 2;
2798
3508
  optional int64 timestampMs = 3;
2799
3509
  }
2800
-
3510
+
2801
3511
  message LinkPreviewMetadata {
2802
3512
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
2803
3513
  optional Message.URLMetadata urlMetadata = 2;
@@ -2817,7 +3527,7 @@ message Message {
2817
3527
  CAROUSEL = 5;
2818
3528
  }
2819
3529
  }
2820
-
3530
+
2821
3531
  message ListMessage {
2822
3532
  optional string title = 1;
2823
3533
  optional string description = 2;
@@ -2835,36 +3545,36 @@ message Message {
2835
3545
  message Product {
2836
3546
  optional string productId = 1;
2837
3547
  }
2838
-
3548
+
2839
3549
  message ProductListHeaderImage {
2840
3550
  optional string productId = 1;
2841
3551
  optional bytes jpegThumbnail = 2;
2842
3552
  }
2843
-
3553
+
2844
3554
  message ProductListInfo {
2845
3555
  repeated Message.ListMessage.ProductSection productSections = 1;
2846
3556
  optional Message.ListMessage.ProductListHeaderImage headerImage = 2;
2847
3557
  optional string businessOwnerJid = 3;
2848
3558
  }
2849
-
3559
+
2850
3560
  message ProductSection {
2851
3561
  optional string title = 1;
2852
3562
  repeated Message.ListMessage.Product products = 2;
2853
3563
  }
2854
-
3564
+
2855
3565
  message Row {
2856
3566
  optional string title = 1;
2857
3567
  optional string description = 2;
2858
3568
  optional string rowId = 3;
2859
3569
  }
2860
-
3570
+
2861
3571
  message Section {
2862
3572
  optional string title = 1;
2863
3573
  repeated Message.ListMessage.Row rows = 2;
2864
3574
  }
2865
-
3575
+
2866
3576
  }
2867
-
3577
+
2868
3578
  message ListResponseMessage {
2869
3579
  optional string title = 1;
2870
3580
  optional ListType listType = 2;
@@ -2878,9 +3588,9 @@ message Message {
2878
3588
  message SingleSelectReply {
2879
3589
  optional string selectedRowId = 1;
2880
3590
  }
2881
-
3591
+
2882
3592
  }
2883
-
3593
+
2884
3594
  message LiveLocationMessage {
2885
3595
  optional double degreesLatitude = 1;
2886
3596
  optional double degreesLongitude = 2;
@@ -2893,7 +3603,7 @@ message Message {
2893
3603
  optional bytes jpegThumbnail = 16;
2894
3604
  optional ContextInfo contextInfo = 17;
2895
3605
  }
2896
-
3606
+
2897
3607
  message LocationMessage {
2898
3608
  optional double degreesLatitude = 1;
2899
3609
  optional double degreesLongitude = 2;
@@ -2908,7 +3618,7 @@ message Message {
2908
3618
  optional bytes jpegThumbnail = 16;
2909
3619
  optional ContextInfo contextInfo = 17;
2910
3620
  }
2911
-
3621
+
2912
3622
  message MMSThumbnailMetadata {
2913
3623
  optional string thumbnailDirectPath = 1;
2914
3624
  optional bytes thumbnailSha256 = 2;
@@ -2917,16 +3627,8 @@ message Message {
2917
3627
  optional int64 mediaKeyTimestamp = 5;
2918
3628
  optional uint32 thumbnailHeight = 6;
2919
3629
  optional uint32 thumbnailWidth = 7;
2920
- optional Message.MediaKeyDomain mediaKeyDomain = 8;
2921
- }
2922
-
2923
- enum MediaKeyDomain {
2924
- UNSET = 0;
2925
- E2EE_CHAT = 1;
2926
- STATUS = 2;
2927
- CAPI = 3;
2928
- BOT = 4;
2929
3630
  }
3631
+
2930
3632
  message MessageHistoryBundle {
2931
3633
  optional string mimetype = 1;
2932
3634
  optional bytes fileSha256 = 2;
@@ -2937,18 +3639,20 @@ message Message {
2937
3639
  optional ContextInfo contextInfo = 7;
2938
3640
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
2939
3641
  }
2940
-
3642
+
2941
3643
  message MessageHistoryMetadata {
2942
3644
  repeated string historyReceivers = 1;
2943
- optional int64 oldestMessageTimestamp = 2;
3645
+ optional int64 oldestMessageTimestampInWindow = 2;
2944
3646
  optional int64 messageCount = 3;
3647
+ repeated string nonHistoryReceivers = 4;
3648
+ optional int64 oldestMessageTimestampInBundle = 5;
2945
3649
  }
2946
-
3650
+
2947
3651
  message MessageHistoryNotice {
2948
3652
  optional ContextInfo contextInfo = 1;
2949
3653
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
2950
3654
  }
2951
-
3655
+
2952
3656
  message NewsletterAdminInviteMessage {
2953
3657
  optional string newsletterJid = 1;
2954
3658
  optional string newsletterName = 2;
@@ -2957,7 +3661,7 @@ message Message {
2957
3661
  optional int64 inviteExpiration = 5;
2958
3662
  optional ContextInfo contextInfo = 6;
2959
3663
  }
2960
-
3664
+
2961
3665
  message NewsletterFollowerInviteMessage {
2962
3666
  optional string newsletterJid = 1;
2963
3667
  optional string newsletterName = 2;
@@ -2965,7 +3669,7 @@ message Message {
2965
3669
  optional string caption = 4;
2966
3670
  optional ContextInfo contextInfo = 5;
2967
3671
  }
2968
-
3672
+
2969
3673
  message OrderMessage {
2970
3674
  optional string orderId = 1;
2971
3675
  optional bytes thumbnail = 2;
@@ -2991,16 +3695,22 @@ message Message {
2991
3695
  CATALOG = 1;
2992
3696
  }
2993
3697
  }
2994
-
3698
+
2995
3699
  message PaymentExtendedMetadata {
2996
3700
  optional uint32 type = 1;
2997
3701
  optional string platform = 2;
2998
- optional string messageParamsJson = 3;
2999
3702
  }
3000
-
3703
+
3001
3704
  message PaymentInviteMessage {
3002
3705
  optional ServiceType serviceType = 1;
3003
3706
  optional int64 expiryTimestamp = 2;
3707
+ optional bool incentiveEligible = 3;
3708
+ optional string referralId = 4;
3709
+ optional InviteType inviteType = 5;
3710
+ enum InviteType {
3711
+ DEFAULT = 0;
3712
+ MAPPER = 1;
3713
+ }
3004
3714
  enum ServiceType {
3005
3715
  UNKNOWN = 0;
3006
3716
  FBPAY = 1;
@@ -3008,7 +3718,7 @@ message Message {
3008
3718
  UPI = 3;
3009
3719
  }
3010
3720
  }
3011
-
3721
+
3012
3722
  message PaymentLinkMetadata {
3013
3723
  optional PaymentLinkButton button = 1;
3014
3724
  optional PaymentLinkHeader header = 2;
@@ -3016,7 +3726,7 @@ message Message {
3016
3726
  message PaymentLinkButton {
3017
3727
  optional string displayText = 1;
3018
3728
  }
3019
-
3729
+
3020
3730
  message PaymentLinkHeader {
3021
3731
  optional PaymentLinkHeaderType headerType = 1;
3022
3732
  enum PaymentLinkHeaderType {
@@ -3024,13 +3734,40 @@ message Message {
3024
3734
  ORDER = 1;
3025
3735
  }
3026
3736
  }
3027
-
3737
+
3028
3738
  message PaymentLinkProvider {
3029
3739
  optional string paramsJson = 1;
3030
3740
  }
3031
-
3032
- }
3033
-
3741
+
3742
+ }
3743
+
3744
+ message PaymentReminderMessage {
3745
+ optional string reminderId = 1;
3746
+ optional string instanceId = 2;
3747
+ optional string description = 3;
3748
+ optional ReminderFrequency frequency = 4;
3749
+ optional ReminderStatus status = 5;
3750
+ optional string payeeVpa = 6;
3751
+ optional string payeeJid = 7;
3752
+ optional string payerJid = 8;
3753
+ optional Money amount = 9;
3754
+ enum ReminderFrequency {
3755
+ REMINDER_FREQUENCY_UNKNOWN = 0;
3756
+ WEEKLY = 1;
3757
+ BI_WEEKLY = 2;
3758
+ MONTHLY = 3;
3759
+ QUARTERLY = 4;
3760
+ }
3761
+ enum ReminderStatus {
3762
+ REMINDER_STATUS_UNKNOWN = 0;
3763
+ ACTIVE = 1;
3764
+ CANCELLED_BY_CREATOR = 2;
3765
+ STOPPED_BY_RECEIVER = 3;
3766
+ EXPIRED = 4;
3767
+ PAID = 5;
3768
+ }
3769
+ }
3770
+
3034
3771
  message PeerDataOperationRequestMessage {
3035
3772
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
3036
3773
  repeated RequestStickerReupload requestStickerReupload = 2;
@@ -3041,27 +3778,46 @@ message Message {
3041
3778
  optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
3042
3779
  optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
3043
3780
  optional GalaxyFlowAction galaxyFlowAction = 9;
3781
+ optional CompanionCanonicalUserNonceFetchRequest companionCanonicalUserNonceFetchRequest = 10;
3782
+ optional BizBroadcastInsightsContactListRequest bizBroadcastInsightsContactListRequest = 11;
3783
+ optional BizBroadcastInsightsRefreshRequest bizBroadcastInsightsRefreshRequest = 12;
3784
+ message BizBroadcastInsightsContactListRequest {
3785
+ optional string campaignId = 1;
3786
+ }
3787
+
3788
+ message BizBroadcastInsightsRefreshRequest {
3789
+ optional string campaignId = 1;
3790
+ }
3791
+
3792
+ message CompanionCanonicalUserNonceFetchRequest {
3793
+ optional string registrationTraceId = 1;
3794
+ }
3795
+
3044
3796
  message FullHistorySyncOnDemandRequest {
3045
3797
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
3046
3798
  optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
3799
+ optional Message.FullHistorySyncOnDemandConfig fullHistorySyncOnDemandConfig = 3;
3047
3800
  }
3048
-
3801
+
3049
3802
  message GalaxyFlowAction {
3050
3803
  optional GalaxyFlowActionType type = 1;
3051
3804
  optional string flowId = 2;
3052
3805
  optional string stanzaId = 3;
3806
+ optional string galaxyFlowDownloadRequestId = 4;
3807
+ optional string agmId = 5;
3053
3808
  enum GalaxyFlowActionType {
3054
3809
  NOTIFY_LAUNCH = 1;
3810
+ DOWNLOAD_RESPONSES = 2;
3055
3811
  }
3056
3812
  }
3057
-
3813
+
3058
3814
  message HistorySyncChunkRetryRequest {
3059
3815
  optional Message.HistorySyncType syncType = 1;
3060
3816
  optional uint32 chunkOrder = 2;
3061
3817
  optional string chunkNotificationId = 3;
3062
3818
  optional bool regenerateChunk = 4;
3063
3819
  }
3064
-
3820
+
3065
3821
  message HistorySyncOnDemandRequest {
3066
3822
  optional string chatJid = 1;
3067
3823
  optional string oldestMsgId = 2;
@@ -3069,28 +3825,29 @@ message Message {
3069
3825
  optional int32 onDemandMsgCount = 4;
3070
3826
  optional int64 oldestMsgTimestampMs = 5;
3071
3827
  optional string accountLid = 6;
3828
+ optional bool supportInlineResponse = 7;
3072
3829
  }
3073
-
3830
+
3074
3831
  message PlaceholderMessageResendRequest {
3075
3832
  optional MessageKey messageKey = 1;
3076
3833
  }
3077
-
3834
+
3078
3835
  message RequestStickerReupload {
3079
3836
  optional string fileSha256 = 1;
3080
3837
  }
3081
-
3838
+
3082
3839
  message RequestUrlPreview {
3083
3840
  optional string url = 1;
3084
3841
  optional bool includeHqThumbnail = 2;
3085
3842
  }
3086
-
3843
+
3087
3844
  message SyncDCollectionFatalRecoveryRequest {
3088
3845
  optional string collectionName = 1;
3089
3846
  optional int64 timestamp = 2;
3090
3847
  }
3091
-
3848
+
3092
3849
  }
3093
-
3850
+
3094
3851
  message PeerDataOperationRequestResponseMessage {
3095
3852
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
3096
3853
  optional string stanzaId = 2;
@@ -3106,21 +3863,47 @@ message Message {
3106
3863
  optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
3107
3864
  optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
3108
3865
  optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
3866
+ optional FlowResponsesCsvBundle flowResponsesCsvBundle = 11;
3867
+ optional BizBroadcastInsightsContactListResponse bizBroadcastInsightsContactListResponse = 12;
3868
+ message BizBroadcastInsightsContactListResponse {
3869
+ optional string campaignId = 1;
3870
+ optional int64 timestampMs = 2;
3871
+ repeated Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState contacts = 3;
3872
+ }
3873
+
3874
+ message BizBroadcastInsightsContactState {
3875
+ optional string contactJid = 1;
3876
+ optional Message.InsightDeliveryState state = 2;
3877
+ }
3878
+
3109
3879
  message CompanionCanonicalUserNonceFetchResponse {
3110
3880
  optional string nonce = 1;
3111
3881
  optional string waFbid = 2;
3112
3882
  optional bool forceRefresh = 3;
3113
3883
  }
3114
-
3884
+
3115
3885
  message CompanionMetaNonceFetchResponse {
3116
3886
  optional string nonce = 1;
3117
3887
  }
3118
-
3888
+
3889
+ message FlowResponsesCsvBundle {
3890
+ optional string flowId = 1;
3891
+ optional string galaxyFlowDownloadRequestId = 2;
3892
+ optional string fileName = 3;
3893
+ optional string mimetype = 4;
3894
+ optional bytes fileSha256 = 5;
3895
+ optional bytes mediaKey = 6;
3896
+ optional bytes fileEncSha256 = 7;
3897
+ optional string directPath = 8;
3898
+ optional int64 mediaKeyTimestamp = 9;
3899
+ optional uint64 fileLength = 10;
3900
+ }
3901
+
3119
3902
  message FullHistorySyncOnDemandRequestResponse {
3120
3903
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
3121
3904
  optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
3122
3905
  }
3123
-
3906
+
3124
3907
  enum FullHistorySyncOnDemandResponseCode {
3125
3908
  REQUEST_SUCCESS = 0;
3126
3909
  REQUEST_TIME_EXPIRED = 1;
@@ -3129,6 +3912,7 @@ message Message {
3129
3912
  ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
3130
3913
  ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
3131
3914
  ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
3915
+ ERROR_MULTI_PROVIDER_NOT_CONFIGURED = 7;
3132
3916
  }
3133
3917
  message HistorySyncChunkRetryResponse {
3134
3918
  optional Message.HistorySyncType syncType = 1;
@@ -3137,7 +3921,7 @@ message Message {
3137
3921
  optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode responseCode = 4;
3138
3922
  optional bool canRecover = 5;
3139
3923
  }
3140
-
3924
+
3141
3925
  enum HistorySyncChunkRetryResponseCode {
3142
3926
  GENERATION_ERROR = 1;
3143
3927
  CHUNK_CONSUMED = 2;
@@ -3164,32 +3948,35 @@ message Message {
3164
3948
  optional int32 thumbWidth = 6;
3165
3949
  optional int32 thumbHeight = 7;
3166
3950
  }
3167
-
3951
+
3168
3952
  message PaymentLinkPreviewMetadata {
3169
3953
  optional bool isBusinessVerified = 1;
3170
3954
  optional string providerName = 2;
3955
+ optional string amount = 3;
3956
+ optional string offset = 4;
3957
+ optional string currency = 5;
3171
3958
  }
3172
-
3959
+
3173
3960
  }
3174
-
3961
+
3175
3962
  message PlaceholderMessageResendResponse {
3176
3963
  optional bytes webMessageInfoBytes = 1;
3177
3964
  }
3178
-
3965
+
3179
3966
  message SyncDSnapshotFatalRecoveryResponse {
3180
3967
  optional bytes collectionSnapshot = 1;
3181
3968
  optional bool isCompressed = 2;
3182
3969
  }
3183
-
3970
+
3184
3971
  message WaffleNonceFetchResponse {
3185
3972
  optional string nonce = 1;
3186
3973
  optional string waEntFbid = 2;
3187
3974
  }
3188
-
3975
+
3189
3976
  }
3190
-
3977
+
3191
3978
  }
3192
-
3979
+
3193
3980
  enum PeerDataOperationRequestType {
3194
3981
  UPLOAD_STICKER = 0;
3195
3982
  SEND_RECENT_STICKER_BOOTSTRAP = 1;
@@ -3203,6 +3990,8 @@ message Message {
3203
3990
  COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
3204
3991
  HISTORY_SYNC_CHUNK_RETRY = 10;
3205
3992
  GALAXY_FLOW_ACTION = 11;
3993
+ BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO = 12;
3994
+ BUSINESS_BROADCAST_INSIGHTS_REFRESH = 13;
3206
3995
  }
3207
3996
  message PinInChatMessage {
3208
3997
  optional MessageKey key = 1;
@@ -3214,14 +4003,20 @@ message Message {
3214
4003
  UNPIN_FOR_ALL = 2;
3215
4004
  }
3216
4005
  }
3217
-
4006
+
3218
4007
  message PlaceholderMessage {
3219
4008
  optional PlaceholderType type = 1;
3220
4009
  enum PlaceholderType {
3221
4010
  MASK_LINKED_DEVICES = 0;
3222
4011
  }
3223
4012
  }
3224
-
4013
+
4014
+ message PollAddOptionMessage {
4015
+ optional MessageKey pollCreationMessageKey = 1;
4016
+ optional Message.PollCreationMessage.Option addOption = 2;
4017
+ optional Message.PollUpdateMessageMetadata metadata = 3;
4018
+ }
4019
+
3225
4020
  enum PollContentType {
3226
4021
  UNKNOWN = 0;
3227
4022
  TEXT = 1;
@@ -3236,18 +4031,21 @@ message Message {
3236
4031
  optional Message.PollContentType pollContentType = 6;
3237
4032
  optional Message.PollType pollType = 7;
3238
4033
  optional Option correctAnswer = 8;
4034
+ optional int64 endTime = 9;
4035
+ optional bool hideParticipantName = 10;
4036
+ optional bool allowAddOption = 11;
3239
4037
  message Option {
3240
4038
  optional string optionName = 1;
3241
4039
  optional string optionHash = 2;
3242
4040
  }
3243
-
4041
+
3244
4042
  }
3245
-
4043
+
3246
4044
  message PollEncValue {
3247
4045
  optional bytes encPayload = 1;
3248
4046
  optional bytes encIv = 2;
3249
4047
  }
3250
-
4048
+
3251
4049
  message PollResultSnapshotMessage {
3252
4050
  optional string name = 1;
3253
4051
  repeated PollVote pollVotes = 2;
@@ -3257,9 +4055,9 @@ message Message {
3257
4055
  optional string optionName = 1;
3258
4056
  optional int64 optionVoteCount = 2;
3259
4057
  }
3260
-
4058
+
3261
4059
  }
3262
-
4060
+
3263
4061
  enum PollType {
3264
4062
  POLL = 0;
3265
4063
  QUIZ = 1;
@@ -3270,14 +4068,16 @@ message Message {
3270
4068
  optional Message.PollUpdateMessageMetadata metadata = 3;
3271
4069
  optional int64 senderTimestampMs = 4;
3272
4070
  }
3273
-
4071
+
3274
4072
  message PollUpdateMessageMetadata {
4073
+ optional bytes pollNameHash = 1;
4074
+ optional string lastEditStanzaId = 2;
3275
4075
  }
3276
-
4076
+
3277
4077
  message PollVoteMessage {
3278
4078
  repeated bytes selectedOptions = 1;
3279
4079
  }
3280
-
4080
+
3281
4081
  message ProductMessage {
3282
4082
  optional ProductSnapshot product = 1;
3283
4083
  optional string businessOwnerJid = 2;
@@ -3290,7 +4090,7 @@ message Message {
3290
4090
  optional string title = 2;
3291
4091
  optional string description = 3;
3292
4092
  }
3293
-
4093
+
3294
4094
  message ProductSnapshot {
3295
4095
  optional Message.ImageMessage productImage = 1;
3296
4096
  optional string productId = 2;
@@ -3305,9 +4105,9 @@ message Message {
3305
4105
  optional int64 salePriceAmount1000 = 12;
3306
4106
  optional string signedUrl = 13;
3307
4107
  }
3308
-
4108
+
3309
4109
  }
3310
-
4110
+
3311
4111
  message ProtocolMessage {
3312
4112
  optional MessageKey key = 1;
3313
4113
  optional Type type = 2;
@@ -3333,6 +4133,10 @@ message Message {
3333
4133
  optional bytes aiPsiMetadata = 25;
3334
4134
  optional AIQueryFanout aiQueryFanout = 26;
3335
4135
  optional MemberLabel memberLabel = 27;
4136
+ optional AIMediaCollectionMessage aiMediaCollectionMessage = 28;
4137
+ optional uint32 afterReadDuration = 29;
4138
+ optional Message.ChatThemeSetting chatThemeSetting = 30;
4139
+ optional AIMetadataOperation aiMetadataOperation = 31;
3336
4140
  enum Type {
3337
4141
  REVOKE = 0;
3338
4142
  EPHEMERAL_SETTING = 3;
@@ -3360,21 +4164,25 @@ message Message {
3360
4164
  AI_PSI_METADATA = 28;
3361
4165
  AI_QUERY_FANOUT = 29;
3362
4166
  GROUP_MEMBER_LABEL_CHANGE = 30;
4167
+ AI_MEDIA_COLLECTION_MESSAGE = 31;
4168
+ MESSAGE_UNSCHEDULE = 32;
4169
+ CHAT_THEME_SETTING = 34;
4170
+ AI_METADATA_OPERATION = 35;
3363
4171
  }
3364
4172
  }
3365
-
4173
+
3366
4174
  message QuestionResponseMessage {
3367
4175
  optional MessageKey key = 1;
3368
4176
  optional string text = 2;
3369
4177
  }
3370
-
4178
+
3371
4179
  message ReactionMessage {
3372
4180
  optional MessageKey key = 1;
3373
4181
  optional string text = 2;
3374
4182
  optional string groupingKey = 3;
3375
4183
  optional int64 senderTimestampMs = 4;
3376
4184
  }
3377
-
4185
+
3378
4186
  message RequestPaymentMessage {
3379
4187
  optional Message noteMessage = 4;
3380
4188
  optional string currencyCodeIso4217 = 1;
@@ -3384,19 +4192,29 @@ message Message {
3384
4192
  optional Money amount = 6;
3385
4193
  optional PaymentBackground background = 7;
3386
4194
  }
3387
-
4195
+
3388
4196
  message RequestPhoneNumberMessage {
3389
4197
  optional ContextInfo contextInfo = 1;
3390
4198
  }
3391
-
4199
+
3392
4200
  message RequestWelcomeMessageMetadata {
3393
4201
  optional LocalChatState localChatState = 1;
4202
+ optional WelcomeTrigger welcomeTrigger = 2;
4203
+ optional BotAgentMetadata botAgentMetadata = 3;
3394
4204
  enum LocalChatState {
3395
4205
  EMPTY = 0;
3396
4206
  NON_EMPTY = 1;
3397
4207
  }
4208
+ enum WelcomeTrigger {
4209
+ CHAT_OPEN = 0;
4210
+ COMPANION_PAIRING = 1;
4211
+ }
3398
4212
  }
3399
-
4213
+
4214
+ message RootSecretDistributeMessage {
4215
+ optional string chatJid = 1;
4216
+ }
4217
+
3400
4218
  message ScheduledCallCreationMessage {
3401
4219
  optional int64 scheduledTimestampMs = 1;
3402
4220
  optional CallType callType = 2;
@@ -3407,7 +4225,7 @@ message Message {
3407
4225
  VIDEO = 2;
3408
4226
  }
3409
4227
  }
3410
-
4228
+
3411
4229
  message ScheduledCallEditMessage {
3412
4230
  optional MessageKey key = 1;
3413
4231
  optional EditType editType = 2;
@@ -3416,31 +4234,55 @@ message Message {
3416
4234
  CANCEL = 1;
3417
4235
  }
3418
4236
  }
3419
-
4237
+
3420
4238
  message SecretEncryptedMessage {
3421
4239
  optional MessageKey targetMessageKey = 1;
3422
4240
  optional bytes encPayload = 2;
3423
4241
  optional bytes encIv = 3;
3424
4242
  optional SecretEncType secretEncType = 4;
4243
+ optional string remoteKeyId = 5;
3425
4244
  enum SecretEncType {
3426
4245
  UNKNOWN = 0;
3427
4246
  EVENT_EDIT = 1;
3428
4247
  MESSAGE_EDIT = 2;
4248
+ MESSAGE_SCHEDULE = 3;
4249
+ POLL_EDIT = 4;
4250
+ POLL_ADD_OPTION = 5;
3429
4251
  }
3430
4252
  }
3431
-
4253
+
3432
4254
  message SendPaymentMessage {
3433
4255
  optional Message noteMessage = 2;
3434
4256
  optional MessageKey requestMessageKey = 3;
3435
4257
  optional PaymentBackground background = 4;
3436
4258
  optional string transactionData = 5;
3437
4259
  }
3438
-
4260
+
3439
4261
  message SenderKeyDistributionMessage {
3440
4262
  optional string groupId = 1;
3441
4263
  optional bytes axolotlSenderKeyDistributionMessage = 2;
3442
4264
  }
3443
-
4265
+
4266
+ message SplitPaymentMessage {
4267
+ optional string splitId = 1;
4268
+ optional Money totalAmount = 2;
4269
+ optional string description = 3;
4270
+ optional string requesterJid = 4;
4271
+ repeated Message.SplitPaymentParticipant participants = 5;
4272
+ optional int64 createdAtMs = 6;
4273
+ optional ContextInfo contextInfo = 17;
4274
+ }
4275
+
4276
+ message SplitPaymentParticipant {
4277
+ optional string jid = 1;
4278
+ optional Money amount = 2;
4279
+ optional SplitPaymentStatus status = 3;
4280
+ enum SplitPaymentStatus {
4281
+ PENDING = 0;
4282
+ PAID = 1;
4283
+ }
4284
+ }
4285
+
3444
4286
  message StatusNotificationMessage {
3445
4287
  optional MessageKey responseMessageKey = 1;
3446
4288
  optional MessageKey originalMessageKey = 2;
@@ -3452,12 +4294,12 @@ message Message {
3452
4294
  STATUS_QUESTION_ANSWER_RESHARE = 3;
3453
4295
  }
3454
4296
  }
3455
-
4297
+
3456
4298
  message StatusQuestionAnswerMessage {
3457
4299
  optional MessageKey key = 1;
3458
4300
  optional string text = 2;
3459
4301
  }
3460
-
4302
+
3461
4303
  message StatusQuotedMessage {
3462
4304
  optional StatusQuotedMessageType type = 1;
3463
4305
  optional string text = 2;
@@ -3467,7 +4309,7 @@ message Message {
3467
4309
  QUESTION_ANSWER = 1;
3468
4310
  }
3469
4311
  }
3470
-
4312
+
3471
4313
  message StatusStickerInteractionMessage {
3472
4314
  optional MessageKey key = 1;
3473
4315
  optional string stickerKey = 2;
@@ -3477,7 +4319,7 @@ message Message {
3477
4319
  REACTION = 1;
3478
4320
  }
3479
4321
  }
3480
-
4322
+
3481
4323
  message StickerMessage {
3482
4324
  optional string url = 1;
3483
4325
  optional bytes fileSha256 = 2;
@@ -3499,9 +4341,10 @@ message Message {
3499
4341
  optional bool isAiSticker = 20;
3500
4342
  optional bool isLottie = 21;
3501
4343
  optional string accessibilityLabel = 22;
3502
- optional Message.MediaKeyDomain mediaKeyDomain = 23;
4344
+ optional int32 premium = 24;
4345
+ optional string emojis = 25;
3503
4346
  }
3504
-
4347
+
3505
4348
  message StickerPackMessage {
3506
4349
  optional string stickerPackId = 1;
3507
4350
  optional string name = 2;
@@ -3532,21 +4375,22 @@ message Message {
3532
4375
  optional string accessibilityLabel = 4;
3533
4376
  optional bool isLottie = 5;
3534
4377
  optional string mimetype = 6;
4378
+ optional int32 premium = 7;
3535
4379
  }
3536
-
4380
+
3537
4381
  enum StickerPackOrigin {
3538
4382
  FIRST_PARTY = 0;
3539
4383
  THIRD_PARTY = 1;
3540
4384
  USER_CREATED = 2;
3541
4385
  }
3542
4386
  }
3543
-
4387
+
3544
4388
  message StickerSyncRMRMessage {
3545
4389
  repeated string filehash = 1;
3546
4390
  optional string rmrSource = 2;
3547
4391
  optional int64 requestTimestamp = 3;
3548
4392
  }
3549
-
4393
+
3550
4394
  message TemplateButtonReplyMessage {
3551
4395
  optional string selectedId = 1;
3552
4396
  optional string selectedDisplayText = 2;
@@ -3554,7 +4398,7 @@ message Message {
3554
4398
  optional uint32 selectedIndex = 4;
3555
4399
  optional uint32 selectedCarouselCardIndex = 5;
3556
4400
  }
3557
-
4401
+
3558
4402
  message TemplateMessage {
3559
4403
  optional ContextInfo contextInfo = 3;
3560
4404
  optional HydratedFourRowTemplate hydratedTemplate = 4;
@@ -3576,7 +4420,7 @@ message Message {
3576
4420
  Message.LocationMessage locationMessage = 5;
3577
4421
  }
3578
4422
  }
3579
-
4423
+
3580
4424
  message HydratedFourRowTemplate {
3581
4425
  optional string hydratedContentText = 6;
3582
4426
  optional string hydratedFooterText = 7;
@@ -3591,20 +4435,20 @@ message Message {
3591
4435
  Message.LocationMessage locationMessage = 5;
3592
4436
  }
3593
4437
  }
3594
-
4438
+
3595
4439
  }
3596
-
4440
+
3597
4441
  message URLMetadata {
3598
4442
  optional uint32 fbExperimentId = 1;
3599
4443
  }
3600
-
4444
+
3601
4445
  message VideoEndCard {
3602
- string username = 1;
3603
- string caption = 2;
3604
- string thumbnailImageUrl = 3;
3605
- string profilePictureUrl = 4;
4446
+ optional string username = 1;
4447
+ optional string caption = 2;
4448
+ optional string thumbnailImageUrl = 3;
4449
+ optional string profilePictureUrl = 4;
3606
4450
  }
3607
-
4451
+
3608
4452
  message VideoMessage {
3609
4453
  optional string url = 1;
3610
4454
  optional string mimetype = 2;
@@ -3636,7 +4480,6 @@ message Message {
3636
4480
  optional uint64 motionPhotoPresentationOffsetMs = 29;
3637
4481
  optional string metadataUrl = 30;
3638
4482
  optional VideoSourceType videoSourceType = 31;
3639
- optional Message.MediaKeyDomain mediaKeyDomain = 32;
3640
4483
  enum Attribution {
3641
4484
  NONE = 0;
3642
4485
  GIPHY = 1;
@@ -3648,7 +4491,7 @@ message Message {
3648
4491
  AI_GENERATED = 1;
3649
4492
  }
3650
4493
  }
3651
-
4494
+
3652
4495
  }
3653
4496
 
3654
4497
  message MessageAddOn {
@@ -3699,6 +4542,7 @@ message MessageAssociation {
3699
4542
  STATUS_ADD_YOURS_DIWALI = 17;
3700
4543
  STATUS_REACTION = 18;
3701
4544
  HEVC_VIDEO_DUAL_UPLOAD = 19;
4545
+ POLL_ADD_OPTION = 20;
3702
4546
  }
3703
4547
  }
3704
4548
 
@@ -3719,6 +4563,7 @@ message MessageContextInfo {
3719
4563
  optional LimitSharing limitSharingV2 = 14;
3720
4564
  repeated ThreadID threadId = 15;
3721
4565
  optional WebLinkRenderConfig weblinkRenderConfig = 16;
4566
+ optional bytes teeBotMetadata = 17;
3722
4567
  enum MessageAddonExpiryType {
3723
4568
  STATIC = 1;
3724
4569
  DEPENDENT_ON_PARENT = 2;
@@ -3738,6 +4583,13 @@ message MessageSecretMessage {
3738
4583
  optional bytes encPayload = 3;
3739
4584
  }
3740
4585
 
4586
+ message MessageText {
4587
+ optional string text = 1;
4588
+ repeated string mentionedJid = 2;
4589
+ repeated Command commands = 3;
4590
+ repeated Mention mentions = 4;
4591
+ }
4592
+
3741
4593
  message Money {
3742
4594
  optional int64 value = 1;
3743
4595
  optional uint32 offset = 2;
@@ -3788,6 +4640,18 @@ message MsgOpaqueData {
3788
4640
  optional bool eventIsScheduledCall = 44;
3789
4641
  optional bool eventExtraGuestsAllowed = 45;
3790
4642
  optional bytes plainProtobufBytes = 43;
4643
+ optional string quarantineExtractedText = 48;
4644
+ optional int64 pollEndTime = 49;
4645
+ optional bool pollHideVoterNames = 50;
4646
+ optional bool pollAllowAddOption = 52;
4647
+ optional string sharableEventInviteId = 53;
4648
+ optional string sharableEventInviteTitle = 54;
4649
+ optional int64 sharableEventInviteStartTime = 55;
4650
+ optional int64 sharableEventInviteEndTime = 56;
4651
+ optional string sharableEventInviteCaption = 57;
4652
+ optional bool sharableEventInviteIsCanceled = 58;
4653
+ optional bytes sharableEventInviteJpegThumbnail = 59;
4654
+ optional string sharableEventInviteCallLink = 60;
3791
4655
  message EventLocation {
3792
4656
  optional double degreesLatitude = 1;
3793
4657
  optional double degreesLongitude = 2;
@@ -3796,7 +4660,7 @@ message MsgOpaqueData {
3796
4660
  optional string url = 5;
3797
4661
  optional bytes jpegThumbnail = 6;
3798
4662
  }
3799
-
4663
+
3800
4664
  enum PollContentType {
3801
4665
  UNKNOWN = 0;
3802
4666
  TEXT = 1;
@@ -3806,7 +4670,7 @@ message MsgOpaqueData {
3806
4670
  optional string name = 1;
3807
4671
  optional string hash = 2;
3808
4672
  }
3809
-
4673
+
3810
4674
  enum PollType {
3811
4675
  POLL = 0;
3812
4676
  QUIZ = 1;
@@ -3815,11 +4679,11 @@ message MsgOpaqueData {
3815
4679
  optional MsgOpaqueData.PollOption option = 1;
3816
4680
  optional int32 optionVoteCount = 2;
3817
4681
  }
3818
-
4682
+
3819
4683
  message PollVotesSnapshot {
3820
4684
  repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
3821
4685
  }
3822
-
4686
+
3823
4687
  }
3824
4688
 
3825
4689
  message MsgRowOpaqueData {
@@ -3899,8 +4763,19 @@ enum MutationProps {
3899
4763
  NEWSLETTER_SAVED_INTERESTS_ACTION = 75;
3900
4764
  AI_THREAD_RENAME_ACTION = 76;
3901
4765
  INTERACTIVE_MESSAGE_ACTION = 77;
4766
+ SETTINGS_SYNC_ACTION = 78;
4767
+ OUT_CONTACT_ACTION = 79;
4768
+ NCT_SALT_SYNC_ACTION = 80;
4769
+ BUSINESS_BROADCAST_CAMPAIGN_ACTION = 81;
4770
+ BUSINESS_BROADCAST_INSIGHTS_ACTION = 82;
4771
+ CUSTOMER_DATA_ACTION = 83;
4772
+ SUBSCRIPTIONS_SYNC_V2_ACTION = 84;
4773
+ THREAD_PIN_ACTION = 85;
4774
+ AUTO_ORGANIZE_BUSINESS_CHAT_SETTING = 86;
4775
+ BIZ_AI_SETTINGS_NUDGE_ACTION = 87;
3902
4776
  SHARE_OWN_PN = 10001;
3903
4777
  BUSINESS_BROADCAST_ACTION = 10002;
4778
+ AI_THREAD_DELETE_ACTION = 10003;
3904
4779
  }
3905
4780
  message NoiseCertificate {
3906
4781
  optional bytes details = 1;
@@ -3912,7 +4787,7 @@ message NoiseCertificate {
3912
4787
  optional string subject = 4;
3913
4788
  optional bytes key = 5;
3914
4789
  }
3915
-
4790
+
3916
4791
  }
3917
4792
 
3918
4793
  message NotificationMessageInfo {
@@ -3998,7 +4873,7 @@ message PaymentBackground {
3998
4873
  optional bytes fileEncSha256 = 4;
3999
4874
  optional string directPath = 5;
4000
4875
  }
4001
-
4876
+
4002
4877
  enum Type {
4003
4878
  UNKNOWN = 0;
4004
4879
  DEFAULT = 1;
@@ -4106,6 +4981,12 @@ message Point {
4106
4981
 
4107
4982
  message PollAdditionalMetadata {
4108
4983
  optional bool pollInvalidated = 1;
4984
+ repeated PollNameHashHistoryEntry pollNameHashHistory = 2;
4985
+ message PollNameHashHistoryEntry {
4986
+ optional string editStanzaId = 1;
4987
+ optional bytes pollNameHash = 2;
4988
+ }
4989
+
4109
4990
  }
4110
4991
 
4111
4992
  message PollEncValue {
@@ -4119,6 +5000,7 @@ message PollUpdate {
4119
5000
  optional int64 senderTimestampMs = 3;
4120
5001
  optional int64 serverTimestampMs = 4;
4121
5002
  optional bool unread = 5;
5003
+ optional Message.PollUpdateMessageMetadata metadata = 6;
4122
5004
  }
4123
5005
 
4124
5006
  message PreKeyRecordStructure {
@@ -4177,6 +5059,41 @@ message Pushname {
4177
5059
  optional string pushname = 2;
4178
5060
  }
4179
5061
 
5062
+ message QP {
5063
+ enum ClauseType {
5064
+ AND = 1;
5065
+ OR = 2;
5066
+ NOR = 3;
5067
+ }
5068
+ message Filter {
5069
+ optional string filterName = 1;
5070
+ repeated QP.FilterParameters parameters = 2;
5071
+ optional QP.FilterResult filterResult = 3;
5072
+ optional QP.FilterClientNotSupportedConfig clientNotSupportedConfig = 4;
5073
+ }
5074
+
5075
+ message FilterClause {
5076
+ optional QP.ClauseType clauseType = 1;
5077
+ repeated QP.FilterClause clauses = 2;
5078
+ repeated QP.Filter filters = 3;
5079
+ }
5080
+
5081
+ enum FilterClientNotSupportedConfig {
5082
+ PASS_BY_DEFAULT = 1;
5083
+ FAIL_BY_DEFAULT = 2;
5084
+ }
5085
+ message FilterParameters {
5086
+ optional string key = 1;
5087
+ optional string value = 2;
5088
+ }
5089
+
5090
+ enum FilterResult {
5091
+ TRUE = 1;
5092
+ FALSE = 2;
5093
+ UNKNOWN = 3;
5094
+ }
5095
+ }
5096
+
4180
5097
  message QuarantinedMessage {
4181
5098
  optional bytes originalData = 1;
4182
5099
  optional string extractedText = 2;
@@ -4211,6 +5128,21 @@ message ReportingTokenInfo {
4211
5128
  optional bytes reportingTag = 1;
4212
5129
  }
4213
5130
 
5131
+ message RoutingInfo {
5132
+ repeated int32 regionId = 1;
5133
+ repeated int32 clusterId = 2;
5134
+ optional int32 taskId = 3;
5135
+ optional bool debug = 4;
5136
+ optional bool tcpBbr = 5;
5137
+ optional bool tcpKeepalive = 6;
5138
+ }
5139
+
5140
+ message ScheduledMessageMetadata {
5141
+ optional string revealKeyId = 1;
5142
+ optional bytes revealKey = 2;
5143
+ optional uint64 scheduledTime = 3;
5144
+ }
5145
+
4214
5146
  message SenderKeyDistributionMessage {
4215
5147
  optional uint32 id = 1;
4216
5148
  optional uint32 iteration = 2;
@@ -4237,17 +5169,17 @@ message SenderKeyStateStructure {
4237
5169
  optional uint32 iteration = 1;
4238
5170
  optional bytes seed = 2;
4239
5171
  }
4240
-
5172
+
4241
5173
  message SenderMessageKey {
4242
5174
  optional uint32 iteration = 1;
4243
5175
  optional bytes seed = 2;
4244
5176
  }
4245
-
5177
+
4246
5178
  message SenderSigningKey {
4247
5179
  optional bytes public = 1;
4248
5180
  optional bytes private = 2;
4249
5181
  }
4250
-
5182
+
4251
5183
  }
4252
5184
 
4253
5185
  message ServerErrorReceipt {
@@ -4277,16 +5209,16 @@ message SessionStructure {
4277
5209
  optional uint32 index = 1;
4278
5210
  optional bytes key = 2;
4279
5211
  }
4280
-
5212
+
4281
5213
  message MessageKey {
4282
5214
  optional uint32 index = 1;
4283
5215
  optional bytes cipherKey = 2;
4284
5216
  optional bytes macKey = 3;
4285
5217
  optional bytes iv = 4;
4286
5218
  }
4287
-
5219
+
4288
5220
  }
4289
-
5221
+
4290
5222
  message PendingKeyExchange {
4291
5223
  optional uint32 sequence = 1;
4292
5224
  optional bytes localBaseKey = 2;
@@ -4296,13 +5228,13 @@ message SessionStructure {
4296
5228
  optional bytes localIdentityKey = 7;
4297
5229
  optional bytes localIdentityKeyPrivate = 8;
4298
5230
  }
4299
-
5231
+
4300
5232
  message PendingPreKey {
4301
5233
  optional uint32 preKeyId = 1;
4302
5234
  optional int32 signedPreKeyId = 3;
4303
5235
  optional bytes baseKey = 2;
4304
5236
  }
4305
-
5237
+
4306
5238
  }
4307
5239
 
4308
5240
  message SessionTransparencyMetadata {
@@ -4348,7 +5280,7 @@ message StatusAttribution {
4348
5280
  STATUS_MIMICRY = 1;
4349
5281
  }
4350
5282
  }
4351
-
5283
+
4352
5284
  message ExternalShare {
4353
5285
  optional string actionUrl = 1;
4354
5286
  optional Source source = 2;
@@ -4366,13 +5298,15 @@ message StatusAttribution {
4366
5298
  APPLE_MUSIC = 8;
4367
5299
  SHARECHAT = 9;
4368
5300
  GOOGLE_PHOTOS = 10;
5301
+ SOUNDCLOUD = 11;
5302
+ SHAZAM = 12;
4369
5303
  }
4370
5304
  }
4371
-
5305
+
4372
5306
  message GroupStatus {
4373
5307
  optional string authorJid = 1;
4374
5308
  }
4375
-
5309
+
4376
5310
  message Music {
4377
5311
  optional string authorName = 1;
4378
5312
  optional string songId = 2;
@@ -4381,7 +5315,7 @@ message StatusAttribution {
4381
5315
  optional string artistAttribution = 5;
4382
5316
  optional bool isExplicit = 6;
4383
5317
  }
4384
-
5318
+
4385
5319
  message RLAttribution {
4386
5320
  optional Source source = 1;
4387
5321
  enum Source {
@@ -4391,7 +5325,7 @@ message StatusAttribution {
4391
5325
  HYPERNOVA_GLASSES = 3;
4392
5326
  }
4393
5327
  }
4394
-
5328
+
4395
5329
  message StatusReshare {
4396
5330
  optional Source source = 1;
4397
5331
  optional Metadata metadata = 2;
@@ -4401,7 +5335,7 @@ message StatusAttribution {
4401
5335
  optional int32 channelMessageId = 3;
4402
5336
  optional bool hasMultipleReshares = 4;
4403
5337
  }
4404
-
5338
+
4405
5339
  enum Source {
4406
5340
  UNKNOWN = 0;
4407
5341
  INTERNAL_RESHARE = 1;
@@ -4410,7 +5344,7 @@ message StatusAttribution {
4410
5344
  FORWARD = 4;
4411
5345
  }
4412
5346
  }
4413
-
5347
+
4414
5348
  enum Type {
4415
5349
  UNKNOWN = 0;
4416
5350
  RESHARE = 1;
@@ -4421,6 +5355,9 @@ message StatusAttribution {
4421
5355
  RL_ATTRIBUTION = 6;
4422
5356
  AI_CREATED = 7;
4423
5357
  LAYOUTS = 8;
5358
+ NEWSLETTER_STATUS = 9;
5359
+ STATUS_CLOSE_SHARING = 10;
5360
+ PAID_PARTNERSHIP = 11;
4424
5361
  }
4425
5362
  }
4426
5363
 
@@ -4429,7 +5366,7 @@ message StatusMentionMessage {
4429
5366
  }
4430
5367
 
4431
5368
  message StatusPSA {
4432
- uint64 campaignId = 44;
5369
+ optional uint64 campaignId = 44;
4433
5370
  optional uint64 campaignExpirationTimestamp = 45;
4434
5371
  }
4435
5372
 
@@ -4450,6 +5387,11 @@ message StickerMetadata {
4450
5387
  optional bool isAvatarSticker = 14;
4451
5388
  }
4452
5389
 
5390
+ message SubProtocol {
5391
+ optional bytes payload = 1;
5392
+ optional int32 version = 2;
5393
+ }
5394
+
4453
5395
  message SyncActionData {
4454
5396
  optional bytes index = 1;
4455
5397
  optional SyncActionValue value = 2;
@@ -4516,7 +5458,6 @@ message SyncActionValue {
4516
5458
  optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
4517
5459
  optional PaymentTosAction paymentTosAction = 63;
4518
5460
  optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
4519
- optional BusinessBroadcastAssociationAction businessBroadcastAssociationAction = 65;
4520
5461
  optional DetectedOutcomesStatusAction detectedOutcomesStatusAction = 66;
4521
5462
  optional MaibaAIFeaturesControlAction maibaAiFeaturesControlAction = 68;
4522
5463
  optional BusinessBroadcastListAction businessBroadcastListAction = 69;
@@ -4527,25 +5468,39 @@ message SyncActionValue {
4527
5468
  optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
4528
5469
  optional AiThreadRenameAction aiThreadRenameAction = 76;
4529
5470
  optional InteractiveMessageAction interactiveMessageAction = 77;
5471
+ optional SettingsSyncAction settingsSyncAction = 78;
5472
+ optional OutContactAction outContactAction = 79;
5473
+ optional NctSaltSyncAction nctSaltSyncAction = 80;
5474
+ optional BusinessBroadcastCampaignAction businessBroadcastCampaignAction = 81;
5475
+ optional BusinessBroadcastInsightsAction businessBroadcastInsightsAction = 82;
5476
+ optional CustomerDataAction customerDataAction = 83;
5477
+ optional SubscriptionsSyncV2Action subscriptionsSyncV2Action = 84;
5478
+ optional ThreadPinAction threadPinAction = 85;
5479
+ optional AutoOrganizeBusinessChatSetting autoOrganizeBusinessChatSetting = 86;
5480
+ optional BizAISettingsNudgeAction bizAiSettingsNudgeAction = 87;
4530
5481
  message AgentAction {
4531
5482
  optional string name = 1;
4532
5483
  optional int32 deviceID = 2;
4533
5484
  optional bool isDeleted = 3;
4534
5485
  }
4535
-
5486
+
4536
5487
  message AiThreadRenameAction {
4537
5488
  optional string newTitle = 1;
4538
5489
  }
4539
-
5490
+
4540
5491
  message AndroidUnsupportedActions {
4541
5492
  optional bool allowed = 1;
4542
5493
  }
4543
-
5494
+
4544
5495
  message ArchiveChatAction {
4545
5496
  optional bool archived = 1;
4546
5497
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
4547
5498
  }
4548
-
5499
+
5500
+ message AutoOrganizeBusinessChatSetting {
5501
+ optional bool autoOrganize = 1;
5502
+ }
5503
+
4549
5504
  message AvatarUpdatedAction {
4550
5505
  optional AvatarEventType eventType = 1;
4551
5506
  repeated SyncActionValue.StickerAction recentAvatarStickers = 2;
@@ -4555,42 +5510,85 @@ message SyncActionValue {
4555
5510
  DELETED = 2;
4556
5511
  }
4557
5512
  }
4558
-
5513
+
5514
+ message BizAISettingsNudgeAction {
5515
+ optional BizAISettingsCategory category = 1;
5516
+ optional int64 version = 2;
5517
+ optional int64 updatedAtMs = 3;
5518
+ enum BizAISettingsCategory {
5519
+ UNKNOWN = 0;
5520
+ INSTRUCTIONS = 1;
5521
+ RESPONSE_SETTINGS = 2;
5522
+ EXAMPLE_RESPONSES = 3;
5523
+ KNOWLEDGE = 4;
5524
+ LEAD_GEN = 5;
5525
+ }
5526
+ }
5527
+
4559
5528
  message BotWelcomeRequestAction {
4560
5529
  optional bool isSent = 1;
4561
5530
  }
4562
-
5531
+
4563
5532
  message BroadcastListParticipant {
4564
- string lidJid = 1;
5533
+ optional string lidJid = 1;
4565
5534
  optional string pnJid = 2;
4566
5535
  }
4567
-
5536
+
4568
5537
  message BusinessBroadcastAssociationAction {
4569
5538
  optional bool deleted = 1;
4570
5539
  }
4571
-
5540
+
5541
+ message BusinessBroadcastCampaignAction {
5542
+ optional int32 deviceId = 1;
5543
+ optional string adId = 2;
5544
+ optional string name = 3;
5545
+ optional string msgId = 4;
5546
+ optional string broadcastJid = 5;
5547
+ optional int32 reservedQuota = 6;
5548
+ optional int64 scheduledTimestamp = 7;
5549
+ optional int64 createTimestamp = 8;
5550
+ optional SyncActionValue.BusinessBroadcastCampaignStatus status = 9;
5551
+ }
5552
+
5553
+ enum BusinessBroadcastCampaignStatus {
5554
+ DRAFT = 1;
5555
+ SCHEDULED = 2;
5556
+ PROCESSING = 3;
5557
+ FAILED = 4;
5558
+ SENT = 5;
5559
+ }
5560
+ message BusinessBroadcastInsightsAction {
5561
+ optional int32 recipientCount = 1;
5562
+ optional int32 deliveredCount = 2;
5563
+ optional int32 readCount = 3;
5564
+ optional int32 repliedCount = 4;
5565
+ optional int32 quickReplyCount = 5;
5566
+ }
5567
+
4572
5568
  message BusinessBroadcastListAction {
4573
5569
  optional bool deleted = 1;
4574
5570
  repeated SyncActionValue.BroadcastListParticipant participants = 2;
4575
5571
  optional string listName = 3;
5572
+ repeated string labelIds = 4;
5573
+ optional string audienceExpression = 5;
4576
5574
  }
4577
-
5575
+
4578
5576
  message CallLogAction {
4579
5577
  optional CallLogRecord callLogRecord = 1;
4580
5578
  }
4581
-
5579
+
4582
5580
  message ChatAssignmentAction {
4583
5581
  optional string deviceAgentID = 1;
4584
5582
  }
4585
-
5583
+
4586
5584
  message ChatAssignmentOpenedStatusAction {
4587
5585
  optional bool chatOpened = 1;
4588
5586
  }
4589
-
5587
+
4590
5588
  message ClearChatAction {
4591
5589
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
4592
5590
  }
4593
-
5591
+
4594
5592
  message ContactAction {
4595
5593
  optional string fullName = 1;
4596
5594
  optional string firstName = 2;
@@ -4599,72 +5597,88 @@ message SyncActionValue {
4599
5597
  optional string pnJid = 5;
4600
5598
  optional string username = 6;
4601
5599
  }
4602
-
5600
+
4603
5601
  message CtwaPerCustomerDataSharingAction {
4604
5602
  optional bool isCtwaPerCustomerDataSharingEnabled = 1;
4605
5603
  }
4606
-
5604
+
4607
5605
  message CustomPaymentMethod {
4608
- string credentialId = 1;
4609
- string country = 2;
4610
- string type = 3;
5606
+ optional string credentialId = 1;
5607
+ optional string country = 2;
5608
+ optional string type = 3;
4611
5609
  repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
4612
5610
  }
4613
-
5611
+
4614
5612
  message CustomPaymentMethodMetadata {
4615
- string key = 1;
4616
- string value = 2;
5613
+ optional string key = 1;
5614
+ optional string value = 2;
4617
5615
  }
4618
-
5616
+
4619
5617
  message CustomPaymentMethodsAction {
4620
5618
  repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
4621
5619
  }
4622
-
5620
+
5621
+ message CustomerDataAction {
5622
+ optional string chatJid = 1;
5623
+ optional int32 contactType = 2;
5624
+ optional string email = 3;
5625
+ optional string altPhoneNumbers = 4;
5626
+ optional int64 birthday = 5;
5627
+ optional string address = 6;
5628
+ optional int32 acquisitionSource = 7;
5629
+ optional int32 leadStage = 8;
5630
+ optional int64 lastOrder = 9;
5631
+ optional int64 createdAt = 10;
5632
+ optional int64 modifiedAt = 11;
5633
+ }
5634
+
4623
5635
  message DeleteChatAction {
4624
5636
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
4625
5637
  }
4626
-
5638
+
4627
5639
  message DeleteIndividualCallLogAction {
4628
5640
  optional string peerJid = 1;
4629
5641
  optional bool isIncoming = 2;
4630
5642
  }
4631
-
5643
+
4632
5644
  message DeleteMessageForMeAction {
4633
5645
  optional bool deleteMedia = 1;
4634
5646
  optional int64 messageTimestamp = 2;
4635
5647
  }
4636
-
5648
+
4637
5649
  message DetectedOutcomesStatusAction {
4638
5650
  optional bool isEnabled = 1;
4639
5651
  }
4640
-
5652
+
4641
5653
  message ExternalWebBetaAction {
4642
5654
  optional bool isOptIn = 1;
4643
5655
  }
4644
-
5656
+
4645
5657
  message FavoritesAction {
4646
5658
  repeated Favorite favorites = 1;
4647
5659
  message Favorite {
4648
5660
  optional string id = 1;
4649
5661
  }
4650
-
5662
+
4651
5663
  }
4652
-
5664
+
4653
5665
  message InteractiveMessageAction {
4654
- InteractiveMessageActionMode type = 1;
5666
+ optional InteractiveMessageActionMode type = 1;
5667
+ optional string agmId = 2;
4655
5668
  enum InteractiveMessageActionMode {
4656
5669
  DISABLE_CTA = 1;
4657
5670
  }
4658
5671
  }
4659
-
5672
+
4660
5673
  message KeyExpiration {
4661
5674
  optional int32 expiredKeyEpoch = 1;
4662
5675
  }
4663
-
5676
+
4664
5677
  message LabelAssociationAction {
4665
5678
  optional bool labeled = 1;
5679
+ optional string modelMetaData = 2;
4666
5680
  }
4667
-
5681
+
4668
5682
  message LabelEditAction {
4669
5683
  optional string name = 1;
4670
5684
  optional int32 color = 2;
@@ -4686,41 +5700,53 @@ message SyncActionValue {
4686
5700
  SERVER_ASSIGNED = 7;
4687
5701
  DRAFTED = 8;
4688
5702
  AI_HANDOFF = 9;
5703
+ CHANNELS = 10;
5704
+ AI_RESPONDING = 11;
5705
+ ARCHIVED = 12;
5706
+ LOCKED = 13;
5707
+ INVITES = 14;
5708
+ THIRD_PARTY = 15;
4689
5709
  }
4690
5710
  }
4691
-
5711
+
4692
5712
  message LabelReorderingAction {
4693
5713
  repeated int32 sortedLabelIds = 1;
4694
5714
  }
4695
-
5715
+
4696
5716
  message LidContactAction {
4697
5717
  optional string fullName = 1;
4698
5718
  optional string firstName = 2;
4699
5719
  optional string username = 3;
4700
5720
  }
4701
-
5721
+
4702
5722
  message LocaleSetting {
4703
5723
  optional string locale = 1;
4704
5724
  }
4705
-
5725
+
4706
5726
  message LockChatAction {
4707
5727
  optional bool locked = 1;
4708
5728
  }
4709
-
5729
+
4710
5730
  message MaibaAIFeaturesControlAction {
4711
5731
  optional MaibaAIFeatureStatus aiFeatureStatus = 1;
5732
+ optional MaibaAIReplyMode aiReplyMode = 2;
4712
5733
  enum MaibaAIFeatureStatus {
4713
5734
  ENABLED = 0;
4714
5735
  ENABLED_HAS_LEARNING = 1;
4715
5736
  DISABLED = 2;
4716
5737
  }
5738
+ enum MaibaAIReplyMode {
5739
+ MUTED = 0;
5740
+ AI_AGENT = 1;
5741
+ SUGGESTIONS = 2;
5742
+ }
4717
5743
  }
4718
-
5744
+
4719
5745
  message MarkChatAsReadAction {
4720
5746
  optional bool read = 1;
4721
5747
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
4722
5748
  }
4723
-
5749
+
4724
5750
  message MarketingMessageAction {
4725
5751
  optional string name = 1;
4726
5752
  optional string message = 2;
@@ -4733,14 +5759,14 @@ message SyncActionValue {
4733
5759
  PERSONALIZED = 0;
4734
5760
  }
4735
5761
  }
4736
-
5762
+
4737
5763
  message MarketingMessageBroadcastAction {
4738
5764
  optional int32 repliedCount = 1;
4739
5765
  }
4740
-
5766
+
4741
5767
  message MerchantPaymentPartnerAction {
4742
- Status status = 1;
4743
- string country = 2;
5768
+ optional Status status = 1;
5769
+ optional string country = 2;
4744
5770
  optional string gatewayName = 3;
4745
5771
  optional string credentialId = 4;
4746
5772
  enum Status {
@@ -4748,22 +5774,27 @@ message SyncActionValue {
4748
5774
  INACTIVE = 1;
4749
5775
  }
4750
5776
  }
4751
-
5777
+
4752
5778
  message MusicUserIdAction {
4753
5779
  optional string musicUserId = 1;
4754
5780
  map<string, string> music_user_id_map = 2;
4755
5781
  }
4756
-
5782
+
4757
5783
  message MuteAction {
4758
5784
  optional bool muted = 1;
4759
5785
  optional int64 muteEndTimestamp = 2;
4760
5786
  optional bool autoMuted = 3;
5787
+ optional int64 muteEveryoneMentionEndTimestamp = 4;
4761
5788
  }
4762
-
5789
+
5790
+ message NctSaltSyncAction {
5791
+ optional bytes salt = 1;
5792
+ }
5793
+
4763
5794
  message NewsletterSavedInterestsAction {
4764
5795
  optional string newsletterSavedInterests = 1;
4765
5796
  }
4766
-
5797
+
4767
5798
  message NoteEditAction {
4768
5799
  optional NoteType type = 1;
4769
5800
  optional string chatJid = 2;
@@ -4775,7 +5806,7 @@ message SyncActionValue {
4775
5806
  STRUCTURED = 2;
4776
5807
  }
4777
5808
  }
4778
-
5809
+
4779
5810
  message NotificationActivitySettingAction {
4780
5811
  optional NotificationActivitySetting notificationActivitySetting = 1;
4781
5812
  enum NotificationActivitySetting {
@@ -4785,51 +5816,56 @@ message SyncActionValue {
4785
5816
  DEFAULT_HIGHLIGHTS = 3;
4786
5817
  }
4787
5818
  }
4788
-
5819
+
4789
5820
  message NuxAction {
4790
5821
  optional bool acknowledged = 1;
4791
5822
  }
4792
-
5823
+
5824
+ message OutContactAction {
5825
+ optional string fullName = 1;
5826
+ optional string firstName = 2;
5827
+ }
5828
+
4793
5829
  message PaymentInfoAction {
4794
5830
  optional string cpi = 1;
4795
5831
  }
4796
-
5832
+
4797
5833
  message PaymentTosAction {
4798
- PaymentNotice paymentNotice = 1;
4799
- bool accepted = 2;
5834
+ optional PaymentNotice paymentNotice = 1;
5835
+ optional bool accepted = 2;
4800
5836
  enum PaymentNotice {
4801
5837
  BR_PAY_PRIVACY_POLICY = 0;
4802
5838
  }
4803
5839
  }
4804
-
5840
+
4805
5841
  message PinAction {
4806
5842
  optional bool pinned = 1;
4807
5843
  }
4808
-
5844
+
4809
5845
  message PnForLidChatAction {
4810
5846
  optional string pnJid = 1;
4811
5847
  }
4812
-
5848
+
4813
5849
  message PrimaryFeature {
4814
5850
  repeated string flags = 1;
4815
5851
  }
4816
-
5852
+
4817
5853
  message PrimaryVersionAction {
4818
5854
  optional string version = 1;
4819
5855
  }
4820
-
5856
+
4821
5857
  message PrivacySettingChannelsPersonalisedRecommendationAction {
4822
5858
  optional bool isUserOptedOut = 1;
4823
5859
  }
4824
-
5860
+
4825
5861
  message PrivacySettingDisableLinkPreviewsAction {
4826
5862
  optional bool isPreviewsDisabled = 1;
4827
5863
  }
4828
-
5864
+
4829
5865
  message PrivacySettingRelayAllCalls {
4830
5866
  optional bool isEnabled = 1;
4831
5867
  }
4832
-
5868
+
4833
5869
  message PrivateProcessingSettingAction {
4834
5870
  optional PrivateProcessingStatus privateProcessingStatus = 1;
4835
5871
  enum PrivateProcessingStatus {
@@ -4838,46 +5874,150 @@ message SyncActionValue {
4838
5874
  DISABLED = 2;
4839
5875
  }
4840
5876
  }
4841
-
5877
+
4842
5878
  message PushNameSetting {
4843
5879
  optional string name = 1;
4844
5880
  }
4845
-
5881
+
4846
5882
  message QuickReplyAction {
4847
5883
  optional string shortcut = 1;
4848
5884
  optional string message = 2;
4849
5885
  repeated string keywords = 3;
4850
5886
  optional int32 count = 4;
4851
5887
  optional bool deleted = 5;
5888
+ repeated string associatedLabelIds = 6;
4852
5889
  }
4853
-
5890
+
4854
5891
  message RecentEmojiWeightsAction {
4855
5892
  repeated RecentEmojiWeight weights = 1;
4856
5893
  }
4857
-
5894
+
4858
5895
  message RemoveRecentStickerAction {
4859
5896
  optional int64 lastStickerSentTs = 1;
4860
5897
  }
4861
-
5898
+
5899
+ message SettingsSyncAction {
5900
+ optional bool startAtLogin = 1;
5901
+ optional bool minimizeToTray = 2;
5902
+ optional string language = 3;
5903
+ optional bool replaceTextWithEmoji = 4;
5904
+ optional DisplayMode bannerNotificationDisplayMode = 5;
5905
+ optional DisplayMode unreadCounterBadgeDisplayMode = 6;
5906
+ optional bool isMessagesNotificationEnabled = 7;
5907
+ optional bool isCallsNotificationEnabled = 8;
5908
+ optional bool isReactionsNotificationEnabled = 9;
5909
+ optional bool isStatusReactionsNotificationEnabled = 10;
5910
+ optional bool isTextPreviewForNotificationEnabled = 11;
5911
+ optional int32 defaultNotificationToneId = 12;
5912
+ optional int32 groupDefaultNotificationToneId = 13;
5913
+ optional int32 appTheme = 14;
5914
+ optional int32 wallpaperId = 15;
5915
+ optional bool isDoodleWallpaperEnabled = 16;
5916
+ optional int32 fontSize = 17;
5917
+ optional bool isPhotosAutodownloadEnabled = 18;
5918
+ optional bool isAudiosAutodownloadEnabled = 19;
5919
+ optional bool isVideosAutodownloadEnabled = 20;
5920
+ optional bool isDocumentsAutodownloadEnabled = 21;
5921
+ optional bool disableLinkPreviews = 22;
5922
+ optional int32 notificationToneId = 23;
5923
+ optional MediaQualitySetting mediaUploadQuality = 24;
5924
+ optional bool isSpellCheckEnabled = 25;
5925
+ optional bool isEnterToSendEnabled = 26;
5926
+ optional bool isGroupMessageNotificationEnabled = 27;
5927
+ optional bool isGroupReactionsNotificationEnabled = 28;
5928
+ optional bool isStatusNotificationEnabled = 29;
5929
+ optional int32 statusNotificationToneId = 30;
5930
+ optional bool shouldPlaySoundForCallNotification = 31;
5931
+ optional string chatThemeId = 32;
5932
+ optional string colorSchemeId = 33;
5933
+ enum DisplayMode {
5934
+ DISPLAY_MODE_UNKNOWN = 0;
5935
+ ALWAYS = 1;
5936
+ NEVER = 2;
5937
+ ONLY_WHEN_APP_IS_OPEN = 3;
5938
+ }
5939
+ enum MediaQualitySetting {
5940
+ MEDIA_QUALITY_UNKNOWN = 0;
5941
+ STANDARD = 1;
5942
+ HD = 2;
5943
+ }
5944
+ enum SettingKey {
5945
+ SETTING_KEY_UNKNOWN = 0;
5946
+ START_AT_LOGIN = 1;
5947
+ MINIMIZE_TO_TRAY = 2;
5948
+ LANGUAGE = 3;
5949
+ REPLACE_TEXT_WITH_EMOJI = 4;
5950
+ BANNER_NOTIFICATION_DISPLAY_MODE = 5;
5951
+ UNREAD_COUNTER_BADGE_DISPLAY_MODE = 6;
5952
+ IS_MESSAGES_NOTIFICATION_ENABLED = 7;
5953
+ IS_CALLS_NOTIFICATION_ENABLED = 8;
5954
+ IS_REACTIONS_NOTIFICATION_ENABLED = 9;
5955
+ IS_STATUS_REACTIONS_NOTIFICATION_ENABLED = 10;
5956
+ IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED = 11;
5957
+ DEFAULT_NOTIFICATION_TONE_ID = 12;
5958
+ GROUP_DEFAULT_NOTIFICATION_TONE_ID = 13;
5959
+ APP_THEME = 14;
5960
+ WALLPAPER_ID = 15;
5961
+ IS_DOODLE_WALLPAPER_ENABLED = 16;
5962
+ FONT_SIZE = 17;
5963
+ IS_PHOTOS_AUTODOWNLOAD_ENABLED = 18;
5964
+ IS_AUDIOS_AUTODOWNLOAD_ENABLED = 19;
5965
+ IS_VIDEOS_AUTODOWNLOAD_ENABLED = 20;
5966
+ IS_DOCUMENTS_AUTODOWNLOAD_ENABLED = 21;
5967
+ DISABLE_LINK_PREVIEWS = 22;
5968
+ NOTIFICATION_TONE_ID = 23;
5969
+ MEDIA_UPLOAD_QUALITY = 24;
5970
+ IS_SPELL_CHECK_ENABLED = 25;
5971
+ IS_ENTER_TO_SEND_ENABLED = 26;
5972
+ IS_GROUP_MESSAGE_NOTIFICATION_ENABLED = 27;
5973
+ IS_GROUP_REACTIONS_NOTIFICATION_ENABLED = 28;
5974
+ IS_STATUS_NOTIFICATION_ENABLED = 29;
5975
+ STATUS_NOTIFICATION_TONE_ID = 30;
5976
+ SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION = 31;
5977
+ CHAT_THEME_ID = 32;
5978
+ COLOR_SCHEME_ID = 33;
5979
+ }
5980
+ enum SettingPlatform {
5981
+ PLATFORM_UNKNOWN = 0;
5982
+ WEB = 1;
5983
+ HYBRID = 2;
5984
+ WINDOWS = 3;
5985
+ MAC = 4;
5986
+ }
5987
+ }
5988
+
4862
5989
  message StarAction {
4863
5990
  optional bool starred = 1;
4864
5991
  }
4865
-
5992
+
4866
5993
  message StatusPostOptInNotificationPreferencesAction {
4867
5994
  optional bool enabled = 1;
4868
5995
  }
4869
-
5996
+
4870
5997
  message StatusPrivacyAction {
4871
5998
  optional StatusDistributionMode mode = 1;
4872
5999
  repeated string userJid = 2;
6000
+ optional bool shareToFB = 3;
6001
+ optional bool shareToIG = 4;
6002
+ repeated CustomList customLists = 5;
6003
+ repeated StatusDistributionMode modes = 6;
6004
+ message CustomList {
6005
+ optional string listId = 1;
6006
+ optional string name = 2;
6007
+ optional string emoji = 3;
6008
+ optional bool isSelected = 4;
6009
+ repeated string userJid = 5;
6010
+ }
6011
+
4873
6012
  enum StatusDistributionMode {
4874
6013
  ALLOW_LIST = 0;
4875
6014
  DENY_LIST = 1;
4876
6015
  CONTACTS = 2;
4877
6016
  CLOSE_FRIENDS = 3;
6017
+ CUSTOM_LIST = 4;
4878
6018
  }
4879
6019
  }
4880
-
6020
+
4881
6021
  message StickerAction {
4882
6022
  optional string url = 1;
4883
6023
  optional bytes fileEncSha256 = 2;
@@ -4893,40 +6033,67 @@ message SyncActionValue {
4893
6033
  optional string imageHash = 12;
4894
6034
  optional bool isAvatarSticker = 13;
4895
6035
  }
4896
-
6036
+
4897
6037
  message SubscriptionAction {
4898
6038
  optional bool isDeactivated = 1;
4899
6039
  optional bool isAutoRenewing = 2;
4900
6040
  optional int64 expirationDate = 3;
4901
6041
  }
4902
-
6042
+
6043
+ message SubscriptionsSyncV2Action {
6044
+ repeated SubscriptionInfo subscriptions = 1;
6045
+ repeated PaidFeature paidFeature = 2;
6046
+ message PaidFeature {
6047
+ optional string name = 1;
6048
+ optional bool enabled = 2;
6049
+ optional int32 limit = 3;
6050
+ optional int64 expirationTime = 4;
6051
+ }
6052
+
6053
+ message SubscriptionInfo {
6054
+ optional string id = 1;
6055
+ optional int32 tier = 2;
6056
+ optional string status = 3;
6057
+ optional int64 startTime = 4;
6058
+ optional int64 endTime = 5;
6059
+ optional bool isPlatformChanged = 6;
6060
+ optional string source = 7;
6061
+ optional int64 creationTime = 8;
6062
+ }
6063
+
6064
+ }
6065
+
4903
6066
  message SyncActionMessage {
4904
6067
  optional MessageKey key = 1;
4905
6068
  optional int64 timestamp = 2;
4906
6069
  }
4907
-
6070
+
4908
6071
  message SyncActionMessageRange {
4909
6072
  optional int64 lastMessageTimestamp = 1;
4910
6073
  optional int64 lastSystemMessageTimestamp = 2;
4911
6074
  repeated SyncActionValue.SyncActionMessage messages = 3;
4912
6075
  }
4913
-
6076
+
6077
+ message ThreadPinAction {
6078
+ optional bool pinned = 1;
6079
+ }
6080
+
4914
6081
  message TimeFormatAction {
4915
6082
  optional bool isTwentyFourHourFormatEnabled = 1;
4916
6083
  }
4917
-
6084
+
4918
6085
  message UGCBot {
4919
6086
  optional bytes definition = 1;
4920
6087
  }
4921
-
6088
+
4922
6089
  message UnarchiveChatsSetting {
4923
6090
  optional bool unarchiveChats = 1;
4924
6091
  }
4925
-
6092
+
4926
6093
  message UserStatusMuteAction {
4927
6094
  optional bool muted = 1;
4928
6095
  }
4929
-
6096
+
4930
6097
  message UsernameChatStartModeAction {
4931
6098
  optional ChatStartMode chatStartMode = 1;
4932
6099
  enum ChatStartMode {
@@ -4934,7 +6101,7 @@ message SyncActionValue {
4934
6101
  PN = 2;
4935
6102
  }
4936
6103
  }
4937
-
6104
+
4938
6105
  message WaffleAccountLinkStateAction {
4939
6106
  optional AccountLinkState linkState = 2;
4940
6107
  enum AccountLinkState {
@@ -4943,11 +6110,11 @@ message SyncActionValue {
4943
6110
  UNLINKED = 2;
4944
6111
  }
4945
6112
  }
4946
-
6113
+
4947
6114
  message WamoUserIdentifierAction {
4948
6115
  optional string identifier = 1;
4949
6116
  }
4950
-
6117
+
4951
6118
  }
4952
6119
 
4953
6120
  message SyncdIndex {
@@ -4979,6 +6146,12 @@ message SyncdPatch {
4979
6146
  optional bytes clientDebugData = 9;
4980
6147
  }
4981
6148
 
6149
+ message SyncdPlainTextRecord {
6150
+ optional SyncActionData value = 1;
6151
+ optional bytes keyId = 2;
6152
+ optional bytes mac = 3;
6153
+ }
6154
+
4982
6155
  message SyncdRecord {
4983
6156
  optional SyncdIndex index = 1;
4984
6157
  optional SyncdValue value = 2;
@@ -4992,6 +6165,13 @@ message SyncdSnapshot {
4992
6165
  optional KeyId keyId = 4;
4993
6166
  }
4994
6167
 
6168
+ message SyncdSnapshotRecovery {
6169
+ optional SyncdVersion version = 1;
6170
+ optional string collectionName = 2;
6171
+ repeated SyncdPlainTextRecord mutationRecords = 3;
6172
+ optional bytes collectionLthash = 4;
6173
+ }
6174
+
4995
6175
  message SyncdValue {
4996
6176
  optional bytes blob = 1;
4997
6177
  }
@@ -5016,17 +6196,17 @@ message TemplateButton {
5016
6196
  optional Message.HighlyStructuredMessage displayText = 1;
5017
6197
  optional Message.HighlyStructuredMessage phoneNumber = 2;
5018
6198
  }
5019
-
6199
+
5020
6200
  message QuickReplyButton {
5021
6201
  optional Message.HighlyStructuredMessage displayText = 1;
5022
6202
  optional string id = 2;
5023
6203
  }
5024
-
6204
+
5025
6205
  message URLButton {
5026
6206
  optional Message.HighlyStructuredMessage displayText = 1;
5027
6207
  optional Message.HighlyStructuredMessage url = 2;
5028
6208
  }
5029
-
6209
+
5030
6210
  }
5031
6211
 
5032
6212
  message ThreadID {
@@ -5039,6 +6219,17 @@ message ThreadID {
5039
6219
  }
5040
6220
  }
5041
6221
 
6222
+ message UnCountedAssociatedMessageList {
6223
+ repeated WebMessageInfo messages = 1;
6224
+ optional MessageKey parentMessage = 2;
6225
+ optional MessageAssociation.AssociationType associationType = 3;
6226
+ }
6227
+
6228
+ message UnCountedAssociatedMessageListWithMessageBytes {
6229
+ repeated WebMessageInfoWithMessageBytes messages = 1;
6230
+ optional MessageKey parentMessage = 2;
6231
+ }
6232
+
5042
6233
  message UrlTrackingMap {
5043
6234
  repeated UrlTrackingMapElement urlTrackingMapElements = 1;
5044
6235
  message UrlTrackingMapElement {
@@ -5047,7 +6238,7 @@ message UrlTrackingMap {
5047
6238
  optional string consentedUsersUrl = 3;
5048
6239
  optional uint32 cardIndex = 4;
5049
6240
  }
5050
-
6241
+
5051
6242
  }
5052
6243
 
5053
6244
  message UserPassword {
@@ -5073,13 +6264,13 @@ message UserPassword {
5073
6264
  uint32 asUnsignedInteger = 2;
5074
6265
  }
5075
6266
  }
5076
-
6267
+
5077
6268
  }
5078
-
6269
+
5079
6270
  }
5080
6271
 
5081
6272
  message UserReceipt {
5082
- string userJid = 1;
6273
+ optional string userJid = 1;
5083
6274
  optional int64 receiptTimestamp = 2;
5084
6275
  optional int64 readTimestamp = 3;
5085
6276
  optional int64 playedTimestamp = 4;
@@ -5098,12 +6289,13 @@ message VerifiedNameCertificate {
5098
6289
  repeated LocalizedName localizedNames = 8;
5099
6290
  optional uint64 issueTime = 10;
5100
6291
  }
5101
-
6292
+
5102
6293
  }
5103
6294
 
5104
6295
  message WallpaperSettings {
5105
6296
  optional string filename = 1;
5106
6297
  optional uint32 opacity = 2;
6298
+ optional bool isGenAi = 3;
5107
6299
  }
5108
6300
 
5109
6301
  message WebFeatures {
@@ -5165,7 +6357,7 @@ enum WebLinkRenderConfig {
5165
6357
  SYSTEM = 1;
5166
6358
  }
5167
6359
  message WebMessageInfo {
5168
- MessageKey key = 1;
6360
+ optional MessageKey key = 1;
5169
6361
  optional Message message = 2;
5170
6362
  optional uint64 messageTimestamp = 3;
5171
6363
  optional Status status = 4;
@@ -5231,6 +6423,12 @@ message WebMessageInfo {
5231
6423
  optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
5232
6424
  optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
5233
6425
  optional QuarantinedMessage quarantinedMessage = 77;
6426
+ optional uint32 nonJidMentions = 78;
6427
+ optional string hsmTag = 79;
6428
+ optional uint64 ephemeralExpirationTimestamp = 80;
6429
+ optional ScheduledMessageMetadata scheduledMessageMetadata = 81;
6430
+ optional string decisionId = 82;
6431
+ repeated string decisionSources = 83;
5234
6432
  enum BizPrivacyStatus {
5235
6433
  E2EE = 0;
5236
6434
  FB = 2;
@@ -5468,12 +6666,237 @@ message WebMessageInfo {
5468
6666
  PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219;
5469
6667
  QUARANTINED_MESSAGE = 220;
5470
6668
  GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE = 221;
6669
+ GROUP_OPEN_BOT_ADDED = 222;
6670
+ GROUP_TEE_BOT_ADDED = 223;
6671
+ CONTACT_INFO = 224;
6672
+ SCHEDULED_MESSAGE_CREATED = 225;
5471
6673
  }
5472
6674
  }
5473
6675
 
6676
+ message WebMessageInfoWithMessageBytes {
6677
+ optional MessageKey key = 1;
6678
+ optional bytes messageBytes = 2;
6679
+ }
6680
+
5474
6681
  message WebNotificationsInfo {
5475
6682
  optional uint64 timestamp = 2;
5476
6683
  optional uint32 unreadChats = 3;
5477
6684
  optional uint32 notifyMessageCount = 4;
5478
6685
  repeated WebMessageInfo notifyMessages = 5;
5479
6686
  }
6687
+
6688
+ // >>> wa.voip (VoIP engine, generated by decode-voip-wasm.js) >>>
6689
+ enum RekeyKeyType {
6690
+ REKEY_KEY_AUDIO = 0;
6691
+ REKEY_KEY_VIDEO = 1;
6692
+ REKEY_KEY_APPDATA = 2;
6693
+ }
6694
+
6695
+ enum RxVidSubscriptionInfo_VideoQuality {
6696
+ DEFAULT = 0;
6697
+ LOW = 1;
6698
+ MEDIUM = 2;
6699
+ HIGH = 3;
6700
+ HD = 4;
6701
+ }
6702
+
6703
+ enum SenderSubscriptionExt_TemporalLayer {
6704
+ BASE = 0;
6705
+ ENHANCEMENT = 1;
6706
+ }
6707
+
6708
+ enum StreamDescriptor_PayloadType {
6709
+ Media = 0;
6710
+ Fec = 1;
6711
+ Nack = 2;
6712
+ HbhFec = 3;
6713
+ AppData = 4;
6714
+ }
6715
+
6716
+ enum StreamDescriptor_StreamLayer {
6717
+ Audio = 0;
6718
+ VideoStream0 = 1;
6719
+ VideoStream1 = 2;
6720
+ HbhFecClientToServer = 3;
6721
+ HbhFecServerToClient = 4;
6722
+ AppDataStream0 = 5;
6723
+ LiveTranscriptionStream0 = 6;
6724
+ IMUDataStream0 = 7;
6725
+ ScreenShareVideoStream0 = 8;
6726
+ ScreenShareVideoStream1 = 9;
6727
+ }
6728
+
6729
+ // original: wa.voip.appDataMessage
6730
+ message appDataMessage {
6731
+ reactionInfo reaction_info = 1;
6732
+ liveTranscriptionInfo transcription_info = 2;
6733
+ }
6734
+
6735
+ // original: wa.voip.appDataPayloads
6736
+ message appDataPayloads {
6737
+ repeated appDataMessage messages = 1;
6738
+ }
6739
+
6740
+ // original: wa.voip.AQSStats
6741
+ message AQSStats {
6742
+ optional int32 aqs = 1;
6743
+ }
6744
+
6745
+ // original: wa.voip.BackupRelayLatency
6746
+ message BackupRelayLatency {
6747
+ uint32 ipv4 = 1;
6748
+ bytes ipv6 = 2;
6749
+ uint32 port = 3;
6750
+ sint32 latency_ms = 4;
6751
+ uint32 tx_bitrate = 5;
6752
+ uint32 rx_bitrate = 6;
6753
+ uint64 conn_id = 7;
6754
+ bool is_xpop_relay = 8;
6755
+ bool is_favored = 9;
6756
+ string relay_name = 10;
6757
+ }
6758
+
6759
+ // original: wa.voip.BackupRelayLatencyReport
6760
+ message BackupRelayLatencyReport {
6761
+ int32 relay_transaction_id = 1;
6762
+ repeated BackupRelayLatency relays = 2;
6763
+ }
6764
+
6765
+ // original: wa.voip.BackupSignalEnvelope
6766
+ message BackupSignalEnvelope {
6767
+ BackupRelayLatencyReport relay_latency = 1;
6768
+ }
6769
+
6770
+ // original: wa.voip.BwaInfo
6771
+ message BwaInfo {
6772
+ uint32 id = 1;
6773
+ uint32 num_participants = 2;
6774
+ }
6775
+
6776
+ // original: wa.voip.BwaStream
6777
+ message BwaStream {
6778
+ uint32 bitrate = 1;
6779
+ uint64 subscribed_pids_bitmap_0_63 = 2;
6780
+ uint64 subscribed_pids_bitmap_64_127 = 3;
6781
+ }
6782
+
6783
+ // original: wa.voip.E2eRekeyPayload
6784
+ message E2eRekeyPayload {
6785
+ repeated RekeyKeyEntry keys = 1;
6786
+ }
6787
+
6788
+ // original: wa.voip.liveTranscriptionInfo
6789
+ message liveTranscriptionInfo {
6790
+ uint64 transcript_id = 1;
6791
+ string caption = 2;
6792
+ string language = 3;
6793
+ }
6794
+
6795
+ // original: wa.voip.PeerFeedback
6796
+ message PeerFeedback {
6797
+ optional VideoSenderStats video_sender_stats = 1;
6798
+ optional VideoFeedbackMessage video_fb_msg = 2;
6799
+ optional AQSStats aqs_stats = 3;
6800
+ optional bool noise_suppression_ui_status = 4;
6801
+ }
6802
+
6803
+ // original: wa.voip.reactionInfo
6804
+ message reactionInfo {
6805
+ uint64 transaction_id = 1;
6806
+ string reaction = 2;
6807
+ }
6808
+
6809
+ // original: wa.voip.RekeyKeyEntry
6810
+ message RekeyKeyEntry {
6811
+ RekeyKeyType type = 1;
6812
+ bytes key = 2;
6813
+ }
6814
+
6815
+ // original: wa.voip.RtcpRxSubscriptions
6816
+ message RtcpRxSubscriptions {
6817
+ repeated RtcpRxSubscriptionsPerParticipant rx_subscriptions = 1;
6818
+ }
6819
+
6820
+ // original: wa.voip.RtcpRxSubscriptionsPerParticipant
6821
+ message RtcpRxSubscriptionsPerParticipant {
6822
+ uint32 tx_pid = 1;
6823
+ RxSubscriptions rx_subscriptions = 2;
6824
+ }
6825
+
6826
+ // original: wa.voip.RxSubscriptions
6827
+ message RxSubscriptions {
6828
+ repeated uint32 vid_rx_pids = 1;
6829
+ repeated RxVidSubscriptionInfo vid_subscriptions = 2;
6830
+ }
6831
+
6832
+ // original: wa.voip.RxVidSubscriptionInfo
6833
+ message RxVidSubscriptionInfo {
6834
+ uint32 pid = 1;
6835
+ RxVidSubscriptionInfo_VideoQuality vid_quality = 2;
6836
+ }
6837
+
6838
+ // original: wa.voip.SenderSubscriptionExt
6839
+ message SenderSubscriptionExt {
6840
+ SenderSubscriptionExt_SSrcsToPidAssignments ssrcLayers = 1;
6841
+ }
6842
+
6843
+ // original: wa.voip.SenderSubscriptionExt.PidTemporalLayer
6844
+ message SenderSubscriptionExt_PidTemporalLayer {
6845
+ uint32 pid = 1;
6846
+ SenderSubscriptionExt_TemporalLayer layerId = 2;
6847
+ }
6848
+
6849
+ // original: wa.voip.SenderSubscriptionExt.SSrcsToPidAssignments
6850
+ message SenderSubscriptionExt_SSrcsToPidAssignments {
6851
+ repeated uint32 ssrcs = 1;
6852
+ repeated SenderSubscriptionExt_PidTemporalLayer pids = 2;
6853
+ }
6854
+
6855
+ // original: wa.voip.SenderSubscriptions
6856
+ message SenderSubscriptions {
6857
+ repeated SenderSubscriptionExt subscriptions = 1;
6858
+ }
6859
+
6860
+ // original: wa.voip.SimulcastBwaResults
6861
+ message SimulcastBwaResults {
6862
+ BwaInfo info = 1;
6863
+ BwaStream stream1 = 2;
6864
+ BwaStream stream2 = 3;
6865
+ }
6866
+
6867
+ // original: wa.voip.SrtpAfbStreamInfo
6868
+ message SrtpAfbStreamInfo {
6869
+ bool is_valid = 1;
6870
+ uint32 ssrc = 2;
6871
+ uint32 rtcp_index = 3;
6872
+ uint64 rtp_index = 4;
6873
+ }
6874
+
6875
+ // original: wa.voip.SrtpAfbStreams
6876
+ message SrtpAfbStreams {
6877
+ repeated SrtpAfbStreamInfo srtp_afb = 1;
6878
+ }
6879
+
6880
+ // original: wa.voip.StreamDescriptor
6881
+ message StreamDescriptor {
6882
+ StreamDescriptor_StreamLayer stream_layer = 1;
6883
+ StreamDescriptor_PayloadType payload_type = 2;
6884
+ uint32 ssrc = 3;
6885
+ bool is_uplink_prefetch_enabled = 4;
6886
+ }
6887
+
6888
+ // original: wa.voip.StreamDescriptors
6889
+ message StreamDescriptors {
6890
+ repeated StreamDescriptor stream_descriptors = 1;
6891
+ }
6892
+
6893
+ // original: wa.voip.VideoFeedbackMessage
6894
+ message VideoFeedbackMessage {
6895
+ optional int32 freeze_state = 1;
6896
+ }
6897
+
6898
+ // original: wa.voip.VideoSenderStats
6899
+ message VideoSenderStats {
6900
+ optional int32 sender_bwe = 1;
6901
+ }
6902
+ // <<< wa.voip <<<