@wppconnect/wa-proto 2.3000.1046977494 → 2.3000.1047020237

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 +12 -212
  2. package/dist/index.d.ts +159 -3691
  3. package/dist/index.js +969 -11552
  4. package/package.json +1 -1
package/WAProto.proto CHANGED
@@ -1,7 +1,14 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1046977494
4
+ /// WhatsApp Version: 2.3000.1047020237
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;
@@ -314,22 +321,6 @@ message ActionLink {
314
321
  optional string buttonTitle = 2;
315
322
  }
316
323
 
317
- message AddDeviceEpochOutput {
318
- required uint64 serverEpochId = 1;
319
- required bytes epochAnonId = 2;
320
- required bytes epochRootKey = 3;
321
- }
322
-
323
- message AddDeviceKeysOutput {
324
- required bytes devicePublicKey = 1;
325
- required bytes epochAuthPublicKey = 2;
326
- required bytes epochAuthPublicKeySig = 3;
327
- required bytes epochStoragePublicKey = 4;
328
- required bytes epochStoragePublicKeySig = 5;
329
- required bytes epochStoragePrivateKey = 6;
330
- required bytes orfClientState = 7;
331
- }
332
-
333
324
  message AutoDownloadSettings {
334
325
  optional bool downloadImages = 1;
335
326
  optional bool downloadAudio = 2;
@@ -342,12 +333,6 @@ message AvatarUserSettings {
342
333
  optional string password = 2;
343
334
  }
344
335
 
345
- message BackwardEdge {
346
- optional bytes encryptedPrevEpochAnonId = 1;
347
- optional bytes encryptedPrevEpochRootKey = 2;
348
- optional bytes prevEpochRootKeyFingerprint = 3;
349
- }
350
-
351
336
  message BizAIMetadataSync {
352
337
  oneof operation {
353
338
  BizAIMetadataSync.ServerEvent serverEvent = 1;
@@ -1871,53 +1856,6 @@ message Conversation {
1871
1856
  }
1872
1857
  }
1873
1858
 
1874
- message CreateBackupInput {
1875
- required string recoveryCode = 1;
1876
- required uint64 userId = 2;
1877
- }
1878
-
1879
- message CreateBackupOutput {
1880
- optional DeviceOutput device = 1;
1881
- optional VirtualDeviceOutput virtualDevice = 2;
1882
- optional Epoch0Output epoch0 = 3;
1883
- optional bytes mailboxRootKey = 4;
1884
- optional string error = 5;
1885
- }
1886
-
1887
- message DecryptMessageInput {
1888
- required bytes epochRootKey = 1;
1889
- required bytes epochAnonId = 2;
1890
- required string threadId = 3;
1891
- required int32 encryptionVersion = 4;
1892
- required bytes ciphertext = 5;
1893
- }
1894
-
1895
- message DecryptMessageOutput {
1896
- optional bytes plaintextPayload = 1;
1897
- optional string error = 2;
1898
- }
1899
-
1900
- message DeriveMessageKeyInput {
1901
- required bytes epochRootKey = 1;
1902
- required bytes epochAnonId = 2;
1903
- required string threadId = 3;
1904
- }
1905
-
1906
- message DeriveMessageKeyOutput {
1907
- optional bytes messageKey = 1;
1908
- optional string error = 2;
1909
- }
1910
-
1911
- message DeriveVirtualDeviceIdInput {
1912
- required string recoveryCode = 1;
1913
- required uint64 userId = 2;
1914
- }
1915
-
1916
- message DeriveVirtualDeviceIdOutput {
1917
- optional bytes virtualDeviceId = 1;
1918
- optional string error = 2;
1919
- }
1920
-
1921
1859
  message DeviceCapabilities {
1922
1860
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
1923
1861
  optional LIDMigration lidMigration = 2;
@@ -1995,19 +1933,6 @@ message DeviceListMetadata {
1995
1933
  repeated uint32 recipientKeyIndexes = 10 [packed=true];
1996
1934
  }
1997
1935
 
1998
- message DeviceOutput {
1999
- required bytes publicKey = 1;
2000
- required bytes epochAuthPublicKey = 2;
2001
- required bytes epochAuthPublicKeySig = 3;
2002
- required bytes epochStoragePublicKey = 4;
2003
- required bytes epochStoragePublicKeySig = 5;
2004
- repeated int32 supportedEncryptionVersions = 6;
2005
- required bytes encryptionVersionSignature = 7;
2006
- required int32 clientVersion = 8;
2007
- required bytes ocmfClientState = 9;
2008
- required bytes epochStoragePrivateKey = 10;
2009
- }
2010
-
2011
1936
  message DeviceProps {
2012
1937
  optional string os = 1;
2013
1938
  optional AppVersion version = 2;
@@ -2130,60 +2055,16 @@ message EmbeddedMusic {
2130
2055
  optional int64 overlapDurationInMs = 14;
2131
2056
  }
2132
2057
 
2133
- message EncryptMessageInput {
2134
- required bytes epochRootKey = 1;
2135
- required bytes mailboxRootKey = 2;
2136
- required bytes orfClientState = 3;
2137
- required bytes epochAnonId = 4;
2138
- required uint64 epochId = 5;
2139
- required string threadId = 6;
2140
- required uint64 waCanonicalUserFbid = 7;
2141
- required uint64 timestampMs = 8;
2142
- required uint64 backupId = 9;
2143
- required bytes plaintextPayload = 10;
2144
- required string stanzaId = 11;
2145
- }
2146
-
2147
- message EncryptMessageOutput {
2148
- optional bytes encryptedProtobuf = 1;
2149
- optional bytes orfThreadId = 2;
2150
- optional string valueSecretRef = 3;
2151
- optional uint64 offlineThreadingId = 4;
2152
- optional uint64 timestampMs = 5;
2153
- optional string error = 7;
2154
- }
2155
-
2156
2058
  message EncryptedPairingRequest {
2157
2059
  optional bytes encryptedPayload = 1;
2158
2060
  optional bytes iv = 2;
2159
2061
  }
2160
2062
 
2161
- message EncryptedSecretValuesOutput {
2162
- required bytes encryptedDevicePrivateKey = 1;
2163
- required bytes encryptedObliviousValidationTokenBlob = 2;
2164
- required bytes encryptedEpochStoragePrivateKey = 3;
2165
- required bytes encryptedOcmfClientState = 4;
2166
- optional bytes encryptedOrfClientStateV2 = 5;
2167
- required bytes encryptedMailboxRootKeyBlob = 6;
2168
- required bytes encryptedEpochAnonId = 7;
2169
- required bytes encryptedEpochRootKey = 8;
2170
- }
2171
-
2172
2063
  message EphemeralSetting {
2173
2064
  optional sfixed32 duration = 1;
2174
2065
  optional sfixed64 timestamp = 2;
2175
2066
  }
2176
2067
 
2177
- message Epoch0Output {
2178
- required uint64 epochFbid = 1;
2179
- required bytes epochAnonId = 2;
2180
- required bytes epochData = 3;
2181
- required bytes wrappedRootKeyForSelf = 4;
2182
- required bytes epochSignature = 5;
2183
- required bytes epochRootKeyFingerprint = 6;
2184
- optional bytes epochRootKey = 7;
2185
- }
2186
-
2187
2068
  message EventAdditionalMetadata {
2188
2069
  optional bool isStale = 1;
2189
2070
  }
@@ -2552,19 +2433,6 @@ message LIDMigrationMappingSyncMessage {
2552
2433
  optional bytes encodedMappingPayload = 1;
2553
2434
  }
2554
2435
 
2555
- message LabyrinthWaCommand {
2556
- oneof commandInput {
2557
- CreateBackupInput createBackupInput = 1;
2558
- EncryptMessageInput encryptMessageInput = 2;
2559
- DecryptMessageInput decryptMessageInput = 3;
2560
- OrfThreadIdInput orfThreadIdInput = 4;
2561
- DeriveMessageKeyInput deriveMessageKeyInput = 5;
2562
- RotateEpochInput rotateEpochInput = 6;
2563
- DeriveVirtualDeviceIdInput deriveVirtualDeviceIdInput = 7;
2564
- PrepareAddDeviceInput prepareAddDeviceInput = 8;
2565
- }
2566
- }
2567
-
2568
2436
  message LegacyMessage {
2569
2437
  optional Message.EventResponseMessage eventResponseMessage = 1;
2570
2438
  optional Message.PollVoteMessage pollVote = 2;
@@ -2784,6 +2652,7 @@ message Message {
2784
2652
  optional StatusLinkPreviewMetadata statusLinkPreviewMetadata = 130;
2785
2653
  optional FutureProofMessage botPlatformRegistrationSuccessMessage = 131;
2786
2654
  optional FutureProofMessage newsletterScheduledMessage = 132;
2655
+ optional FutureProofMessage acp2SettingMessage = 133;
2787
2656
  message AlbumMessage {
2788
2657
  optional uint32 expectedImageCount = 2;
2789
2658
  optional uint32 expectedVideoCount = 3;
@@ -4179,6 +4048,7 @@ message Message {
4179
4048
  optional AIMetadataOperation aiMetadataOperation = 31;
4180
4049
  optional Message.MarkAsVerifiedAction markAsVerifiedAction = 32;
4181
4050
  optional CoexStateSync coexStateSync = 33;
4051
+ optional ACP2Setting acp2Setting = 35;
4182
4052
  enum Type {
4183
4053
  REVOKE = 0;
4184
4054
  EPHEMERAL_SETTING = 3;
@@ -4212,6 +4082,7 @@ message Message {
4212
4082
  AI_METADATA_OPERATION = 35;
4213
4083
  MARK_AS_VERIFIED_ACTION = 36;
4214
4084
  COEX_STATE_SYNC = 37;
4085
+ ACP2_SETTING = 39;
4215
4086
  }
4216
4087
  }
4217
4088
 
@@ -4628,6 +4499,7 @@ message MessageContextInfo {
4628
4499
  optional NonE2EEAttestation accountEncryptionAttestation = 18;
4629
4500
  optional bytes associatedPrimaryIdentityKey = 19;
4630
4501
  optional string teeContextAnchorMessageId = 20;
4502
+ optional ACP2Setting acp2Setting = 21;
4631
4503
  enum MessageAddonExpiryType {
4632
4504
  STATIC = 1;
4633
4505
  DEPENDENT_ON_PARENT = 2;
@@ -4883,16 +4755,6 @@ message NotificationSettings {
4883
4755
  optional string callVibrate = 6;
4884
4756
  }
4885
4757
 
4886
- message OrfThreadIdInput {
4887
- required bytes orfClientState = 1;
4888
- required string threadId = 2;
4889
- }
4890
-
4891
- message OrfThreadIdOutput {
4892
- optional bytes orfThreadId = 1;
4893
- optional string error = 2;
4894
- }
4895
-
4896
4758
  message PairingRequest {
4897
4759
  optional bytes companionPublicKey = 1;
4898
4760
  optional bytes companionIdentityKey = 2;
@@ -5111,27 +4973,6 @@ message PremiumMessageInfo {
5111
4973
  optional string serverCampaignId = 1;
5112
4974
  }
5113
4975
 
5114
- message PrepareAddDeviceInput {
5115
- required string recoveryCode = 1;
5116
- required uint64 userId = 2;
5117
- required string encryptedSecretValuesJson = 3;
5118
- required uint64 virtualDeviceBaseEpochId = 4;
5119
- required uint64 activeEpochId = 5;
5120
- }
5121
-
5122
- message PrepareAddDeviceOutput {
5123
- optional AddDeviceKeysOutput deviceKeys = 1;
5124
- optional AddDeviceEpochOutput currentEpoch = 2;
5125
- optional bytes mailboxRootSalt = 3;
5126
- optional bytes orfRotationToken = 4;
5127
- optional bytes deviceEpochHmac = 5;
5128
- optional bytes epochRootKeyFingerprint = 6;
5129
- repeated int32 supportedEncryptionVersions = 7;
5130
- optional bytes encryptionVersionSignature = 8;
5131
- optional int32 clientVersion = 9;
5132
- optional string error = 10;
5133
- }
5134
-
5135
4976
  message PrimaryEphemeralIdentity {
5136
4977
  optional bytes publicKey = 1;
5137
4978
  optional bytes nonce = 2;
@@ -5239,37 +5080,6 @@ message ReportingTokenInfo {
5239
5080
  optional uint64 reportingTagTimestamp = 2;
5240
5081
  }
5241
5082
 
5242
- message RotateEpochInput {
5243
- required bytes currentEpochRootKey = 1;
5244
- required bytes currentEpochAnonId = 2;
5245
- required uint64 currentEpochFbid = 3;
5246
- required bytes epochStoragePrivateKey = 4;
5247
- repeated RotateEpochMemberInput members = 5;
5248
- }
5249
-
5250
- message RotateEpochMemberEdge {
5251
- optional uint64 deviceId = 1;
5252
- optional bytes encryptedEpochKey = 2;
5253
- optional bytes deviceEpochHmac = 3;
5254
- }
5255
-
5256
- message RotateEpochMemberInput {
5257
- required uint64 deviceId = 1;
5258
- required bytes epochStoragePublicKey = 2;
5259
- required bytes devicePublicKey = 3;
5260
- }
5261
-
5262
- message RotateEpochOutput {
5263
- optional bytes newEpochRootKey = 1;
5264
- optional uint64 newEpochAnonId = 2;
5265
- optional uint64 newEpochFbid = 8;
5266
- optional bytes epochAnonId = 3;
5267
- optional BackwardEdge backwardEdge = 4;
5268
- repeated RotateEpochMemberEdge memberEdges = 5;
5269
- optional bytes epochRootKeyFingerprint = 6;
5270
- optional string error = 7;
5271
- }
5272
-
5273
5083
  message RoutingInfo {
5274
5084
  repeated int32 regionId = 1;
5275
5085
  repeated int32 clusterId = 2;
@@ -6491,16 +6301,6 @@ message VerifiedNameCertificate {
6491
6301
 
6492
6302
  }
6493
6303
 
6494
- message VirtualDeviceOutput {
6495
- required bytes vdId = 1;
6496
- required bytes vdPublicKey = 2;
6497
- required bytes vdEpochStoragePublicKey = 3;
6498
- required bytes vdEpochStoragePublicKeySig = 4;
6499
- required bytes ocmfRotationToken = 5;
6500
- required bytes deviceEpochHmac = 6;
6501
- required EncryptedSecretValuesOutput encryptedSecretValues = 7;
6502
- }
6503
-
6504
6304
  message WallpaperSettings {
6505
6305
  optional string filename = 1;
6506
6306
  optional uint32 opacity = 2;