@badzz88/baileys 8.4.5 → 8.4.7

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.
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
- package waproto;
2
+ package proto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1043359815
4
+ /// WhatsApp Version: 2.3000.1041467552
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -83,16 +83,6 @@ message AIMetadataOperation {
83
83
  optional HatchMetadataSync hatchMetadataSync = 1;
84
84
  }
85
85
 
86
- message AIProvenance {
87
- optional Metadata c2PaMetadata = 1;
88
- optional Metadata iptcMetadata = 2;
89
- message Metadata {
90
- optional bool createdWithGenAi = 1;
91
- optional bool editedWithGenAi = 2;
92
- }
93
-
94
- }
95
-
96
86
  message AIQueryFanout {
97
87
  optional MessageKey messageKey = 1;
98
88
  optional Message message = 2;
@@ -126,7 +116,7 @@ message AIRichResponseContentItemsMetadata {
126
116
  repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
127
117
  optional ContentType contentType = 2;
128
118
  message AIRichResponseContentItemMetadata {
129
- oneof aiRichResponseContentItem {
119
+ oneof aIRichResponseContentItem {
130
120
  AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
131
121
  }
132
122
  }
@@ -300,6 +290,13 @@ message Account {
300
290
  optional bool isUsernameDeleted = 4;
301
291
  }
302
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
+
303
300
  message ActionLink {
304
301
  optional string url = 1;
305
302
  optional string buttonTitle = 2;
@@ -373,7 +370,6 @@ message BotAgeCollectionMetadata {
373
370
 
374
371
  message BotAgentDeepLinkMetadata {
375
372
  optional string token = 1;
376
- optional bytes clientPublicKey = 2;
377
373
  }
378
374
 
379
375
  message BotAgentMetadata {
@@ -449,7 +445,6 @@ message BotCapabilityMetadata {
449
445
  UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED = 63;
450
446
  AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64;
451
447
  AI_SUBSCRIPTION_METERING_ENABLED = 65;
452
- RICH_RESPONSE_SPORTS_WIDGET_ENABLED = 66;
453
448
  }
454
449
  }
455
450
 
@@ -571,10 +566,6 @@ message BotGroupParticipantMetadata {
571
566
  optional string botFbid = 1;
572
567
  }
573
568
 
574
- message BotHistoryShareMetadata {
575
- repeated BotGroupParticipantMetadata participantsMetadata = 1;
576
- }
577
-
578
569
  message BotImagineMetadata {
579
570
  optional ImagineType imagineType = 1;
580
571
  optional string shortPrompt = 2;
@@ -698,7 +689,6 @@ message BotMetadata {
698
689
  optional BotResolvedToolCallMetadata resolvedToolCallMetadata = 40;
699
690
  optional AISubscriptionUpsellMetadata subscriptionUpsellMetadata = 41;
700
691
  optional BotPttPromptMetadata pttPromptMetadata = 42;
701
- optional BotHistoryShareMetadata botHistoryShareMetadata = 43;
702
692
  optional bytes internalMetadata = 999;
703
693
  }
704
694
 
@@ -751,7 +741,6 @@ enum BotMetricsEntryPoint {
751
741
  GROUP_MEMBER = 54;
752
742
  CHATLIST_SEARCH = 55;
753
743
  NEW_CHAT_LIST = 56;
754
- CONTACTS_TAB = 57;
755
744
  }
756
745
  message BotMetricsMetadata {
757
746
  optional string destinationId = 1;
@@ -1023,6 +1012,29 @@ message BotUnifiedResponseMutation {
1023
1012
 
1024
1013
  }
1025
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
+ }
1026
1038
  message CallLogRecord {
1027
1039
  optional CallResult callResult = 1;
1028
1040
  optional bool isDndMode = 2;
@@ -1133,10 +1145,10 @@ message ChatRowOpaqueData {
1133
1145
  }
1134
1146
 
1135
1147
  message Citation {
1136
- required string title = 1;
1137
- required string subtitle = 2;
1138
- required string cmsId = 3;
1139
- required string imageUrl = 4;
1148
+ optional string title = 1;
1149
+ optional string subtitle = 2;
1150
+ optional string cmsId = 3;
1151
+ optional string imageUrl = 4;
1140
1152
  }
1141
1153
 
1142
1154
  message ClientPairingProps {
@@ -1340,7 +1352,6 @@ message ClientPayload {
1340
1352
  SMART_GLASSES = 35;
1341
1353
  BLUE_VR = 36;
1342
1354
  AR_WRIST = 37;
1343
- WAIL = 38;
1344
1355
  }
1345
1356
  enum ReleaseChannel {
1346
1357
  RELEASE = 0;
@@ -1383,22 +1394,6 @@ message ClientPayload {
1383
1394
 
1384
1395
  }
1385
1396
 
1386
- message CoexStateSync {
1387
- repeated CollectionMutations collectionMutations = 1;
1388
- message CollectionMutations {
1389
- optional string collection = 1;
1390
- repeated CoexStateSync.Mutation mutations = 2;
1391
- }
1392
-
1393
- message Mutation {
1394
- optional SyncdIndex index = 1;
1395
- optional SyncdValue value = 2;
1396
- optional uint64 dirtyVersion = 3;
1397
- optional SyncdMutation.SyncdOperation operation = 4;
1398
- }
1399
-
1400
- }
1401
-
1402
1397
  enum CollectionName {
1403
1398
  COLLECTION_NAME_UNKNOWN = 0;
1404
1399
  REGULAR = 1;
@@ -1407,6 +1402,19 @@ enum CollectionName {
1407
1402
  CRITICAL_BLOCK = 4;
1408
1403
  CRITICAL_UNBLOCK_LOW = 5;
1409
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
+
1410
1418
  message CommentMetadata {
1411
1419
  optional MessageKey commentParentKey = 1;
1412
1420
  optional uint32 replyCount = 2;
@@ -1427,6 +1435,213 @@ message Config {
1427
1435
  optional uint32 version = 2;
1428
1436
  }
1429
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
+
1430
1645
  message ContextInfo {
1431
1646
  optional string stanzaId = 1;
1432
1647
  optional string participant = 2;
@@ -1490,8 +1705,6 @@ message ContextInfo {
1490
1705
  optional CrossAppSource crossAppSource = 77;
1491
1706
  optional BusinessInteractionPills businessInteractionPills = 78;
1492
1707
  optional string posterStatusId = 79;
1493
- optional InstagramThreadLink instagramThreadLink = 80;
1494
- optional AIProvenance aiProvenance = 81;
1495
1708
  message AdReplyInfo {
1496
1709
  optional string advertiserName = 1;
1497
1710
  optional MediaType mediaType = 2;
@@ -1510,7 +1723,6 @@ message ContextInfo {
1510
1723
  optional EntryPoint entryPoint = 3;
1511
1724
  optional bytes signedPayload = 4;
1512
1725
  optional BotSignatureVerificationMetadata signatureEnvelope = 5;
1513
- optional UnauthenticatedBusinessMetadata unauthenticatedBusinessMetadata = 6;
1514
1726
  enum EntryPoint {
1515
1727
  ENTRY_POINT_UNKNOWN = 0;
1516
1728
  P2P_LINK_SHARE = 1;
@@ -1544,13 +1756,6 @@ message ContextInfo {
1544
1756
  repeated ContextInfo.BusinessInteractionPills.Pill pills = 2;
1545
1757
  }
1546
1758
 
1547
- message UnauthenticatedBusinessMetadata {
1548
- optional string businessName = 1;
1549
- optional string businessCategory = 2;
1550
- optional bool businessIsOpen = 3;
1551
- optional int64 businessIsOpenSnapshotMs = 4;
1552
- }
1553
-
1554
1759
  }
1555
1760
 
1556
1761
  message BusinessMessageForwardInfo {
@@ -1655,10 +1860,6 @@ message ContextInfo {
1655
1860
  }
1656
1861
  }
1657
1862
 
1658
- message InstagramThreadLink {
1659
- optional string url = 1;
1660
- }
1661
-
1662
1863
  enum PairedMediaType {
1663
1864
  NOT_PAIRED_MEDIA = 0;
1664
1865
  SD_VIDEO_PARENT = 1;
@@ -1717,7 +1918,7 @@ message ContextInfo {
1717
1918
  }
1718
1919
 
1719
1920
  message Conversation {
1720
- required string id = 1;
1921
+ optional string id = 1;
1721
1922
  repeated HistorySyncMsg messages = 2;
1722
1923
  optional string newJid = 3;
1723
1924
  optional string oldJid = 4;
@@ -1779,7 +1980,6 @@ message Conversation {
1779
1980
  optional uint64 appealUpdateTime = 60;
1780
1981
  optional string authAgentParentCompanyName = 61;
1781
1982
  optional string authAgentObaPhoneNumber = 62;
1782
- optional IdentityVerificationState identityVerification = 63;
1783
1983
  enum EndOfHistoryTransferType {
1784
1984
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1785
1985
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
@@ -1801,11 +2001,6 @@ message DeviceCapabilities {
1801
2001
  optional UserHasAvatar userHasAvatar = 4;
1802
2002
  optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
1803
2003
  optional AiThread aiThread = 6;
1804
- optional AiFbidMigration aiFbidMigration = 7;
1805
- message AiFbidMigration {
1806
- optional uint64 chatDbMigrationTimestamp = 1;
1807
- }
1808
-
1809
2004
  message AiThread {
1810
2005
  optional SupportLevel supportLevel = 1;
1811
2006
  enum SupportLevel {
@@ -1898,7 +2093,6 @@ message DeviceProps {
1898
2093
  optional bool supportHatchHistory = 22;
1899
2094
  repeated string supportedBotChannelFbids = 23;
1900
2095
  optional bool supportInlineContacts = 24;
1901
- optional bool supportNewsletter = 25;
1902
2096
  }
1903
2097
 
1904
2098
  enum PlatformType {
@@ -2015,6 +2209,11 @@ message ExternalBlobReference {
2015
2209
  optional bytes fileEncSha256 = 6;
2016
2210
  }
2017
2211
 
2212
+ enum FUTURE_PROOF_BEHAVIOR {
2213
+ PLACEHOLDER = 0;
2214
+ NO_PLACEHOLDER = 1;
2215
+ IGNORE = 2;
2216
+ }
2018
2217
  message Field {
2019
2218
  optional uint32 minVersion = 1;
2020
2219
  optional uint32 maxVersion = 2;
@@ -2023,6 +2222,15 @@ message Field {
2023
2222
  map<uint32, Field> subfield = 5;
2024
2223
  }
2025
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
+
2026
2234
  message ForwardedAIBotMessageInfo {
2027
2235
  optional string botName = 1;
2028
2236
  optional string botJid = 2;
@@ -2052,6 +2260,13 @@ message GlobalSettings {
2052
2260
  optional int64 chatDbLidMigrationTimestamp = 20;
2053
2261
  }
2054
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
+
2055
2270
  message GroupHistoryBundleInfo {
2056
2271
  optional Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
2057
2272
  optional ProcessState processState = 2;
@@ -2070,13 +2285,20 @@ message GroupHistoryIndividualMessageInfo {
2070
2285
  optional bool editedAfterReceivedAsHistory = 2;
2071
2286
  }
2072
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
+
2073
2295
  message GroupMention {
2074
2296
  optional string groupJid = 1;
2075
2297
  optional string groupSubject = 2;
2076
2298
  }
2077
2299
 
2078
2300
  message GroupParticipant {
2079
- required string userJid = 1;
2301
+ optional string userJid = 1;
2080
2302
  optional Rank rank = 2;
2081
2303
  optional MemberLabel memberLabel = 3;
2082
2304
  enum Rank {
@@ -2151,7 +2373,7 @@ message HatchMetadataSync {
2151
2373
  }
2152
2374
 
2153
2375
  message HistorySync {
2154
- required HistorySyncType syncType = 1;
2376
+ optional HistorySyncType syncType = 1;
2155
2377
  repeated Conversation conversations = 2;
2156
2378
  repeated WebMessageInfo statusV3Messages = 3;
2157
2379
  optional uint32 chunkOrder = 5;
@@ -2191,6 +2413,10 @@ message HistorySyncMsg {
2191
2413
  optional uint64 msgOrderId = 2;
2192
2414
  }
2193
2415
 
2416
+ enum HostedState {
2417
+ E2EE = 0;
2418
+ HOSTED = 1;
2419
+ }
2194
2420
  message HydratedTemplateButton {
2195
2421
  optional uint32 index = 4;
2196
2422
  oneof hydratedButton {
@@ -2227,11 +2453,6 @@ message IdentityKeyPairStructure {
2227
2453
  optional bytes privateKey = 2;
2228
2454
  }
2229
2455
 
2230
- message IdentityVerificationState {
2231
- optional bool verified = 1;
2232
- optional uint64 actionSeq = 2;
2233
- }
2234
-
2235
2456
  message InThreadSurveyMetadata {
2236
2457
  optional string tessaSessionId = 1;
2237
2458
  optional string simonSessionId = 2;
@@ -2326,10 +2547,21 @@ message KeyId {
2326
2547
  optional bytes id = 1;
2327
2548
  }
2328
2549
 
2550
+ message LIDMigrationMapping {
2551
+ optional uint64 pn = 1;
2552
+ optional uint64 assignedLid = 2;
2553
+ optional uint64 latestLid = 3;
2554
+ }
2555
+
2329
2556
  message LIDMigrationMappingSyncMessage {
2330
2557
  optional bytes encodedMappingPayload = 1;
2331
2558
  }
2332
2559
 
2560
+ message LIDMigrationMappingSyncPayload {
2561
+ repeated LIDMigrationMapping pnToLidMappings = 1;
2562
+ optional uint64 chatDbMigrationTimestamp = 2;
2563
+ }
2564
+
2333
2565
  message LegacyMessage {
2334
2566
  optional Message.EventResponseMessage eventResponseMessage = 1;
2335
2567
  optional Message.PollVoteMessage pollVote = 2;
@@ -2360,6 +2592,9 @@ message Location {
2360
2592
  optional string name = 3;
2361
2593
  }
2362
2594
 
2595
+ enum MENTION_MENTION_TYPE {
2596
+ PROFILE = 0;
2597
+ }
2363
2598
  message MediaData {
2364
2599
  optional string localPath = 1;
2365
2600
  }
@@ -2369,6 +2604,40 @@ message MediaDomainInfo {
2369
2604
  optional bytes e2EeMediaKey = 2;
2370
2605
  }
2371
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
+
2372
2641
  enum MediaKeyDomain {
2373
2642
  MEDIA_KEY_DOMAIN_UNKNOWN = 0;
2374
2643
  MEDIA_KEY_DOMAIN_E2EE = 1;
@@ -2403,6 +2672,13 @@ message MemberLabel {
2403
2672
  optional int64 labelTimestamp = 2;
2404
2673
  }
2405
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
+
2406
2682
  message Message {
2407
2683
  optional string conversation = 1;
2408
2684
  optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
@@ -2511,7 +2787,6 @@ message Message {
2511
2787
  optional SplitPaymentMessage splitPaymentMessage = 125;
2512
2788
  optional FutureProofMessage newsletterAdminProfileStatusMessage = 126;
2513
2789
  optional RootSecretDistributeMessage rootSecretDistributeMessage = 127;
2514
- optional SplitPaymentUpdateMessage splitPaymentUpdateMessage = 128;
2515
2790
  message AlbumMessage {
2516
2791
  optional uint32 expectedImageCount = 2;
2517
2792
  optional uint32 expectedVideoCount = 3;
@@ -2583,12 +2858,6 @@ message Message {
2583
2858
  }
2584
2859
  }
2585
2860
 
2586
- message BotHistoryShareSyncMetadata {
2587
- optional string botJid = 1;
2588
- optional int64 historyShareCutoffTimestamp = 2;
2589
- repeated Message.HistoryShareMessageEntry historyShareMessages = 3;
2590
- }
2591
-
2592
2861
  message ButtonsMessage {
2593
2862
  optional string contentText = 6;
2594
2863
  optional string footerText = 7;
@@ -2659,7 +2928,6 @@ message Message {
2659
2928
  optional string deeplinkPayload = 9;
2660
2929
  optional MessageContextInfo messageContextInfo = 10;
2661
2930
  optional uint32 callEntryPoint = 11;
2662
- optional string callReason = 12;
2663
2931
  }
2664
2932
 
2665
2933
  message CallLogMessage {
@@ -2900,7 +3168,7 @@ message Message {
2900
3168
  optional bool viewOnce = 30;
2901
3169
  optional uint32 videoHeight = 31;
2902
3170
  optional uint32 videoWidth = 32;
2903
- optional Message.MMSThumbnailMetadata faviconMmsMetadata = 33;
3171
+ optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
2904
3172
  optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
2905
3173
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
2906
3174
  repeated Message.VideoEndCard endCardTiles = 36;
@@ -3022,11 +3290,6 @@ message Message {
3022
3290
 
3023
3291
  }
3024
3292
 
3025
- message HistoryShareMessageEntry {
3026
- optional string stanzaId = 1;
3027
- optional bytes messageSecretProof = 2;
3028
- }
3029
-
3030
3293
  message HistorySyncMessageAccessStatus {
3031
3294
  optional bool completeAccessGranted = 1;
3032
3295
  }
@@ -3366,13 +3629,6 @@ message Message {
3366
3629
  optional uint32 thumbnailWidth = 7;
3367
3630
  }
3368
3631
 
3369
- message MarkAsVerifiedAction {
3370
- optional string userJidString = 1;
3371
- optional bool verified = 2;
3372
- optional bytes verifiedIdentityKey = 3;
3373
- optional uint64 actionSeq = 4;
3374
- }
3375
-
3376
3632
  message MessageHistoryBundle {
3377
3633
  optional string mimetype = 1;
3378
3634
  optional bytes fileSha256 = 2;
@@ -3395,7 +3651,6 @@ message Message {
3395
3651
  message MessageHistoryNotice {
3396
3652
  optional ContextInfo contextInfo = 1;
3397
3653
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
3398
- optional Message.BotHistoryShareSyncMetadata botHistoryShareSyncMetadata = 3;
3399
3654
  }
3400
3655
 
3401
3656
  message NewsletterAdminInviteMessage {
@@ -3444,7 +3699,6 @@ message Message {
3444
3699
  message PaymentExtendedMetadata {
3445
3700
  optional uint32 type = 1;
3446
3701
  optional string platform = 2;
3447
- optional string messageParamsJson = 3;
3448
3702
  }
3449
3703
 
3450
3704
  message PaymentInviteMessage {
@@ -3883,9 +4137,6 @@ message Message {
3883
4137
  optional uint32 afterReadDuration = 29;
3884
4138
  optional Message.ChatThemeSetting chatThemeSetting = 30;
3885
4139
  optional AIMetadataOperation aiMetadataOperation = 31;
3886
- optional Message.MarkAsVerifiedAction markAsVerifiedAction = 32;
3887
- optional CoexStateSync coexStateSync = 33;
3888
- optional Message.SyncRequestMutationRetry syncRequestMutationRetry = 34;
3889
4140
  enum Type {
3890
4141
  REVOKE = 0;
3891
4142
  EPHEMERAL_SETTING = 3;
@@ -3917,9 +4168,6 @@ message Message {
3917
4168
  MESSAGE_UNSCHEDULE = 32;
3918
4169
  CHAT_THEME_SETTING = 34;
3919
4170
  AI_METADATA_OPERATION = 35;
3920
- MARK_AS_VERIFIED_ACTION = 36;
3921
- COEX_STATE_SYNC = 37;
3922
- SYNC_REQUEST_MUTATION_RETRY = 38;
3923
4171
  }
3924
4172
  }
3925
4173
 
@@ -4035,11 +4283,6 @@ message Message {
4035
4283
  }
4036
4284
  }
4037
4285
 
4038
- message SplitPaymentUpdateMessage {
4039
- optional string splitId = 1;
4040
- optional string participantJid = 2;
4041
- }
4042
-
4043
4286
  message StatusNotificationMessage {
4044
4287
  optional MessageKey responseMessageKey = 1;
4045
4288
  optional MessageKey originalMessageKey = 2;
@@ -4148,16 +4391,6 @@ message Message {
4148
4391
  optional int64 requestTimestamp = 3;
4149
4392
  }
4150
4393
 
4151
- message SyncRequestMutationRetry {
4152
- repeated Collection collections = 1;
4153
- optional uint32 count = 2;
4154
- message Collection {
4155
- optional string name = 1;
4156
- optional uint64 storedSyncdVersion = 2;
4157
- }
4158
-
4159
- }
4160
-
4161
4394
  message TemplateButtonReplyMessage {
4162
4395
  optional string selectedId = 1;
4163
4396
  optional string selectedDisplayText = 2;
@@ -4210,10 +4443,10 @@ message Message {
4210
4443
  }
4211
4444
 
4212
4445
  message VideoEndCard {
4213
- required string username = 1;
4214
- required string caption = 2;
4215
- required string thumbnailImageUrl = 3;
4216
- required string profilePictureUrl = 4;
4446
+ optional string username = 1;
4447
+ optional string caption = 2;
4448
+ optional string thumbnailImageUrl = 3;
4449
+ optional string profilePictureUrl = 4;
4217
4450
  }
4218
4451
 
4219
4452
  message VideoMessage {
@@ -4331,8 +4564,6 @@ message MessageContextInfo {
4331
4564
  repeated ThreadID threadId = 15;
4332
4565
  optional WebLinkRenderConfig weblinkRenderConfig = 16;
4333
4566
  optional bytes teeBotMetadata = 17;
4334
- optional NonE2EEAttestation accountEncryptionAttestation = 18;
4335
- optional bytes associatedPrimaryIdentityKey = 19;
4336
4567
  enum MessageAddonExpiryType {
4337
4568
  STATIC = 1;
4338
4569
  DEPENDENT_ON_PARENT = 2;
@@ -4352,6 +4583,13 @@ message MessageSecretMessage {
4352
4583
  optional bytes encPayload = 3;
4353
4584
  }
4354
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
+
4355
4593
  message Money {
4356
4594
  optional int64 value = 1;
4357
4595
  optional uint32 offset = 2;
@@ -4535,10 +4773,6 @@ enum MutationProps {
4535
4773
  THREAD_PIN_ACTION = 85;
4536
4774
  AUTO_ORGANIZE_BUSINESS_CHAT_SETTING = 86;
4537
4775
  BIZ_AI_SETTINGS_NUDGE_ACTION = 87;
4538
- COEX_V2_VERSION_ACTION = 88;
4539
- WASA_ROOT_SECRET_ACTION = 89;
4540
- BUBBLE_LOCK_MESSAGE_ACTION = 90;
4541
- LABEL_SUBLIST_ACTION = 91;
4542
4776
  SHARE_OWN_PN = 10001;
4543
4777
  BUSINESS_BROADCAST_ACTION = 10002;
4544
4778
  AI_THREAD_DELETE_ACTION = 10003;
@@ -4556,15 +4790,6 @@ message NoiseCertificate {
4556
4790
 
4557
4791
  }
4558
4792
 
4559
- message NonE2EEAttestation {
4560
- optional AccountType accountType = 1;
4561
- enum AccountType {
4562
- E2EE = 0;
4563
- HYBRID_E2EE = 1;
4564
- NON_E2EE = 2;
4565
- }
4566
- }
4567
-
4568
4793
  message NotificationMessageInfo {
4569
4794
  optional MessageKey key = 1;
4570
4795
  optional Message message = 2;
@@ -4791,8 +5016,6 @@ message PreKeySignalMessage {
4791
5016
  optional bytes baseKey = 2;
4792
5017
  optional bytes identityKey = 3;
4793
5018
  optional bytes message = 4;
4794
- optional uint32 kyberPreKeyId = 7;
4795
- optional bytes kyberCiphertext = 8;
4796
5019
  }
4797
5020
 
4798
5021
  message PremiumMessageInfo {
@@ -4836,6 +5059,41 @@ message Pushname {
4836
5059
  optional string pushname = 2;
4837
5060
  }
4838
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
+
4839
5097
  message QuarantinedMessage {
4840
5098
  optional bytes originalData = 1;
4841
5099
  optional string extractedText = 2;
@@ -4868,7 +5126,15 @@ message Reportable {
4868
5126
 
4869
5127
  message ReportingTokenInfo {
4870
5128
  optional bytes reportingTag = 1;
4871
- optional uint64 reportingTagTimestamp = 2;
5129
+ }
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;
4872
5138
  }
4873
5139
 
4874
5140
  message ScheduledMessageMetadata {
@@ -4967,8 +5233,6 @@ message SessionStructure {
4967
5233
  optional uint32 preKeyId = 1;
4968
5234
  optional int32 signedPreKeyId = 3;
4969
5235
  optional bytes baseKey = 2;
4970
- optional uint32 kyberPreKeyId = 4;
4971
- optional bytes kyberCiphertext = 5;
4972
5236
  }
4973
5237
 
4974
5238
  }
@@ -5036,7 +5300,6 @@ message StatusAttribution {
5036
5300
  GOOGLE_PHOTOS = 10;
5037
5301
  SOUNDCLOUD = 11;
5038
5302
  SHAZAM = 12;
5039
- PICSART = 13;
5040
5303
  }
5041
5304
  }
5042
5305
 
@@ -5103,7 +5366,7 @@ message StatusMentionMessage {
5103
5366
  }
5104
5367
 
5105
5368
  message StatusPSA {
5106
- required uint64 campaignId = 44;
5369
+ optional uint64 campaignId = 44;
5107
5370
  optional uint64 campaignExpirationTimestamp = 45;
5108
5371
  }
5109
5372
 
@@ -5124,6 +5387,11 @@ message StickerMetadata {
5124
5387
  optional bool isAvatarSticker = 14;
5125
5388
  }
5126
5389
 
5390
+ message SubProtocol {
5391
+ optional bytes payload = 1;
5392
+ optional int32 version = 2;
5393
+ }
5394
+
5127
5395
  message SyncActionData {
5128
5396
  optional bytes index = 1;
5129
5397
  optional SyncActionValue value = 2;
@@ -5210,13 +5478,9 @@ message SyncActionValue {
5210
5478
  optional ThreadPinAction threadPinAction = 85;
5211
5479
  optional AutoOrganizeBusinessChatSetting autoOrganizeBusinessChatSetting = 86;
5212
5480
  optional BizAISettingsNudgeAction bizAiSettingsNudgeAction = 87;
5213
- optional CoexV2VersionAction coexV2VersionAction = 88;
5214
- optional WASARootSecretAction wasaRootSecretAction = 89;
5215
- optional BubbleLockMessageAction bubbleLockMessageAction = 90;
5216
- optional LabelSublistAction labelSublistAction = 91;
5217
5481
  message AgentAction {
5218
5482
  optional string name = 1;
5219
- optional int32 deviceId = 2;
5483
+ optional int32 deviceID = 2;
5220
5484
  optional bool isDeleted = 3;
5221
5485
  }
5222
5486
 
@@ -5266,14 +5530,10 @@ message SyncActionValue {
5266
5530
  }
5267
5531
 
5268
5532
  message BroadcastListParticipant {
5269
- required string lidJid = 1;
5533
+ optional string lidJid = 1;
5270
5534
  optional string pnJid = 2;
5271
5535
  }
5272
5536
 
5273
- message BubbleLockMessageAction {
5274
- optional bool locked = 1;
5275
- }
5276
-
5277
5537
  message BusinessBroadcastAssociationAction {
5278
5538
  optional bool deleted = 1;
5279
5539
  }
@@ -5311,7 +5571,6 @@ message SyncActionValue {
5311
5571
  optional string listName = 3;
5312
5572
  repeated string labelIds = 4;
5313
5573
  optional string audienceExpression = 5;
5314
- optional string customAudienceFbid = 6;
5315
5574
  }
5316
5575
 
5317
5576
  message CallLogAction {
@@ -5319,7 +5578,7 @@ message SyncActionValue {
5319
5578
  }
5320
5579
 
5321
5580
  message ChatAssignmentAction {
5322
- optional string deviceAgentId = 1;
5581
+ optional string deviceAgentID = 1;
5323
5582
  }
5324
5583
 
5325
5584
  message ChatAssignmentOpenedStatusAction {
@@ -5330,10 +5589,6 @@ message SyncActionValue {
5330
5589
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
5331
5590
  }
5332
5591
 
5333
- message CoexV2VersionAction {
5334
- optional uint64 version = 1;
5335
- }
5336
-
5337
5592
  message ContactAction {
5338
5593
  optional string fullName = 1;
5339
5594
  optional string firstName = 2;
@@ -5348,15 +5603,15 @@ message SyncActionValue {
5348
5603
  }
5349
5604
 
5350
5605
  message CustomPaymentMethod {
5351
- required string credentialId = 1;
5352
- required string country = 2;
5353
- required string type = 3;
5606
+ optional string credentialId = 1;
5607
+ optional string country = 2;
5608
+ optional string type = 3;
5354
5609
  repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
5355
5610
  }
5356
5611
 
5357
5612
  message CustomPaymentMethodMetadata {
5358
- required string key = 1;
5359
- required string value = 2;
5613
+ optional string key = 1;
5614
+ optional string value = 2;
5360
5615
  }
5361
5616
 
5362
5617
  message CustomPaymentMethodsAction {
@@ -5408,7 +5663,7 @@ message SyncActionValue {
5408
5663
  }
5409
5664
 
5410
5665
  message InteractiveMessageAction {
5411
- required InteractiveMessageActionMode type = 1;
5666
+ optional InteractiveMessageActionMode type = 1;
5412
5667
  optional string agmId = 2;
5413
5668
  enum InteractiveMessageActionMode {
5414
5669
  DISABLE_CTA = 1;
@@ -5458,10 +5713,6 @@ message SyncActionValue {
5458
5713
  repeated int32 sortedLabelIds = 1;
5459
5714
  }
5460
5715
 
5461
- message LabelSublistAction {
5462
- optional int32 subListId = 1;
5463
- }
5464
-
5465
5716
  message LidContactAction {
5466
5717
  optional string fullName = 1;
5467
5718
  optional string firstName = 2;
@@ -5514,8 +5765,8 @@ message SyncActionValue {
5514
5765
  }
5515
5766
 
5516
5767
  message MerchantPaymentPartnerAction {
5517
- required Status status = 1;
5518
- required string country = 2;
5768
+ optional Status status = 1;
5769
+ optional string country = 2;
5519
5770
  optional string gatewayName = 3;
5520
5771
  optional string credentialId = 4;
5521
5772
  enum Status {
@@ -5580,8 +5831,8 @@ message SyncActionValue {
5580
5831
  }
5581
5832
 
5582
5833
  message PaymentTosAction {
5583
- required PaymentNotice paymentNotice = 1;
5584
- required bool accepted = 2;
5834
+ optional PaymentNotice paymentNotice = 1;
5835
+ optional bool accepted = 2;
5585
5836
  enum PaymentNotice {
5586
5837
  BR_PAY_PRIVACY_POLICY = 0;
5587
5838
  }
@@ -5746,8 +5997,8 @@ message SyncActionValue {
5746
5997
  message StatusPrivacyAction {
5747
5998
  optional StatusDistributionMode mode = 1;
5748
5999
  repeated string userJid = 2;
5749
- optional bool shareToFb = 3;
5750
- optional bool shareToIg = 4;
6000
+ optional bool shareToFB = 3;
6001
+ optional bool shareToIG = 4;
5751
6002
  repeated CustomList customLists = 5;
5752
6003
  repeated StatusDistributionMode modes = 6;
5753
6004
  message CustomList {
@@ -5851,21 +6102,6 @@ message SyncActionValue {
5851
6102
  }
5852
6103
  }
5853
6104
 
5854
- message WASARootSecretAction {
5855
- repeated RootSecretEntry secrets = 1;
5856
- message RootSecretEntry {
5857
- optional string id = 1;
5858
- optional bytes rootSecret = 2;
5859
- optional int64 epoch = 3;
5860
- optional Status status = 4;
5861
- enum Status {
5862
- INACTIVE = 0;
5863
- ACTIVE = 1;
5864
- }
5865
- }
5866
-
5867
- }
5868
-
5869
6105
  message WaffleAccountLinkStateAction {
5870
6106
  optional AccountLinkState linkState = 2;
5871
6107
  enum AccountLinkState {
@@ -5910,6 +6146,12 @@ message SyncdPatch {
5910
6146
  optional bytes clientDebugData = 9;
5911
6147
  }
5912
6148
 
6149
+ message SyncdPlainTextRecord {
6150
+ optional SyncActionData value = 1;
6151
+ optional bytes keyId = 2;
6152
+ optional bytes mac = 3;
6153
+ }
6154
+
5913
6155
  message SyncdRecord {
5914
6156
  optional SyncdIndex index = 1;
5915
6157
  optional SyncdValue value = 2;
@@ -5923,6 +6165,13 @@ message SyncdSnapshot {
5923
6165
  optional KeyId keyId = 4;
5924
6166
  }
5925
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
+
5926
6175
  message SyncdValue {
5927
6176
  optional bytes blob = 1;
5928
6177
  }
@@ -5970,6 +6219,17 @@ message ThreadID {
5970
6219
  }
5971
6220
  }
5972
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
+
5973
6233
  message UrlTrackingMap {
5974
6234
  repeated UrlTrackingMapElement urlTrackingMapElements = 1;
5975
6235
  message UrlTrackingMapElement {
@@ -6010,7 +6270,7 @@ message UserPassword {
6010
6270
  }
6011
6271
 
6012
6272
  message UserReceipt {
6013
- required string userJid = 1;
6273
+ optional string userJid = 1;
6014
6274
  optional int64 receiptTimestamp = 2;
6015
6275
  optional int64 readTimestamp = 3;
6016
6276
  optional int64 playedTimestamp = 4;
@@ -6097,7 +6357,7 @@ enum WebLinkRenderConfig {
6097
6357
  SYSTEM = 1;
6098
6358
  }
6099
6359
  message WebMessageInfo {
6100
- required MessageKey key = 1;
6360
+ optional MessageKey key = 1;
6101
6361
  optional Message message = 2;
6102
6362
  optional uint64 messageTimestamp = 3;
6103
6363
  optional Status status = 4;
@@ -6410,16 +6670,233 @@ message WebMessageInfo {
6410
6670
  GROUP_TEE_BOT_ADDED = 223;
6411
6671
  CONTACT_INFO = 224;
6412
6672
  SCHEDULED_MESSAGE_CREATED = 225;
6413
- IDENTITY_TRUST_MARKED = 226;
6414
- IDENTITY_TRUST_UNMARKED = 227;
6415
- IDENTITY_TRUST_REVOKED = 228;
6416
- CTWA_CONSUMER_DISCLOSURE = 230;
6417
6673
  }
6418
6674
  }
6419
6675
 
6676
+ message WebMessageInfoWithMessageBytes {
6677
+ optional MessageKey key = 1;
6678
+ optional bytes messageBytes = 2;
6679
+ }
6680
+
6420
6681
  message WebNotificationsInfo {
6421
6682
  optional uint64 timestamp = 2;
6422
6683
  optional uint32 unreadChats = 3;
6423
6684
  optional uint32 notifyMessageCount = 4;
6424
6685
  repeated WebMessageInfo notifyMessages = 5;
6425
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 <<<