@wppconnect/wa-proto 2.3000.1054995772 → 2.3000.1055074787

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 +7 -410
  2. package/dist/index.d.ts +30381 -38206
  3. package/dist/index.js +114663 -136095
  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.1054995772
4
+ /// WhatsApp Version: 2.3000.1055074787
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -328,24 +328,6 @@ message ActionLink {
328
328
  optional string buttonTitle = 2;
329
329
  }
330
330
 
331
- message AddDeviceKeysOutput {
332
- required bytes devicePublicKey = 1;
333
- required bytes epochAuthPublicKey = 2;
334
- required bytes epochAuthPublicKeySig = 3;
335
- required bytes epochStoragePublicKey = 4;
336
- required bytes epochStoragePublicKeySig = 5;
337
- required bytes epochStoragePrivateKey = 6;
338
- required bytes orfClientState = 7;
339
- }
340
-
341
- message AddDeviceSyncEpochInput {
342
- required uint64 epochId = 1;
343
- required int32 epochAnonId = 2;
344
- optional bytes encryptedEpochKey = 3;
345
- required bytes senderAuthPubKey = 4;
346
- optional uint64 nextEpochId = 5;
347
- }
348
-
349
331
  message AutoDownloadSettings {
350
332
  optional bool downloadImages = 1;
351
333
  optional bool downloadAudio = 2;
@@ -358,12 +340,6 @@ message AvatarUserSettings {
358
340
  optional string password = 2;
359
341
  }
360
342
 
361
- message BackwardEdge {
362
- required bytes encryptedPrevEpochAnonId = 1;
363
- required bytes encryptedPrevEpochRootKey = 2;
364
- required bytes prevEpochRootKeyFingerprint = 3;
365
- }
366
-
367
343
  message BizAIMetadataSync {
368
344
  oneof operation {
369
345
  BizAIMetadataSync.ServerEvent serverEvent = 1;
@@ -1563,36 +1539,6 @@ message CompanionEphemeralIdentity {
1563
1539
  optional string ref = 3;
1564
1540
  }
1565
1541
 
1566
- message CompanionTestMessageThreadIdInput {
1567
- }
1568
-
1569
- message CompanionTestMessageThreadIdOutput {
1570
- oneof result {
1571
- CompanionTestMessageThreadIdSuccess success = 1;
1572
- string error = 2;
1573
- }
1574
- }
1575
-
1576
- message CompanionTestMessageThreadIdSuccess {
1577
- required string threadId = 1;
1578
- }
1579
-
1580
- message ComputeClientSealTokenInput {
1581
- required bytes orfClientState = 1;
1582
- required uint64 backupId = 2;
1583
- }
1584
-
1585
- message ComputeClientSealTokenOutput {
1586
- oneof result {
1587
- ComputeClientSealTokenSuccess success = 1;
1588
- string error = 2;
1589
- }
1590
- }
1591
-
1592
- message ComputeClientSealTokenSuccess {
1593
- required bytes clientSealToken = 1;
1594
- }
1595
-
1596
1542
  message Config {
1597
1543
  map<uint32, Field> field = 1;
1598
1544
  }
@@ -1994,94 +1940,6 @@ message Conversation {
1994
1940
  }
1995
1941
  }
1996
1942
 
1997
- message CreateBackupInput {
1998
- required string recoveryCode = 1;
1999
- required uint64 userId = 2;
2000
- }
2001
-
2002
- message CreateBackupOutput {
2003
- oneof result {
2004
- CreateBackupSuccess success = 1;
2005
- string error = 2;
2006
- }
2007
- }
2008
-
2009
- message CreateBackupSuccess {
2010
- required DeviceOutput device = 1;
2011
- required VirtualDeviceOutput virtualDevice = 2;
2012
- required Epoch0Output epoch0 = 3;
2013
- required bytes mailboxRootKey = 4;
2014
- }
2015
-
2016
- message DecryptMessageInput {
2017
- required bytes epochRootKey = 1;
2018
- required int32 epochAnonId = 2;
2019
- required string threadId = 3;
2020
- required int32 encryptionVersion = 4;
2021
- required bytes ciphertext = 5;
2022
- }
2023
-
2024
- message DecryptMessageOutput {
2025
- oneof result {
2026
- DecryptMessageSuccess success = 1;
2027
- string error = 2;
2028
- }
2029
- }
2030
-
2031
- message DecryptMessageSuccess {
2032
- required bytes plaintextPayload = 1;
2033
- }
2034
-
2035
- message DeriveEpochsInput {
2036
- required bytes epochStoragePrivateKey = 1;
2037
- repeated EpochKey epochs = 2;
2038
- repeated EpochDerivationEdge edges = 3;
2039
- }
2040
-
2041
- message DeriveEpochsOutput {
2042
- oneof result {
2043
- DeriveEpochsSuccess success = 1;
2044
- string error = 2;
2045
- }
2046
- }
2047
-
2048
- message DeriveEpochsSuccess {
2049
- repeated EpochKey epochs = 1;
2050
- }
2051
-
2052
- message DeriveMessageKeyInput {
2053
- required bytes epochRootKey = 1;
2054
- required int32 epochAnonId = 2;
2055
- required string threadId = 3;
2056
- }
2057
-
2058
- message DeriveMessageKeyOutput {
2059
- oneof result {
2060
- DeriveMessageKeySuccess success = 1;
2061
- string error = 2;
2062
- }
2063
- }
2064
-
2065
- message DeriveMessageKeySuccess {
2066
- required bytes messageKey = 1;
2067
- }
2068
-
2069
- message DeriveVirtualDeviceIdInput {
2070
- required string recoveryCode = 1;
2071
- required uint64 userId = 2;
2072
- }
2073
-
2074
- message DeriveVirtualDeviceIdOutput {
2075
- oneof result {
2076
- DeriveVirtualDeviceIdSuccess success = 1;
2077
- string error = 2;
2078
- }
2079
- }
2080
-
2081
- message DeriveVirtualDeviceIdSuccess {
2082
- required bytes virtualDeviceId = 1;
2083
- }
2084
-
2085
1943
  message DeviceCapabilities {
2086
1944
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
2087
1945
  optional LIDMigration lidMigration = 2;
@@ -2097,6 +1955,7 @@ message DeviceCapabilities {
2097
1955
  optional HostWriteMutationSupport hostWriteMutationSupport = 12;
2098
1956
  optional BizAiWebOnboarding bizAiWebOnboarding = 13;
2099
1957
  optional PhoneNumberSharing phoneNumberSharing = 14;
1958
+ optional RecentConversationsOnDemand recentConversationsOnDemand = 15;
2100
1959
  message AiFbidMigration {
2101
1960
  optional uint64 chatDbMigrationTimestamp = 1;
2102
1961
  optional uint32 supportVersion = 2;
@@ -2160,6 +2019,10 @@ message DeviceCapabilities {
2160
2019
  optional bool phoneSharingSupported = 1;
2161
2020
  }
2162
2021
 
2022
+ message RecentConversationsOnDemand {
2023
+ optional bool supported = 1;
2024
+ }
2025
+
2163
2026
  message ReverseHistorySync {
2164
2027
  repeated Product enabledProducts = 1;
2165
2028
  enum Product {
@@ -2190,21 +2053,6 @@ message DeviceListMetadata {
2190
2053
  repeated uint32 recipientKeyIndexes = 10 [packed=true];
2191
2054
  }
2192
2055
 
2193
- message DeviceOutput {
2194
- required bytes publicKey = 1;
2195
- required bytes epochAuthPublicKey = 2;
2196
- required bytes epochAuthPublicKeySig = 3;
2197
- required bytes epochStoragePublicKey = 4;
2198
- required bytes epochStoragePublicKeySig = 5;
2199
- repeated int32 supportedEncryptionVersions = 6;
2200
- required bytes encryptionVersionSignature = 7;
2201
- required int32 clientVersion = 8;
2202
- required bytes ocmfClientState = 9;
2203
- required bytes epochStoragePrivateKey = 10;
2204
- required bytes epochAuthPrivateKey = 11;
2205
- required bytes deviceEpochHmac = 12;
2206
- }
2207
-
2208
2056
  message DeviceProps {
2209
2057
  optional string os = 1;
2210
2058
  optional AppVersion version = 2;
@@ -2335,35 +2183,6 @@ message EmbeddedMusic {
2335
2183
  optional int64 overlapDurationInMs = 14;
2336
2184
  }
2337
2185
 
2338
- message EncryptMessageInput {
2339
- required bytes epochRootKey = 1;
2340
- required bytes mailboxRootKey = 2;
2341
- required bytes orfClientState = 3;
2342
- required int32 epochAnonId = 4;
2343
- required uint64 epochId = 5;
2344
- required string threadId = 6;
2345
- required uint64 waCanonicalUserFbid = 7;
2346
- required uint64 timestampMs = 8;
2347
- required uint64 backupId = 9;
2348
- required bytes plaintextPayload = 10;
2349
- required string stanzaId = 11;
2350
- }
2351
-
2352
- message EncryptMessageOutput {
2353
- oneof result {
2354
- EncryptMessageSuccess success = 1;
2355
- string error = 2;
2356
- }
2357
- }
2358
-
2359
- message EncryptMessageSuccess {
2360
- required bytes encryptedProtobuf = 1;
2361
- required bytes orfThreadId = 2;
2362
- required string valueSecretRef = 3;
2363
- required uint64 offlineThreadingId = 4;
2364
- required uint64 timestampMs = 5;
2365
- }
2366
-
2367
2186
  message EncryptedJoinRequestPayload {
2368
2187
  optional bytes encryptedAnswers = 1;
2369
2188
  optional bytes encIv = 2;
@@ -2376,45 +2195,11 @@ message EncryptedPairingRequest {
2376
2195
  optional bytes iv = 2;
2377
2196
  }
2378
2197
 
2379
- message EncryptedSecretValuesOutput {
2380
- required bytes encryptedDevicePrivateKey = 1;
2381
- required bytes encryptedObliviousValidationTokenBlob = 2;
2382
- required bytes encryptedEpochStoragePrivateKey = 3;
2383
- required bytes encryptedOcmfClientState = 4;
2384
- required bytes encryptedMailboxRootKeyBlob = 6;
2385
- required bytes encryptedEpochAnonId = 7;
2386
- required bytes encryptedEpochRootKey = 8;
2387
- }
2388
-
2389
2198
  message EphemeralSetting {
2390
2199
  optional sfixed32 duration = 1;
2391
2200
  optional sfixed64 timestamp = 2;
2392
2201
  }
2393
2202
 
2394
- message Epoch0Output {
2395
- required int32 epochAnonId = 2;
2396
- required bytes epochRootKeyFingerprint = 6;
2397
- required bytes epochRootKey = 7;
2398
- }
2399
-
2400
- message EpochDerivationEdge {
2401
- required EpochIds fromEpoch = 1;
2402
- required EpochIds toEpoch = 2;
2403
- optional ForwardEdgeInput forwardEdge = 3;
2404
- optional bytes backwardEdge = 4;
2405
- }
2406
-
2407
- message EpochIds {
2408
- required uint64 serverEpochId = 1;
2409
- required int32 epochAnonId = 2;
2410
- }
2411
-
2412
- message EpochKey {
2413
- required uint64 serverEpochId = 1;
2414
- required int32 epochAnonId = 2;
2415
- required bytes epochRootKey = 3;
2416
- }
2417
-
2418
2203
  message EventAdditionalMetadata {
2419
2204
  optional bool isStale = 1;
2420
2205
  }
@@ -2478,11 +2263,6 @@ message FingerprintData {
2478
2263
  optional bytes hashedPublicKey = 6;
2479
2264
  }
2480
2265
 
2481
- message ForwardEdgeInput {
2482
- required bytes encryptedEntropy = 1;
2483
- required bytes authPublicKey = 2;
2484
- }
2485
-
2486
2266
  message ForwardedAIBotMessageInfo {
2487
2267
  optional string botName = 1;
2488
2268
  optional string botJid = 2;
@@ -2852,26 +2632,6 @@ message LIDMigrationMappingSyncMessage {
2852
2632
  optional bytes encodedMappingPayload = 1;
2853
2633
  }
2854
2634
 
2855
- message LabyrinthWaCommand {
2856
- oneof commandInput {
2857
- CreateBackupInput createBackupInput = 1;
2858
- EncryptMessageInput encryptMessageInput = 2;
2859
- DecryptMessageInput decryptMessageInput = 3;
2860
- OrfThreadIdInput orfThreadIdInput = 4;
2861
- DeriveMessageKeyInput deriveMessageKeyInput = 5;
2862
- RotateEpochInput rotateEpochInput = 6;
2863
- DeriveVirtualDeviceIdInput deriveVirtualDeviceIdInput = 7;
2864
- PrepareAddDeviceInput prepareAddDeviceInput = 8;
2865
- ComputeClientSealTokenInput computeClientSealTokenInput = 9;
2866
- OpenSealedThreadIdInput openSealedThreadIdInput = 10;
2867
- DeriveEpochsInput deriveEpochsInput = 11;
2868
- SealThreadIdInput sealThreadIdInput = 12;
2869
- PrepareAddPeerDeviceInput prepareAddPeerDeviceInput = 13;
2870
- CompanionTestMessageThreadIdInput companionTestMessageThreadIdInput = 14;
2871
- ParseCompanionTestMessageInput parseCompanionTestMessageInput = 15;
2872
- }
2873
- }
2874
-
2875
2635
  message LegacyMessage {
2876
2636
  optional Message.EventResponseMessage eventResponseMessage = 1;
2877
2637
  optional Message.PollVoteMessage pollVote = 2;
@@ -5425,61 +5185,12 @@ message OmittedConversationMetadata {
5425
5185
  repeated Conversation conversations = 6;
5426
5186
  }
5427
5187
 
5428
- message OpenSealedThreadIdInput {
5429
- required uint64 backupId = 1;
5430
- required bytes sealedThreadId = 2;
5431
- repeated EpochKey epochs = 3;
5432
- }
5433
-
5434
- message OpenSealedThreadIdOutput {
5435
- oneof result {
5436
- OpenSealedThreadIdSuccess success = 1;
5437
- string error = 2;
5438
- }
5439
- }
5440
-
5441
- message OpenSealedThreadIdSuccess {
5442
- required string threadId = 1;
5443
- required int32 sealEpochAnonId = 2;
5444
- }
5445
-
5446
- message OrfThreadIdInput {
5447
- required bytes orfClientState = 1;
5448
- required string threadId = 2;
5449
- }
5450
-
5451
- message OrfThreadIdOutput {
5452
- oneof result {
5453
- OrfThreadIdSuccess success = 1;
5454
- string error = 2;
5455
- }
5456
- }
5457
-
5458
- message OrfThreadIdSuccess {
5459
- required bytes orfThreadId = 1;
5460
- }
5461
-
5462
5188
  message PairingRequest {
5463
5189
  optional bytes companionPublicKey = 1;
5464
5190
  optional bytes companionIdentityKey = 2;
5465
5191
  optional bytes advSecret = 3;
5466
5192
  }
5467
5193
 
5468
- message ParseCompanionTestMessageInput {
5469
- required bytes plaintext = 1;
5470
- }
5471
-
5472
- message ParseCompanionTestMessageOutput {
5473
- oneof result {
5474
- ParseCompanionTestMessageSuccess success = 1;
5475
- string error = 2;
5476
- }
5477
- }
5478
-
5479
- message ParseCompanionTestMessageSuccess {
5480
- required uint64 createdAtMs = 1;
5481
- }
5482
-
5483
5194
  message PastParticipant {
5484
5195
  optional string userJid = 1;
5485
5196
  optional LeaveReason leaveReason = 2;
@@ -5722,56 +5433,6 @@ message PremiumMessageInfo {
5722
5433
  optional string serverCampaignId = 1;
5723
5434
  }
5724
5435
 
5725
- message PrepareAddDeviceInput {
5726
- required string recoveryCode = 1;
5727
- required uint64 userId = 2;
5728
- required string encryptedSecretValuesJson = 3;
5729
- required uint64 virtualDeviceBaseEpochId = 4;
5730
- required uint64 activeEpochId = 5;
5731
- repeated AddDeviceSyncEpochInput syncEpochs = 6;
5732
- }
5733
-
5734
- message PrepareAddDeviceOutput {
5735
- oneof result {
5736
- PrepareAddDeviceSuccess success = 1;
5737
- string error = 2;
5738
- }
5739
- }
5740
-
5741
- message PrepareAddDeviceSuccess {
5742
- required AddDeviceKeysOutput deviceKeys = 1;
5743
- required EpochKey currentEpoch = 2;
5744
- required bytes mailboxRootSalt = 3;
5745
- required bytes orfRotationToken = 4;
5746
- required bytes deviceEpochHmac = 5;
5747
- required bytes epochRootKeyFingerprint = 6;
5748
- repeated int32 supportedEncryptionVersions = 7;
5749
- required bytes encryptionVersionSignature = 8;
5750
- required int32 clientVersion = 9;
5751
- }
5752
-
5753
- message PrepareAddPeerDeviceInput {
5754
- required bytes advSecret = 1;
5755
- required bytes sealedPayload = 2;
5756
- required uint64 backupId = 3;
5757
- required uint64 userId = 4;
5758
- required bytes companionIdentityPub = 5;
5759
- required uint64 activeEpochId = 6;
5760
- }
5761
-
5762
- message PrepareAddPeerDeviceOutput {
5763
- oneof result {
5764
- PrepareAddPeerDeviceSuccess success = 1;
5765
- string error = 2;
5766
- }
5767
- }
5768
-
5769
- message PrepareAddPeerDeviceSuccess {
5770
- required PrepareAddDeviceSuccess enrolment = 1;
5771
- required uint64 serverDataId = 2;
5772
- required bytes companionDeviceBinding = 3;
5773
- }
5774
-
5775
5436
  message PrimaryEphemeralIdentity {
5776
5437
  optional bytes publicKey = 1;
5777
5438
  optional bytes nonce = 2;
@@ -5872,43 +5533,6 @@ message ReportingTokenInfo {
5872
5533
  optional uint64 reportingTagTimestamp = 2;
5873
5534
  }
5874
5535
 
5875
- message RotateEpochInput {
5876
- required bytes currentEpochRootKey = 1;
5877
- required int32 currentEpochAnonId = 2;
5878
- required uint64 currentEpochFbid = 3;
5879
- required bytes epochStorageAuthPrivateKey = 4;
5880
- repeated RotateEpochMemberInput members = 5;
5881
- }
5882
-
5883
- message RotateEpochMemberEdge {
5884
- required uint64 deviceId = 1;
5885
- required bytes encryptedEpochKey = 2;
5886
- required bytes deviceEpochHmac = 3;
5887
- }
5888
-
5889
- message RotateEpochMemberInput {
5890
- required uint64 deviceId = 1;
5891
- required bytes epochStoragePublicKey = 2;
5892
- required bytes devicePublicKey = 3;
5893
- required bytes prevDeviceEpochHmac = 4;
5894
- required bytes epochStoragePublicKeySig = 5;
5895
- }
5896
-
5897
- message RotateEpochOutput {
5898
- oneof result {
5899
- RotateEpochSuccess success = 1;
5900
- string error = 2;
5901
- }
5902
- }
5903
-
5904
- message RotateEpochSuccess {
5905
- required bytes newEpochRootKey = 1;
5906
- required int32 newEpochAnonId = 2;
5907
- required BackwardEdge backwardEdge = 4;
5908
- repeated RotateEpochMemberEdge memberEdges = 5;
5909
- required bytes epochRootKeyFingerprint = 6;
5910
- }
5911
-
5912
5536
  message RoutingInfo {
5913
5537
  repeated int32 regionId = 1;
5914
5538
  repeated int32 clusterId = 2;
@@ -5924,24 +5548,6 @@ message ScheduledMessageMetadata {
5924
5548
  optional uint64 scheduledTime = 3;
5925
5549
  }
5926
5550
 
5927
- message SealThreadIdInput {
5928
- required bytes epochRootKey = 1;
5929
- required int32 epochAnonId = 2;
5930
- required uint64 backupId = 3;
5931
- required string threadId = 4;
5932
- }
5933
-
5934
- message SealThreadIdOutput {
5935
- oneof result {
5936
- SealThreadIdSuccess success = 1;
5937
- string error = 2;
5938
- }
5939
- }
5940
-
5941
- message SealThreadIdSuccess {
5942
- required bytes sealedThreadId = 1;
5943
- }
5944
-
5945
5551
  message SenderKeyDistributionMessage {
5946
5552
  optional uint32 id = 1;
5947
5553
  optional uint32 iteration = 2;
@@ -5983,6 +5589,7 @@ message SenderKeyStateStructure {
5983
5589
 
5984
5590
  message ServerErrorReceipt {
5985
5591
  optional string stanzaId = 1;
5592
+ optional bool keepMediaKey = 2;
5986
5593
  }
5987
5594
 
5988
5595
  message SessionStructure {
@@ -7234,16 +6841,6 @@ message VerifiedNameCertificate {
7234
6841
 
7235
6842
  }
7236
6843
 
7237
- message VirtualDeviceOutput {
7238
- required bytes vdId = 1;
7239
- required bytes vdPublicKey = 2;
7240
- required bytes vdEpochStoragePublicKey = 3;
7241
- required bytes vdEpochStoragePublicKeySig = 4;
7242
- required bytes ocmfRotationToken = 5;
7243
- required bytes deviceEpochHmac = 6;
7244
- required EncryptedSecretValuesOutput encryptedSecretValues = 7;
7245
- }
7246
-
7247
6844
  message WallpaperSettings {
7248
6845
  optional string filename = 1;
7249
6846
  optional uint32 opacity = 2;