@wppconnect/wa-proto 2.3000.1045028006 → 2.3000.1045038307

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.
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1045028006
4
+ /// WhatsApp Version: 2.3000.1045038307
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -324,6 +324,12 @@ message AvatarUserSettings {
324
324
  optional string password = 2;
325
325
  }
326
326
 
327
+ message BackwardEdge {
328
+ optional bytes encryptedPrevEpochAnonId = 1;
329
+ optional bytes encryptedPrevEpochRootKey = 2;
330
+ optional bytes prevEpochRootKeyFingerprint = 3;
331
+ }
332
+
327
333
  message BizAccountLinkInfo {
328
334
  optional uint64 whatsappBizAcctFbid = 1;
329
335
  optional string whatsappAcctNumber = 2;
@@ -2055,6 +2061,19 @@ message Conversation {
2055
2061
  }
2056
2062
  }
2057
2063
 
2064
+ message CreateBackupInput {
2065
+ required string recoveryCode = 1;
2066
+ required uint64 userId = 2;
2067
+ }
2068
+
2069
+ message CreateBackupOutput {
2070
+ optional DeviceOutput device = 1;
2071
+ optional VirtualDeviceOutput virtualDevice = 2;
2072
+ optional Epoch0Output epoch0 = 3;
2073
+ optional bytes mailboxRootKey = 4;
2074
+ optional string error = 5;
2075
+ }
2076
+
2058
2077
  message DecryptMekForDistributionFromTransportSenderInput {
2059
2078
  required TransportSenderMEKDistributionSingleRecipient mekDistribution = 1;
2060
2079
  required bytes mekId = 2;
@@ -2106,6 +2125,19 @@ message DecryptMekForDistributionSuccess {
2106
2125
  required bytes mek = 1;
2107
2126
  }
2108
2127
 
2128
+ message DecryptMessageInput {
2129
+ required bytes epochRootKey = 1;
2130
+ required bytes epochAnonId = 2;
2131
+ required string threadId = 3;
2132
+ required int32 encryptionVersion = 4;
2133
+ required bytes ciphertext = 5;
2134
+ }
2135
+
2136
+ message DecryptMessageOutput {
2137
+ optional bytes plaintextPayload = 1;
2138
+ optional string error = 2;
2139
+ }
2140
+
2109
2141
  message DecryptSelfMmkDistributionInput {
2110
2142
  required bytes encryptedMmk = 1;
2111
2143
  required bytes exportRootKey = 2;
@@ -2176,6 +2208,17 @@ message DeriveMailboxSigningKeypairSuccess {
2176
2208
  required bytes mailboxSigningPrivateKey = 2;
2177
2209
  }
2178
2210
 
2211
+ message DeriveMessageKeyInput {
2212
+ required bytes epochRootKey = 1;
2213
+ required bytes epochAnonId = 2;
2214
+ required string threadId = 3;
2215
+ }
2216
+
2217
+ message DeriveMessageKeyOutput {
2218
+ optional bytes messageKey = 1;
2219
+ optional string error = 2;
2220
+ }
2221
+
2179
2222
  message DeriveMessagingMailboxKeypairsInput {
2180
2223
  required bytes mmkSeed = 1;
2181
2224
  }
@@ -2278,6 +2321,19 @@ message DeviceListMetadata {
2278
2321
  repeated uint32 recipientKeyIndexes = 10 [packed=true];
2279
2322
  }
2280
2323
 
2324
+ message DeviceOutput {
2325
+ required bytes publicKey = 1;
2326
+ required bytes epochAuthPublicKey = 2;
2327
+ required bytes epochAuthPublicKeySig = 3;
2328
+ required bytes epochStoragePublicKey = 4;
2329
+ required bytes epochStoragePublicKeySig = 5;
2330
+ repeated int32 supportedEncryptionVersions = 6;
2331
+ required bytes encryptionVersionSignature = 7;
2332
+ required int32 clientVersion = 8;
2333
+ required bytes ocmfClientState = 9;
2334
+ required bytes epochStoragePrivateKey = 10;
2335
+ }
2336
+
2281
2337
  message DeviceProps {
2282
2338
  optional string os = 1;
2283
2339
  optional AppVersion version = 2;
@@ -2553,16 +2609,60 @@ message EncryptMeksForDistributionFromTransportSenderResult {
2553
2609
  required uint64 version = 5;
2554
2610
  }
2555
2611
 
2612
+ message EncryptMessageInput {
2613
+ required bytes epochRootKey = 1;
2614
+ required bytes mailboxRootKey = 2;
2615
+ required bytes orfClientState = 3;
2616
+ required bytes epochAnonId = 4;
2617
+ required uint64 epochId = 5;
2618
+ required string threadId = 6;
2619
+ required uint64 waCanonicalUserFbid = 7;
2620
+ required uint64 timestampMs = 8;
2621
+ required uint64 backupId = 9;
2622
+ required bytes plaintextPayload = 10;
2623
+ required string stanzaId = 11;
2624
+ }
2625
+
2626
+ message EncryptMessageOutput {
2627
+ optional bytes encryptedProtobuf = 1;
2628
+ optional bytes orfThreadId = 2;
2629
+ optional string valueSecretRef = 3;
2630
+ optional uint64 offlineThreadingId = 4;
2631
+ optional uint64 timestampMs = 5;
2632
+ optional string error = 7;
2633
+ }
2634
+
2556
2635
  message EncryptedPairingRequest {
2557
2636
  optional bytes encryptedPayload = 1;
2558
2637
  optional bytes iv = 2;
2559
2638
  }
2560
2639
 
2640
+ message EncryptedSecretValuesOutput {
2641
+ required bytes encryptedDevicePrivateKey = 1;
2642
+ required bytes encryptedObliviousValidationTokenBlob = 2;
2643
+ required bytes encryptedEpochStoragePrivateKey = 3;
2644
+ required bytes encryptedOcmfClientState = 4;
2645
+ optional bytes encryptedOrfClientStateV2 = 5;
2646
+ required bytes encryptedMailboxRootKeyBlob = 6;
2647
+ required bytes encryptedEpochAnonId = 7;
2648
+ required bytes encryptedEpochRootKey = 8;
2649
+ }
2650
+
2561
2651
  message EphemeralSetting {
2562
2652
  optional sfixed32 duration = 1;
2563
2653
  optional sfixed64 timestamp = 2;
2564
2654
  }
2565
2655
 
2656
+ message Epoch0Output {
2657
+ required uint64 epochFbid = 1;
2658
+ required bytes epochAnonId = 2;
2659
+ required bytes epochData = 3;
2660
+ required bytes wrappedRootKeyForSelf = 4;
2661
+ required bytes epochSignature = 5;
2662
+ required bytes epochRootKeyFingerprint = 6;
2663
+ optional bytes epochRootKey = 7;
2664
+ }
2665
+
2566
2666
  message EpochPublicData {
2567
2667
  required uint64 epochNumber = 1;
2568
2668
  required string userFbid = 2;
@@ -3007,6 +3107,17 @@ message LIDMigrationMappingSyncMessage {
3007
3107
  optional bytes encodedMappingPayload = 1;
3008
3108
  }
3009
3109
 
3110
+ message LabyrinthWaCommand {
3111
+ oneof commandInput {
3112
+ CreateBackupInput createBackupInput = 1;
3113
+ EncryptMessageInput encryptMessageInput = 2;
3114
+ DecryptMessageInput decryptMessageInput = 3;
3115
+ OrfThreadIdInput orfThreadIdInput = 4;
3116
+ DeriveMessageKeyInput deriveMessageKeyInput = 5;
3117
+ RotateEpochInput rotateEpochInput = 6;
3118
+ }
3119
+ }
3120
+
3010
3121
  message LegacyMessage {
3011
3122
  optional Message.EventResponseMessage eventResponseMessage = 1;
3012
3123
  optional Message.PollVoteMessage pollVote = 2;
@@ -5680,6 +5791,16 @@ message NotificationSettings {
5680
5791
  optional string callVibrate = 6;
5681
5792
  }
5682
5793
 
5794
+ message OrfThreadIdInput {
5795
+ required bytes orfClientState = 1;
5796
+ required string threadId = 2;
5797
+ }
5798
+
5799
+ message OrfThreadIdOutput {
5800
+ optional bytes orfThreadId = 1;
5801
+ optional string error = 2;
5802
+ }
5803
+
5683
5804
  message PairingRequest {
5684
5805
  optional bytes companionPublicKey = 1;
5685
5806
  optional bytes companionIdentityKey = 2;
@@ -6005,6 +6126,37 @@ message ReportingTokenInfo {
6005
6126
  optional uint64 reportingTagTimestamp = 2;
6006
6127
  }
6007
6128
 
6129
+ message RotateEpochInput {
6130
+ required bytes currentEpochRootKey = 1;
6131
+ required bytes currentEpochAnonId = 2;
6132
+ required uint64 currentEpochFbid = 3;
6133
+ required bytes epochStoragePrivateKey = 4;
6134
+ repeated RotateEpochMemberInput members = 5;
6135
+ }
6136
+
6137
+ message RotateEpochMemberEdge {
6138
+ optional uint64 deviceId = 1;
6139
+ optional bytes encryptedEpochKey = 2;
6140
+ optional bytes deviceEpochHmac = 3;
6141
+ }
6142
+
6143
+ message RotateEpochMemberInput {
6144
+ required uint64 deviceId = 1;
6145
+ required bytes epochStoragePublicKey = 2;
6146
+ required bytes devicePublicKey = 3;
6147
+ }
6148
+
6149
+ message RotateEpochOutput {
6150
+ optional bytes newEpochRootKey = 1;
6151
+ optional uint64 newEpochAnonId = 2;
6152
+ optional uint64 newEpochFbid = 8;
6153
+ optional bytes epochAnonId = 3;
6154
+ optional BackwardEdge backwardEdge = 4;
6155
+ repeated RotateEpochMemberEdge memberEdges = 5;
6156
+ optional bytes epochRootKeyFingerprint = 6;
6157
+ optional string error = 7;
6158
+ }
6159
+
6008
6160
  message RoutingInfo {
6009
6161
  repeated int32 regionId = 1;
6010
6162
  repeated int32 clusterId = 2;
@@ -7222,6 +7374,16 @@ message VerifiedNameCertificate {
7222
7374
 
7223
7375
  }
7224
7376
 
7377
+ message VirtualDeviceOutput {
7378
+ required bytes vdId = 1;
7379
+ required bytes vdPublicKey = 2;
7380
+ required bytes vdEpochStoragePublicKey = 3;
7381
+ required bytes vdEpochStoragePublicKeySig = 4;
7382
+ required bytes ocmfRotationToken = 5;
7383
+ required bytes deviceEpochHmac = 6;
7384
+ required EncryptedSecretValuesOutput encryptedSecretValues = 7;
7385
+ }
7386
+
7225
7387
  message WallpaperSettings {
7226
7388
  optional string filename = 1;
7227
7389
  optional uint32 opacity = 2;