@wppconnect/wa-proto 2.3000.1045813171 → 2.3000.1045814658

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 -740
  2. package/dist/index.d.ts +25150 -38017
  3. package/dist/index.js +87890 -121728
  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.1045813171
4
+ /// WhatsApp Version: 2.3000.1045814658
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -2074,57 +2074,6 @@ message CreateBackupOutput {
2074
2074
  optional string error = 5;
2075
2075
  }
2076
2076
 
2077
- message DecryptMekForDistributionFromTransportSenderInput {
2078
- required TransportSenderMEKDistributionSingleRecipient mekDistribution = 1;
2079
- required bytes mekId = 2;
2080
- required bytes rosterHash = 3;
2081
- required bytes recipientEncSk = 4;
2082
- required uint64 version = 5;
2083
- optional MinosClientConfig conf = 6;
2084
- message TransportSenderMEKDistributionSingleRecipient {
2085
- required bytes encryptedMek = 1;
2086
- required bytes ephemeralEncryptionPk = 2;
2087
- required bytes signingPk = 3;
2088
- required bytes signature = 4;
2089
- optional bytes recipientEpochHead = 5;
2090
- }
2091
-
2092
- }
2093
-
2094
- message DecryptMekForDistributionFromTransportSenderResult {
2095
- oneof result {
2096
- DecryptMekForDistributionFromTransportSenderSuccess success = 1;
2097
- string errorMessage = 2;
2098
- }
2099
- }
2100
-
2101
- message DecryptMekForDistributionFromTransportSenderSuccess {
2102
- required bytes mek = 1;
2103
- }
2104
-
2105
- message DecryptMekForDistributionInput {
2106
- required bytes toMailboxSk = 1;
2107
- required bytes fromPk = 2;
2108
- required bytes mekId = 3;
2109
- required bytes senderEpochHead = 4;
2110
- required bytes rosterHash = 5;
2111
- required bytes ciphertext = 6;
2112
- optional bytes toEpochHead = 7;
2113
- optional int32 mekEncryptionVersion = 8;
2114
- optional MinosClientConfig conf = 9;
2115
- }
2116
-
2117
- message DecryptMekForDistributionResult {
2118
- oneof result {
2119
- DecryptMekForDistributionSuccess success = 1;
2120
- string errorMessage = 2;
2121
- }
2122
- }
2123
-
2124
- message DecryptMekForDistributionSuccess {
2125
- required bytes mek = 1;
2126
- }
2127
-
2128
2077
  message DecryptMessageInput {
2129
2078
  required bytes epochRootKey = 1;
2130
2079
  required bytes epochAnonId = 2;
@@ -2138,76 +2087,6 @@ message DecryptMessageOutput {
2138
2087
  optional string error = 2;
2139
2088
  }
2140
2089
 
2141
- message DecryptSelfMmkDistributionInput {
2142
- required bytes encryptedMmk = 1;
2143
- required bytes exportRootKey = 2;
2144
- required bytes mailboxHeadHash = 3;
2145
- }
2146
-
2147
- message DecryptSelfMmkDistributionResult {
2148
- oneof result {
2149
- DecryptSelfMmkDistributionSuccess success = 1;
2150
- string errorMessage = 2;
2151
- }
2152
- }
2153
-
2154
- message DecryptSelfMmkDistributionSuccess {
2155
- required bytes mmkSeed = 1;
2156
- }
2157
-
2158
- message DeriveAttachmentAccessTokenSecretInput {
2159
- required bytes mediaKey = 1;
2160
- }
2161
-
2162
- message DeriveAttachmentAccessTokenSecretResult {
2163
- required bytes attachmentAccessTokenSecret = 1;
2164
- }
2165
-
2166
- message DeriveAttachmentPrimaryKeySecretInput {
2167
- required bytes mediaKey = 1;
2168
- }
2169
-
2170
- message DeriveAttachmentPrimaryKeySecretResult {
2171
- required bytes attachmentPrimaryKeySecret = 1;
2172
- }
2173
-
2174
- message DeriveMailboxAuthKeypairInput {
2175
- required bytes exportRootKey = 1;
2176
- required uint64 epochNumber = 2;
2177
- }
2178
-
2179
- message DeriveMailboxAuthKeypairResult {
2180
- required bytes mailboxAuthPublicKey = 1;
2181
- required bytes mailboxAuthPrivateKey = 2;
2182
- }
2183
-
2184
- message DeriveMailboxEncryptionKeypairInput {
2185
- required bytes exportRootKey = 1;
2186
- required uint64 epochNumber = 2;
2187
- }
2188
-
2189
- message DeriveMailboxEncryptionKeypairResult {
2190
- required bytes mailboxEncryptionPublicKey = 1;
2191
- required bytes mailboxEncryptionPrivateKey = 2;
2192
- }
2193
-
2194
- message DeriveMailboxSigningKeypairInput {
2195
- required bytes exportRootKey = 1;
2196
- required uint64 epochNumber = 2;
2197
- }
2198
-
2199
- message DeriveMailboxSigningKeypairResult {
2200
- oneof result {
2201
- DeriveMailboxSigningKeypairSuccess success = 1;
2202
- string errorMessage = 2;
2203
- }
2204
- }
2205
-
2206
- message DeriveMailboxSigningKeypairSuccess {
2207
- required bytes mailboxSigningPublicKey = 1;
2208
- required bytes mailboxSigningPrivateKey = 2;
2209
- }
2210
-
2211
2090
  message DeriveMessageKeyInput {
2212
2091
  required bytes epochRootKey = 1;
2213
2092
  required bytes epochAnonId = 2;
@@ -2219,33 +2098,6 @@ message DeriveMessageKeyOutput {
2219
2098
  optional string error = 2;
2220
2099
  }
2221
2100
 
2222
- message DeriveMessagingMailboxKeypairsInput {
2223
- required bytes mmkSeed = 1;
2224
- }
2225
-
2226
- message DeriveMessagingMailboxKeypairsResult {
2227
- oneof result {
2228
- DeriveMessagingMailboxKeypairsSuccess success = 1;
2229
- string errorMessage = 2;
2230
- }
2231
- }
2232
-
2233
- message DeriveMessagingMailboxKeypairsSuccess {
2234
- required bytes encSk = 1;
2235
- required bytes encPk = 2;
2236
- optional bytes authSk = 3;
2237
- optional bytes authPk = 4;
2238
- }
2239
-
2240
- message DetachedDevicePublicData {
2241
- required uint64 deviceId = 1;
2242
- required bytes name = 2;
2243
- required bytes sigPk = 3;
2244
- required bytes authPk = 4;
2245
- required bytes encPk = 5;
2246
- required bytes signature = 6;
2247
- }
2248
-
2249
2101
  message DeviceCapabilities {
2250
2102
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
2251
2103
  optional LIDMigration lidMigration = 2;
@@ -2427,119 +2279,6 @@ message DisappearingMode {
2427
2279
  }
2428
2280
  }
2429
2281
 
2430
- enum EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE {
2431
- OPEN_NATIVE = 11;
2432
- }
2433
- enum EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE {
2434
- UNSUPPORTED = -1;
2435
- IG_STORY_PHOTO_MENTION = 4;
2436
- IG_SINGLE_IMAGE_POST_SHARE = 9;
2437
- IG_MULTIPOST_SHARE = 10;
2438
- IG_SINGLE_VIDEO_POST_SHARE = 11;
2439
- IG_STORY_PHOTO_SHARE = 12;
2440
- IG_STORY_VIDEO_SHARE = 13;
2441
- IG_CLIPS_SHARE = 14;
2442
- IG_IGTV_SHARE = 15;
2443
- IG_SHOP_SHARE = 16;
2444
- IG_PROFILE_SHARE = 19;
2445
- IG_STORY_PHOTO_HIGHLIGHT_SHARE = 20;
2446
- IG_STORY_VIDEO_HIGHLIGHT_SHARE = 21;
2447
- IG_STORY_REPLY = 22;
2448
- IG_STORY_REACTION = 23;
2449
- IG_STORY_VIDEO_MENTION = 24;
2450
- IG_STORY_HIGHLIGHT_REPLY = 25;
2451
- IG_STORY_HIGHLIGHT_REACTION = 26;
2452
- IG_EXTERNAL_LINK = 27;
2453
- IG_RECEIVER_FETCH = 28;
2454
- FB_FEED_SHARE = 1000;
2455
- FB_STORY_REPLY = 1001;
2456
- FB_STORY_SHARE = 1002;
2457
- FB_STORY_MENTION = 1003;
2458
- FB_FEED_VIDEO_SHARE = 1004;
2459
- FB_GAMING_CUSTOM_UPDATE = 1005;
2460
- FB_PRODUCER_STORY_REPLY = 1006;
2461
- FB_EVENT = 1007;
2462
- FB_FEED_POST_PRIVATE_REPLY = 1008;
2463
- FB_SHORT = 1009;
2464
- FB_COMMENT_MENTION_SHARE = 1010;
2465
- FB_POST_MENTION = 1011;
2466
- FB_PROFILE_DIRECTORY_ITEM = 1013;
2467
- FB_FEED_POST_REACTION_REPLY = 1014;
2468
- FB_QUICKSNAP_REPLY = 1015;
2469
- MSG_EXTERNAL_LINK_SHARE = 2000;
2470
- MSG_P2P_PAYMENT = 2001;
2471
- MSG_LOCATION_SHARING = 2002;
2472
- MSG_LOCATION_SHARING_V2 = 2003;
2473
- MSG_HIGHLIGHTS_TAB_FRIEND_UPDATES_REPLY = 2004;
2474
- MSG_HIGHLIGHTS_TAB_LOCAL_EVENT_REPLY = 2005;
2475
- MSG_RECEIVER_FETCH = 2006;
2476
- MSG_IG_MEDIA_SHARE = 2007;
2477
- MSG_GEN_AI_SEARCH_PLUGIN_RESPONSE = 2008;
2478
- MSG_REELS_LIST = 2009;
2479
- MSG_CONTACT = 2010;
2480
- MSG_THREADS_POST_SHARE = 2011;
2481
- MSG_FILE = 2012;
2482
- MSG_AVATAR_DETAILS = 2013;
2483
- MSG_AI_CONTACT = 2014;
2484
- MSG_MEMORIES_SHARE = 2015;
2485
- MSG_SHARED_ALBUM_REPLY = 2016;
2486
- MSG_SHARED_ALBUM = 2017;
2487
- MSG_OCCAMADILLO_XMA = 2018;
2488
- MSG_GEN_AI_SUBSCRIPTION = 2021;
2489
- MSG_GEN_AI_REMINDER = 2022;
2490
- MSG_GEN_AI_MEMU_ONBOARDING_RESPONSE = 2023;
2491
- MSG_NOTE_REPLY = 2024;
2492
- MSG_NOTE_MENTION = 2025;
2493
- GEN_AI_ENTITY = 2026;
2494
- MSG_OPG_P2P_PAYMENT = 2027;
2495
- GEN_AI_RICH_RESPONSE = 2028;
2496
- MSG_MUSIC_STICKER = 2029;
2497
- MSG_PHONE_NUMBER = 2030;
2498
- AI_ACTIVITY_SHARE = 2031;
2499
- MSG_PRIVATE_XMA = 2032;
2500
- MSG_SOCIAL_CUE_MEMORIES = 2033;
2501
- MSG_MANUS_GROWTH_REFERRAL = 2060;
2502
- MSG_MOMENT_LINK = 2061;
2503
- MSG_HORIZON_WEEL = 2062;
2504
- MSG_MOMENT_ADDED = 2063;
2505
- RTC_AUDIO_CALL = 3000;
2506
- RTC_VIDEO_CALL = 3001;
2507
- RTC_MISSED_AUDIO_CALL = 3002;
2508
- RTC_MISSED_VIDEO_CALL = 3003;
2509
- RTC_GROUP_AUDIO_CALL = 3004;
2510
- RTC_GROUP_VIDEO_CALL = 3005;
2511
- RTC_MISSED_GROUP_AUDIO_CALL = 3006;
2512
- RTC_MISSED_GROUP_VIDEO_CALL = 3007;
2513
- RTC_ONGOING_AUDIO_CALL = 3008;
2514
- RTC_ONGOING_VIDEO_CALL = 3009;
2515
- MSG_RECEIVER_FETCH_FALLBACK = 3025;
2516
- DATACLASS_SENDER_COPY = 4000;
2517
- }
2518
- enum EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH {
2519
- INFO = 0;
2520
- EYE_OFF = 1;
2521
- NEWS_OFF = 2;
2522
- WARNING = 3;
2523
- PRIVATE = 4;
2524
- NONE = 5;
2525
- MEDIA_LABEL = 6;
2526
- POST_COVER = 7;
2527
- POST_LABEL = 8;
2528
- WARNING_SCREENS = 9;
2529
- }
2530
- enum EXTENDED_CONTENT_MESSAGE_XMA_DATACLASS_TYPE {
2531
- SENDER_COPY = 0;
2532
- SERVER = 1;
2533
- SIGNED_CLIENT = 2;
2534
- }
2535
- enum EXTENDED_CONTENT_MESSAGE_XMA_LAYOUT_TYPE {
2536
- SINGLE = 0;
2537
- HSCROLL = 1;
2538
- PORTRAIT = 3;
2539
- STANDARD_DXMA = 12;
2540
- LIST_DXMA = 15;
2541
- GRID = 16;
2542
- }
2543
2282
  message EmbeddedContent {
2544
2283
  oneof content {
2545
2284
  EmbeddedMessage embeddedMessage = 1;
@@ -2569,46 +2308,6 @@ message EmbeddedMusic {
2569
2308
  optional int64 overlapDurationInMs = 14;
2570
2309
  }
2571
2310
 
2572
- message EncryptMekForDistributionInput {
2573
- required bytes senderEpochHead = 1;
2574
- required bytes toMailboxPk = 2;
2575
- required MailboxAuthKP fromKeypair = 3;
2576
- required MekBundle mek = 4;
2577
- optional bytes toEpochHead = 5;
2578
- optional MinosClientConfig conf = 6;
2579
- message MailboxAuthKP {
2580
- required bytes sk = 1;
2581
- required bytes pk = 2;
2582
- }
2583
-
2584
- }
2585
-
2586
- message EncryptMekForDistributionResult {
2587
- required bytes ciphertext = 1;
2588
- required uint64 version = 2;
2589
- }
2590
-
2591
- message EncryptMeksForDistributionFromTransportSenderInput {
2592
- required MekBundle mek = 1;
2593
- required TransportSigningKP transportSigningKp = 2;
2594
- repeated bytes recipientMailboxEncryptionPks = 3;
2595
- repeated bytes recipientEpochHeads = 4;
2596
- optional MinosClientConfig conf = 5;
2597
- message TransportSigningKP {
2598
- required bytes sk = 1;
2599
- required bytes pk = 2;
2600
- }
2601
-
2602
- }
2603
-
2604
- message EncryptMeksForDistributionFromTransportSenderResult {
2605
- repeated bytes encryptedMeks = 1;
2606
- required bytes ephemeralEncryptionPk = 2;
2607
- required bytes signingPk = 3;
2608
- required bytes signature = 4;
2609
- required uint64 version = 5;
2610
- }
2611
-
2612
2311
  message EncryptMessageInput {
2613
2312
  required bytes epochRootKey = 1;
2614
2313
  required bytes mailboxRootKey = 2;
@@ -2663,20 +2362,6 @@ message Epoch0Output {
2663
2362
  optional bytes epochRootKey = 7;
2664
2363
  }
2665
2364
 
2666
- message EpochPublicData {
2667
- required uint64 epochNumber = 1;
2668
- required string userFbid = 2;
2669
- required bytes mailboxSigningPk = 3;
2670
- required bytes mailboxEncryptionPk = 4;
2671
- required bytes mailboxAuthPk = 5;
2672
- optional bytes previousEpochHead = 6;
2673
- }
2674
-
2675
- message EpochSignatures {
2676
- required bytes selfSignature = 1;
2677
- optional bytes prevSignature = 2;
2678
- }
2679
-
2680
2365
  message EventAdditionalMetadata {
2681
2366
  optional bool isStale = 1;
2682
2367
  }
@@ -2693,47 +2378,6 @@ message ExitCode {
2693
2378
  optional string text = 2;
2694
2379
  }
2695
2380
 
2696
- message ExtendedContentMessage {
2697
- optional SubProtocol associatedMessage = 1;
2698
- optional EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE targetType = 2;
2699
- optional string targetUsername = 3;
2700
- optional string targetId = 4;
2701
- optional int64 targetExpiringAtSec = 5;
2702
- optional EXTENDED_CONTENT_MESSAGE_XMA_LAYOUT_TYPE xmaLayoutType = 6;
2703
- repeated CTA ctas = 7;
2704
- repeated SubProtocol previews = 8;
2705
- optional string titleText = 9;
2706
- optional string subtitleText = 10;
2707
- optional uint32 maxTitleNumOfLines = 11;
2708
- optional uint32 maxSubtitleNumOfLines = 12;
2709
- optional SubProtocol favicon = 13;
2710
- optional SubProtocol headerImage = 14;
2711
- optional string headerTitle = 15;
2712
- optional EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH overlayIconGlyph = 16;
2713
- optional string overlayTitle = 17;
2714
- optional string overlayDescription = 18;
2715
- optional string sentWithMessageId = 19;
2716
- optional string messageText = 20;
2717
- optional string headerSubtitle = 21;
2718
- optional string xmaDataclass = 22;
2719
- optional string contentRef = 23;
2720
- repeated string mentionedJid = 24;
2721
- repeated Command commands = 25;
2722
- repeated Mention mentions = 26;
2723
- optional EXTENDED_CONTENT_MESSAGE_XMA_DATACLASS_TYPE xmaDataclassType = 27;
2724
- optional string signedXmaDataclassValidation = 28;
2725
- optional string featureSharedSessionId = 29;
2726
- message CTA {
2727
- optional EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE buttonType = 1;
2728
- optional string title = 2;
2729
- optional string actionUrl = 3;
2730
- optional string nativeUrl = 4;
2731
- optional string ctaType = 5;
2732
- optional string actionContentBlob = 6;
2733
- }
2734
-
2735
- }
2736
-
2737
2381
  message ExternalBlobReference {
2738
2382
  optional bytes mediaKey = 1;
2739
2383
  optional string directPath = 2;
@@ -2771,22 +2415,6 @@ message ForwardedAIBotMessageInfo {
2771
2415
  optional string creatorName = 3;
2772
2416
  }
2773
2417
 
2774
- message GenerateMekInput {
2775
- repeated bytes epochHeads = 1;
2776
- }
2777
-
2778
- message GenerateMekResult {
2779
- required MekBundle mek = 1;
2780
- }
2781
-
2782
- message GenerateMekRosterHashInput {
2783
- repeated bytes epochHeads = 1;
2784
- }
2785
-
2786
- message GenerateMekRosterHashResult {
2787
- required bytes rosterHash = 1;
2788
- }
2789
-
2790
2418
  message GlobalSettings {
2791
2419
  optional WallpaperSettings lightThemeWallpaper = 1;
2792
2420
  optional MediaVisibility mediaVisibility = 2;
@@ -3151,157 +2779,6 @@ message Location {
3151
2779
  enum MENTION_MENTION_TYPE {
3152
2780
  PROFILE = 0;
3153
2781
  }
3154
- message MandrakeDecryptMekInput {
3155
- required bytes encryptedMek = 1;
3156
- required bytes recipientsHash = 4;
3157
- required bytes recipientEncSk = 5;
3158
- optional uint64 mekEncryptionVersion = 6;
3159
- optional MinosClientConfig conf = 7;
3160
- required MessagingMailboxPublicData recipientMmk = 8;
3161
- optional bytes mekId = 9;
3162
- optional MerkleMembershipProof recipientMembershipProof = 10;
3163
- oneof senderPublicData {
3164
- MandrakeDecryptMekInput.MmkSenderPublicData mmkSender = 2;
3165
- MandrakeDecryptMekInput.EpochSenderPublicData epochSender = 3;
3166
- MandrakeDecryptMekInput.PrecomputedEpochSenderPublicData precomputedEpochSender = 11;
3167
- }
3168
- message EpochSenderPublicData {
3169
- required EpochPublicData epochPublicData = 1;
3170
- }
3171
-
3172
- message MmkSenderPublicData {
3173
- required MessagingMailboxPublicData mmkPublicData = 1;
3174
- }
3175
-
3176
- message PrecomputedEpochSenderPublicData {
3177
- required bytes authPk = 1;
3178
- required bytes epochHead = 2;
3179
- }
3180
-
3181
- }
3182
-
3183
- message MandrakeDecryptMekResult {
3184
- oneof result {
3185
- MandrakeDecryptMekSuccess success = 1;
3186
- string errorMessage = 2;
3187
- }
3188
- }
3189
-
3190
- message MandrakeDecryptMekSuccess {
3191
- required bytes mek = 1;
3192
- }
3193
-
3194
- message MandrakeEncryptMekInput {
3195
- required MandrakeMekBundle mek = 1;
3196
- repeated MessagingMailboxPublicData recipients = 2;
3197
- optional MinosClientConfig conf = 5;
3198
- oneof sender {
3199
- MandrakeEncryptMekInput.MmkSender mmkSender = 3;
3200
- MandrakeEncryptMekInput.EpochSender epochSender = 4;
3201
- MandrakeEncryptMekInput.DetachedDeviceSender detachedDeviceSender = 6;
3202
- }
3203
- message DetachedDeviceSender {
3204
- required DetachedDevicePublicData detachedDevicePublicData = 1;
3205
- required bytes authSk = 2;
3206
- required bytes authPk = 3;
3207
- }
3208
-
3209
- message EpochSender {
3210
- required EpochPublicData epochPublicData = 1;
3211
- required bytes authSk = 2;
3212
- required bytes authPk = 3;
3213
- }
3214
-
3215
- message MmkSender {
3216
- required MessagingMailboxPublicData mmkPublicData = 1;
3217
- required bytes authSk = 2;
3218
- required bytes authPk = 3;
3219
- }
3220
-
3221
- }
3222
-
3223
- message MandrakeEncryptMekResult {
3224
- oneof result {
3225
- MandrakeEncryptMekSuccess success = 1;
3226
- string errorMessage = 2;
3227
- }
3228
- }
3229
-
3230
- message MandrakeEncryptMekSuccess {
3231
- repeated MekDistributionSingleRecipient distributions = 1;
3232
- required bytes recipientsHash = 2;
3233
- required uint64 version = 3;
3234
- message MekDistributionSingleRecipient {
3235
- required bytes encryptedMek = 1;
3236
- required MessagingMailboxPublicData toMmk = 2;
3237
- optional MerkleMembershipProof recipientMembershipProof = 3;
3238
- }
3239
-
3240
- }
3241
-
3242
- message MandrakeMekBundle {
3243
- required bytes key = 1;
3244
- required bytes mekId = 2;
3245
- required bytes mailboxHeadHash = 3;
3246
- }
3247
-
3248
- message MandrakeOpenEpochInput {
3249
- required string userFbid = 1;
3250
- required uint64 epochNumber = 2;
3251
- required bytes exportRootKey = 3;
3252
- required bytes previousExportRootKey = 4;
3253
- required uint64 previousEpochNumber = 5;
3254
- required bytes previousEpochHead = 6;
3255
- optional MessagingMailboxPublicData previousMmk = 7;
3256
- repeated DetachedDevicePublicData detachedDevices = 8;
3257
- }
3258
-
3259
- message MandrakeOpenEpochResult {
3260
- oneof result {
3261
- MandrakeOpenEpochSuccess success = 1;
3262
- string errorMessage = 2;
3263
- }
3264
- }
3265
-
3266
- message MandrakeOpenEpochSuccess {
3267
- required MinosSignedEpoch minosSignedEpoch = 1;
3268
- required SignedMmkDistributionFromMailbox signedMmkDistribution = 2;
3269
- }
3270
-
3271
- message MandrakeOpenInitialEpochInput {
3272
- required string userFbid = 1;
3273
- required uint64 epochNumber = 2;
3274
- required bytes exportRootKey = 3;
3275
- repeated DetachedDevicePublicData detachedDevices = 4;
3276
- }
3277
-
3278
- message MandrakeOpenInitialEpochResult {
3279
- oneof result {
3280
- MandrakeOpenEpochSuccess success = 1;
3281
- string errorMessage = 2;
3282
- }
3283
- }
3284
-
3285
- message MandrakeValidateNewMmkFromDetachedDeviceInput {
3286
- required MmkFromDetachedDevice mmkFromDevice = 1;
3287
- required bytes signature = 2;
3288
- required MessagingMailboxPublicData prevMmk = 3;
3289
- }
3290
-
3291
- message MandrakeValidateNewMmkFromMailboxInput {
3292
- required MessagingMailboxPublicData newMmk = 1;
3293
- required bytes signature = 2;
3294
- optional MessagingMailboxPublicData prevMmk = 3;
3295
- required EpochPublicData epochPublicData = 4;
3296
- }
3297
-
3298
- message MandrakeValidateNewMmkResult {
3299
- oneof result {
3300
- bool valid = 1;
3301
- string errorMessage = 2;
3302
- }
3303
- }
3304
-
3305
2782
  message MediaData {
3306
2783
  optional string localPath = 1;
3307
2784
  }
@@ -3374,12 +2851,6 @@ enum MediaVisibility {
3374
2851
  OFF = 1;
3375
2852
  ON = 2;
3376
2853
  }
3377
- message MekBundle {
3378
- required bytes key = 1;
3379
- required bytes mekId = 2;
3380
- required bytes rosterHash = 3;
3381
- }
3382
-
3383
2854
  message MemberLabel {
3384
2855
  optional string label = 1;
3385
2856
  optional int64 labelTimestamp = 2;
@@ -3392,13 +2863,6 @@ message Mention {
3392
2863
  optional uint32 length = 4;
3393
2864
  }
3394
2865
 
3395
- message MerkleMembershipProof {
3396
- required bytes proof = 1;
3397
- required bytes root = 2;
3398
- required uint64 leafIndex = 3;
3399
- required uint64 totalLeaves = 4;
3400
- }
3401
-
3402
2866
  message Message {
3403
2867
  optional string conversation = 1;
3404
2868
  optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
@@ -5378,187 +4842,6 @@ message MessageText {
5378
4842
  repeated Mention mentions = 4;
5379
4843
  }
5380
4844
 
5381
- message MessagingMailboxPublicData {
5382
- required bytes epochHead = 1;
5383
- required bytes deviceRosterHash = 2;
5384
- required uint64 sequenceNumber = 3;
5385
- required bytes sigPk = 4;
5386
- required bytes encPk = 5;
5387
- required bytes authPk = 6;
5388
- }
5389
-
5390
- message MinosClientConfig {
5391
- required int32 preferredMessageEncryptionVersion = 1;
5392
- required int32 preferredMekEncryptionVersion = 2;
5393
- }
5394
-
5395
- message MinosCommand {
5396
- oneof commandInput {
5397
- MinosEncryptAndSignMessageInput encryptAndSignMessage = 1;
5398
- MinosDecryptAndVerifyMessageInput decryptAndVerifyMessage = 2;
5399
- GenerateMekInput generateMek = 3;
5400
- GenerateMekRosterHashInput generateMekRosterHash = 4;
5401
- EncryptMekForDistributionInput encryptMekForDistribution = 5;
5402
- DecryptMekForDistributionInput decryptMekForDistribution = 6;
5403
- EncryptMeksForDistributionFromTransportSenderInput encryptMeksForDistributionFromTransportSender = 7;
5404
- DecryptMekForDistributionFromTransportSenderInput decryptMekForDistributionFromTransportSender = 8;
5405
- WrapTransportSigningPublicKeyInput wrapTransportSigningPublicKey = 9;
5406
- WrapTransportSigningSecretKeyInput wrapTransportSigningSecretKey = 10;
5407
- DeriveMailboxSigningKeypairInput deriveMailboxSigningKeypair = 11;
5408
- DeriveMailboxEncryptionKeypairInput deriveMailboxEncryptionKeypair = 12;
5409
- DeriveMailboxAuthKeypairInput deriveMailboxAuthKeypair = 13;
5410
- DeriveAttachmentAccessTokenSecretInput deriveAttachmentAccessTokenSecret = 14;
5411
- DeriveAttachmentPrimaryKeySecretInput deriveAttachmentPrimaryKeySecret = 15;
5412
- MinosOpenInitialEpochInput minosOpenInitialEpoch = 16;
5413
- MinosOpenEpochInput minosOpenEpoch = 17;
5414
- MinosValidateEpochInput minosValidateEpoch = 18;
5415
- MinosVerifySingleEpochInput minosVerifySingleEpoch = 19;
5416
- MinosThreadIdFromOneToOneThreadInput minosThreadIdFromOneToOneThread = 20;
5417
- MinosThreadIdFromActThreadIdInput minosThreadIdFromActThreadId = 21;
5418
- MandrakeOpenEpochInput mandrakeOpenEpoch = 22;
5419
- MandrakeEncryptMekInput mandrakeEncryptMek = 23;
5420
- MandrakeDecryptMekInput mandrakeDecryptMek = 24;
5421
- MandrakeOpenInitialEpochInput mandrakeOpenInitialEpoch = 25;
5422
- MandrakeValidateNewMmkFromMailboxInput mandrakeValidateNewMmkFromMailbox = 27;
5423
- MandrakeValidateNewMmkFromDetachedDeviceInput mandrakeValidateNewMmkFromDetachedDevice = 28;
5424
- DeriveMessagingMailboxKeypairsInput deriveMessagingMailboxKeypairs = 29;
5425
- DecryptSelfMmkDistributionInput decryptSelfMmkDistribution = 30;
5426
- }
5427
- }
5428
-
5429
- message MinosDecryptAndVerifyMessageInput {
5430
- required bytes transportSigningPk = 1;
5431
- required bytes mek = 2;
5432
- required bytes encryptedMessageCiphertext = 3;
5433
- required bytes encryptedMessageSignature = 4;
5434
- required MinosMessageMetadata metadata = 5;
5435
- optional int32 messageEncryptionVersion = 6;
5436
- optional MinosClientConfig conf = 7;
5437
- }
5438
-
5439
- message MinosDecryptAndVerifyMessageResult {
5440
- oneof result {
5441
- MinosDecryptAndVerifyMessageSuccess success = 1;
5442
- string errorMessage = 2;
5443
- }
5444
- }
5445
-
5446
- message MinosDecryptAndVerifyMessageSuccess {
5447
- required bytes plaintext = 1;
5448
- }
5449
-
5450
- message MinosEncryptAndSignMessageInput {
5451
- required bytes transportSigningSk = 1;
5452
- required bytes mek = 2;
5453
- required bytes plaintext = 3;
5454
- required MinosMessageMetadata metadata = 4;
5455
- optional bytes transportSigningPk = 5;
5456
- optional MinosClientConfig conf = 6;
5457
- }
5458
-
5459
- message MinosEncryptAndSignMessageResult {
5460
- required bytes ciphertext = 1;
5461
- required bytes signature = 2;
5462
- required int32 version = 3;
5463
- }
5464
-
5465
- message MinosMessageMetadata {
5466
- required bytes mekId = 1;
5467
- required uint64 timestamp = 2;
5468
- required string messageId = 3;
5469
- required bytes threadId = 4;
5470
- }
5471
-
5472
- message MinosOpenEpochInput {
5473
- required string userFbid = 1;
5474
- required uint64 epochNumber = 2;
5475
- required bytes exportRootKey = 3;
5476
- required bytes previousExportRootKey = 4;
5477
- required uint64 previousEpochNumber = 5;
5478
- required bytes previousEpochHead = 6;
5479
- }
5480
-
5481
- message MinosOpenEpochResult {
5482
- required MinosSignedEpoch minosSignedEpoch = 1;
5483
- }
5484
-
5485
- message MinosOpenInitialEpochInput {
5486
- required string userFbid = 1;
5487
- required uint64 epochNumber = 2;
5488
- required bytes exportRootKey = 3;
5489
- }
5490
-
5491
- message MinosOpenInitialEpochResult {
5492
- required MinosSignedEpoch minosSignedEpoch = 1;
5493
- }
5494
-
5495
- message MinosSignedEpoch {
5496
- required EpochPublicData epochPublicData = 1;
5497
- required EpochSignatures signatures = 2;
5498
- required bytes epochHead = 3;
5499
- }
5500
-
5501
- message MinosThreadIdFromActThreadIdInput {
5502
- required string actThreadId = 1;
5503
- }
5504
-
5505
- message MinosThreadIdFromActThreadIdResult {
5506
- required bytes threadId = 1;
5507
- }
5508
-
5509
- message MinosThreadIdFromOneToOneThreadInput {
5510
- required string actThreadId = 1;
5511
- required string selfFbid = 2;
5512
- }
5513
-
5514
- message MinosThreadIdFromOneToOneThreadResult {
5515
- required bytes threadId = 1;
5516
- }
5517
-
5518
- message MinosValidateEpochInput {
5519
- required EpochPublicData epochPublicData = 1;
5520
- required EpochPublicData previousEpochPublicData = 2;
5521
- required EpochSignatures signatures = 3;
5522
- }
5523
-
5524
- message MinosValidateEpochResult {
5525
- oneof result {
5526
- bool valid = 1;
5527
- string errorMessage = 2;
5528
- }
5529
- }
5530
-
5531
- message MinosVerifySingleEpochInput {
5532
- required EpochPublicData epochPublicData = 1;
5533
- required bytes signature = 2;
5534
- }
5535
-
5536
- message MinosVerifySingleEpochResult {
5537
- required bool valid = 1;
5538
- }
5539
-
5540
- message MmkDistribution {
5541
- repeated MmkDistributionToDetachedDevice toDetachedDevices = 1;
5542
- required MmkDistributionToMailbox toMailbox = 2;
5543
- required uint64 version = 3;
5544
- }
5545
-
5546
- message MmkDistributionToDetachedDevice {
5547
- required bytes encryptedMmk = 1;
5548
- required bytes recipDeviceHash = 2;
5549
- }
5550
-
5551
- message MmkDistributionToMailbox {
5552
- required bytes encryptedMmk = 1;
5553
- required bytes recipMailboxHeadHash = 2;
5554
- }
5555
-
5556
- message MmkFromDetachedDevice {
5557
- required MessagingMailboxPublicData mmk = 1;
5558
- required DetachedDevicePublicData fromDetachedDevice = 2;
5559
- required MerkleMembershipProof membershipProof = 3;
5560
- }
5561
-
5562
4845
  message Money {
5563
4846
  optional int64 value = 1;
5564
4847
  optional uint32 offset = 2;
@@ -6287,12 +5570,6 @@ message SignalMessage {
6287
5570
  optional bytes ciphertext = 4;
6288
5571
  }
6289
5572
 
6290
- message SignedMmkDistributionFromMailbox {
6291
- required MmkDistribution mmkDistribution = 1;
6292
- required bytes signature = 2;
6293
- required MessagingMailboxPublicData fromMailbox = 3;
6294
- }
6295
-
6296
5573
  message SignedPreKeyRecordStructure {
6297
5574
  optional uint32 id = 1;
6298
5575
  optional bytes publicKey = 2;
@@ -7797,19 +7074,3 @@ message WebNotificationsInfo {
7797
7074
  optional uint32 notifyMessageCount = 4;
7798
7075
  repeated WebMessageInfo notifyMessages = 5;
7799
7076
  }
7800
-
7801
- message WrapTransportSigningPublicKeyInput {
7802
- required bytes keyBytes = 1;
7803
- }
7804
-
7805
- message WrapTransportSigningPublicKeyResult {
7806
- required bytes prefixedKey = 1;
7807
- }
7808
-
7809
- message WrapTransportSigningSecretKeyInput {
7810
- required bytes keyBytes = 1;
7811
- }
7812
-
7813
- message WrapTransportSigningSecretKeyResult {
7814
- required bytes prefixedKey = 1;
7815
- }