@poucode/baileys 2.0.0 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,14 @@
1
1
  syntax = "proto3";
2
2
  package proto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1041467552
4
+ /// WhatsApp Version: 2.3000.1052536159
5
+
6
+ message ACP2Setting {
7
+ optional bool enabled = 1;
8
+ optional LimitSharing.TriggerType trigger = 2;
9
+ optional int64 settingTimestamp = 3;
10
+ optional bool initiatedByMe = 4;
11
+ }
5
12
 
6
13
  message ADVDeviceIdentity {
7
14
  optional uint32 rawId = 1;
@@ -81,6 +88,17 @@ message AIMediaCollectionMetadata {
81
88
 
82
89
  message AIMetadataOperation {
83
90
  optional HatchMetadataSync hatchMetadataSync = 1;
91
+ optional BizAIMetadataSync bizAiMetadataSync = 2;
92
+ }
93
+
94
+ message AIProvenance {
95
+ optional Metadata c2PaMetadata = 1;
96
+ optional Metadata iptcMetadata = 2;
97
+ message Metadata {
98
+ optional bool createdWithGenAi = 1;
99
+ optional bool editedWithGenAi = 2;
100
+ }
101
+
84
102
  }
85
103
 
86
104
  message AIQueryFanout {
@@ -116,7 +134,7 @@ message AIRichResponseContentItemsMetadata {
116
134
  repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
117
135
  optional ContentType contentType = 2;
118
136
  message AIRichResponseContentItemMetadata {
119
- oneof aIRichResponseContentItem {
137
+ oneof aiRichResponseContentItem {
120
138
  AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
121
139
  }
122
140
  }
@@ -208,6 +226,7 @@ message AIRichResponseMessage {
208
226
  repeated AIRichResponseSubMessage submessages = 2;
209
227
  optional AIRichResponseUnifiedResponse unifiedResponse = 3;
210
228
  optional ContextInfo contextInfo = 4;
229
+ optional AIRichResponseUnifiedResponse originalRecipientMetadata = 5;
211
230
  }
212
231
 
213
232
  enum AIRichResponseMessageType {
@@ -274,6 +293,7 @@ message AIThreadInfo {
274
293
  DEFAULT = 1;
275
294
  INCOGNITO = 2;
276
295
  SIDE_CHAT = 3;
296
+ PRIVATE_SEARCH_CHAT = 4;
277
297
  }
278
298
  }
279
299
 
@@ -314,12 +334,40 @@ message AvatarUserSettings {
314
334
  optional string password = 2;
315
335
  }
316
336
 
337
+ message BackwardEdge {
338
+ optional bytes encryptedPrevEpochAnonId = 1;
339
+ optional bytes encryptedPrevEpochRootKey = 2;
340
+ optional bytes prevEpochRootKeyFingerprint = 3;
341
+ }
342
+
343
+ message BizAIMetadataSync {
344
+ oneof operation {
345
+ BizAIMetadataSync.ServerEvent serverEvent = 1;
346
+ }
347
+ message ServerEvent {
348
+ oneof event {
349
+ BizAIMetadataSync.ServerEvent.ProtocolEvent protocolEvent = 1;
350
+ BizAIMetadataSync.ServerEvent.AgentOnboardingStarted agentOnboardingStarted = 2;
351
+ }
352
+ message AgentOnboardingStarted {
353
+ optional int64 composerBlockDurationSecs = 1;
354
+ }
355
+
356
+ enum ProtocolEvent {
357
+ UNSPECIFIED = 0;
358
+ AGENT_CHAT_READY = 1;
359
+ }
360
+ }
361
+
362
+ }
363
+
317
364
  message BizAccountLinkInfo {
318
365
  optional uint64 whatsappBizAcctFbid = 1;
319
366
  optional string whatsappAcctNumber = 2;
320
367
  optional uint64 issueTime = 3;
321
368
  optional HostStorageType hostStorage = 4;
322
369
  optional AccountType accountType = 5;
370
+ optional string whatsappAcctEmail = 6;
323
371
  enum AccountType {
324
372
  ENTERPRISE = 0;
325
373
  }
@@ -370,6 +418,7 @@ message BotAgeCollectionMetadata {
370
418
 
371
419
  message BotAgentDeepLinkMetadata {
372
420
  optional string token = 1;
421
+ optional bytes clientPublicKey = 2;
373
422
  }
374
423
 
375
424
  message BotAgentMetadata {
@@ -445,6 +494,25 @@ message BotCapabilityMetadata {
445
494
  UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED = 63;
446
495
  AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64;
447
496
  AI_SUBSCRIPTION_METERING_ENABLED = 65;
497
+ RICH_RESPONSE_SPORTS_WIDGET_ENABLED = 66;
498
+ AI_RICH_RESPONSE_ARTIFACTS_ENABLED = 67;
499
+ AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED = 68;
500
+ AI_RICH_RESPONSE_REMINDERS_ENABLED = 69;
501
+ AI_STOP_GENERATION_ENABLED = 70;
502
+ AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED = 71;
503
+ HATCH_NOTIFICATION_METADATA_EVENT_ENABLED = 72;
504
+ AI_SUGGESTED_REPLIES_ENABLED = 73;
505
+ RICH_RESPONSE_IN_APP_SURVEY_BLOKS = 74;
506
+ RICH_RESPONSE_IMAGE_SOURCE_ATTRIBUTION = 75;
507
+ HATCH_CONNECTOR_ACTION_CARD_ENABLED = 76;
508
+ HATCH_SECURE_CREDENTIAL_CARD_ENABLED = 77;
509
+ HATCH_BROWSER_TASK_CARD_ENABLED = 78;
510
+ HATCH_ARTIFACT_CARD_ENABLED = 79;
511
+ AI_STUDY_CENTER_ENABLED = 80;
512
+ AI_MUSE_JARVIS_SCHEMA_ENABLED = 81;
513
+ AI_STUDY_QUIZ_ENABLED = 82;
514
+ HATCH_CVM_ENABLED = 83;
515
+ RICH_RESPONSE_SOCIAL_ENTITY_PREFETCH_SCHEDULER_ENABLED = 84;
448
516
  }
449
517
  }
450
518
 
@@ -566,6 +634,10 @@ message BotGroupParticipantMetadata {
566
634
  optional string botFbid = 1;
567
635
  }
568
636
 
637
+ message BotHistoryShareMetadata {
638
+ repeated BotGroupParticipantMetadata participantsMetadata = 1;
639
+ }
640
+
569
641
  message BotImagineMetadata {
570
642
  optional ImagineType imagineType = 1;
571
643
  optional string shortPrompt = 2;
@@ -588,6 +660,11 @@ message BotInfrastructureDiagnostics {
588
660
  }
589
661
  }
590
662
 
663
+ message BotInterjectionMetadata {
664
+ optional string targetPromptMessageId = 1;
665
+ repeated string foldedPromptMessageIds = 2;
666
+ }
667
+
591
668
  message BotLinkedAccount {
592
669
  optional BotLinkedAccountType type = 1;
593
670
  enum BotLinkedAccountType {
@@ -633,8 +710,10 @@ message BotMemuMetadata {
633
710
 
634
711
  message BotMessageOrigin {
635
712
  optional BotMessageOriginType type = 1;
713
+ optional string proactiveMessageCampaignId = 2;
636
714
  enum BotMessageOriginType {
637
715
  BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0;
716
+ BOT_MESSAGE_ORIGIN_TYPE_META_AI_THREAD_WELCOME = 1;
638
717
  }
639
718
  }
640
719
 
@@ -689,6 +768,9 @@ message BotMetadata {
689
768
  optional BotResolvedToolCallMetadata resolvedToolCallMetadata = 40;
690
769
  optional AISubscriptionUpsellMetadata subscriptionUpsellMetadata = 41;
691
770
  optional BotPttPromptMetadata pttPromptMetadata = 42;
771
+ optional BotHistoryShareMetadata botHistoryShareMetadata = 43;
772
+ optional bool responseStoppedByUser = 44;
773
+ optional BotInterjectionMetadata interjectionMetadata = 45;
692
774
  optional bytes internalMetadata = 999;
693
775
  }
694
776
 
@@ -741,6 +823,9 @@ enum BotMetricsEntryPoint {
741
823
  GROUP_MEMBER = 54;
742
824
  CHATLIST_SEARCH = 55;
743
825
  NEW_CHAT_LIST = 56;
826
+ CONTACTS_TAB = 57;
827
+ NEW_3P_AGENT_CREATION = 58;
828
+ SHARE = 59;
744
829
  }
745
830
  message BotMetricsMetadata {
746
831
  optional string destinationId = 1;
@@ -960,12 +1045,20 @@ message BotSignatureVerificationUseCaseProof {
960
1045
  optional BotSignatureUseCase useCase = 2;
961
1046
  optional bytes signature = 3;
962
1047
  repeated bytes certificateChain = 4;
1048
+ repeated CertificateSKI certificateChainSki = 5;
963
1049
  enum BotSignatureUseCase {
964
1050
  UNSPECIFIED = 0;
965
1051
  WA_BOT_MSG = 1;
966
1052
  WA_TEE_BOT_MSG = 2;
967
1053
  P2P_PILLS = 3;
1054
+ WA_WAFFLE = 4;
1055
+ WA_FEATURE_PKI = 5;
1056
+ }
1057
+ message CertificateSKI {
1058
+ optional BotSignatureVerificationUseCaseProof.BotSignatureUseCase useCase = 1;
1059
+ optional bytes ski = 2;
968
1060
  }
1061
+
969
1062
  }
970
1063
 
971
1064
  message BotSourcesMetadata {
@@ -1069,9 +1162,14 @@ message CallLogRecord {
1069
1162
  SCHEDULED_CALL = 1;
1070
1163
  VOICE_CHAT = 2;
1071
1164
  }
1165
+ message GuestInfo {
1166
+ optional string pushName = 1;
1167
+ }
1168
+
1072
1169
  message ParticipantInfo {
1073
1170
  optional string userJid = 1;
1074
1171
  optional CallLogRecord.CallResult callResult = 2;
1172
+ optional CallLogRecord.GuestInfo guestInfo = 3;
1075
1173
  }
1076
1174
 
1077
1175
  enum SilenceReason {
@@ -1157,6 +1255,8 @@ message ClientPairingProps {
1157
1255
  optional bool isSyncdSnapshotRecoveryEnabled = 3;
1158
1256
  optional bool isHsThumbnailSyncEnabled = 4;
1159
1257
  optional bytes subscriptionSyncPayload = 5;
1258
+ optional bool isBotJidDbMigrated = 6;
1259
+ optional bytes companionAddPeerPayload = 7;
1160
1260
  }
1161
1261
 
1162
1262
  message ClientPayload {
@@ -1196,6 +1296,7 @@ message ClientPayload {
1196
1296
  optional int32 processingQueueSize = 46;
1197
1297
  repeated string pairedPeripherals = 47;
1198
1298
  optional bytes testIsolationId = 48;
1299
+ optional int64 messageSts = 49;
1199
1300
  enum AccountType {
1200
1301
  DEFAULT = 0;
1201
1302
  GUEST = 1;
@@ -1306,6 +1407,8 @@ message ClientPayload {
1306
1407
  DESKTOP = 2;
1307
1408
  WEARABLE = 3;
1308
1409
  VR = 4;
1410
+ SMART_DISPLAY = 5;
1411
+ SMART_SPEAKER = 6;
1309
1412
  }
1310
1413
  enum DistributionChannel {
1311
1414
  APPSTORE = 0;
@@ -1352,6 +1455,10 @@ message ClientPayload {
1352
1455
  SMART_GLASSES = 35;
1353
1456
  BLUE_VR = 36;
1354
1457
  AR_WRIST = 37;
1458
+ WAIL = 38;
1459
+ WORK_ANDROID = 39;
1460
+ WORK_IOS = 40;
1461
+ AUTOMOTIVE = 41;
1355
1462
  }
1356
1463
  enum ReleaseChannel {
1357
1464
  RELEASE = 0;
@@ -1394,6 +1501,22 @@ message ClientPayload {
1394
1501
 
1395
1502
  }
1396
1503
 
1504
+ message CoexStateSync {
1505
+ repeated CollectionMutations collectionMutations = 1;
1506
+ message CollectionMutations {
1507
+ optional string collection = 1;
1508
+ repeated CoexStateSync.Mutation mutations = 2;
1509
+ }
1510
+
1511
+ message Mutation {
1512
+ optional SyncdIndex index = 1;
1513
+ optional SyncdValue value = 2;
1514
+ optional uint64 dirtyVersion = 3;
1515
+ optional SyncdMutation.SyncdOperation operation = 4;
1516
+ }
1517
+
1518
+ }
1519
+
1397
1520
  enum CollectionName {
1398
1521
  COLLECTION_NAME_UNKNOWN = 0;
1399
1522
  REGULAR = 1;
@@ -1705,6 +1828,12 @@ message ContextInfo {
1705
1828
  optional CrossAppSource crossAppSource = 77;
1706
1829
  optional BusinessInteractionPills businessInteractionPills = 78;
1707
1830
  optional string posterStatusId = 79;
1831
+ optional InstagramThreadLink instagramThreadLink = 80;
1832
+ optional AIProvenance aiProvenance = 81;
1833
+ repeated uint32 experienceIds = 82 [packed=true];
1834
+ optional string partnerDeepLinkToken = 83;
1835
+ optional uint32 sourceExperienceId = 84;
1836
+ repeated uint32 sourceExperienceIds = 85 [packed=true];
1708
1837
  message AdReplyInfo {
1709
1838
  optional string advertiserName = 1;
1710
1839
  optional MediaType mediaType = 2;
@@ -1723,6 +1852,7 @@ message ContextInfo {
1723
1852
  optional EntryPoint entryPoint = 3;
1724
1853
  optional bytes signedPayload = 4;
1725
1854
  optional BotSignatureVerificationMetadata signatureEnvelope = 5;
1855
+ optional UnauthenticatedBusinessMetadata unauthenticatedBusinessMetadata = 6;
1726
1856
  enum EntryPoint {
1727
1857
  ENTRY_POINT_UNKNOWN = 0;
1728
1858
  P2P_LINK_SHARE = 1;
@@ -1756,6 +1886,13 @@ message ContextInfo {
1756
1886
  repeated ContextInfo.BusinessInteractionPills.Pill pills = 2;
1757
1887
  }
1758
1888
 
1889
+ message UnauthenticatedBusinessMetadata {
1890
+ optional string businessName = 1;
1891
+ optional string businessCategory = 2;
1892
+ optional bool businessIsOpen = 3;
1893
+ optional int64 businessIsOpenSnapshotMs = 4;
1894
+ }
1895
+
1759
1896
  }
1760
1897
 
1761
1898
  message BusinessMessageForwardInfo {
@@ -1819,6 +1956,15 @@ message ContextInfo {
1819
1956
  optional int32 agmTitleStrategy = 30;
1820
1957
  optional int32 agmSubtitleStrategy = 31;
1821
1958
  optional int32 agmHeaderInteractionStrategy = 32;
1959
+ optional bool containsCtwaFlowsAutoLabel = 33;
1960
+ optional string productId = 34;
1961
+ optional bool containsCtwaPromo = 35;
1962
+ optional string ctwaPromoResponseId = 36;
1963
+ optional string ctwaPromoOfferId = 37;
1964
+ optional string ctwaPromoAdEntryId = 38;
1965
+ optional uint64 ctwaPromoResponseExpiresAtSeconds = 39;
1966
+ optional uint32 ctwaPromoSchemaVersion = 40;
1967
+ optional string ctwaPromoAdgroupId = 41;
1822
1968
  enum AdType {
1823
1969
  CTWA = 0;
1824
1970
  CAWC = 1;
@@ -1860,6 +2006,10 @@ message ContextInfo {
1860
2006
  }
1861
2007
  }
1862
2008
 
2009
+ message InstagramThreadLink {
2010
+ optional string url = 1;
2011
+ }
2012
+
1863
2013
  enum PairedMediaType {
1864
2014
  NOT_PAIRED_MEDIA = 0;
1865
2015
  SD_VIDEO_PARENT = 1;
@@ -1870,6 +2020,10 @@ message ContextInfo {
1870
2020
  MOTION_PHOTO_CHILD = 6;
1871
2021
  HEVC_VIDEO_PARENT = 7;
1872
2022
  HEVC_VIDEO_CHILD = 8;
2023
+ AV1_VIDEO_PARENT = 9;
2024
+ AV1_VIDEO_CHILD = 10;
2025
+ STREAMED_VIDEO_PARENT = 11;
2026
+ STREAMED_VIDEO_CHILD = 12;
1873
2027
  }
1874
2028
  message PartiallySelectedContent {
1875
2029
  optional string text = 1;
@@ -1896,9 +2050,12 @@ message ContextInfo {
1896
2050
  optional AudienceType audienceType = 1;
1897
2051
  optional string listName = 2;
1898
2052
  optional string listEmoji = 3;
2053
+ optional string orgId = 4;
1899
2054
  enum AudienceType {
1900
2055
  UNKNOWN = 0;
1901
2056
  CLOSE_FRIENDS = 1;
2057
+ CUSTOM_LIST = 2;
2058
+ ORG = 3;
1902
2059
  }
1903
2060
  }
1904
2061
 
@@ -1980,6 +2137,9 @@ message Conversation {
1980
2137
  optional uint64 appealUpdateTime = 60;
1981
2138
  optional string authAgentParentCompanyName = 61;
1982
2139
  optional string authAgentObaPhoneNumber = 62;
2140
+ optional IdentityVerificationState identityVerification = 63;
2141
+ optional ACP2Setting acp2Setting = 64;
2142
+ optional bool acp2HistoryWithheld = 65;
1983
2143
  enum EndOfHistoryTransferType {
1984
2144
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1985
2145
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
@@ -1994,6 +2154,191 @@ message Conversation {
1994
2154
  }
1995
2155
  }
1996
2156
 
2157
+ message CreateBackupInput {
2158
+ optional string recoveryCode = 1;
2159
+ optional uint64 userId = 2;
2160
+ }
2161
+
2162
+ message CreateBackupOutput {
2163
+ optional DeviceOutput device = 1;
2164
+ optional VirtualDeviceOutput virtualDevice = 2;
2165
+ optional Epoch0Output epoch0 = 3;
2166
+ optional bytes mailboxRootKey = 4;
2167
+ optional string error = 5;
2168
+ }
2169
+
2170
+ message DecryptMekForDistributionFromTransportSenderInput {
2171
+ optional TransportSenderMEKDistributionSingleRecipient mekDistribution = 1;
2172
+ optional bytes mekId = 2;
2173
+ optional bytes rosterHash = 3;
2174
+ optional bytes recipientEncSk = 4;
2175
+ optional uint64 version = 5;
2176
+ optional MinosClientConfig conf = 6;
2177
+ message TransportSenderMEKDistributionSingleRecipient {
2178
+ optional bytes encryptedMek = 1;
2179
+ optional bytes ephemeralEncryptionPk = 2;
2180
+ optional bytes signingPk = 3;
2181
+ optional bytes signature = 4;
2182
+ optional bytes recipientEpochHead = 5;
2183
+ }
2184
+
2185
+ }
2186
+
2187
+ message DecryptMekForDistributionFromTransportSenderResult {
2188
+ oneof result {
2189
+ DecryptMekForDistributionFromTransportSenderSuccess success = 1;
2190
+ string errorMessage = 2;
2191
+ }
2192
+ }
2193
+
2194
+ message DecryptMekForDistributionFromTransportSenderSuccess {
2195
+ optional bytes mek = 1;
2196
+ }
2197
+
2198
+ message DecryptMekForDistributionInput {
2199
+ optional bytes toMailboxSk = 1;
2200
+ optional bytes fromPk = 2;
2201
+ optional bytes mekId = 3;
2202
+ optional bytes senderEpochHead = 4;
2203
+ optional bytes rosterHash = 5;
2204
+ optional bytes ciphertext = 6;
2205
+ optional bytes toEpochHead = 7;
2206
+ optional int32 mekEncryptionVersion = 8;
2207
+ optional MinosClientConfig conf = 9;
2208
+ }
2209
+
2210
+ message DecryptMekForDistributionResult {
2211
+ oneof result {
2212
+ DecryptMekForDistributionSuccess success = 1;
2213
+ string errorMessage = 2;
2214
+ }
2215
+ }
2216
+
2217
+ message DecryptMekForDistributionSuccess {
2218
+ optional bytes mek = 1;
2219
+ }
2220
+
2221
+ message DecryptMessageInput {
2222
+ optional bytes epochRootKey = 1;
2223
+ optional bytes epochAnonId = 2;
2224
+ optional string threadId = 3;
2225
+ optional int32 encryptionVersion = 4;
2226
+ optional bytes ciphertext = 5;
2227
+ }
2228
+
2229
+ message DecryptMessageOutput {
2230
+ optional bytes plaintextPayload = 1;
2231
+ optional string error = 2;
2232
+ }
2233
+
2234
+ message DecryptSelfMmkDistributionInput {
2235
+ optional bytes encryptedMmk = 1;
2236
+ optional bytes exportRootKey = 2;
2237
+ optional MessagingMailboxPublicData mmkPublicData = 3;
2238
+ }
2239
+
2240
+ message DecryptSelfMmkDistributionResult {
2241
+ oneof result {
2242
+ DecryptSelfMmkDistributionSuccess success = 1;
2243
+ string errorMessage = 2;
2244
+ }
2245
+ }
2246
+
2247
+ message DecryptSelfMmkDistributionSuccess {
2248
+ optional bytes mmkSeed = 1;
2249
+ }
2250
+
2251
+ message DeriveAttachmentAccessTokenSecretInput {
2252
+ optional bytes mediaKey = 1;
2253
+ }
2254
+
2255
+ message DeriveAttachmentAccessTokenSecretResult {
2256
+ optional bytes attachmentAccessTokenSecret = 1;
2257
+ }
2258
+
2259
+ message DeriveAttachmentPrimaryKeySecretInput {
2260
+ optional bytes mediaKey = 1;
2261
+ }
2262
+
2263
+ message DeriveAttachmentPrimaryKeySecretResult {
2264
+ optional bytes attachmentPrimaryKeySecret = 1;
2265
+ }
2266
+
2267
+ message DeriveMailboxAuthKeypairInput {
2268
+ optional bytes exportRootKey = 1;
2269
+ optional uint64 epochNumber = 2;
2270
+ }
2271
+
2272
+ message DeriveMailboxAuthKeypairResult {
2273
+ optional bytes mailboxAuthPublicKey = 1;
2274
+ optional bytes mailboxAuthPrivateKey = 2;
2275
+ }
2276
+
2277
+ message DeriveMailboxEncryptionKeypairInput {
2278
+ optional bytes exportRootKey = 1;
2279
+ optional uint64 epochNumber = 2;
2280
+ }
2281
+
2282
+ message DeriveMailboxEncryptionKeypairResult {
2283
+ optional bytes mailboxEncryptionPublicKey = 1;
2284
+ optional bytes mailboxEncryptionPrivateKey = 2;
2285
+ }
2286
+
2287
+ message DeriveMailboxSigningKeypairInput {
2288
+ optional bytes exportRootKey = 1;
2289
+ optional uint64 epochNumber = 2;
2290
+ }
2291
+
2292
+ message DeriveMailboxSigningKeypairResult {
2293
+ oneof result {
2294
+ DeriveMailboxSigningKeypairSuccess success = 1;
2295
+ string errorMessage = 2;
2296
+ }
2297
+ }
2298
+
2299
+ message DeriveMailboxSigningKeypairSuccess {
2300
+ optional bytes mailboxSigningPublicKey = 1;
2301
+ optional bytes mailboxSigningPrivateKey = 2;
2302
+ }
2303
+
2304
+ message DeriveMessageKeyInput {
2305
+ optional bytes epochRootKey = 1;
2306
+ optional bytes epochAnonId = 2;
2307
+ optional string threadId = 3;
2308
+ }
2309
+
2310
+ message DeriveMessageKeyOutput {
2311
+ optional bytes messageKey = 1;
2312
+ optional string error = 2;
2313
+ }
2314
+
2315
+ message DeriveMessagingMailboxKeypairsInput {
2316
+ optional bytes mmkSeed = 1;
2317
+ }
2318
+
2319
+ message DeriveMessagingMailboxKeypairsResult {
2320
+ oneof result {
2321
+ DeriveMessagingMailboxKeypairsSuccess success = 1;
2322
+ string errorMessage = 2;
2323
+ }
2324
+ }
2325
+
2326
+ message DeriveMessagingMailboxKeypairsSuccess {
2327
+ optional bytes encSk = 1;
2328
+ optional bytes encPk = 2;
2329
+ optional bytes authSk = 3;
2330
+ optional bytes authPk = 4;
2331
+ }
2332
+
2333
+ message DetachedDevicePublicData {
2334
+ optional uint64 deviceId = 1;
2335
+ optional bytes name = 2;
2336
+ optional bytes sigPk = 3;
2337
+ optional bytes authPk = 4;
2338
+ optional bytes encPk = 5;
2339
+ optional bytes signature = 6;
2340
+ }
2341
+
1997
2342
  message DeviceCapabilities {
1998
2343
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
1999
2344
  optional LIDMigration lidMigration = 2;
@@ -2001,6 +2346,18 @@ message DeviceCapabilities {
2001
2346
  optional UserHasAvatar userHasAvatar = 4;
2002
2347
  optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
2003
2348
  optional AiThread aiThread = 6;
2349
+ optional AiFbidMigration aiFbidMigration = 7;
2350
+ optional BizAiSettingsSync bizAiSettingsSync = 8;
2351
+ optional ContactRefresh contactRefresh = 9;
2352
+ optional ReverseHistorySync reverseHistorySync = 10;
2353
+ optional NewsletterChatsMigration newsletterChatsMigration = 11;
2354
+ optional HostWriteMutationSupport hostWriteMutationSupport = 12;
2355
+ optional BizAiWebOnboarding bizAiWebOnboarding = 13;
2356
+ message AiFbidMigration {
2357
+ optional uint64 chatDbMigrationTimestamp = 1;
2358
+ optional uint32 supportVersion = 2;
2359
+ }
2360
+
2004
2361
  message AiThread {
2005
2362
  optional SupportLevel supportLevel = 1;
2006
2363
  enum SupportLevel {
@@ -2010,12 +2367,21 @@ message DeviceCapabilities {
2010
2367
  }
2011
2368
  }
2012
2369
 
2370
+ message BizAiSettingsSync {
2371
+ optional bool handoffRemovalTimingEnabled = 1;
2372
+ }
2373
+
2374
+ message BizAiWebOnboarding {
2375
+ optional uint32 version = 1;
2376
+ }
2377
+
2013
2378
  message BusinessBroadcast {
2014
2379
  optional bool importListEnabled = 1;
2015
2380
  optional bool companionSupportEnabled = 2;
2016
2381
  optional bool campaignSyncEnabled = 3;
2017
2382
  optional bool insightsSyncEnabled = 4;
2018
2383
  optional int32 recipientLimit = 5;
2384
+ optional bool proCompanionSupportEnabled = 6;
2019
2385
  }
2020
2386
 
2021
2387
  enum ChatLockSupportLevel {
@@ -2023,6 +2389,14 @@ message DeviceCapabilities {
2023
2389
  MINIMAL = 1;
2024
2390
  FULL = 2;
2025
2391
  }
2392
+ message ContactRefresh {
2393
+ optional bool refreshSupported = 1;
2394
+ }
2395
+
2396
+ message HostWriteMutationSupport {
2397
+ repeated string mutationNames = 1;
2398
+ }
2399
+
2026
2400
  message LIDMigration {
2027
2401
  optional uint64 chatDbMigrationTimestamp = 1;
2028
2402
  }
@@ -2032,6 +2406,20 @@ message DeviceCapabilities {
2032
2406
  RECEIVER_ENABLED = 1;
2033
2407
  SENDER_ENABLED = 2;
2034
2408
  }
2409
+ message NewsletterChatsMigration {
2410
+ optional bool effectiveMigrated = 1;
2411
+ optional int64 countdownEndsAt = 2;
2412
+ optional bool rolledBack = 3;
2413
+ }
2414
+
2415
+ message ReverseHistorySync {
2416
+ repeated Product enabledProducts = 1;
2417
+ enum Product {
2418
+ PRODUCT_UNSPECIFIED = 0;
2419
+ HATCH = 1;
2420
+ }
2421
+ }
2422
+
2035
2423
  message UserHasAvatar {
2036
2424
  optional bool userHasAvatar = 1;
2037
2425
  }
@@ -2054,6 +2442,19 @@ message DeviceListMetadata {
2054
2442
  repeated uint32 recipientKeyIndexes = 10 [packed=true];
2055
2443
  }
2056
2444
 
2445
+ message DeviceOutput {
2446
+ optional bytes publicKey = 1;
2447
+ optional bytes epochAuthPublicKey = 2;
2448
+ optional bytes epochAuthPublicKeySig = 3;
2449
+ optional bytes epochStoragePublicKey = 4;
2450
+ optional bytes epochStoragePublicKeySig = 5;
2451
+ repeated int32 supportedEncryptionVersions = 6;
2452
+ optional bytes encryptionVersionSignature = 7;
2453
+ optional int32 clientVersion = 8;
2454
+ optional bytes ocmfClientState = 9;
2455
+ optional bytes epochStoragePrivateKey = 10;
2456
+ }
2457
+
2057
2458
  message DeviceProps {
2058
2459
  optional string os = 1;
2059
2460
  optional AppVersion version = 2;
@@ -2093,6 +2494,9 @@ message DeviceProps {
2093
2494
  optional bool supportHatchHistory = 22;
2094
2495
  repeated string supportedBotChannelFbids = 23;
2095
2496
  optional bool supportInlineContacts = 24;
2497
+ optional bool supportNewsletter = 25;
2498
+ optional bool supportUniversalReachChat = 26;
2499
+ optional bool supportOmittedConversationMetadata = 28;
2096
2500
  }
2097
2501
 
2098
2502
  enum PlatformType {
@@ -2121,6 +2525,12 @@ message DeviceProps {
2121
2525
  VR = 22;
2122
2526
  CLOUD_API = 23;
2123
2527
  SMARTGLASSES = 24;
2528
+ WAIL = 25;
2529
+ WASS = 26;
2530
+ BUSINESS_BACK_OFFICE = 27;
2531
+ WAIL_WAI = 28;
2532
+ WAIL_ALEXA = 29;
2533
+ AUTOMOTIVE = 30;
2124
2534
  }
2125
2535
  }
2126
2536
 
@@ -2145,6 +2555,119 @@ message DisappearingMode {
2145
2555
  }
2146
2556
  }
2147
2557
 
2558
+ enum EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE {
2559
+ OPEN_NATIVE = 11;
2560
+ }
2561
+ enum EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE {
2562
+ UNSUPPORTED = -1;
2563
+ IG_STORY_PHOTO_MENTION = 4;
2564
+ IG_SINGLE_IMAGE_POST_SHARE = 9;
2565
+ IG_MULTIPOST_SHARE = 10;
2566
+ IG_SINGLE_VIDEO_POST_SHARE = 11;
2567
+ IG_STORY_PHOTO_SHARE = 12;
2568
+ IG_STORY_VIDEO_SHARE = 13;
2569
+ IG_CLIPS_SHARE = 14;
2570
+ IG_IGTV_SHARE = 15;
2571
+ IG_SHOP_SHARE = 16;
2572
+ IG_PROFILE_SHARE = 19;
2573
+ IG_STORY_PHOTO_HIGHLIGHT_SHARE = 20;
2574
+ IG_STORY_VIDEO_HIGHLIGHT_SHARE = 21;
2575
+ IG_STORY_REPLY = 22;
2576
+ IG_STORY_REACTION = 23;
2577
+ IG_STORY_VIDEO_MENTION = 24;
2578
+ IG_STORY_HIGHLIGHT_REPLY = 25;
2579
+ IG_STORY_HIGHLIGHT_REACTION = 26;
2580
+ IG_EXTERNAL_LINK = 27;
2581
+ IG_RECEIVER_FETCH = 28;
2582
+ FB_FEED_SHARE = 1000;
2583
+ FB_STORY_REPLY = 1001;
2584
+ FB_STORY_SHARE = 1002;
2585
+ FB_STORY_MENTION = 1003;
2586
+ FB_FEED_VIDEO_SHARE = 1004;
2587
+ FB_GAMING_CUSTOM_UPDATE = 1005;
2588
+ FB_PRODUCER_STORY_REPLY = 1006;
2589
+ FB_EVENT = 1007;
2590
+ FB_FEED_POST_PRIVATE_REPLY = 1008;
2591
+ FB_SHORT = 1009;
2592
+ FB_COMMENT_MENTION_SHARE = 1010;
2593
+ FB_POST_MENTION = 1011;
2594
+ FB_PROFILE_DIRECTORY_ITEM = 1013;
2595
+ FB_FEED_POST_REACTION_REPLY = 1014;
2596
+ FB_QUICKSNAP_REPLY = 1015;
2597
+ MSG_EXTERNAL_LINK_SHARE = 2000;
2598
+ MSG_P2P_PAYMENT = 2001;
2599
+ MSG_LOCATION_SHARING = 2002;
2600
+ MSG_LOCATION_SHARING_V2 = 2003;
2601
+ MSG_HIGHLIGHTS_TAB_FRIEND_UPDATES_REPLY = 2004;
2602
+ MSG_HIGHLIGHTS_TAB_LOCAL_EVENT_REPLY = 2005;
2603
+ MSG_RECEIVER_FETCH = 2006;
2604
+ MSG_IG_MEDIA_SHARE = 2007;
2605
+ MSG_GEN_AI_SEARCH_PLUGIN_RESPONSE = 2008;
2606
+ MSG_REELS_LIST = 2009;
2607
+ MSG_CONTACT = 2010;
2608
+ MSG_THREADS_POST_SHARE = 2011;
2609
+ MSG_FILE = 2012;
2610
+ MSG_AVATAR_DETAILS = 2013;
2611
+ MSG_AI_CONTACT = 2014;
2612
+ MSG_MEMORIES_SHARE = 2015;
2613
+ MSG_SHARED_ALBUM_REPLY = 2016;
2614
+ MSG_SHARED_ALBUM = 2017;
2615
+ MSG_OCCAMADILLO_XMA = 2018;
2616
+ MSG_GEN_AI_SUBSCRIPTION = 2021;
2617
+ MSG_GEN_AI_REMINDER = 2022;
2618
+ MSG_GEN_AI_MEMU_ONBOARDING_RESPONSE = 2023;
2619
+ MSG_NOTE_REPLY = 2024;
2620
+ MSG_NOTE_MENTION = 2025;
2621
+ GEN_AI_ENTITY = 2026;
2622
+ MSG_OPG_P2P_PAYMENT = 2027;
2623
+ GEN_AI_RICH_RESPONSE = 2028;
2624
+ MSG_MUSIC_STICKER = 2029;
2625
+ MSG_PHONE_NUMBER = 2030;
2626
+ AI_ACTIVITY_SHARE = 2031;
2627
+ MSG_PRIVATE_XMA = 2032;
2628
+ MSG_SOCIAL_CUE_MEMORIES = 2033;
2629
+ MSG_MANUS_GROWTH_REFERRAL = 2060;
2630
+ MSG_MOMENT_LINK = 2061;
2631
+ MSG_HORIZON_WEEL = 2062;
2632
+ MSG_MOMENT_ADDED = 2063;
2633
+ RTC_AUDIO_CALL = 3000;
2634
+ RTC_VIDEO_CALL = 3001;
2635
+ RTC_MISSED_AUDIO_CALL = 3002;
2636
+ RTC_MISSED_VIDEO_CALL = 3003;
2637
+ RTC_GROUP_AUDIO_CALL = 3004;
2638
+ RTC_GROUP_VIDEO_CALL = 3005;
2639
+ RTC_MISSED_GROUP_AUDIO_CALL = 3006;
2640
+ RTC_MISSED_GROUP_VIDEO_CALL = 3007;
2641
+ RTC_ONGOING_AUDIO_CALL = 3008;
2642
+ RTC_ONGOING_VIDEO_CALL = 3009;
2643
+ MSG_RECEIVER_FETCH_FALLBACK = 3025;
2644
+ DATACLASS_SENDER_COPY = 4000;
2645
+ }
2646
+ enum EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH {
2647
+ INFO = 0;
2648
+ EYE_OFF = 1;
2649
+ NEWS_OFF = 2;
2650
+ WARNING = 3;
2651
+ PRIVATE = 4;
2652
+ NONE = 5;
2653
+ MEDIA_LABEL = 6;
2654
+ POST_COVER = 7;
2655
+ POST_LABEL = 8;
2656
+ WARNING_SCREENS = 9;
2657
+ }
2658
+ enum EXTENDED_CONTENT_MESSAGE_XMA_DATACLASS_TYPE {
2659
+ SENDER_COPY = 0;
2660
+ SERVER = 1;
2661
+ SIGNED_CLIENT = 2;
2662
+ }
2663
+ enum EXTENDED_CONTENT_MESSAGE_XMA_LAYOUT_TYPE {
2664
+ SINGLE = 0;
2665
+ HSCROLL = 1;
2666
+ PORTRAIT = 3;
2667
+ STANDARD_DXMA = 12;
2668
+ LIST_DXMA = 15;
2669
+ GRID = 16;
2670
+ }
2148
2671
  message EmbeddedContent {
2149
2672
  oneof content {
2150
2673
  EmbeddedMessage embeddedMessage = 1;
@@ -2174,20 +2697,122 @@ message EmbeddedMusic {
2174
2697
  optional int64 overlapDurationInMs = 14;
2175
2698
  }
2176
2699
 
2700
+ message EncryptMekForDistributionInput {
2701
+ optional bytes senderEpochHead = 1;
2702
+ optional bytes toMailboxPk = 2;
2703
+ optional MailboxAuthKP fromKeypair = 3;
2704
+ optional MekBundle mek = 4;
2705
+ optional bytes toEpochHead = 5;
2706
+ optional MinosClientConfig conf = 6;
2707
+ message MailboxAuthKP {
2708
+ optional bytes sk = 1;
2709
+ optional bytes pk = 2;
2710
+ }
2711
+
2712
+ }
2713
+
2714
+ message EncryptMekForDistributionResult {
2715
+ optional bytes ciphertext = 1;
2716
+ optional uint64 version = 2;
2717
+ }
2718
+
2719
+ message EncryptMeksForDistributionFromTransportSenderInput {
2720
+ optional MekBundle mek = 1;
2721
+ optional TransportSigningKP transportSigningKp = 2;
2722
+ repeated bytes recipientMailboxEncryptionPks = 3;
2723
+ repeated bytes recipientEpochHeads = 4;
2724
+ optional MinosClientConfig conf = 5;
2725
+ message TransportSigningKP {
2726
+ optional bytes sk = 1;
2727
+ optional bytes pk = 2;
2728
+ }
2729
+
2730
+ }
2731
+
2732
+ message EncryptMeksForDistributionFromTransportSenderResult {
2733
+ repeated bytes encryptedMeks = 1;
2734
+ optional bytes ephemeralEncryptionPk = 2;
2735
+ optional bytes signingPk = 3;
2736
+ optional bytes signature = 4;
2737
+ optional uint64 version = 5;
2738
+ }
2739
+
2740
+ message EncryptMessageInput {
2741
+ optional bytes epochRootKey = 1;
2742
+ optional bytes mailboxRootKey = 2;
2743
+ optional bytes orfClientState = 3;
2744
+ optional bytes epochAnonId = 4;
2745
+ optional uint64 epochId = 5;
2746
+ optional string threadId = 6;
2747
+ optional uint64 waCanonicalUserFbid = 7;
2748
+ optional uint64 timestampMs = 8;
2749
+ optional uint64 backupId = 9;
2750
+ optional bytes plaintextPayload = 10;
2751
+ optional string stanzaId = 11;
2752
+ }
2753
+
2754
+ message EncryptMessageOutput {
2755
+ optional bytes encryptedProtobuf = 1;
2756
+ optional bytes orfThreadId = 2;
2757
+ optional string valueSecretRef = 3;
2758
+ optional uint64 offlineThreadingId = 4;
2759
+ optional uint64 timestampMs = 5;
2760
+ optional string error = 7;
2761
+ }
2762
+
2177
2763
  message EncryptedPairingRequest {
2178
2764
  optional bytes encryptedPayload = 1;
2179
2765
  optional bytes iv = 2;
2180
2766
  }
2181
2767
 
2768
+ message EncryptedSecretValuesOutput {
2769
+ optional bytes encryptedDevicePrivateKey = 1;
2770
+ optional bytes encryptedObliviousValidationTokenBlob = 2;
2771
+ optional bytes encryptedEpochStoragePrivateKey = 3;
2772
+ optional bytes encryptedOcmfClientState = 4;
2773
+ optional bytes encryptedOrfClientStateV2 = 5;
2774
+ optional bytes encryptedMailboxRootKeyBlob = 6;
2775
+ optional bytes encryptedEpochAnonId = 7;
2776
+ optional bytes encryptedEpochRootKey = 8;
2777
+ }
2778
+
2182
2779
  message EphemeralSetting {
2183
2780
  optional sfixed32 duration = 1;
2184
2781
  optional sfixed64 timestamp = 2;
2185
2782
  }
2186
2783
 
2784
+ message Epoch0Output {
2785
+ optional uint64 epochFbid = 1;
2786
+ optional bytes epochAnonId = 2;
2787
+ optional bytes epochData = 3;
2788
+ optional bytes wrappedRootKeyForSelf = 4;
2789
+ optional bytes epochSignature = 5;
2790
+ optional bytes epochRootKeyFingerprint = 6;
2791
+ optional bytes epochRootKey = 7;
2792
+ }
2793
+
2794
+ message EpochPublicData {
2795
+ optional uint64 epochNumber = 1;
2796
+ optional string userFbid = 2;
2797
+ optional bytes mailboxSigningPk = 3;
2798
+ optional bytes mailboxEncryptionPk = 4;
2799
+ optional bytes mailboxAuthPk = 5;
2800
+ optional bytes previousEpochHead = 6;
2801
+ }
2802
+
2803
+ message EpochSignatures {
2804
+ optional bytes selfSignature = 1;
2805
+ optional bytes prevSignature = 2;
2806
+ }
2807
+
2187
2808
  message EventAdditionalMetadata {
2188
2809
  optional bool isStale = 1;
2189
2810
  }
2190
2811
 
2812
+ message EventInviteAdditionalMetadata {
2813
+ optional bool isUpdated = 1;
2814
+ }
2815
+
2191
2816
  message EventResponse {
2192
2817
  optional MessageKey eventResponseMessageKey = 1;
2193
2818
  optional int64 timestampMs = 2;
@@ -2200,6 +2825,47 @@ message ExitCode {
2200
2825
  optional string text = 2;
2201
2826
  }
2202
2827
 
2828
+ message ExtendedContentMessage {
2829
+ optional SubProtocol associatedMessage = 1;
2830
+ optional EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE targetType = 2;
2831
+ optional string targetUsername = 3;
2832
+ optional string targetId = 4;
2833
+ optional int64 targetExpiringAtSec = 5;
2834
+ optional EXTENDED_CONTENT_MESSAGE_XMA_LAYOUT_TYPE xmaLayoutType = 6;
2835
+ repeated CTA ctas = 7;
2836
+ repeated SubProtocol previews = 8;
2837
+ optional string titleText = 9;
2838
+ optional string subtitleText = 10;
2839
+ optional uint32 maxTitleNumOfLines = 11;
2840
+ optional uint32 maxSubtitleNumOfLines = 12;
2841
+ optional SubProtocol favicon = 13;
2842
+ optional SubProtocol headerImage = 14;
2843
+ optional string headerTitle = 15;
2844
+ optional EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH overlayIconGlyph = 16;
2845
+ optional string overlayTitle = 17;
2846
+ optional string overlayDescription = 18;
2847
+ optional string sentWithMessageId = 19;
2848
+ optional string messageText = 20;
2849
+ optional string headerSubtitle = 21;
2850
+ optional string xmaDataclass = 22;
2851
+ optional string contentRef = 23;
2852
+ repeated string mentionedJid = 24;
2853
+ repeated Command commands = 25;
2854
+ repeated Mention mentions = 26;
2855
+ optional EXTENDED_CONTENT_MESSAGE_XMA_DATACLASS_TYPE xmaDataclassType = 27;
2856
+ optional string signedXmaDataclassValidation = 28;
2857
+ optional string featureSharedSessionId = 29;
2858
+ message CTA {
2859
+ optional EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE buttonType = 1;
2860
+ optional string title = 2;
2861
+ optional string actionUrl = 3;
2862
+ optional string nativeUrl = 4;
2863
+ optional string ctaType = 5;
2864
+ optional string actionContentBlob = 6;
2865
+ }
2866
+
2867
+ }
2868
+
2203
2869
  message ExternalBlobReference {
2204
2870
  optional bytes mediaKey = 1;
2205
2871
  optional string directPath = 2;
@@ -2237,6 +2903,22 @@ message ForwardedAIBotMessageInfo {
2237
2903
  optional string creatorName = 3;
2238
2904
  }
2239
2905
 
2906
+ message GenerateMekInput {
2907
+ repeated bytes epochHeads = 1;
2908
+ }
2909
+
2910
+ message GenerateMekResult {
2911
+ optional MekBundle mek = 1;
2912
+ }
2913
+
2914
+ message GenerateMekRosterHashInput {
2915
+ repeated bytes epochHeads = 1;
2916
+ }
2917
+
2918
+ message GenerateMekRosterHashResult {
2919
+ optional bytes rosterHash = 1;
2920
+ }
2921
+
2240
2922
  message GlobalSettings {
2241
2923
  optional WallpaperSettings lightThemeWallpaper = 1;
2242
2924
  optional MediaVisibility mediaVisibility = 2;
@@ -2265,6 +2947,7 @@ message GroupHistory {
2265
2947
  repeated UnCountedAssociatedMessageList uncountedAssociatedMessageLists = 2;
2266
2948
  repeated WebMessageInfo commentMessages = 3;
2267
2949
  repeated WebMessageInfo outOfWindowPinnedMessages = 4;
2950
+ optional WebMessageInfo themeMessage = 5;
2268
2951
  }
2269
2952
 
2270
2953
  message GroupHistoryBundleInfo {
@@ -2290,6 +2973,7 @@ message GroupHistoryWithMessageBytes {
2290
2973
  repeated UnCountedAssociatedMessageListWithMessageBytes uncountedAssociatedMessageLists = 2;
2291
2974
  repeated WebMessageInfoWithMessageBytes commentMessages = 3;
2292
2975
  repeated WebMessageInfoWithMessageBytes outOfWindowPinnedMessages = 4;
2976
+ optional WebMessageInfoWithMessageBytes themeMessage = 5;
2293
2977
  }
2294
2978
 
2295
2979
  message GroupMention {
@@ -2348,6 +3032,7 @@ message HandshakeMessage {
2348
3032
  HANDSHAKE_PQ_MODE_UNKNOWN = 0;
2349
3033
  XXKEM = 1;
2350
3034
  XXKEM_FS = 2;
3035
+ XXKEM_EPH = 9;
2351
3036
  WA_CLASSICAL = 3;
2352
3037
  WA_PQ = 4;
2353
3038
  IKKEM = 5;
@@ -2393,6 +3078,9 @@ message HistorySync {
2393
3078
  optional bytes nctSalt = 19;
2394
3079
  repeated InlineContact inlineContacts = 20;
2395
3080
  optional bool inlineContactsProvided = 21;
3081
+ repeated StickerMetadata favoriteStickers = 22;
3082
+ optional OmittedConversationMetadata omittedConversationMetadata = 25;
3083
+ optional string omittedConversationMetadataSnapshotId = 26;
2396
3084
  enum BotAIWaitListState {
2397
3085
  IN_WAITLIST = 0;
2398
3086
  AI_AVAILABLE = 1;
@@ -2405,6 +3093,7 @@ message HistorySync {
2405
3093
  PUSH_NAME = 4;
2406
3094
  NON_BLOCKING_DATA = 5;
2407
3095
  ON_DEMAND = 6;
3096
+ RECENT_CONVERSATIONS_ON_DEMAND = 9;
2408
3097
  }
2409
3098
  }
2410
3099
 
@@ -2453,6 +3142,11 @@ message IdentityKeyPairStructure {
2453
3142
  optional bytes privateKey = 2;
2454
3143
  }
2455
3144
 
3145
+ message IdentityVerificationState {
3146
+ optional bool verified = 1;
3147
+ optional uint64 actionSeq = 2;
3148
+ }
3149
+
2456
3150
  message InThreadSurveyMetadata {
2457
3151
  optional string tessaSessionId = 1;
2458
3152
  optional string simonSessionId = 2;
@@ -2562,6 +3256,17 @@ message LIDMigrationMappingSyncPayload {
2562
3256
  optional uint64 chatDbMigrationTimestamp = 2;
2563
3257
  }
2564
3258
 
3259
+ message LabyrinthWaCommand {
3260
+ oneof commandInput {
3261
+ CreateBackupInput createBackupInput = 1;
3262
+ EncryptMessageInput encryptMessageInput = 2;
3263
+ DecryptMessageInput decryptMessageInput = 3;
3264
+ OrfThreadIdInput orfThreadIdInput = 4;
3265
+ DeriveMessageKeyInput deriveMessageKeyInput = 5;
3266
+ RotateEpochInput rotateEpochInput = 6;
3267
+ }
3268
+ }
3269
+
2565
3270
  message LegacyMessage {
2566
3271
  optional Message.EventResponseMessage eventResponseMessage = 1;
2567
3272
  optional Message.PollVoteMessage pollVote = 2;
@@ -2595,6 +3300,181 @@ message Location {
2595
3300
  enum MENTION_MENTION_TYPE {
2596
3301
  PROFILE = 0;
2597
3302
  }
3303
+ message MandrakeDecryptMekInput {
3304
+ optional bytes encryptedMek = 1;
3305
+ optional bytes recipientsHash = 4;
3306
+ optional bytes recipientEncSk = 5;
3307
+ optional uint64 mekEncryptionVersion = 6;
3308
+ optional MinosClientConfig conf = 7;
3309
+ optional MessagingMailboxPublicData recipientMmk = 8;
3310
+ optional bytes mekId = 9;
3311
+ optional MerkleMembershipProof recipientMembershipProof = 10;
3312
+ oneof senderPublicData {
3313
+ MandrakeDecryptMekInput.MmkSenderPublicData mmkSender = 2;
3314
+ MandrakeDecryptMekInput.EpochSenderPublicData epochSender = 3;
3315
+ MandrakeDecryptMekInput.PrecomputedEpochSenderPublicData precomputedEpochSender = 11;
3316
+ }
3317
+ message EpochSenderPublicData {
3318
+ optional EpochPublicData epochPublicData = 1;
3319
+ }
3320
+
3321
+ message MmkSenderPublicData {
3322
+ optional MessagingMailboxPublicData mmkPublicData = 1;
3323
+ }
3324
+
3325
+ message PrecomputedEpochSenderPublicData {
3326
+ optional bytes authPk = 1;
3327
+ optional bytes epochHead = 2;
3328
+ }
3329
+
3330
+ }
3331
+
3332
+ message MandrakeDecryptMekResult {
3333
+ oneof result {
3334
+ MandrakeDecryptMekSuccess success = 1;
3335
+ string errorMessage = 2;
3336
+ }
3337
+ }
3338
+
3339
+ message MandrakeDecryptMekSuccess {
3340
+ optional bytes mek = 1;
3341
+ }
3342
+
3343
+ message MandrakeEncryptMekInput {
3344
+ optional MandrakeMekBundle mek = 1;
3345
+ repeated MessagingMailboxPublicData recipients = 2;
3346
+ optional MinosClientConfig conf = 5;
3347
+ oneof sender {
3348
+ MandrakeEncryptMekInput.MmkSender mmkSender = 3;
3349
+ MandrakeEncryptMekInput.EpochSender epochSender = 4;
3350
+ MandrakeEncryptMekInput.DetachedDeviceSender detachedDeviceSender = 6;
3351
+ }
3352
+ message DetachedDeviceSender {
3353
+ optional DetachedDevicePublicData detachedDevicePublicData = 1;
3354
+ optional bytes authSk = 2;
3355
+ optional bytes authPk = 3;
3356
+ }
3357
+
3358
+ message EpochSender {
3359
+ optional EpochPublicData epochPublicData = 1;
3360
+ optional bytes authSk = 2;
3361
+ optional bytes authPk = 3;
3362
+ }
3363
+
3364
+ message MmkSender {
3365
+ optional MessagingMailboxPublicData mmkPublicData = 1;
3366
+ optional bytes authSk = 2;
3367
+ optional bytes authPk = 3;
3368
+ }
3369
+
3370
+ }
3371
+
3372
+ message MandrakeEncryptMekResult {
3373
+ oneof result {
3374
+ MandrakeEncryptMekSuccess success = 1;
3375
+ string errorMessage = 2;
3376
+ }
3377
+ }
3378
+
3379
+ message MandrakeEncryptMekSuccess {
3380
+ repeated MekDistributionSingleRecipient distributions = 1;
3381
+ optional bytes recipientsHash = 2;
3382
+ optional uint64 version = 3;
3383
+ message MekDistributionSingleRecipient {
3384
+ optional bytes encryptedMek = 1;
3385
+ optional MessagingMailboxPublicData toMmk = 2;
3386
+ optional MerkleMembershipProof recipientMembershipProof = 3;
3387
+ }
3388
+
3389
+ }
3390
+
3391
+ message MandrakeMekBundle {
3392
+ optional bytes key = 1;
3393
+ optional bytes mekId = 2;
3394
+ optional bytes mailboxHeadHash = 3;
3395
+ }
3396
+
3397
+ message MandrakeOpenEpochInput {
3398
+ optional string userFbid = 1;
3399
+ optional uint64 epochNumber = 2;
3400
+ optional bytes exportRootKey = 3;
3401
+ optional bytes previousExportRootKey = 4;
3402
+ optional uint64 previousEpochNumber = 5;
3403
+ optional bytes previousEpochHead = 6;
3404
+ optional MessagingMailboxPublicData previousMmk = 7;
3405
+ repeated DetachedDevicePublicData detachedDevices = 8;
3406
+ }
3407
+
3408
+ message MandrakeOpenEpochResult {
3409
+ oneof result {
3410
+ MandrakeOpenEpochSuccess success = 1;
3411
+ string errorMessage = 2;
3412
+ }
3413
+ }
3414
+
3415
+ message MandrakeOpenEpochSuccess {
3416
+ optional MinosSignedEpoch minosSignedEpoch = 1;
3417
+ optional SignedMmkDistributionFromMailbox signedMmkDistribution = 2;
3418
+ }
3419
+
3420
+ message MandrakeOpenInitialEpochInput {
3421
+ optional string userFbid = 1;
3422
+ optional uint64 epochNumber = 2;
3423
+ optional bytes exportRootKey = 3;
3424
+ repeated DetachedDevicePublicData detachedDevices = 4;
3425
+ }
3426
+
3427
+ message MandrakeOpenInitialEpochResult {
3428
+ oneof result {
3429
+ MandrakeOpenEpochSuccess success = 1;
3430
+ string errorMessage = 2;
3431
+ }
3432
+ }
3433
+
3434
+ message MandrakeValidateAndDecryptSelfMmkInput {
3435
+ optional MessagingMailboxPublicData newMmk = 1;
3436
+ optional bytes signature = 2;
3437
+ optional MessagingMailboxPublicData existingMmk = 3;
3438
+ optional bytes exportRootKey = 4;
3439
+ optional uint64 epochNumber = 5;
3440
+ optional bytes expectedEpochHead = 6;
3441
+ optional bytes encryptedMmk = 7;
3442
+ optional uint64 version = 8;
3443
+ optional MessagingMailboxPublicData latestStoredMmk = 9;
3444
+ }
3445
+
3446
+ message MandrakeValidateAndDecryptSelfMmkResult {
3447
+ oneof result {
3448
+ MandrakeValidateAndDecryptSelfMmkSuccess success = 1;
3449
+ string errorMessage = 2;
3450
+ }
3451
+ }
3452
+
3453
+ message MandrakeValidateAndDecryptSelfMmkSuccess {
3454
+ optional bytes mmkSeed = 1;
3455
+ optional bytes mailboxHeadHash = 2;
3456
+ }
3457
+
3458
+ message MandrakeValidateNewMmkFromDetachedDeviceInput {
3459
+ optional MmkFromDetachedDevice mmkFromDevice = 1;
3460
+ optional bytes signature = 2;
3461
+ optional MessagingMailboxPublicData prevMmk = 3;
3462
+ }
3463
+
3464
+ message MandrakeValidateNewMmkFromMailboxInput {
3465
+ optional MessagingMailboxPublicData newMmk = 1;
3466
+ optional bytes signature = 2;
3467
+ optional MessagingMailboxPublicData prevMmk = 3;
3468
+ optional EpochPublicData epochPublicData = 4;
3469
+ }
3470
+
3471
+ message MandrakeValidateNewMmkResult {
3472
+ oneof result {
3473
+ bool valid = 1;
3474
+ string errorMessage = 2;
3475
+ }
3476
+ }
3477
+
2598
3478
  message MediaData {
2599
3479
  optional string localPath = 1;
2600
3480
  }
@@ -2667,6 +3547,12 @@ enum MediaVisibility {
2667
3547
  OFF = 1;
2668
3548
  ON = 2;
2669
3549
  }
3550
+ message MekBundle {
3551
+ optional bytes key = 1;
3552
+ optional bytes mekId = 2;
3553
+ optional bytes rosterHash = 3;
3554
+ }
3555
+
2670
3556
  message MemberLabel {
2671
3557
  optional string label = 1;
2672
3558
  optional int64 labelTimestamp = 2;
@@ -2679,6 +3565,13 @@ message Mention {
2679
3565
  optional uint32 length = 4;
2680
3566
  }
2681
3567
 
3568
+ message MerkleMembershipProof {
3569
+ optional bytes proof = 1;
3570
+ optional bytes root = 2;
3571
+ optional uint64 leafIndex = 3;
3572
+ optional uint64 totalLeaves = 4;
3573
+ }
3574
+
2682
3575
  message Message {
2683
3576
  optional string conversation = 1;
2684
3577
  optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
@@ -2787,6 +3680,17 @@ message Message {
2787
3680
  optional SplitPaymentMessage splitPaymentMessage = 125;
2788
3681
  optional FutureProofMessage newsletterAdminProfileStatusMessage = 126;
2789
3682
  optional RootSecretDistributeMessage rootSecretDistributeMessage = 127;
3683
+ optional SplitPaymentUpdateMessage splitPaymentUpdateMessage = 128;
3684
+ optional MusicMessage musicMessage = 129;
3685
+ optional StatusLinkPreviewMetadata statusLinkPreviewMetadata = 130;
3686
+ optional FutureProofMessage botPlatformRegistrationSuccessMessage = 131;
3687
+ optional FutureProofMessage newsletterScheduledMessage = 132;
3688
+ optional FutureProofMessage acp2SettingMessage = 133;
3689
+ optional FutureProofMessage audioStickerMessage = 134;
3690
+ optional ImageMessage instantImageMessage = 135;
3691
+ optional RequestLocationMessage requestLocationMessage = 136;
3692
+ optional FutureProofMessage botGroupParticipantMessage = 137;
3693
+ optional RequestLocationUpdateMessage requestLocationUpdateMessage = 138;
2790
3694
  message AlbumMessage {
2791
3695
  optional uint32 expectedImageCount = 2;
2792
3696
  optional uint32 expectedVideoCount = 3;
@@ -2858,6 +3762,12 @@ message Message {
2858
3762
  }
2859
3763
  }
2860
3764
 
3765
+ message BotHistoryShareSyncMetadata {
3766
+ optional string botJid = 1;
3767
+ optional int64 historyShareCutoffTimestamp = 2;
3768
+ repeated Message.HistoryShareMessageEntry historyShareMessages = 3;
3769
+ }
3770
+
2861
3771
  message ButtonsMessage {
2862
3772
  optional string contentText = 6;
2863
3773
  optional string footerText = 7;
@@ -2928,6 +3838,7 @@ message Message {
2928
3838
  optional string deeplinkPayload = 9;
2929
3839
  optional MessageContextInfo messageContextInfo = 10;
2930
3840
  optional uint32 callEntryPoint = 11;
3841
+ optional string callReason = 12;
2931
3842
  }
2932
3843
 
2933
3844
  message CallLogMessage {
@@ -2967,6 +3878,11 @@ message Message {
2967
3878
  optional string id = 2;
2968
3879
  }
2969
3880
 
3881
+ message ChatAnimatedWallpaper {
3882
+ optional string animatedWallpaperId = 1;
3883
+ optional float dimLevel = 2;
3884
+ }
3885
+
2970
3886
  message ChatCustomImageWallpaper {
2971
3887
  optional string directPath = 1;
2972
3888
  optional bytes mediaKey = 2;
@@ -2980,9 +3896,11 @@ message Message {
2980
3896
  }
2981
3897
 
2982
3898
  message ChatSolidColorWallpaper {
2983
- optional string colorLight = 1;
2984
- optional string colorDark = 2;
3899
+ optional fixed32 backgroundLightArgb = 1;
3900
+ optional fixed32 backgroundDarkArgb = 2;
2985
3901
  optional bool isDoodleEnabled = 3;
3902
+ optional fixed32 doodleLightArgb = 4;
3903
+ optional fixed32 doodleDarkArgb = 5;
2986
3904
  }
2987
3905
 
2988
3906
  message ChatStockImageWallpaper {
@@ -2999,6 +3917,7 @@ message Message {
2999
3917
  Message.ChatSolidColorWallpaper solidColor = 11;
3000
3918
  Message.ChatStockImageWallpaper stockImage = 12;
3001
3919
  Message.ChatCustomImageWallpaper customImage = 13;
3920
+ Message.ChatAnimatedWallpaper animatedWallpaper = 14;
3002
3921
  }
3003
3922
  }
3004
3923
 
@@ -3022,6 +3941,11 @@ message Message {
3022
3941
 
3023
3942
  }
3024
3943
 
3944
+ message CoexConnectionDescriptor {
3945
+ optional int64 providerId = 1;
3946
+ optional string product = 2;
3947
+ }
3948
+
3025
3949
  message CommentMessage {
3026
3950
  optional Message message = 1;
3027
3951
  optional MessageKey targetMessageKey = 2;
@@ -3113,6 +4037,19 @@ message Message {
3113
4037
  optional bool isCanceled = 7;
3114
4038
  optional int64 endTime = 8;
3115
4039
  optional string callLink = 9;
4040
+ optional string coverImageHandle = 10;
4041
+ optional string locationName = 11;
4042
+ optional int64 lastUpdatedTsUsec = 12;
4043
+ optional EventStatus status = 13;
4044
+ enum EventStatus {
4045
+ UNKNOWN = 0;
4046
+ ACTIVE = 1;
4047
+ CANCELED = 2;
4048
+ SUSPENDED = 3;
4049
+ DELETED = 4;
4050
+ LEFT_EVENT = 5;
4051
+ REMOVED_FROM_INVITE_LIST = 6;
4052
+ }
3116
4053
  }
3117
4054
 
3118
4055
  message EventMessage {
@@ -3168,7 +4105,7 @@ message Message {
3168
4105
  optional bool viewOnce = 30;
3169
4106
  optional uint32 videoHeight = 31;
3170
4107
  optional uint32 videoWidth = 32;
3171
- optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
4108
+ optional Message.MMSThumbnailMetadata faviconMmsMetadata = 33;
3172
4109
  optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
3173
4110
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
3174
4111
  repeated Message.VideoEndCard endCardTiles = 36;
@@ -3210,6 +4147,7 @@ message Message {
3210
4147
  optional string requestId = 1;
3211
4148
  optional string businessProduct = 2;
3212
4149
  optional bytes opaqueClientData = 3;
4150
+ optional Message.CoexConnectionDescriptor connection = 4;
3213
4151
  }
3214
4152
 
3215
4153
  message FutureProofMessage {
@@ -3290,6 +4228,11 @@ message Message {
3290
4228
 
3291
4229
  }
3292
4230
 
4231
+ message HistoryShareMessageEntry {
4232
+ optional string stanzaId = 1;
4233
+ optional bytes messageSecretProof = 2;
4234
+ }
4235
+
3293
4236
  message HistorySyncMessageAccessStatus {
3294
4237
  optional bool completeAccessGranted = 1;
3295
4238
  }
@@ -3322,6 +4265,7 @@ message Message {
3322
4265
  ON_DEMAND = 6;
3323
4266
  NO_HISTORY = 7;
3324
4267
  MESSAGE_ACCESS_STATUS = 8;
4268
+ RECENT_CONVERSATIONS_ON_DEMAND = 9;
3325
4269
  }
3326
4270
  message ImageMessage {
3327
4271
  optional string url = 1;
@@ -3629,6 +4573,13 @@ message Message {
3629
4573
  optional uint32 thumbnailWidth = 7;
3630
4574
  }
3631
4575
 
4576
+ message MarkAsVerifiedAction {
4577
+ optional string userJidString = 1;
4578
+ optional bool verified = 2;
4579
+ optional bytes verifiedIdentityKey = 3;
4580
+ optional uint64 actionSeq = 4;
4581
+ }
4582
+
3632
4583
  message MessageHistoryBundle {
3633
4584
  optional string mimetype = 1;
3634
4585
  optional bytes fileSha256 = 2;
@@ -3646,11 +4597,46 @@ message Message {
3646
4597
  optional int64 messageCount = 3;
3647
4598
  repeated string nonHistoryReceivers = 4;
3648
4599
  optional int64 oldestMessageTimestampInBundle = 5;
4600
+ optional bool includesChatTheme = 6;
3649
4601
  }
3650
4602
 
3651
4603
  message MessageHistoryNotice {
3652
4604
  optional ContextInfo contextInfo = 1;
3653
4605
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
4606
+ optional Message.BotHistoryShareSyncMetadata botHistoryShareSyncMetadata = 3;
4607
+ }
4608
+
4609
+ message MusicMessage {
4610
+ optional EmbeddedMusic embeddedMusic = 1;
4611
+ optional string songUri = 2;
4612
+ optional string artworkUri = 3;
4613
+ optional int32 style = 4;
4614
+ optional ContextInfo contextInfo = 5;
4615
+ optional Lyrics lyrics = 6;
4616
+ message Lyrics {
4617
+ repeated Line lines = 1;
4618
+ message Line {
4619
+ optional int64 startTimeInMs = 1;
4620
+ optional int64 endTimeInMs = 2;
4621
+ optional string text = 3;
4622
+ repeated WordOffset wordOffsets = 4;
4623
+ message WordOffset {
4624
+ optional int32 startIndex = 1;
4625
+ optional int32 endIndex = 2;
4626
+ optional int64 startOffsetMs = 3;
4627
+ optional int64 endOffsetMs = 4;
4628
+ }
4629
+
4630
+ }
4631
+
4632
+ }
4633
+
4634
+ enum MusicMessageStyle {
4635
+ UNKNOWN = 0;
4636
+ VINYL = 1;
4637
+ MESSAGE_BUBBLE = 2;
4638
+ LYRICS = 3;
4639
+ }
3654
4640
  }
3655
4641
 
3656
4642
  message NewsletterAdminInviteMessage {
@@ -3699,6 +4685,7 @@ message Message {
3699
4685
  message PaymentExtendedMetadata {
3700
4686
  optional uint32 type = 1;
3701
4687
  optional string platform = 2;
4688
+ optional string messageParamsJson = 3;
3702
4689
  }
3703
4690
 
3704
4691
  message PaymentInviteMessage {
@@ -3716,6 +4703,7 @@ message Message {
3716
4703
  FBPAY = 1;
3717
4704
  NOVI = 2;
3718
4705
  UPI = 3;
4706
+ PIX = 4;
3719
4707
  }
3720
4708
  }
3721
4709
 
@@ -3781,6 +4769,7 @@ message Message {
3781
4769
  optional CompanionCanonicalUserNonceFetchRequest companionCanonicalUserNonceFetchRequest = 10;
3782
4770
  optional BizBroadcastInsightsContactListRequest bizBroadcastInsightsContactListRequest = 11;
3783
4771
  optional BizBroadcastInsightsRefreshRequest bizBroadcastInsightsRefreshRequest = 12;
4772
+ optional RecentConversationsOnDemandRequest recentConversationsOnDemandRequest = 13;
3784
4773
  message BizBroadcastInsightsContactListRequest {
3785
4774
  optional string campaignId = 1;
3786
4775
  }
@@ -3826,12 +4815,22 @@ message Message {
3826
4815
  optional int64 oldestMsgTimestampMs = 5;
3827
4816
  optional string accountLid = 6;
3828
4817
  optional bool supportInlineResponse = 7;
4818
+ optional Mode mode = 8;
4819
+ enum Mode {
4820
+ MODE_UNSPECIFIED = 0;
4821
+ INITIAL_REVERSE_HISTORY = 1;
4822
+ }
3829
4823
  }
3830
4824
 
3831
4825
  message PlaceholderMessageResendRequest {
3832
4826
  optional MessageKey messageKey = 1;
3833
4827
  }
3834
4828
 
4829
+ message RecentConversationsOnDemandRequest {
4830
+ optional uint32 conversationCount = 1;
4831
+ optional uint32 messagesPerConversation = 2;
4832
+ }
4833
+
3835
4834
  message RequestStickerReupload {
3836
4835
  optional string fileSha256 = 1;
3837
4836
  }
@@ -3865,6 +4864,7 @@ message Message {
3865
4864
  optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
3866
4865
  optional FlowResponsesCsvBundle flowResponsesCsvBundle = 11;
3867
4866
  optional BizBroadcastInsightsContactListResponse bizBroadcastInsightsContactListResponse = 12;
4867
+ optional ContactRefreshResponse contactRefreshResponse = 13;
3868
4868
  message BizBroadcastInsightsContactListResponse {
3869
4869
  optional string campaignId = 1;
3870
4870
  optional int64 timestampMs = 2;
@@ -3886,6 +4886,13 @@ message Message {
3886
4886
  optional string nonce = 1;
3887
4887
  }
3888
4888
 
4889
+ message ContactRefreshResponse {
4890
+ repeated string coveredRequestIds = 1;
4891
+ optional uint64 collectionVersion = 2;
4892
+ optional int64 primaryDurationMs = 3;
4893
+ optional uint32 uniqueContactCount = 4;
4894
+ }
4895
+
3889
4896
  message FlowResponsesCsvBundle {
3890
4897
  optional string flowId = 1;
3891
4898
  optional string galaxyFlowDownloadRequestId = 2;
@@ -3992,6 +4999,8 @@ message Message {
3992
4999
  GALAXY_FLOW_ACTION = 11;
3993
5000
  BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO = 12;
3994
5001
  BUSINESS_BROADCAST_INSIGHTS_REFRESH = 13;
5002
+ CONTACT_REFRESH_REQUEST = 14;
5003
+ RECENT_CONVERSATIONS_ON_DEMAND_REQUEST = 15;
3995
5004
  }
3996
5005
  message PinInChatMessage {
3997
5006
  optional MessageKey key = 1;
@@ -4137,6 +5146,12 @@ message Message {
4137
5146
  optional uint32 afterReadDuration = 29;
4138
5147
  optional Message.ChatThemeSetting chatThemeSetting = 30;
4139
5148
  optional AIMetadataOperation aiMetadataOperation = 31;
5149
+ optional Message.MarkAsVerifiedAction markAsVerifiedAction = 32;
5150
+ optional CoexStateSync coexStateSync = 33;
5151
+ optional ACP2Setting acp2Setting = 35;
5152
+ optional Message.SharedDeviceContactHashKeyShare sharedDeviceContactHashKeyShare = 36;
5153
+ optional Message.SharedDeviceContactHashKeyRequest sharedDeviceContactHashKeyRequest = 37;
5154
+ repeated string additionalPromptIds = 38;
4140
5155
  enum Type {
4141
5156
  REVOKE = 0;
4142
5157
  EPHEMERAL_SETTING = 3;
@@ -4168,6 +5183,11 @@ message Message {
4168
5183
  MESSAGE_UNSCHEDULE = 32;
4169
5184
  CHAT_THEME_SETTING = 34;
4170
5185
  AI_METADATA_OPERATION = 35;
5186
+ MARK_AS_VERIFIED_ACTION = 36;
5187
+ COEX_STATE_SYNC = 37;
5188
+ ACP2_SETTING = 39;
5189
+ SHARED_DEVICE_CONTACT_HASH_KEY_SHARE = 40;
5190
+ SHARED_DEVICE_CONTACT_HASH_KEY_REQUEST = 41;
4171
5191
  }
4172
5192
  }
4173
5193
 
@@ -4183,6 +5203,20 @@ message Message {
4183
5203
  optional int64 senderTimestampMs = 4;
4184
5204
  }
4185
5205
 
5206
+ message RequestLocationMessage {
5207
+ optional ContextInfo contextInfo = 1;
5208
+ }
5209
+
5210
+ message RequestLocationUpdateMessage {
5211
+ optional MessageKey key = 1;
5212
+ optional UpdateType updateType = 2;
5213
+ optional int64 senderTimestampMs = 3;
5214
+ enum UpdateType {
5215
+ UNKNOWN = 0;
5216
+ CANCEL = 1;
5217
+ }
5218
+ }
5219
+
4186
5220
  message RequestPaymentMessage {
4187
5221
  optional Message noteMessage = 4;
4188
5222
  optional string currencyCodeIso4217 = 1;
@@ -4263,6 +5297,25 @@ message Message {
4263
5297
  optional bytes axolotlSenderKeyDistributionMessage = 2;
4264
5298
  }
4265
5299
 
5300
+ message SharedDeviceContactHashKey {
5301
+ optional uint32 epoch = 1;
5302
+ optional Kind kind = 2;
5303
+ optional bytes keyData = 3;
5304
+ enum Kind {
5305
+ UNKNOWN = 0;
5306
+ LID = 1;
5307
+ PHONE_NUMBER = 2;
5308
+ }
5309
+ }
5310
+
5311
+ message SharedDeviceContactHashKeyRequest {
5312
+ optional uint32 knownEpoch = 1;
5313
+ }
5314
+
5315
+ message SharedDeviceContactHashKeyShare {
5316
+ repeated Message.SharedDeviceContactHashKey keys = 1;
5317
+ }
5318
+
4266
5319
  message SplitPaymentMessage {
4267
5320
  optional string splitId = 1;
4268
5321
  optional Money totalAmount = 2;
@@ -4283,6 +5336,21 @@ message Message {
4283
5336
  }
4284
5337
  }
4285
5338
 
5339
+ message SplitPaymentUpdateMessage {
5340
+ optional string splitId = 1;
5341
+ optional string participantJid = 2;
5342
+ }
5343
+
5344
+ message StatusLinkPreviewMetadata {
5345
+ optional Style style = 1;
5346
+ enum Style {
5347
+ AUTO = 0;
5348
+ COMPACT = 1;
5349
+ FULL = 2;
5350
+ IMMERSIVE = 3;
5351
+ }
5352
+ }
5353
+
4286
5354
  message StatusNotificationMessage {
4287
5355
  optional MessageKey responseMessageKey = 1;
4288
5356
  optional MessageKey originalMessageKey = 2;
@@ -4292,6 +5360,7 @@ message Message {
4292
5360
  STATUS_ADD_YOURS = 1;
4293
5361
  STATUS_RESHARE = 2;
4294
5362
  STATUS_QUESTION_ANSWER_RESHARE = 3;
5363
+ STATUS_GROUP_STATUS_REPLY = 4;
4295
5364
  }
4296
5365
  }
4297
5366
 
@@ -4343,6 +5412,9 @@ message Message {
4343
5412
  optional string accessibilityLabel = 22;
4344
5413
  optional int32 premium = 24;
4345
5414
  optional string emojis = 25;
5415
+ oneof audio {
5416
+ Message.AudioMessage audioMessage = 26;
5417
+ }
4346
5418
  }
4347
5419
 
4348
5420
  message StickerPackMessage {
@@ -4480,6 +5552,8 @@ message Message {
4480
5552
  optional uint64 motionPhotoPresentationOffsetMs = 29;
4481
5553
  optional string metadataUrl = 30;
4482
5554
  optional VideoSourceType videoSourceType = 31;
5555
+ optional string dashManifestUrl = 33;
5556
+ optional int64 smartThumbnailTs = 34;
4483
5557
  enum Attribution {
4484
5558
  NONE = 0;
4485
5559
  GIPHY = 1;
@@ -4509,6 +5583,7 @@ message MessageAddOn {
4509
5583
  EVENT_RESPONSE = 2;
4510
5584
  POLL_UPDATE = 3;
4511
5585
  PIN_IN_CHAT = 4;
5586
+ REQUEST_LOCATION_UPDATE = 5;
4512
5587
  }
4513
5588
  }
4514
5589
 
@@ -4543,6 +5618,8 @@ message MessageAssociation {
4543
5618
  STATUS_REACTION = 18;
4544
5619
  HEVC_VIDEO_DUAL_UPLOAD = 19;
4545
5620
  POLL_ADD_OPTION = 20;
5621
+ AV1_VIDEO_DUAL_UPLOAD = 21;
5622
+ STREAMED_HD_VIDEO_DUAL_UPLOAD = 22;
4546
5623
  }
4547
5624
  }
4548
5625
 
@@ -4564,6 +5641,11 @@ message MessageContextInfo {
4564
5641
  repeated ThreadID threadId = 15;
4565
5642
  optional WebLinkRenderConfig weblinkRenderConfig = 16;
4566
5643
  optional bytes teeBotMetadata = 17;
5644
+ optional NonE2EEAttestation accountEncryptionAttestation = 18;
5645
+ optional bytes associatedPrimaryIdentityKey = 19;
5646
+ optional string teeContextAnchorMessageId = 20;
5647
+ optional ACP2Setting acp2Setting = 21;
5648
+ optional bool lightE2Ee = 22;
4567
5649
  enum MessageAddonExpiryType {
4568
5650
  STATIC = 1;
4569
5651
  DEPENDENT_ON_PARENT = 2;
@@ -4590,6 +5672,188 @@ message MessageText {
4590
5672
  repeated Mention mentions = 4;
4591
5673
  }
4592
5674
 
5675
+ message MessagingMailboxPublicData {
5676
+ optional bytes epochHead = 1;
5677
+ optional bytes deviceRosterHash = 2;
5678
+ optional uint64 sequenceNumber = 3;
5679
+ optional bytes sigPk = 4;
5680
+ optional bytes encPk = 5;
5681
+ optional bytes authPk = 6;
5682
+ }
5683
+
5684
+ message MinosClientConfig {
5685
+ optional int32 preferredMessageEncryptionVersion = 1;
5686
+ optional int32 preferredMekEncryptionVersion = 2;
5687
+ }
5688
+
5689
+ message MinosCommand {
5690
+ oneof commandInput {
5691
+ MinosEncryptAndSignMessageInput encryptAndSignMessage = 1;
5692
+ MinosDecryptAndVerifyMessageInput decryptAndVerifyMessage = 2;
5693
+ GenerateMekInput generateMek = 3;
5694
+ GenerateMekRosterHashInput generateMekRosterHash = 4;
5695
+ EncryptMekForDistributionInput encryptMekForDistribution = 5;
5696
+ DecryptMekForDistributionInput decryptMekForDistribution = 6;
5697
+ EncryptMeksForDistributionFromTransportSenderInput encryptMeksForDistributionFromTransportSender = 7;
5698
+ DecryptMekForDistributionFromTransportSenderInput decryptMekForDistributionFromTransportSender = 8;
5699
+ WrapTransportSigningPublicKeyInput wrapTransportSigningPublicKey = 9;
5700
+ WrapTransportSigningSecretKeyInput wrapTransportSigningSecretKey = 10;
5701
+ DeriveMailboxSigningKeypairInput deriveMailboxSigningKeypair = 11;
5702
+ DeriveMailboxEncryptionKeypairInput deriveMailboxEncryptionKeypair = 12;
5703
+ DeriveMailboxAuthKeypairInput deriveMailboxAuthKeypair = 13;
5704
+ DeriveAttachmentAccessTokenSecretInput deriveAttachmentAccessTokenSecret = 14;
5705
+ DeriveAttachmentPrimaryKeySecretInput deriveAttachmentPrimaryKeySecret = 15;
5706
+ MinosOpenInitialEpochInput minosOpenInitialEpoch = 16;
5707
+ MinosOpenEpochInput minosOpenEpoch = 17;
5708
+ MinosValidateEpochInput minosValidateEpoch = 18;
5709
+ MinosVerifySingleEpochInput minosVerifySingleEpoch = 19;
5710
+ MinosThreadIdFromOneToOneThreadInput minosThreadIdFromOneToOneThread = 20;
5711
+ MinosThreadIdFromActThreadIdInput minosThreadIdFromActThreadId = 21;
5712
+ MandrakeOpenEpochInput mandrakeOpenEpoch = 22;
5713
+ MandrakeEncryptMekInput mandrakeEncryptMek = 23;
5714
+ MandrakeDecryptMekInput mandrakeDecryptMek = 24;
5715
+ MandrakeOpenInitialEpochInput mandrakeOpenInitialEpoch = 25;
5716
+ MandrakeValidateNewMmkFromMailboxInput mandrakeValidateNewMmkFromMailbox = 27;
5717
+ MandrakeValidateNewMmkFromDetachedDeviceInput mandrakeValidateNewMmkFromDetachedDevice = 28;
5718
+ DeriveMessagingMailboxKeypairsInput deriveMessagingMailboxKeypairs = 29;
5719
+ DecryptSelfMmkDistributionInput decryptSelfMmkDistribution = 30;
5720
+ MandrakeValidateAndDecryptSelfMmkInput mandrakeValidateAndDecryptSelfMmk = 31;
5721
+ }
5722
+ }
5723
+
5724
+ message MinosDecryptAndVerifyMessageInput {
5725
+ optional bytes transportSigningPk = 1;
5726
+ optional bytes mek = 2;
5727
+ optional bytes encryptedMessageCiphertext = 3;
5728
+ optional bytes encryptedMessageSignature = 4;
5729
+ optional MinosMessageMetadata metadata = 5;
5730
+ optional int32 messageEncryptionVersion = 6;
5731
+ optional MinosClientConfig conf = 7;
5732
+ }
5733
+
5734
+ message MinosDecryptAndVerifyMessageResult {
5735
+ oneof result {
5736
+ MinosDecryptAndVerifyMessageSuccess success = 1;
5737
+ string errorMessage = 2;
5738
+ }
5739
+ }
5740
+
5741
+ message MinosDecryptAndVerifyMessageSuccess {
5742
+ optional bytes plaintext = 1;
5743
+ }
5744
+
5745
+ message MinosEncryptAndSignMessageInput {
5746
+ optional bytes transportSigningSk = 1;
5747
+ optional bytes mek = 2;
5748
+ optional bytes plaintext = 3;
5749
+ optional MinosMessageMetadata metadata = 4;
5750
+ optional bytes transportSigningPk = 5;
5751
+ optional MinosClientConfig conf = 6;
5752
+ }
5753
+
5754
+ message MinosEncryptAndSignMessageResult {
5755
+ optional bytes ciphertext = 1;
5756
+ optional bytes signature = 2;
5757
+ optional int32 version = 3;
5758
+ }
5759
+
5760
+ message MinosMessageMetadata {
5761
+ optional bytes mekId = 1;
5762
+ optional uint64 timestamp = 2;
5763
+ optional string messageId = 3;
5764
+ optional bytes threadId = 4;
5765
+ }
5766
+
5767
+ message MinosOpenEpochInput {
5768
+ optional string userFbid = 1;
5769
+ optional uint64 epochNumber = 2;
5770
+ optional bytes exportRootKey = 3;
5771
+ optional bytes previousExportRootKey = 4;
5772
+ optional uint64 previousEpochNumber = 5;
5773
+ optional bytes previousEpochHead = 6;
5774
+ }
5775
+
5776
+ message MinosOpenEpochResult {
5777
+ optional MinosSignedEpoch minosSignedEpoch = 1;
5778
+ }
5779
+
5780
+ message MinosOpenInitialEpochInput {
5781
+ optional string userFbid = 1;
5782
+ optional uint64 epochNumber = 2;
5783
+ optional bytes exportRootKey = 3;
5784
+ }
5785
+
5786
+ message MinosOpenInitialEpochResult {
5787
+ optional MinosSignedEpoch minosSignedEpoch = 1;
5788
+ }
5789
+
5790
+ message MinosSignedEpoch {
5791
+ optional EpochPublicData epochPublicData = 1;
5792
+ optional EpochSignatures signatures = 2;
5793
+ optional bytes epochHead = 3;
5794
+ }
5795
+
5796
+ message MinosThreadIdFromActThreadIdInput {
5797
+ optional string actThreadId = 1;
5798
+ }
5799
+
5800
+ message MinosThreadIdFromActThreadIdResult {
5801
+ optional bytes threadId = 1;
5802
+ }
5803
+
5804
+ message MinosThreadIdFromOneToOneThreadInput {
5805
+ optional string actThreadId = 1;
5806
+ optional string selfFbid = 2;
5807
+ }
5808
+
5809
+ message MinosThreadIdFromOneToOneThreadResult {
5810
+ optional bytes threadId = 1;
5811
+ }
5812
+
5813
+ message MinosValidateEpochInput {
5814
+ optional EpochPublicData epochPublicData = 1;
5815
+ optional EpochPublicData previousEpochPublicData = 2;
5816
+ optional EpochSignatures signatures = 3;
5817
+ }
5818
+
5819
+ message MinosValidateEpochResult {
5820
+ oneof result {
5821
+ bool valid = 1;
5822
+ string errorMessage = 2;
5823
+ }
5824
+ }
5825
+
5826
+ message MinosVerifySingleEpochInput {
5827
+ optional EpochPublicData epochPublicData = 1;
5828
+ optional bytes signature = 2;
5829
+ }
5830
+
5831
+ message MinosVerifySingleEpochResult {
5832
+ optional bool valid = 1;
5833
+ }
5834
+
5835
+ message MmkDistribution {
5836
+ repeated MmkDistributionToDetachedDevice toDetachedDevices = 1;
5837
+ optional MmkDistributionToMailbox toMailbox = 2;
5838
+ optional uint64 version = 3;
5839
+ }
5840
+
5841
+ message MmkDistributionToDetachedDevice {
5842
+ optional bytes encryptedMmk = 1;
5843
+ optional bytes recipDeviceHash = 2;
5844
+ }
5845
+
5846
+ message MmkDistributionToMailbox {
5847
+ optional bytes encryptedMmk = 1;
5848
+ optional bytes recipMailboxHeadHash = 2;
5849
+ }
5850
+
5851
+ message MmkFromDetachedDevice {
5852
+ optional MessagingMailboxPublicData mmk = 1;
5853
+ optional DetachedDevicePublicData fromDetachedDevice = 2;
5854
+ optional MerkleMembershipProof membershipProof = 3;
5855
+ }
5856
+
4593
5857
  message Money {
4594
5858
  optional int64 value = 1;
4595
5859
  optional uint32 offset = 2;
@@ -4652,6 +5916,10 @@ message MsgOpaqueData {
4652
5916
  optional bool sharableEventInviteIsCanceled = 58;
4653
5917
  optional bytes sharableEventInviteJpegThumbnail = 59;
4654
5918
  optional string sharableEventInviteCallLink = 60;
5919
+ optional string mediaPngThumbnail = 61;
5920
+ optional string qrUrl = 62;
5921
+ optional MusicData musicData = 63;
5922
+ optional string pollAddedOptionName = 64;
4655
5923
  message EventLocation {
4656
5924
  optional double degreesLatitude = 1;
4657
5925
  optional double degreesLongitude = 2;
@@ -4661,6 +5929,43 @@ message MsgOpaqueData {
4661
5929
  optional bytes jpegThumbnail = 6;
4662
5930
  }
4663
5931
 
5932
+ message MusicData {
5933
+ optional string musicContentMediaId = 1;
5934
+ optional string songId = 2;
5935
+ optional string author = 3;
5936
+ optional string title = 4;
5937
+ optional string songUri = 5;
5938
+ optional string artworkUri = 6;
5939
+ optional int32 style = 7;
5940
+ optional int32 songStartTimeMs = 8;
5941
+ optional int32 clipDurationMs = 9;
5942
+ optional bool isExplicit = 10;
5943
+ optional bytes countryBlocklist = 11;
5944
+ optional string artistAttribution = 12;
5945
+ optional string artworkDirectPath = 13;
5946
+ optional bytes artworkSha256 = 14;
5947
+ optional bytes artworkEncSha256 = 15;
5948
+ optional bytes artworkMediaKey = 16;
5949
+ optional int64 consumptionCheckedAtS = 17;
5950
+ optional bool isAvailableForConsumption = 18;
5951
+ repeated LyricsLine lyrics = 19;
5952
+ optional int64 lyricsConfirmedAtS = 20;
5953
+ message LyricsLine {
5954
+ optional int32 startTimeMs = 1;
5955
+ optional int32 endTimeMs = 2;
5956
+ optional string text = 3;
5957
+ repeated WordOffset wordOffsets = 4;
5958
+ message WordOffset {
5959
+ optional int32 startIndex = 1;
5960
+ optional int32 endIndex = 2;
5961
+ optional int32 startOffsetMs = 3;
5962
+ optional int32 endOffsetMs = 4;
5963
+ }
5964
+
5965
+ }
5966
+
5967
+ }
5968
+
4664
5969
  enum PollContentType {
4665
5970
  UNKNOWN = 0;
4666
5971
  TEXT = 1;
@@ -4669,6 +5974,9 @@ message MsgOpaqueData {
4669
5974
  message PollOption {
4670
5975
  optional string name = 1;
4671
5976
  optional string hash = 2;
5977
+ optional string addOptionMsgKey = 3;
5978
+ optional uint32 localId = 4;
5979
+ optional uint32 addOptionMsgT = 5;
4672
5980
  }
4673
5981
 
4674
5982
  enum PollType {
@@ -4773,6 +6081,20 @@ enum MutationProps {
4773
6081
  THREAD_PIN_ACTION = 85;
4774
6082
  AUTO_ORGANIZE_BUSINESS_CHAT_SETTING = 86;
4775
6083
  BIZ_AI_SETTINGS_NUDGE_ACTION = 87;
6084
+ COEX_V2_VERSION_ACTION = 88;
6085
+ WASA_ROOT_SECRET_ACTION = 89;
6086
+ BUBBLE_LOCK_MESSAGE_ACTION = 90;
6087
+ LABEL_SUBLIST_ACTION = 91;
6088
+ DEVICE_CAPABILITIES_V2 = 92;
6089
+ CTWA_MESSAGE_RECEIVED_ACTION = 93;
6090
+ SHARED_DEVICE_ALLOWLIST_ACTION = 94;
6091
+ CONTACT_MANAGER_METADATA_ACTION = 95;
6092
+ BUSINESS_FOLDER_ACTIVATION_ACTION = 96;
6093
+ GROUP_HISTORY_TOGGLE_ACTION = 97;
6094
+ BB_PRO_PENDING_CUSTOMER_BASE_ACTION = 98;
6095
+ COMMUNITY_NESTING_STATE_ACTION = 99;
6096
+ SHARED_DEVICE_SECRET_ACTION = 100;
6097
+ HATCH_CVM_SECRET_ACTION = 101;
4776
6098
  SHARE_OWN_PN = 10001;
4777
6099
  BUSINESS_BROADCAST_ACTION = 10002;
4778
6100
  AI_THREAD_DELETE_ACTION = 10003;
@@ -4790,6 +6112,15 @@ message NoiseCertificate {
4790
6112
 
4791
6113
  }
4792
6114
 
6115
+ message NonE2EEAttestation {
6116
+ optional AccountType accountType = 1;
6117
+ enum AccountType {
6118
+ E2EE = 0;
6119
+ HYBRID_E2EE = 1;
6120
+ NON_E2EE = 2;
6121
+ }
6122
+ }
6123
+
4793
6124
  message NotificationMessageInfo {
4794
6125
  optional MessageKey key = 1;
4795
6126
  optional Message message = 2;
@@ -4806,6 +6137,25 @@ message NotificationSettings {
4806
6137
  optional string callVibrate = 6;
4807
6138
  }
4808
6139
 
6140
+ message OmittedConversationMetadata {
6141
+ optional string snapshotId = 1;
6142
+ optional uint64 snapshotTimestampMs = 2;
6143
+ optional uint32 batchIndex = 3;
6144
+ optional uint32 batchCount = 4;
6145
+ optional bool complete = 5;
6146
+ repeated Conversation conversations = 6;
6147
+ }
6148
+
6149
+ message OrfThreadIdInput {
6150
+ optional bytes orfClientState = 1;
6151
+ optional string threadId = 2;
6152
+ }
6153
+
6154
+ message OrfThreadIdOutput {
6155
+ optional bytes orfThreadId = 1;
6156
+ optional string error = 2;
6157
+ }
6158
+
4809
6159
  message PairingRequest {
4810
6160
  optional bytes companionPublicKey = 1;
4811
6161
  optional bytes companionIdentityKey = 2;
@@ -4982,6 +6332,7 @@ message Point {
4982
6332
  message PollAdditionalMetadata {
4983
6333
  optional bool pollInvalidated = 1;
4984
6334
  repeated PollNameHashHistoryEntry pollNameHashHistory = 2;
6335
+ repeated Message.PollCreationMessage.Option originalOptions = 3;
4985
6336
  message PollNameHashHistoryEntry {
4986
6337
  optional string editStanzaId = 1;
4987
6338
  optional bytes pollNameHash = 2;
@@ -5016,6 +6367,8 @@ message PreKeySignalMessage {
5016
6367
  optional bytes baseKey = 2;
5017
6368
  optional bytes identityKey = 3;
5018
6369
  optional bytes message = 4;
6370
+ optional uint32 kyberPreKeyId = 7;
6371
+ optional bytes kyberCiphertext = 8;
5019
6372
  }
5020
6373
 
5021
6374
  message PremiumMessageInfo {
@@ -5126,6 +6479,38 @@ message Reportable {
5126
6479
 
5127
6480
  message ReportingTokenInfo {
5128
6481
  optional bytes reportingTag = 1;
6482
+ optional uint64 reportingTagTimestamp = 2;
6483
+ }
6484
+
6485
+ message RotateEpochInput {
6486
+ optional bytes currentEpochRootKey = 1;
6487
+ optional bytes currentEpochAnonId = 2;
6488
+ optional uint64 currentEpochFbid = 3;
6489
+ optional bytes epochStoragePrivateKey = 4;
6490
+ repeated RotateEpochMemberInput members = 5;
6491
+ }
6492
+
6493
+ message RotateEpochMemberEdge {
6494
+ optional uint64 deviceId = 1;
6495
+ optional bytes encryptedEpochKey = 2;
6496
+ optional bytes deviceEpochHmac = 3;
6497
+ }
6498
+
6499
+ message RotateEpochMemberInput {
6500
+ optional uint64 deviceId = 1;
6501
+ optional bytes epochStoragePublicKey = 2;
6502
+ optional bytes devicePublicKey = 3;
6503
+ }
6504
+
6505
+ message RotateEpochOutput {
6506
+ optional bytes newEpochRootKey = 1;
6507
+ optional uint64 newEpochAnonId = 2;
6508
+ optional uint64 newEpochFbid = 8;
6509
+ optional bytes epochAnonId = 3;
6510
+ optional BackwardEdge backwardEdge = 4;
6511
+ repeated RotateEpochMemberEdge memberEdges = 5;
6512
+ optional bytes epochRootKeyFingerprint = 6;
6513
+ optional string error = 7;
5129
6514
  }
5130
6515
 
5131
6516
  message RoutingInfo {
@@ -5233,6 +6618,8 @@ message SessionStructure {
5233
6618
  optional uint32 preKeyId = 1;
5234
6619
  optional int32 signedPreKeyId = 3;
5235
6620
  optional bytes baseKey = 2;
6621
+ optional uint32 kyberPreKeyId = 4;
6622
+ optional bytes kyberCiphertext = 5;
5236
6623
  }
5237
6624
 
5238
6625
  }
@@ -5254,6 +6641,12 @@ message SignalMessage {
5254
6641
  optional bytes ciphertext = 4;
5255
6642
  }
5256
6643
 
6644
+ message SignedMmkDistributionFromMailbox {
6645
+ optional MmkDistribution mmkDistribution = 1;
6646
+ optional bytes signature = 2;
6647
+ optional MessagingMailboxPublicData fromMailbox = 3;
6648
+ }
6649
+
5257
6650
  message SignedPreKeyRecordStructure {
5258
6651
  optional uint32 id = 1;
5259
6652
  optional bytes publicKey = 2;
@@ -5300,6 +6693,7 @@ message StatusAttribution {
5300
6693
  GOOGLE_PHOTOS = 10;
5301
6694
  SOUNDCLOUD = 11;
5302
6695
  SHAZAM = 12;
6696
+ PICSART = 13;
5303
6697
  }
5304
6698
  }
5305
6699
 
@@ -5358,6 +6752,7 @@ message StatusAttribution {
5358
6752
  NEWSLETTER_STATUS = 9;
5359
6753
  STATUS_CLOSE_SHARING = 10;
5360
6754
  PAID_PARTNERSHIP = 11;
6755
+ USERNAME_STATUS = 12;
5361
6756
  }
5362
6757
  }
5363
6758
 
@@ -5478,9 +6873,23 @@ message SyncActionValue {
5478
6873
  optional ThreadPinAction threadPinAction = 85;
5479
6874
  optional AutoOrganizeBusinessChatSetting autoOrganizeBusinessChatSetting = 86;
5480
6875
  optional BizAISettingsNudgeAction bizAiSettingsNudgeAction = 87;
6876
+ optional CoexV2VersionAction coexV2VersionAction = 88;
6877
+ optional WASARootSecretAction wasaRootSecretAction = 89;
6878
+ optional BubbleLockMessageAction bubbleLockMessageAction = 90;
6879
+ optional LabelSublistAction labelSublistAction = 91;
6880
+ optional DeviceCapabilities deviceCapabilitiesV2 = 92;
6881
+ optional CtwaMessageReceivedAction ctwaMessageReceivedAction = 93;
6882
+ optional SharedDeviceAllowlistAction sharedDeviceAllowlistAction = 94;
6883
+ optional ContactManagerMetadataAction contactManagerMetadataAction = 95;
6884
+ optional BusinessFolderActivationAction businessFolderActivationAction = 96;
6885
+ optional GroupHistoryToggleAction groupHistoryToggleAction = 97;
6886
+ optional BBProPendingCustomerBaseAction bbProPendingCustomerBaseAction = 98;
6887
+ optional CommunityNestingStateAction communityNestingStateAction = 99;
6888
+ optional SharedDeviceSecretAction sharedDeviceSecretAction = 100;
6889
+ optional HatchCVMSecretAction hatchCvmSecretAction = 101;
5481
6890
  message AgentAction {
5482
6891
  optional string name = 1;
5483
- optional int32 deviceID = 2;
6892
+ optional int32 deviceId = 2;
5484
6893
  optional bool isDeleted = 3;
5485
6894
  }
5486
6895
 
@@ -5511,6 +6920,10 @@ message SyncActionValue {
5511
6920
  }
5512
6921
  }
5513
6922
 
6923
+ message BBProPendingCustomerBaseAction {
6924
+ optional bool pending = 1;
6925
+ }
6926
+
5514
6927
  message BizAISettingsNudgeAction {
5515
6928
  optional BizAISettingsCategory category = 1;
5516
6929
  optional int64 version = 2;
@@ -5522,6 +6935,7 @@ message SyncActionValue {
5522
6935
  EXAMPLE_RESPONSES = 3;
5523
6936
  KNOWLEDGE = 4;
5524
6937
  LEAD_GEN = 5;
6938
+ HANDOFF_REMOVAL_TIMING = 6;
5525
6939
  }
5526
6940
  }
5527
6941
 
@@ -5534,6 +6948,10 @@ message SyncActionValue {
5534
6948
  optional string pnJid = 2;
5535
6949
  }
5536
6950
 
6951
+ message BubbleLockMessageAction {
6952
+ optional bool locked = 1;
6953
+ }
6954
+
5537
6955
  message BusinessBroadcastAssociationAction {
5538
6956
  optional bool deleted = 1;
5539
6957
  }
@@ -5548,8 +6966,22 @@ message SyncActionValue {
5548
6966
  optional int64 scheduledTimestamp = 7;
5549
6967
  optional int64 createTimestamp = 8;
5550
6968
  optional SyncActionValue.BusinessBroadcastCampaignStatus status = 9;
6969
+ optional SyncActionValue.BusinessBroadcastCampaignBBProStatus bbProStatus = 10;
6970
+ optional string customAudienceFbid = 11;
6971
+ }
6972
+
6973
+ enum BusinessBroadcastCampaignBBProStatus {
6974
+ BB_PRO_ACTIVE = 1;
6975
+ BB_PRO_COMPLETED = 2;
6976
+ BB_PRO_IN_DRAFT = 3;
6977
+ BB_PRO_IN_REVIEW = 4;
6978
+ BB_PRO_NOT_SENDING = 5;
6979
+ BB_PRO_OFF = 6;
6980
+ BB_PRO_REJECTED = 7;
6981
+ BB_PRO_SCHEDULED = 8;
6982
+ BB_PRO_SENDING_LIMITED = 9;
6983
+ BB_PRO_PROCESSING = 10;
5551
6984
  }
5552
-
5553
6985
  enum BusinessBroadcastCampaignStatus {
5554
6986
  DRAFT = 1;
5555
6987
  SCHEDULED = 2;
@@ -5571,6 +7003,11 @@ message SyncActionValue {
5571
7003
  optional string listName = 3;
5572
7004
  repeated string labelIds = 4;
5573
7005
  optional string audienceExpression = 5;
7006
+ optional string customAudienceFbid = 6;
7007
+ }
7008
+
7009
+ message BusinessFolderActivationAction {
7010
+ optional bool activated = 1;
5574
7011
  }
5575
7012
 
5576
7013
  message CallLogAction {
@@ -5578,7 +7015,7 @@ message SyncActionValue {
5578
7015
  }
5579
7016
 
5580
7017
  message ChatAssignmentAction {
5581
- optional string deviceAgentID = 1;
7018
+ optional string deviceAgentId = 1;
5582
7019
  }
5583
7020
 
5584
7021
  message ChatAssignmentOpenedStatusAction {
@@ -5589,6 +7026,19 @@ message SyncActionValue {
5589
7026
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
5590
7027
  }
5591
7028
 
7029
+ message CoexV2VersionAction {
7030
+ optional uint64 version = 1;
7031
+ }
7032
+
7033
+ message CommunityNestingStateAction {
7034
+ optional NestingState nestingState = 1;
7035
+ enum NestingState {
7036
+ PLATFORM_DEFAULT = 0;
7037
+ NESTED = 1;
7038
+ UNNESTED = 2;
7039
+ }
7040
+ }
7041
+
5592
7042
  message ContactAction {
5593
7043
  optional string fullName = 1;
5594
7044
  optional string firstName = 2;
@@ -5596,6 +7046,15 @@ message SyncActionValue {
5596
7046
  optional bool saveOnPrimaryAddressbook = 4;
5597
7047
  optional string pnJid = 5;
5598
7048
  optional string username = 6;
7049
+ optional string birthday = 7;
7050
+ }
7051
+
7052
+ message ContactManagerMetadataAction {
7053
+ optional bool isHidden = 1;
7054
+ }
7055
+
7056
+ message CtwaMessageReceivedAction {
7057
+ optional bool isCtwaMessageReceived = 1;
5599
7058
  }
5600
7059
 
5601
7060
  message CtwaPerCustomerDataSharingAction {
@@ -5662,6 +7121,20 @@ message SyncActionValue {
5662
7121
 
5663
7122
  }
5664
7123
 
7124
+ message GroupHistoryToggleAction {
7125
+ optional GroupHistoryToggleMode groupHistoryToggleMode = 1;
7126
+ enum GroupHistoryToggleMode {
7127
+ GROUP_HISTORY_TOGGLE_MODE_UNKNOWN = 0;
7128
+ GROUP_HISTORY_TOGGLE_MODE_ON = 1;
7129
+ GROUP_HISTORY_TOGGLE_MODE_OFF = 2;
7130
+ }
7131
+ }
7132
+
7133
+ message HatchCVMSecretAction {
7134
+ optional bytes secret = 1;
7135
+ optional int64 generation = 2;
7136
+ }
7137
+
5665
7138
  message InteractiveMessageAction {
5666
7139
  optional InteractiveMessageActionMode type = 1;
5667
7140
  optional string agmId = 2;
@@ -5706,6 +7179,11 @@ message SyncActionValue {
5706
7179
  LOCKED = 13;
5707
7180
  INVITES = 14;
5708
7181
  THIRD_PARTY = 15;
7182
+ LEAD = 16;
7183
+ MENTIONS_AND_REPLIES = 17;
7184
+ REQUESTS = 18;
7185
+ BUSINESS = 19;
7186
+ ONE_ON_ONE = 20;
5709
7187
  }
5710
7188
  }
5711
7189
 
@@ -5713,10 +7191,15 @@ message SyncActionValue {
5713
7191
  repeated int32 sortedLabelIds = 1;
5714
7192
  }
5715
7193
 
7194
+ message LabelSublistAction {
7195
+ optional int32 subListId = 1;
7196
+ }
7197
+
5716
7198
  message LidContactAction {
5717
7199
  optional string fullName = 1;
5718
7200
  optional string firstName = 2;
5719
7201
  optional string username = 3;
7202
+ optional string birthday = 4;
5720
7203
  }
5721
7204
 
5722
7205
  message LocaleSetting {
@@ -5930,12 +7413,20 @@ message SyncActionValue {
5930
7413
  optional bool shouldPlaySoundForCallNotification = 31;
5931
7414
  optional string chatThemeId = 32;
5932
7415
  optional string colorSchemeId = 33;
7416
+ optional string stockWallpaperImageId = 34;
7417
+ optional MediaAutoDownloadQualitySetting mediaAutoDownloadQuality = 35;
5933
7418
  enum DisplayMode {
5934
7419
  DISPLAY_MODE_UNKNOWN = 0;
5935
7420
  ALWAYS = 1;
5936
7421
  NEVER = 2;
5937
7422
  ONLY_WHEN_APP_IS_OPEN = 3;
5938
7423
  }
7424
+ enum MediaAutoDownloadQualitySetting {
7425
+ MEDIA_AUTO_DOWNLOAD_QUALITY_UNKNOWN = 0;
7426
+ MEDIA_AUTO_DOWNLOAD_QUALITY_STANDARD = 1;
7427
+ MEDIA_AUTO_DOWNLOAD_QUALITY_HD = 2;
7428
+ MEDIA_AUTO_DOWNLOAD_QUALITY_AUTO = 3;
7429
+ }
5939
7430
  enum MediaQualitySetting {
5940
7431
  MEDIA_QUALITY_UNKNOWN = 0;
5941
7432
  STANDARD = 1;
@@ -5976,6 +7467,8 @@ message SyncActionValue {
5976
7467
  SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION = 31;
5977
7468
  CHAT_THEME_ID = 32;
5978
7469
  COLOR_SCHEME_ID = 33;
7470
+ STOCK_WALLPAPER_IMAGE_ID = 34;
7471
+ MEDIA_AUTO_DOWNLOAD_QUALITY = 35;
5979
7472
  }
5980
7473
  enum SettingPlatform {
5981
7474
  PLATFORM_UNKNOWN = 0;
@@ -5986,6 +7479,15 @@ message SyncActionValue {
5986
7479
  }
5987
7480
  }
5988
7481
 
7482
+ message SharedDeviceAllowlistAction {
7483
+ optional bool allowed = 1;
7484
+ }
7485
+
7486
+ message SharedDeviceSecretAction {
7487
+ optional bytes secret = 1;
7488
+ optional int64 ttlMs = 2;
7489
+ }
7490
+
5989
7491
  message StarAction {
5990
7492
  optional bool starred = 1;
5991
7493
  }
@@ -5997,8 +7499,8 @@ message SyncActionValue {
5997
7499
  message StatusPrivacyAction {
5998
7500
  optional StatusDistributionMode mode = 1;
5999
7501
  repeated string userJid = 2;
6000
- optional bool shareToFB = 3;
6001
- optional bool shareToIG = 4;
7502
+ optional bool shareToFb = 3;
7503
+ optional bool shareToIg = 4;
6002
7504
  repeated CustomList customLists = 5;
6003
7505
  repeated StatusDistributionMode modes = 6;
6004
7506
  message CustomList {
@@ -6102,6 +7604,21 @@ message SyncActionValue {
6102
7604
  }
6103
7605
  }
6104
7606
 
7607
+ message WASARootSecretAction {
7608
+ repeated RootSecretEntry secrets = 1;
7609
+ message RootSecretEntry {
7610
+ optional string id = 1;
7611
+ optional bytes rootSecret = 2;
7612
+ optional int64 epoch = 3;
7613
+ optional Status status = 4;
7614
+ enum Status {
7615
+ INACTIVE = 0;
7616
+ ACTIVE = 1;
7617
+ }
7618
+ }
7619
+
7620
+ }
7621
+
6105
7622
  message WaffleAccountLinkStateAction {
6106
7623
  optional AccountLinkState linkState = 2;
6107
7624
  enum AccountLinkState {
@@ -6292,6 +7809,16 @@ message VerifiedNameCertificate {
6292
7809
 
6293
7810
  }
6294
7811
 
7812
+ message VirtualDeviceOutput {
7813
+ optional bytes vdId = 1;
7814
+ optional bytes vdPublicKey = 2;
7815
+ optional bytes vdEpochStoragePublicKey = 3;
7816
+ optional bytes vdEpochStoragePublicKeySig = 4;
7817
+ optional bytes ocmfRotationToken = 5;
7818
+ optional bytes deviceEpochHmac = 6;
7819
+ optional EncryptedSecretValuesOutput encryptedSecretValues = 7;
7820
+ }
7821
+
6295
7822
  message WallpaperSettings {
6296
7823
  optional string filename = 1;
6297
7824
  optional uint32 opacity = 2;
@@ -6429,6 +7956,7 @@ message WebMessageInfo {
6429
7956
  optional ScheduledMessageMetadata scheduledMessageMetadata = 81;
6430
7957
  optional string decisionId = 82;
6431
7958
  repeated string decisionSources = 83;
7959
+ optional EventInviteAdditionalMetadata eventInviteAdditionalMetadata = 84;
6432
7960
  enum BizPrivacyStatus {
6433
7961
  E2EE = 0;
6434
7962
  FB = 2;
@@ -6670,6 +8198,47 @@ message WebMessageInfo {
6670
8198
  GROUP_TEE_BOT_ADDED = 223;
6671
8199
  CONTACT_INFO = 224;
6672
8200
  SCHEDULED_MESSAGE_CREATED = 225;
8201
+ IDENTITY_TRUST_MARKED = 226;
8202
+ IDENTITY_TRUST_UNMARKED = 227;
8203
+ IDENTITY_TRUST_REVOKED = 228;
8204
+ CTWA_CONSUMER_DISCLOSURE = 230;
8205
+ CHANGE_ACP2_SETTING = 240;
8206
+ BIZ_CALLBACK_DISABLED = 244;
8207
+ BIZ_CALLBACK_ENABLED = 247;
8208
+ EPHEMERAL_CHANGED_FOR_COEX = 248;
8209
+ UGC_BOT_PROFILE_UPDATED = 249;
8210
+ ORDER_EPHEMERAL_EXEMPTION = 250;
8211
+ GROUP_DEFAULT_SUB_GROUP_DEMOTE = 251;
8212
+ BIZ_BUSINESS_BROADCAST_ENTRY_POINT = 252;
8213
+ BOT_INLINE_TOS_CHAT = 253;
8214
+ CAMEO_CHAT_CREATED = 254;
8215
+ SENDER_SIDE_CONTACT_INFO = 255;
8216
+ CAMEO_TRANSITIONED = 256;
8217
+ CAMEO_REGISTERED_WITH_NEW_CHAT = 257;
8218
+ PRIVACY_SYSTEM_MESSAGE = 258;
8219
+ BIZ_AI_LEARNING_ENABLED_DISCLOSURE = 259;
8220
+ BIZ_AI_LEARNING_DISABLED_DISCLOSURE = 260;
8221
+ BIZ_AI_REPLIES_MUTED_HISTORICAL_CHAT = 261;
8222
+ INVITE_FROM_IG = 262;
8223
+ GROUP_ADMIN_FIRST_JOIN_VIA_LINK = 263;
8224
+ GROUP_ADMIN_FLOOD_JOIN_VIA_LINK = 264;
8225
+ BIZ_AI_REPLIES_MUTED_IRRELEVANT_HISTORICAL_CHAT = 265;
8226
+ PENDING_INVITE_CREATED = 266;
8227
+ CAMEO_CHAT_EXPIRED = 267;
8228
+ GROUP_PUSHNAME_SHARED = 270;
8229
+ BIZ_POST_SEND_OPT_OUT = 271;
8230
+ BB_PRO_BROADCAST_CHAT_CARD = 272;
8231
+ BOT_PROACTIVE_MESSAGE_ENABLED = 273;
8232
+ BOT_PROACTIVE_MESSAGE_DISABLED = 274;
8233
+ BOT_PROACTIVE_MESSAGE_FIRST_TIME = 275;
8234
+ DYNAMIC_AUDIENCE_LIST_CREATE = 276;
8235
+ DYNAMIC_AUDIENCE_LIST_UPDATE_LINK = 277;
8236
+ CHAT_WITH_BUSINESS_IN_DIRECTORY = 283;
8237
+ META_AI_THREAD_CREATED = 284;
8238
+ META_AI_CONNECTOR_LINKED = 285;
8239
+ SPLIT_PAYMENT_MARKED_AS_PAID = 289;
8240
+ POLL_OPTIONS_REMOVED = 290;
8241
+ POLL_ADDED_OPTION_REMOVED = 291;
6673
8242
  }
6674
8243
  }
6675
8244
 
@@ -6685,7 +8254,47 @@ message WebNotificationsInfo {
6685
8254
  repeated WebMessageInfo notifyMessages = 5;
6686
8255
  }
6687
8256
 
8257
+ message WrapTransportSigningPublicKeyInput {
8258
+ optional bytes keyBytes = 1;
8259
+ }
8260
+
8261
+ message WrapTransportSigningPublicKeyResult {
8262
+ optional bytes prefixedKey = 1;
8263
+ }
8264
+
8265
+ message WrapTransportSigningSecretKeyInput {
8266
+ optional bytes keyBytes = 1;
8267
+ }
8268
+
8269
+ message WrapTransportSigningSecretKeyResult {
8270
+ optional bytes prefixedKey = 1;
8271
+ }
8272
+
6688
8273
  // >>> wa.voip (VoIP engine, generated by decode-voip-wasm.js) >>>
8274
+ enum DataChannelMessage_MessageScope {
8275
+ MESSAGE_SCOPE_UNSPECIFIED = 0;
8276
+ MESSAGE_SCOPE_RELAY_READABLE = 1;
8277
+ MESSAGE_SCOPE_END_TO_END = 2;
8278
+ }
8279
+
8280
+ enum DataChannelMessage_MessageType {
8281
+ MESSAGE_TYPE_UNSPECIFIED = 0;
8282
+ MESSAGE_TYPE_DATA = 1;
8283
+ MESSAGE_TYPE_CONTROL = 2;
8284
+ }
8285
+
8286
+ enum DataChannelMessage_RoutingMode {
8287
+ ROUTING_MODE_UNSPECIFIED = 0;
8288
+ ROUTING_MODE_RELAY_ONLY = 1;
8289
+ ROUTING_MODE_SELECTIVE_FORWARD = 2;
8290
+ ROUTING_MODE_BROADCAST = 3;
8291
+ }
8292
+
8293
+ enum HbhControlPayload_ControlType {
8294
+ CONTROL_TYPE_UNSPECIFIED = 0;
8295
+ CONTROL_TYPE_GO_AWAY = 1;
8296
+ }
8297
+
6689
8298
  enum RekeyKeyType {
6690
8299
  REKEY_KEY_AUDIO = 0;
6691
8300
  REKEY_KEY_VIDEO = 1;
@@ -6730,6 +8339,7 @@ enum StreamDescriptor_StreamLayer {
6730
8339
  message appDataMessage {
6731
8340
  reactionInfo reaction_info = 1;
6732
8341
  liveTranscriptionInfo transcription_info = 2;
8342
+ arEffectInfo ar_effect_info = 3;
6733
8343
  }
6734
8344
 
6735
8345
  // original: wa.voip.appDataPayloads
@@ -6742,6 +8352,17 @@ message AQSStats {
6742
8352
  optional int32 aqs = 1;
6743
8353
  }
6744
8354
 
8355
+ // original: wa.voip.arEffectInfo
8356
+ message arEffectInfo {
8357
+ uint64 transaction_id = 1;
8358
+ string ar_effect_id = 2;
8359
+ }
8360
+
8361
+ // original: wa.voip.BackupMute
8362
+ message BackupMute {
8363
+ bool is_muted = 1;
8364
+ }
8365
+
6745
8366
  // original: wa.voip.BackupRelayLatency
6746
8367
  message BackupRelayLatency {
6747
8368
  uint32 ipv4 = 1;
@@ -6765,6 +8386,49 @@ message BackupRelayLatencyReport {
6765
8386
  // original: wa.voip.BackupSignalEnvelope
6766
8387
  message BackupSignalEnvelope {
6767
8388
  BackupRelayLatencyReport relay_latency = 1;
8389
+ BackupMute mute = 2;
8390
+ BackupVideoState video_state = 3;
8391
+ BackupTerminate terminate = 4;
8392
+ BackupTransport transport = 5;
8393
+ }
8394
+
8395
+ // original: wa.voip.BackupTerminate
8396
+ message BackupTerminate {
8397
+ string reason = 1;
8398
+ }
8399
+
8400
+ // original: wa.voip.BackupTransport
8401
+ message BackupTransport {
8402
+ uint32 transport_msg_type = 1;
8403
+ repeated BackupTransportCandidate candidates = 2;
8404
+ int32 net_medium = 3;
8405
+ int32 protocol = 4;
8406
+ uint32 refl_ipv4 = 5;
8407
+ bytes refl_ipv6 = 6;
8408
+ uint32 refl_port = 7;
8409
+ uint32 p2p_cand_round = 8;
8410
+ int32 net_health_status = 9;
8411
+ string ice_ufrag = 10;
8412
+ string ice_pwd = 11;
8413
+ string cert_fingerprint = 12;
8414
+ string cert_algorithm = 13;
8415
+ }
8416
+
8417
+ // original: wa.voip.BackupTransportCandidate
8418
+ message BackupTransportCandidate {
8419
+ uint32 ipv4 = 1;
8420
+ bytes ipv6 = 2;
8421
+ uint32 port = 3;
8422
+ uint32 priority = 4;
8423
+ }
8424
+
8425
+ // original: wa.voip.BackupVideoState
8426
+ message BackupVideoState {
8427
+ int32 video_state = 1;
8428
+ int32 transaction_id = 2;
8429
+ int32 device_orientation = 3;
8430
+ int32 codec_scheme = 4;
8431
+ string vid_dec_capability = 5;
6768
8432
  }
6769
8433
 
6770
8434
  // original: wa.voip.BwaInfo
@@ -6780,11 +8444,28 @@ message BwaStream {
6780
8444
  uint64 subscribed_pids_bitmap_64_127 = 3;
6781
8445
  }
6782
8446
 
8447
+ // original: wa.voip.DataChannelMessage
8448
+ message DataChannelMessage {
8449
+ uint32 from_pid = 1;
8450
+ repeated uint32 recipient_pids = 2;
8451
+ DataChannelMessage_RoutingMode routing_mode = 3;
8452
+ DataChannelMessage_MessageScope scope = 4;
8453
+ DataChannelMessage_MessageType message_type = 5;
8454
+ bytes payload = 6;
8455
+ uint32 transaction_id = 7;
8456
+ }
8457
+
6783
8458
  // original: wa.voip.E2eRekeyPayload
6784
8459
  message E2eRekeyPayload {
6785
8460
  repeated RekeyKeyEntry keys = 1;
6786
8461
  }
6787
8462
 
8463
+ // original: wa.voip.HbhControlPayload
8464
+ message HbhControlPayload {
8465
+ HbhControlPayload_ControlType type = 1;
8466
+ string reason = 2;
8467
+ }
8468
+
6788
8469
  // original: wa.voip.liveTranscriptionInfo
6789
8470
  message liveTranscriptionInfo {
6790
8471
  uint64 transcript_id = 1;