@wppconnect/wa-proto 2.3000.1051480189 → 2.3000.1051535328

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/WAProto.proto +1 -830
  2. package/dist/index.d.ts +26485 -40659
  3. package/dist/index.js +94721 -133717
  4. package/package.json +1 -1
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1051480189
4
+ /// WhatsApp Version: 2.3000.1051535328
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -1091,12 +1091,6 @@ message BotUnifiedResponseMutation {
1091
1091
 
1092
1092
  }
1093
1093
 
1094
- enum COMMAND_COMMAND_TYPE {
1095
- EVERYONE = 1;
1096
- SILENT = 2;
1097
- AI = 3;
1098
- AI_IMAGINE = 4;
1099
- }
1100
1094
  message CallLogRecord {
1101
1095
  optional CallResult callResult = 1;
1102
1096
  optional bool isDndMode = 2;
@@ -1498,13 +1492,6 @@ message CombinedFingerprint {
1498
1492
  optional FingerprintData remoteFingerprint = 3;
1499
1493
  }
1500
1494
 
1501
- message Command {
1502
- optional COMMAND_COMMAND_TYPE commandType = 1;
1503
- optional uint32 offset = 2;
1504
- optional uint32 length = 3;
1505
- optional string validationToken = 4;
1506
- }
1507
-
1508
1495
  message CommentMetadata {
1509
1496
  optional MessageKey commentParentKey = 1;
1510
1497
  optional uint32 replyCount = 2;
@@ -1913,154 +1900,6 @@ message Conversation {
1913
1900
  }
1914
1901
  }
1915
1902
 
1916
- message DecryptMekForDistributionFromTransportSenderInput {
1917
- required TransportSenderMEKDistributionSingleRecipient mekDistribution = 1;
1918
- required bytes mekId = 2;
1919
- required bytes rosterHash = 3;
1920
- required bytes recipientEncSk = 4;
1921
- required uint64 version = 5;
1922
- optional MinosClientConfig conf = 6;
1923
- message TransportSenderMEKDistributionSingleRecipient {
1924
- required bytes encryptedMek = 1;
1925
- required bytes ephemeralEncryptionPk = 2;
1926
- required bytes signingPk = 3;
1927
- required bytes signature = 4;
1928
- optional bytes recipientEpochHead = 5;
1929
- }
1930
-
1931
- }
1932
-
1933
- message DecryptMekForDistributionFromTransportSenderResult {
1934
- oneof result {
1935
- DecryptMekForDistributionFromTransportSenderSuccess success = 1;
1936
- string errorMessage = 2;
1937
- }
1938
- }
1939
-
1940
- message DecryptMekForDistributionFromTransportSenderSuccess {
1941
- required bytes mek = 1;
1942
- }
1943
-
1944
- message DecryptMekForDistributionInput {
1945
- required bytes toMailboxSk = 1;
1946
- required bytes fromPk = 2;
1947
- required bytes mekId = 3;
1948
- required bytes senderEpochHead = 4;
1949
- required bytes rosterHash = 5;
1950
- required bytes ciphertext = 6;
1951
- optional bytes toEpochHead = 7;
1952
- optional int32 mekEncryptionVersion = 8;
1953
- optional MinosClientConfig conf = 9;
1954
- }
1955
-
1956
- message DecryptMekForDistributionResult {
1957
- oneof result {
1958
- DecryptMekForDistributionSuccess success = 1;
1959
- string errorMessage = 2;
1960
- }
1961
- }
1962
-
1963
- message DecryptMekForDistributionSuccess {
1964
- required bytes mek = 1;
1965
- }
1966
-
1967
- message DecryptSelfMmkDistributionInput {
1968
- required bytes encryptedMmk = 1;
1969
- required bytes exportRootKey = 2;
1970
- required MessagingMailboxPublicData mmkPublicData = 3;
1971
- }
1972
-
1973
- message DecryptSelfMmkDistributionResult {
1974
- oneof result {
1975
- DecryptSelfMmkDistributionSuccess success = 1;
1976
- string errorMessage = 2;
1977
- }
1978
- }
1979
-
1980
- message DecryptSelfMmkDistributionSuccess {
1981
- required bytes mmkSeed = 1;
1982
- }
1983
-
1984
- message DeriveAttachmentAccessTokenSecretInput {
1985
- required bytes mediaKey = 1;
1986
- }
1987
-
1988
- message DeriveAttachmentAccessTokenSecretResult {
1989
- required bytes attachmentAccessTokenSecret = 1;
1990
- }
1991
-
1992
- message DeriveAttachmentPrimaryKeySecretInput {
1993
- required bytes mediaKey = 1;
1994
- }
1995
-
1996
- message DeriveAttachmentPrimaryKeySecretResult {
1997
- required bytes attachmentPrimaryKeySecret = 1;
1998
- }
1999
-
2000
- message DeriveMailboxAuthKeypairInput {
2001
- required bytes exportRootKey = 1;
2002
- required uint64 epochNumber = 2;
2003
- }
2004
-
2005
- message DeriveMailboxAuthKeypairResult {
2006
- required bytes mailboxAuthPublicKey = 1;
2007
- required bytes mailboxAuthPrivateKey = 2;
2008
- }
2009
-
2010
- message DeriveMailboxEncryptionKeypairInput {
2011
- required bytes exportRootKey = 1;
2012
- required uint64 epochNumber = 2;
2013
- }
2014
-
2015
- message DeriveMailboxEncryptionKeypairResult {
2016
- required bytes mailboxEncryptionPublicKey = 1;
2017
- required bytes mailboxEncryptionPrivateKey = 2;
2018
- }
2019
-
2020
- message DeriveMailboxSigningKeypairInput {
2021
- required bytes exportRootKey = 1;
2022
- required uint64 epochNumber = 2;
2023
- }
2024
-
2025
- message DeriveMailboxSigningKeypairResult {
2026
- oneof result {
2027
- DeriveMailboxSigningKeypairSuccess success = 1;
2028
- string errorMessage = 2;
2029
- }
2030
- }
2031
-
2032
- message DeriveMailboxSigningKeypairSuccess {
2033
- required bytes mailboxSigningPublicKey = 1;
2034
- required bytes mailboxSigningPrivateKey = 2;
2035
- }
2036
-
2037
- message DeriveMessagingMailboxKeypairsInput {
2038
- required bytes mmkSeed = 1;
2039
- }
2040
-
2041
- message DeriveMessagingMailboxKeypairsResult {
2042
- oneof result {
2043
- DeriveMessagingMailboxKeypairsSuccess success = 1;
2044
- string errorMessage = 2;
2045
- }
2046
- }
2047
-
2048
- message DeriveMessagingMailboxKeypairsSuccess {
2049
- required bytes encSk = 1;
2050
- required bytes encPk = 2;
2051
- optional bytes authSk = 3;
2052
- optional bytes authPk = 4;
2053
- }
2054
-
2055
- message DetachedDevicePublicData {
2056
- required uint64 deviceId = 1;
2057
- required bytes name = 2;
2058
- required bytes sigPk = 3;
2059
- required bytes authPk = 4;
2060
- required bytes encPk = 5;
2061
- required bytes signature = 6;
2062
- }
2063
-
2064
1903
  message DeviceCapabilities {
2065
1904
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
2066
1905
  optional LIDMigration lidMigration = 2;
@@ -2264,127 +2103,6 @@ message DisappearingMode {
2264
2103
  }
2265
2104
  }
2266
2105
 
2267
- enum EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE {
2268
- OPEN_NATIVE = 11;
2269
- }
2270
- enum EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE {
2271
- UNSUPPORTED = -1;
2272
- IG_STORY_PHOTO_MENTION = 4;
2273
- IG_SINGLE_IMAGE_POST_SHARE = 9;
2274
- IG_MULTIPOST_SHARE = 10;
2275
- IG_SINGLE_VIDEO_POST_SHARE = 11;
2276
- IG_STORY_PHOTO_SHARE = 12;
2277
- IG_STORY_VIDEO_SHARE = 13;
2278
- IG_CLIPS_SHARE = 14;
2279
- IG_IGTV_SHARE = 15;
2280
- IG_SHOP_SHARE = 16;
2281
- IG_PROFILE_SHARE = 19;
2282
- IG_STORY_PHOTO_HIGHLIGHT_SHARE = 20;
2283
- IG_STORY_VIDEO_HIGHLIGHT_SHARE = 21;
2284
- IG_STORY_REPLY = 22;
2285
- IG_STORY_REACTION = 23;
2286
- IG_STORY_VIDEO_MENTION = 24;
2287
- IG_STORY_HIGHLIGHT_REPLY = 25;
2288
- IG_STORY_HIGHLIGHT_REACTION = 26;
2289
- IG_EXTERNAL_LINK = 27;
2290
- IG_RECEIVER_FETCH = 28;
2291
- FB_FEED_SHARE = 1000;
2292
- FB_STORY_REPLY = 1001;
2293
- FB_STORY_SHARE = 1002;
2294
- FB_STORY_MENTION = 1003;
2295
- FB_FEED_VIDEO_SHARE = 1004;
2296
- FB_GAMING_CUSTOM_UPDATE = 1005;
2297
- FB_PRODUCER_STORY_REPLY = 1006;
2298
- FB_EVENT = 1007;
2299
- FB_FEED_POST_PRIVATE_REPLY = 1008;
2300
- FB_SHORT = 1009;
2301
- FB_COMMENT_MENTION_SHARE = 1010;
2302
- FB_POST_MENTION = 1011;
2303
- FB_PROFILE_DIRECTORY_ITEM = 1013;
2304
- FB_FEED_POST_REACTION_REPLY = 1014;
2305
- FB_QUICKSNAP_REPLY = 1015;
2306
- MSG_STATUS_REPLY = 1016;
2307
- FB_GROUP_POST = 1017;
2308
- FB_DAILY_GAME_CHALLENGE = 1018;
2309
- FB_QUICKSNAP_REACTION_REPLY = 1019;
2310
- MSG_EXTERNAL_LINK_SHARE = 2000;
2311
- MSG_P2P_PAYMENT = 2001;
2312
- MSG_LOCATION_SHARING = 2002;
2313
- MSG_LOCATION_SHARING_V2 = 2003;
2314
- MSG_HIGHLIGHTS_TAB_FRIEND_UPDATES_REPLY = 2004;
2315
- MSG_HIGHLIGHTS_TAB_LOCAL_EVENT_REPLY = 2005;
2316
- MSG_RECEIVER_FETCH = 2006;
2317
- MSG_IG_MEDIA_SHARE = 2007;
2318
- MSG_GEN_AI_SEARCH_PLUGIN_RESPONSE = 2008;
2319
- MSG_REELS_LIST = 2009;
2320
- MSG_CONTACT = 2010;
2321
- MSG_THREADS_POST_SHARE = 2011;
2322
- MSG_FILE = 2012;
2323
- MSG_AVATAR_DETAILS = 2013;
2324
- MSG_AI_CONTACT = 2014;
2325
- MSG_MEMORIES_SHARE = 2015;
2326
- MSG_SHARED_ALBUM_REPLY = 2016;
2327
- MSG_SHARED_ALBUM = 2017;
2328
- MSG_OCCAMADILLO_XMA = 2018;
2329
- MSG_GEN_AI_SUBSCRIPTION = 2021;
2330
- MSG_GEN_AI_REMINDER = 2022;
2331
- MSG_GEN_AI_MEMU_ONBOARDING_RESPONSE = 2023;
2332
- MSG_NOTE_REPLY = 2024;
2333
- MSG_NOTE_MENTION = 2025;
2334
- GEN_AI_ENTITY = 2026;
2335
- MSG_OPG_P2P_PAYMENT = 2027;
2336
- GEN_AI_RICH_RESPONSE = 2028;
2337
- MSG_MUSIC_STICKER = 2029;
2338
- MSG_PHONE_NUMBER = 2030;
2339
- AI_ACTIVITY_SHARE = 2031;
2340
- MSG_PRIVATE_XMA = 2032;
2341
- MSG_SOCIAL_CUE_MEMORIES = 2033;
2342
- MSG_MANUS_GROWTH_REFERRAL = 2060;
2343
- MSG_MOMENT_LINK = 2061;
2344
- MSG_HORIZON_WEEL = 2062;
2345
- MSG_MOMENT_ADDED = 2063;
2346
- MSG_STORYTELLING_PROMPT = 2067;
2347
- MSG_SUPERVISION_INVITE = 2068;
2348
- MSG_SOCIAL_CUE_MLE = 2069;
2349
- MSG_SOCIAL_CUE_POST = 2070;
2350
- RTC_AUDIO_CALL = 3000;
2351
- RTC_VIDEO_CALL = 3001;
2352
- RTC_MISSED_AUDIO_CALL = 3002;
2353
- RTC_MISSED_VIDEO_CALL = 3003;
2354
- RTC_GROUP_AUDIO_CALL = 3004;
2355
- RTC_GROUP_VIDEO_CALL = 3005;
2356
- RTC_MISSED_GROUP_AUDIO_CALL = 3006;
2357
- RTC_MISSED_GROUP_VIDEO_CALL = 3007;
2358
- RTC_ONGOING_AUDIO_CALL = 3008;
2359
- RTC_ONGOING_VIDEO_CALL = 3009;
2360
- MSG_RECEIVER_FETCH_FALLBACK = 3025;
2361
- DATACLASS_SENDER_COPY = 4000;
2362
- }
2363
- enum EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH {
2364
- INFO = 0;
2365
- EYE_OFF = 1;
2366
- NEWS_OFF = 2;
2367
- WARNING = 3;
2368
- PRIVATE = 4;
2369
- NONE = 5;
2370
- MEDIA_LABEL = 6;
2371
- POST_COVER = 7;
2372
- POST_LABEL = 8;
2373
- WARNING_SCREENS = 9;
2374
- }
2375
- enum EXTENDED_CONTENT_MESSAGE_XMA_DATACLASS_TYPE {
2376
- SENDER_COPY = 0;
2377
- SERVER = 1;
2378
- SIGNED_CLIENT = 2;
2379
- }
2380
- enum EXTENDED_CONTENT_MESSAGE_XMA_LAYOUT_TYPE {
2381
- SINGLE = 0;
2382
- HSCROLL = 1;
2383
- PORTRAIT = 3;
2384
- STANDARD_DXMA = 12;
2385
- LIST_DXMA = 15;
2386
- GRID = 16;
2387
- }
2388
2106
  message EmbeddedContent {
2389
2107
  oneof content {
2390
2108
  EmbeddedMessage embeddedMessage = 1;
@@ -2414,46 +2132,6 @@ message EmbeddedMusic {
2414
2132
  optional int64 overlapDurationInMs = 14;
2415
2133
  }
2416
2134
 
2417
- message EncryptMekForDistributionInput {
2418
- required bytes senderEpochHead = 1;
2419
- required bytes toMailboxPk = 2;
2420
- required MailboxAuthKP fromKeypair = 3;
2421
- required MekBundle mek = 4;
2422
- optional bytes toEpochHead = 5;
2423
- optional MinosClientConfig conf = 6;
2424
- message MailboxAuthKP {
2425
- required bytes sk = 1;
2426
- required bytes pk = 2;
2427
- }
2428
-
2429
- }
2430
-
2431
- message EncryptMekForDistributionResult {
2432
- required bytes ciphertext = 1;
2433
- required uint64 version = 2;
2434
- }
2435
-
2436
- message EncryptMeksForDistributionFromTransportSenderInput {
2437
- required MekBundle mek = 1;
2438
- required TransportSigningKP transportSigningKp = 2;
2439
- repeated bytes recipientMailboxEncryptionPks = 3;
2440
- repeated bytes recipientEpochHeads = 4;
2441
- optional MinosClientConfig conf = 5;
2442
- message TransportSigningKP {
2443
- required bytes sk = 1;
2444
- required bytes pk = 2;
2445
- }
2446
-
2447
- }
2448
-
2449
- message EncryptMeksForDistributionFromTransportSenderResult {
2450
- repeated bytes encryptedMeks = 1;
2451
- required bytes ephemeralEncryptionPk = 2;
2452
- required bytes signingPk = 3;
2453
- required bytes signature = 4;
2454
- required uint64 version = 5;
2455
- }
2456
-
2457
2135
  message EncryptedPairingRequest {
2458
2136
  optional bytes encryptedPayload = 1;
2459
2137
  optional bytes iv = 2;
@@ -2464,20 +2142,6 @@ message EphemeralSetting {
2464
2142
  optional sfixed64 timestamp = 2;
2465
2143
  }
2466
2144
 
2467
- message EpochPublicData {
2468
- required uint64 epochNumber = 1;
2469
- required string userFbid = 2;
2470
- required bytes mailboxSigningPk = 3;
2471
- required bytes mailboxEncryptionPk = 4;
2472
- required bytes mailboxAuthPk = 5;
2473
- optional bytes previousEpochHead = 6;
2474
- }
2475
-
2476
- message EpochSignatures {
2477
- required bytes selfSignature = 1;
2478
- optional bytes prevSignature = 2;
2479
- }
2480
-
2481
2145
  message EventAdditionalMetadata {
2482
2146
  optional bool isStale = 1;
2483
2147
  }
@@ -2498,47 +2162,6 @@ message ExitCode {
2498
2162
  optional string text = 2;
2499
2163
  }
2500
2164
 
2501
- message ExtendedContentMessage {
2502
- optional SubProtocol associatedMessage = 1;
2503
- optional EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE targetType = 2;
2504
- optional string targetUsername = 3;
2505
- optional string targetId = 4;
2506
- optional int64 targetExpiringAtSec = 5;
2507
- optional EXTENDED_CONTENT_MESSAGE_XMA_LAYOUT_TYPE xmaLayoutType = 6;
2508
- repeated CTA ctas = 7;
2509
- repeated SubProtocol previews = 8;
2510
- optional string titleText = 9;
2511
- optional string subtitleText = 10;
2512
- optional uint32 maxTitleNumOfLines = 11;
2513
- optional uint32 maxSubtitleNumOfLines = 12;
2514
- optional SubProtocol favicon = 13;
2515
- optional SubProtocol headerImage = 14;
2516
- optional string headerTitle = 15;
2517
- optional EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH overlayIconGlyph = 16;
2518
- optional string overlayTitle = 17;
2519
- optional string overlayDescription = 18;
2520
- optional string sentWithMessageId = 19;
2521
- optional string messageText = 20;
2522
- optional string headerSubtitle = 21;
2523
- optional string xmaDataclass = 22;
2524
- optional string contentRef = 23;
2525
- repeated string mentionedJid = 24;
2526
- repeated Command commands = 25;
2527
- repeated Mention mentions = 26;
2528
- optional EXTENDED_CONTENT_MESSAGE_XMA_DATACLASS_TYPE xmaDataclassType = 27;
2529
- optional string signedXmaDataclassValidation = 28;
2530
- optional string featureSharedSessionId = 29;
2531
- message CTA {
2532
- optional EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE buttonType = 1;
2533
- optional string title = 2;
2534
- optional string actionUrl = 3;
2535
- optional string nativeUrl = 4;
2536
- optional string ctaType = 5;
2537
- optional string actionContentBlob = 6;
2538
- }
2539
-
2540
- }
2541
-
2542
2165
  message ExternalBlobReference {
2543
2166
  optional bytes mediaKey = 1;
2544
2167
  optional string directPath = 2;
@@ -2548,11 +2171,6 @@ message ExternalBlobReference {
2548
2171
  optional bytes fileEncSha256 = 6;
2549
2172
  }
2550
2173
 
2551
- enum FUTURE_PROOF_BEHAVIOR {
2552
- PLACEHOLDER = 0;
2553
- NO_PLACEHOLDER = 1;
2554
- IGNORE = 2;
2555
- }
2556
2174
  message Field {
2557
2175
  optional uint32 minVersion = 1;
2558
2176
  optional uint32 maxVersion = 2;
@@ -2576,22 +2194,6 @@ message ForwardedAIBotMessageInfo {
2576
2194
  optional string creatorName = 3;
2577
2195
  }
2578
2196
 
2579
- message GenerateMekInput {
2580
- repeated bytes epochHeads = 1;
2581
- }
2582
-
2583
- message GenerateMekResult {
2584
- required MekBundle mek = 1;
2585
- }
2586
-
2587
- message GenerateMekRosterHashInput {
2588
- repeated bytes epochHeads = 1;
2589
- }
2590
-
2591
- message GenerateMekRosterHashResult {
2592
- required bytes rosterHash = 1;
2593
- }
2594
-
2595
2197
  message GlobalSettings {
2596
2198
  optional WallpaperSettings lightThemeWallpaper = 1;
2597
2199
  optional MediaVisibility mediaVisibility = 2;
@@ -2948,200 +2550,6 @@ message Location {
2948
2550
  optional string name = 3;
2949
2551
  }
2950
2552
 
2951
- enum MENTION_MENTION_TYPE {
2952
- PROFILE = 0;
2953
- }
2954
- message MandrakeCreateMmkInput {
2955
- required bytes exportRootKey = 1;
2956
- required uint64 epochNumber = 2;
2957
- required bytes epochHead = 3;
2958
- optional MessagingMailboxPublicData prevMmk = 4;
2959
- repeated DetachedDevicePublicData currentPeers = 5;
2960
- repeated DetachedDevicePublicData newPeers = 6;
2961
- }
2962
-
2963
- message MandrakeCreateMmkResult {
2964
- oneof result {
2965
- SignedMmkDistributionFromMailbox success = 1;
2966
- string errorMessage = 2;
2967
- }
2968
- }
2969
-
2970
- message MandrakeDecryptMekInput {
2971
- required bytes encryptedMek = 1;
2972
- required bytes recipientsHash = 4;
2973
- required bytes recipientEncSk = 5;
2974
- optional uint64 mekEncryptionVersion = 6;
2975
- optional MinosClientConfig conf = 7;
2976
- required MessagingMailboxPublicData recipientMmk = 8;
2977
- optional bytes mekId = 9;
2978
- optional MerkleMembershipProof recipientMembershipProof = 10;
2979
- oneof senderPublicData {
2980
- MandrakeDecryptMekInput.MmkSenderPublicData mmkSender = 2;
2981
- MandrakeDecryptMekInput.EpochSenderPublicData epochSender = 3;
2982
- MandrakeDecryptMekInput.PrecomputedEpochSenderPublicData precomputedEpochSender = 11;
2983
- }
2984
- message EpochSenderPublicData {
2985
- required EpochPublicData epochPublicData = 1;
2986
- }
2987
-
2988
- message MmkSenderPublicData {
2989
- required MessagingMailboxPublicData mmkPublicData = 1;
2990
- }
2991
-
2992
- message PrecomputedEpochSenderPublicData {
2993
- required bytes authPk = 1;
2994
- required bytes epochHead = 2;
2995
- }
2996
-
2997
- }
2998
-
2999
- message MandrakeDecryptMekResult {
3000
- oneof result {
3001
- MandrakeDecryptMekSuccess success = 1;
3002
- string errorMessage = 2;
3003
- }
3004
- }
3005
-
3006
- message MandrakeDecryptMekSuccess {
3007
- required bytes mek = 1;
3008
- }
3009
-
3010
- message MandrakeEncryptMekInput {
3011
- required MandrakeMekBundle mek = 1;
3012
- repeated MessagingMailboxPublicData recipients = 2;
3013
- optional MinosClientConfig conf = 5;
3014
- oneof sender {
3015
- MandrakeEncryptMekInput.MmkSender mmkSender = 3;
3016
- MandrakeEncryptMekInput.EpochSender epochSender = 4;
3017
- MandrakeEncryptMekInput.DetachedDeviceSender detachedDeviceSender = 6;
3018
- }
3019
- message DetachedDeviceSender {
3020
- required DetachedDevicePublicData detachedDevicePublicData = 1;
3021
- required bytes authSk = 2;
3022
- required bytes authPk = 3;
3023
- }
3024
-
3025
- message EpochSender {
3026
- required EpochPublicData epochPublicData = 1;
3027
- required bytes authSk = 2;
3028
- required bytes authPk = 3;
3029
- }
3030
-
3031
- message MmkSender {
3032
- required MessagingMailboxPublicData mmkPublicData = 1;
3033
- required bytes authSk = 2;
3034
- required bytes authPk = 3;
3035
- }
3036
-
3037
- }
3038
-
3039
- message MandrakeEncryptMekResult {
3040
- oneof result {
3041
- MandrakeEncryptMekSuccess success = 1;
3042
- string errorMessage = 2;
3043
- }
3044
- }
3045
-
3046
- message MandrakeEncryptMekSuccess {
3047
- repeated MekDistributionSingleRecipient distributions = 1;
3048
- required bytes recipientsHash = 2;
3049
- required uint64 version = 3;
3050
- message MekDistributionSingleRecipient {
3051
- required bytes encryptedMek = 1;
3052
- required MessagingMailboxPublicData toMmk = 2;
3053
- optional MerkleMembershipProof recipientMembershipProof = 3;
3054
- }
3055
-
3056
- }
3057
-
3058
- message MandrakeMekBundle {
3059
- required bytes key = 1;
3060
- required bytes mekId = 2;
3061
- required bytes mailboxHeadHash = 3;
3062
- }
3063
-
3064
- message MandrakeOpenEpochInput {
3065
- required string userFbid = 1;
3066
- required uint64 epochNumber = 2;
3067
- required bytes exportRootKey = 3;
3068
- required bytes previousExportRootKey = 4;
3069
- required uint64 previousEpochNumber = 5;
3070
- required bytes previousEpochHead = 6;
3071
- optional MessagingMailboxPublicData previousMmk = 7;
3072
- repeated DetachedDevicePublicData detachedDevices = 8;
3073
- }
3074
-
3075
- message MandrakeOpenEpochResult {
3076
- oneof result {
3077
- MandrakeOpenEpochSuccess success = 1;
3078
- string errorMessage = 2;
3079
- }
3080
- }
3081
-
3082
- message MandrakeOpenEpochSuccess {
3083
- required MinosSignedEpoch minosSignedEpoch = 1;
3084
- required SignedMmkDistributionFromMailbox signedMmkDistribution = 2;
3085
- }
3086
-
3087
- message MandrakeOpenInitialEpochInput {
3088
- required string userFbid = 1;
3089
- required uint64 epochNumber = 2;
3090
- required bytes exportRootKey = 3;
3091
- repeated DetachedDevicePublicData detachedDevices = 4;
3092
- }
3093
-
3094
- message MandrakeOpenInitialEpochResult {
3095
- oneof result {
3096
- MandrakeOpenEpochSuccess success = 1;
3097
- string errorMessage = 2;
3098
- }
3099
- }
3100
-
3101
- message MandrakeValidateAndDecryptSelfMmkInput {
3102
- required MessagingMailboxPublicData newMmk = 1;
3103
- required bytes signature = 2;
3104
- optional MessagingMailboxPublicData existingMmk = 3;
3105
- required bytes exportRootKey = 4;
3106
- required uint64 epochNumber = 5;
3107
- required bytes expectedEpochHead = 6;
3108
- required bytes encryptedMmk = 7;
3109
- required uint64 version = 8;
3110
- optional MessagingMailboxPublicData latestStoredMmk = 9;
3111
- }
3112
-
3113
- message MandrakeValidateAndDecryptSelfMmkResult {
3114
- oneof result {
3115
- MandrakeValidateAndDecryptSelfMmkSuccess success = 1;
3116
- string errorMessage = 2;
3117
- }
3118
- }
3119
-
3120
- message MandrakeValidateAndDecryptSelfMmkSuccess {
3121
- required bytes mmkSeed = 1;
3122
- required bytes mailboxHeadHash = 2;
3123
- }
3124
-
3125
- message MandrakeValidateNewMmkFromDetachedDeviceInput {
3126
- required MmkFromDetachedDevice mmkFromDevice = 1;
3127
- required bytes signature = 2;
3128
- required MessagingMailboxPublicData prevMmk = 3;
3129
- }
3130
-
3131
- message MandrakeValidateNewMmkFromMailboxInput {
3132
- required MessagingMailboxPublicData newMmk = 1;
3133
- required bytes signature = 2;
3134
- optional MessagingMailboxPublicData prevMmk = 3;
3135
- required EpochPublicData epochPublicData = 4;
3136
- }
3137
-
3138
- message MandrakeValidateNewMmkResult {
3139
- oneof result {
3140
- bool valid = 1;
3141
- string errorMessage = 2;
3142
- }
3143
- }
3144
-
3145
2553
  message MediaData {
3146
2554
  optional string localPath = 1;
3147
2555
  }
@@ -3214,31 +2622,11 @@ enum MediaVisibility {
3214
2622
  OFF = 1;
3215
2623
  ON = 2;
3216
2624
  }
3217
- message MekBundle {
3218
- required bytes key = 1;
3219
- required bytes mekId = 2;
3220
- required bytes rosterHash = 3;
3221
- }
3222
-
3223
2625
  message MemberLabel {
3224
2626
  optional string label = 1;
3225
2627
  optional int64 labelTimestamp = 2;
3226
2628
  }
3227
2629
 
3228
- message Mention {
3229
- optional MENTION_MENTION_TYPE mentionType = 1;
3230
- optional string mentionedJid = 2;
3231
- optional uint32 offset = 3;
3232
- optional uint32 length = 4;
3233
- }
3234
-
3235
- message MerkleMembershipProof {
3236
- required bytes proof = 1;
3237
- required bytes root = 2;
3238
- required uint64 leafIndex = 3;
3239
- required uint64 totalLeaves = 4;
3240
- }
3241
-
3242
2630
  message Message {
3243
2631
  optional string conversation = 1;
3244
2632
  optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
@@ -5318,196 +4706,6 @@ message MessageSecretMessage {
5318
4706
  optional bytes encPayload = 3;
5319
4707
  }
5320
4708
 
5321
- message MessageText {
5322
- optional string text = 1;
5323
- repeated string mentionedJid = 2;
5324
- repeated Command commands = 3;
5325
- repeated Mention mentions = 4;
5326
- }
5327
-
5328
- message MessagingMailboxPublicData {
5329
- required bytes epochHead = 1;
5330
- required bytes deviceRosterHash = 2;
5331
- required uint64 sequenceNumber = 3;
5332
- required bytes sigPk = 4;
5333
- required bytes encPk = 5;
5334
- required bytes authPk = 6;
5335
- }
5336
-
5337
- message MinosClientConfig {
5338
- required int32 preferredMessageEncryptionVersion = 1;
5339
- required int32 preferredMekEncryptionVersion = 2;
5340
- }
5341
-
5342
- message MinosCommand {
5343
- oneof commandInput {
5344
- MinosEncryptAndSignMessageInput encryptAndSignMessage = 1;
5345
- MinosDecryptAndVerifyMessageInput decryptAndVerifyMessage = 2;
5346
- GenerateMekInput generateMek = 3;
5347
- GenerateMekRosterHashInput generateMekRosterHash = 4;
5348
- EncryptMekForDistributionInput encryptMekForDistribution = 5;
5349
- DecryptMekForDistributionInput decryptMekForDistribution = 6;
5350
- EncryptMeksForDistributionFromTransportSenderInput encryptMeksForDistributionFromTransportSender = 7;
5351
- DecryptMekForDistributionFromTransportSenderInput decryptMekForDistributionFromTransportSender = 8;
5352
- WrapTransportSigningPublicKeyInput wrapTransportSigningPublicKey = 9;
5353
- WrapTransportSigningSecretKeyInput wrapTransportSigningSecretKey = 10;
5354
- DeriveMailboxSigningKeypairInput deriveMailboxSigningKeypair = 11;
5355
- DeriveMailboxEncryptionKeypairInput deriveMailboxEncryptionKeypair = 12;
5356
- DeriveMailboxAuthKeypairInput deriveMailboxAuthKeypair = 13;
5357
- DeriveAttachmentAccessTokenSecretInput deriveAttachmentAccessTokenSecret = 14;
5358
- DeriveAttachmentPrimaryKeySecretInput deriveAttachmentPrimaryKeySecret = 15;
5359
- MinosOpenInitialEpochInput minosOpenInitialEpoch = 16;
5360
- MinosOpenEpochInput minosOpenEpoch = 17;
5361
- MinosValidateEpochInput minosValidateEpoch = 18;
5362
- MinosVerifySingleEpochInput minosVerifySingleEpoch = 19;
5363
- MinosThreadIdFromOneToOneThreadInput minosThreadIdFromOneToOneThread = 20;
5364
- MinosThreadIdFromActThreadIdInput minosThreadIdFromActThreadId = 21;
5365
- MandrakeOpenEpochInput mandrakeOpenEpoch = 22;
5366
- MandrakeEncryptMekInput mandrakeEncryptMek = 23;
5367
- MandrakeDecryptMekInput mandrakeDecryptMek = 24;
5368
- MandrakeOpenInitialEpochInput mandrakeOpenInitialEpoch = 25;
5369
- MandrakeValidateNewMmkFromMailboxInput mandrakeValidateNewMmkFromMailbox = 27;
5370
- MandrakeValidateNewMmkFromDetachedDeviceInput mandrakeValidateNewMmkFromDetachedDevice = 28;
5371
- DeriveMessagingMailboxKeypairsInput deriveMessagingMailboxKeypairs = 29;
5372
- DecryptSelfMmkDistributionInput decryptSelfMmkDistribution = 30;
5373
- MandrakeValidateAndDecryptSelfMmkInput mandrakeValidateAndDecryptSelfMmk = 31;
5374
- MandrakeCreateMmkInput mandrakeCreateMmk = 32;
5375
- }
5376
- }
5377
-
5378
- message MinosDecryptAndVerifyMessageInput {
5379
- required bytes transportSigningPk = 1;
5380
- required bytes mek = 2;
5381
- required bytes encryptedMessageCiphertext = 3;
5382
- required bytes encryptedMessageSignature = 4;
5383
- required MinosMessageMetadata metadata = 5;
5384
- optional int32 messageEncryptionVersion = 6;
5385
- optional MinosClientConfig conf = 7;
5386
- }
5387
-
5388
- message MinosDecryptAndVerifyMessageResult {
5389
- oneof result {
5390
- MinosDecryptAndVerifyMessageSuccess success = 1;
5391
- string errorMessage = 2;
5392
- }
5393
- }
5394
-
5395
- message MinosDecryptAndVerifyMessageSuccess {
5396
- required bytes plaintext = 1;
5397
- }
5398
-
5399
- message MinosEncryptAndSignMessageInput {
5400
- required bytes transportSigningSk = 1;
5401
- required bytes mek = 2;
5402
- required bytes plaintext = 3;
5403
- required MinosMessageMetadata metadata = 4;
5404
- optional bytes transportSigningPk = 5;
5405
- optional MinosClientConfig conf = 6;
5406
- }
5407
-
5408
- message MinosEncryptAndSignMessageResult {
5409
- required bytes ciphertext = 1;
5410
- required bytes signature = 2;
5411
- required int32 version = 3;
5412
- }
5413
-
5414
- message MinosMessageMetadata {
5415
- required bytes mekId = 1;
5416
- required uint64 timestamp = 2;
5417
- required string messageId = 3;
5418
- required bytes threadId = 4;
5419
- }
5420
-
5421
- message MinosOpenEpochInput {
5422
- required string userFbid = 1;
5423
- required uint64 epochNumber = 2;
5424
- required bytes exportRootKey = 3;
5425
- required bytes previousExportRootKey = 4;
5426
- required uint64 previousEpochNumber = 5;
5427
- required bytes previousEpochHead = 6;
5428
- }
5429
-
5430
- message MinosOpenEpochResult {
5431
- required MinosSignedEpoch minosSignedEpoch = 1;
5432
- }
5433
-
5434
- message MinosOpenInitialEpochInput {
5435
- required string userFbid = 1;
5436
- required uint64 epochNumber = 2;
5437
- required bytes exportRootKey = 3;
5438
- }
5439
-
5440
- message MinosOpenInitialEpochResult {
5441
- required MinosSignedEpoch minosSignedEpoch = 1;
5442
- }
5443
-
5444
- message MinosSignedEpoch {
5445
- required EpochPublicData epochPublicData = 1;
5446
- required EpochSignatures signatures = 2;
5447
- required bytes epochHead = 3;
5448
- }
5449
-
5450
- message MinosThreadIdFromActThreadIdInput {
5451
- required string actThreadId = 1;
5452
- }
5453
-
5454
- message MinosThreadIdFromActThreadIdResult {
5455
- required bytes threadId = 1;
5456
- }
5457
-
5458
- message MinosThreadIdFromOneToOneThreadInput {
5459
- required string actThreadId = 1;
5460
- required string selfFbid = 2;
5461
- }
5462
-
5463
- message MinosThreadIdFromOneToOneThreadResult {
5464
- required bytes threadId = 1;
5465
- }
5466
-
5467
- message MinosValidateEpochInput {
5468
- required EpochPublicData epochPublicData = 1;
5469
- required EpochPublicData previousEpochPublicData = 2;
5470
- required EpochSignatures signatures = 3;
5471
- }
5472
-
5473
- message MinosValidateEpochResult {
5474
- oneof result {
5475
- bool valid = 1;
5476
- string errorMessage = 2;
5477
- }
5478
- }
5479
-
5480
- message MinosVerifySingleEpochInput {
5481
- required EpochPublicData epochPublicData = 1;
5482
- required bytes signature = 2;
5483
- }
5484
-
5485
- message MinosVerifySingleEpochResult {
5486
- required bool valid = 1;
5487
- }
5488
-
5489
- message MmkDistribution {
5490
- repeated MmkDistributionToDetachedDevice toDetachedDevices = 1;
5491
- required MmkDistributionToMailbox toMailbox = 2;
5492
- required uint64 version = 3;
5493
- }
5494
-
5495
- message MmkDistributionToDetachedDevice {
5496
- required bytes encryptedMmk = 1;
5497
- required bytes recipDeviceHash = 2;
5498
- }
5499
-
5500
- message MmkDistributionToMailbox {
5501
- required bytes encryptedMmk = 1;
5502
- required bytes recipMailboxHeadHash = 2;
5503
- }
5504
-
5505
- message MmkFromDetachedDevice {
5506
- required MessagingMailboxPublicData mmk = 1;
5507
- required DetachedDevicePublicData fromDetachedDevice = 2;
5508
- required MerkleMembershipProof membershipProof = 3;
5509
- }
5510
-
5511
4709
  message Money {
5512
4710
  optional int64 value = 1;
5513
4711
  optional uint32 offset = 2;
@@ -6237,12 +5435,6 @@ message SignalMessage {
6237
5435
  optional bytes ciphertext = 4;
6238
5436
  }
6239
5437
 
6240
- message SignedMmkDistributionFromMailbox {
6241
- required MmkDistribution mmkDistribution = 1;
6242
- required bytes signature = 2;
6243
- required MessagingMailboxPublicData fromMailbox = 3;
6244
- }
6245
-
6246
5438
  message SignedPreKeyRecordStructure {
6247
5439
  optional uint32 id = 1;
6248
5440
  optional bytes publicKey = 2;
@@ -6378,11 +5570,6 @@ message StickerMetadata {
6378
5570
  optional bool isAvatarSticker = 14;
6379
5571
  }
6380
5572
 
6381
- message SubProtocol {
6382
- optional bytes payload = 1;
6383
- optional int32 version = 2;
6384
- }
6385
-
6386
5573
  message SyncActionData {
6387
5574
  optional bytes index = 1;
6388
5575
  optional SyncActionValue value = 2;
@@ -7825,19 +7012,3 @@ message WebNotificationsInfo {
7825
7012
  optional uint32 notifyMessageCount = 4;
7826
7013
  repeated WebMessageInfo notifyMessages = 5;
7827
7014
  }
7828
-
7829
- message WrapTransportSigningPublicKeyInput {
7830
- required bytes keyBytes = 1;
7831
- }
7832
-
7833
- message WrapTransportSigningPublicKeyResult {
7834
- required bytes prefixedKey = 1;
7835
- }
7836
-
7837
- message WrapTransportSigningSecretKeyInput {
7838
- required bytes keyBytes = 1;
7839
- }
7840
-
7841
- message WrapTransportSigningSecretKeyResult {
7842
- required bytes prefixedKey = 1;
7843
- }