@wppconnect/wa-proto 2.3000.1046721733 → 2.3000.1046734560
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 +164 -41
- package/dist/index.d.ts +2840 -565
- package/dist/index.js +9438 -2471
- 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.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1046734560
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -326,6 +326,12 @@ message AvatarUserSettings {
|
|
|
326
326
|
optional string password = 2;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
+
message BackwardEdge {
|
|
330
|
+
optional bytes encryptedPrevEpochAnonId = 1;
|
|
331
|
+
optional bytes encryptedPrevEpochRootKey = 2;
|
|
332
|
+
optional bytes prevEpochRootKeyFingerprint = 3;
|
|
333
|
+
}
|
|
334
|
+
|
|
329
335
|
message BizAIMetadataSync {
|
|
330
336
|
oneof operation {
|
|
331
337
|
BizAIMetadataSync.ServerEvent serverEvent = 1;
|
|
@@ -484,6 +490,7 @@ message BotCapabilityMetadata {
|
|
|
484
490
|
AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED = 68;
|
|
485
491
|
AI_RICH_RESPONSE_REMINDERS_ENABLED = 69;
|
|
486
492
|
AI_STOP_GENERATION_ENABLED = 70;
|
|
493
|
+
AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED = 71;
|
|
487
494
|
}
|
|
488
495
|
}
|
|
489
496
|
|
|
@@ -1067,12 +1074,6 @@ message BotUnifiedResponseMutation {
|
|
|
1067
1074
|
|
|
1068
1075
|
}
|
|
1069
1076
|
|
|
1070
|
-
enum COMMAND_COMMAND_TYPE {
|
|
1071
|
-
EVERYONE = 1;
|
|
1072
|
-
SILENT = 2;
|
|
1073
|
-
AI = 3;
|
|
1074
|
-
AI_IMAGINE = 4;
|
|
1075
|
-
}
|
|
1076
1077
|
message CallLogRecord {
|
|
1077
1078
|
optional CallResult callResult = 1;
|
|
1078
1079
|
optional bool isDndMode = 2;
|
|
@@ -1466,13 +1467,6 @@ message CombinedFingerprint {
|
|
|
1466
1467
|
optional FingerprintData remoteFingerprint = 3;
|
|
1467
1468
|
}
|
|
1468
1469
|
|
|
1469
|
-
message Command {
|
|
1470
|
-
optional COMMAND_COMMAND_TYPE commandType = 1;
|
|
1471
|
-
optional uint32 offset = 2;
|
|
1472
|
-
optional uint32 length = 3;
|
|
1473
|
-
optional string validationToken = 4;
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
1470
|
message CommentMetadata {
|
|
1477
1471
|
optional MessageKey commentParentKey = 1;
|
|
1478
1472
|
optional uint32 replyCount = 2;
|
|
@@ -1861,6 +1855,43 @@ message Conversation {
|
|
|
1861
1855
|
}
|
|
1862
1856
|
}
|
|
1863
1857
|
|
|
1858
|
+
message CreateBackupInput {
|
|
1859
|
+
required string recoveryCode = 1;
|
|
1860
|
+
required uint64 userId = 2;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
message CreateBackupOutput {
|
|
1864
|
+
optional DeviceOutput device = 1;
|
|
1865
|
+
optional VirtualDeviceOutput virtualDevice = 2;
|
|
1866
|
+
optional Epoch0Output epoch0 = 3;
|
|
1867
|
+
optional bytes mailboxRootKey = 4;
|
|
1868
|
+
optional string error = 5;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
message DecryptMessageInput {
|
|
1872
|
+
required bytes epochRootKey = 1;
|
|
1873
|
+
required bytes epochAnonId = 2;
|
|
1874
|
+
required string threadId = 3;
|
|
1875
|
+
required int32 encryptionVersion = 4;
|
|
1876
|
+
required bytes ciphertext = 5;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
message DecryptMessageOutput {
|
|
1880
|
+
optional bytes plaintextPayload = 1;
|
|
1881
|
+
optional string error = 2;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
message DeriveMessageKeyInput {
|
|
1885
|
+
required bytes epochRootKey = 1;
|
|
1886
|
+
required bytes epochAnonId = 2;
|
|
1887
|
+
required string threadId = 3;
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
message DeriveMessageKeyOutput {
|
|
1891
|
+
optional bytes messageKey = 1;
|
|
1892
|
+
optional string error = 2;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1864
1895
|
message DeviceCapabilities {
|
|
1865
1896
|
optional ChatLockSupportLevel chatLockSupportLevel = 1;
|
|
1866
1897
|
optional LIDMigration lidMigration = 2;
|
|
@@ -1938,6 +1969,19 @@ message DeviceListMetadata {
|
|
|
1938
1969
|
repeated uint32 recipientKeyIndexes = 10 [packed=true];
|
|
1939
1970
|
}
|
|
1940
1971
|
|
|
1972
|
+
message DeviceOutput {
|
|
1973
|
+
required bytes publicKey = 1;
|
|
1974
|
+
required bytes epochAuthPublicKey = 2;
|
|
1975
|
+
required bytes epochAuthPublicKeySig = 3;
|
|
1976
|
+
required bytes epochStoragePublicKey = 4;
|
|
1977
|
+
required bytes epochStoragePublicKeySig = 5;
|
|
1978
|
+
repeated int32 supportedEncryptionVersions = 6;
|
|
1979
|
+
required bytes encryptionVersionSignature = 7;
|
|
1980
|
+
required int32 clientVersion = 8;
|
|
1981
|
+
required bytes ocmfClientState = 9;
|
|
1982
|
+
required bytes epochStoragePrivateKey = 10;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1941
1985
|
message DeviceProps {
|
|
1942
1986
|
optional string os = 1;
|
|
1943
1987
|
optional AppVersion version = 2;
|
|
@@ -2060,16 +2104,60 @@ message EmbeddedMusic {
|
|
|
2060
2104
|
optional int64 overlapDurationInMs = 14;
|
|
2061
2105
|
}
|
|
2062
2106
|
|
|
2107
|
+
message EncryptMessageInput {
|
|
2108
|
+
required bytes epochRootKey = 1;
|
|
2109
|
+
required bytes mailboxRootKey = 2;
|
|
2110
|
+
required bytes orfClientState = 3;
|
|
2111
|
+
required bytes epochAnonId = 4;
|
|
2112
|
+
required uint64 epochId = 5;
|
|
2113
|
+
required string threadId = 6;
|
|
2114
|
+
required uint64 waCanonicalUserFbid = 7;
|
|
2115
|
+
required uint64 timestampMs = 8;
|
|
2116
|
+
required uint64 backupId = 9;
|
|
2117
|
+
required bytes plaintextPayload = 10;
|
|
2118
|
+
required string stanzaId = 11;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
message EncryptMessageOutput {
|
|
2122
|
+
optional bytes encryptedProtobuf = 1;
|
|
2123
|
+
optional bytes orfThreadId = 2;
|
|
2124
|
+
optional string valueSecretRef = 3;
|
|
2125
|
+
optional uint64 offlineThreadingId = 4;
|
|
2126
|
+
optional uint64 timestampMs = 5;
|
|
2127
|
+
optional string error = 7;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2063
2130
|
message EncryptedPairingRequest {
|
|
2064
2131
|
optional bytes encryptedPayload = 1;
|
|
2065
2132
|
optional bytes iv = 2;
|
|
2066
2133
|
}
|
|
2067
2134
|
|
|
2135
|
+
message EncryptedSecretValuesOutput {
|
|
2136
|
+
required bytes encryptedDevicePrivateKey = 1;
|
|
2137
|
+
required bytes encryptedObliviousValidationTokenBlob = 2;
|
|
2138
|
+
required bytes encryptedEpochStoragePrivateKey = 3;
|
|
2139
|
+
required bytes encryptedOcmfClientState = 4;
|
|
2140
|
+
optional bytes encryptedOrfClientStateV2 = 5;
|
|
2141
|
+
required bytes encryptedMailboxRootKeyBlob = 6;
|
|
2142
|
+
required bytes encryptedEpochAnonId = 7;
|
|
2143
|
+
required bytes encryptedEpochRootKey = 8;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2068
2146
|
message EphemeralSetting {
|
|
2069
2147
|
optional sfixed32 duration = 1;
|
|
2070
2148
|
optional sfixed64 timestamp = 2;
|
|
2071
2149
|
}
|
|
2072
2150
|
|
|
2151
|
+
message Epoch0Output {
|
|
2152
|
+
required uint64 epochFbid = 1;
|
|
2153
|
+
required bytes epochAnonId = 2;
|
|
2154
|
+
required bytes epochData = 3;
|
|
2155
|
+
required bytes wrappedRootKeyForSelf = 4;
|
|
2156
|
+
required bytes epochSignature = 5;
|
|
2157
|
+
required bytes epochRootKeyFingerprint = 6;
|
|
2158
|
+
optional bytes epochRootKey = 7;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2073
2161
|
message EventAdditionalMetadata {
|
|
2074
2162
|
optional bool isStale = 1;
|
|
2075
2163
|
}
|
|
@@ -2095,11 +2183,6 @@ message ExternalBlobReference {
|
|
|
2095
2183
|
optional bytes fileEncSha256 = 6;
|
|
2096
2184
|
}
|
|
2097
2185
|
|
|
2098
|
-
enum FUTURE_PROOF_BEHAVIOR {
|
|
2099
|
-
PLACEHOLDER = 0;
|
|
2100
|
-
NO_PLACEHOLDER = 1;
|
|
2101
|
-
IGNORE = 2;
|
|
2102
|
-
}
|
|
2103
2186
|
message Field {
|
|
2104
2187
|
optional uint32 minVersion = 1;
|
|
2105
2188
|
optional uint32 maxVersion = 2;
|
|
@@ -2443,6 +2526,17 @@ message LIDMigrationMappingSyncMessage {
|
|
|
2443
2526
|
optional bytes encodedMappingPayload = 1;
|
|
2444
2527
|
}
|
|
2445
2528
|
|
|
2529
|
+
message LabyrinthWaCommand {
|
|
2530
|
+
oneof commandInput {
|
|
2531
|
+
CreateBackupInput createBackupInput = 1;
|
|
2532
|
+
EncryptMessageInput encryptMessageInput = 2;
|
|
2533
|
+
DecryptMessageInput decryptMessageInput = 3;
|
|
2534
|
+
OrfThreadIdInput orfThreadIdInput = 4;
|
|
2535
|
+
DeriveMessageKeyInput deriveMessageKeyInput = 5;
|
|
2536
|
+
RotateEpochInput rotateEpochInput = 6;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2446
2540
|
message LegacyMessage {
|
|
2447
2541
|
optional Message.EventResponseMessage eventResponseMessage = 1;
|
|
2448
2542
|
optional Message.PollVoteMessage pollVote = 2;
|
|
@@ -2473,9 +2567,6 @@ message Location {
|
|
|
2473
2567
|
optional string name = 3;
|
|
2474
2568
|
}
|
|
2475
2569
|
|
|
2476
|
-
enum MENTION_MENTION_TYPE {
|
|
2477
|
-
PROFILE = 0;
|
|
2478
|
-
}
|
|
2479
2570
|
message MediaData {
|
|
2480
2571
|
optional string localPath = 1;
|
|
2481
2572
|
}
|
|
@@ -2553,13 +2644,6 @@ message MemberLabel {
|
|
|
2553
2644
|
optional int64 labelTimestamp = 2;
|
|
2554
2645
|
}
|
|
2555
2646
|
|
|
2556
|
-
message Mention {
|
|
2557
|
-
optional MENTION_MENTION_TYPE mentionType = 1;
|
|
2558
|
-
optional string mentionedJid = 2;
|
|
2559
|
-
optional uint32 offset = 3;
|
|
2560
|
-
optional uint32 length = 4;
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
2647
|
message Message {
|
|
2564
2648
|
optional string conversation = 1;
|
|
2565
2649
|
optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
|
|
@@ -4535,13 +4619,6 @@ message MessageSecretMessage {
|
|
|
4535
4619
|
optional bytes encPayload = 3;
|
|
4536
4620
|
}
|
|
4537
4621
|
|
|
4538
|
-
message MessageText {
|
|
4539
|
-
optional string text = 1;
|
|
4540
|
-
repeated string mentionedJid = 2;
|
|
4541
|
-
repeated Command commands = 3;
|
|
4542
|
-
repeated Mention mentions = 4;
|
|
4543
|
-
}
|
|
4544
|
-
|
|
4545
4622
|
message Money {
|
|
4546
4623
|
optional int64 value = 1;
|
|
4547
4624
|
optional uint32 offset = 2;
|
|
@@ -4776,6 +4853,16 @@ message NotificationSettings {
|
|
|
4776
4853
|
optional string callVibrate = 6;
|
|
4777
4854
|
}
|
|
4778
4855
|
|
|
4856
|
+
message OrfThreadIdInput {
|
|
4857
|
+
required bytes orfClientState = 1;
|
|
4858
|
+
required string threadId = 2;
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
message OrfThreadIdOutput {
|
|
4862
|
+
optional bytes orfThreadId = 1;
|
|
4863
|
+
optional string error = 2;
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4779
4866
|
message PairingRequest {
|
|
4780
4867
|
optional bytes companionPublicKey = 1;
|
|
4781
4868
|
optional bytes companionIdentityKey = 2;
|
|
@@ -5101,6 +5188,37 @@ message ReportingTokenInfo {
|
|
|
5101
5188
|
optional uint64 reportingTagTimestamp = 2;
|
|
5102
5189
|
}
|
|
5103
5190
|
|
|
5191
|
+
message RotateEpochInput {
|
|
5192
|
+
required bytes currentEpochRootKey = 1;
|
|
5193
|
+
required bytes currentEpochAnonId = 2;
|
|
5194
|
+
required uint64 currentEpochFbid = 3;
|
|
5195
|
+
required bytes epochStoragePrivateKey = 4;
|
|
5196
|
+
repeated RotateEpochMemberInput members = 5;
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
message RotateEpochMemberEdge {
|
|
5200
|
+
optional uint64 deviceId = 1;
|
|
5201
|
+
optional bytes encryptedEpochKey = 2;
|
|
5202
|
+
optional bytes deviceEpochHmac = 3;
|
|
5203
|
+
}
|
|
5204
|
+
|
|
5205
|
+
message RotateEpochMemberInput {
|
|
5206
|
+
required uint64 deviceId = 1;
|
|
5207
|
+
required bytes epochStoragePublicKey = 2;
|
|
5208
|
+
required bytes devicePublicKey = 3;
|
|
5209
|
+
}
|
|
5210
|
+
|
|
5211
|
+
message RotateEpochOutput {
|
|
5212
|
+
optional bytes newEpochRootKey = 1;
|
|
5213
|
+
optional uint64 newEpochAnonId = 2;
|
|
5214
|
+
optional uint64 newEpochFbid = 8;
|
|
5215
|
+
optional bytes epochAnonId = 3;
|
|
5216
|
+
optional BackwardEdge backwardEdge = 4;
|
|
5217
|
+
repeated RotateEpochMemberEdge memberEdges = 5;
|
|
5218
|
+
optional bytes epochRootKeyFingerprint = 6;
|
|
5219
|
+
optional string error = 7;
|
|
5220
|
+
}
|
|
5221
|
+
|
|
5104
5222
|
message RoutingInfo {
|
|
5105
5223
|
repeated int32 regionId = 1;
|
|
5106
5224
|
repeated int32 clusterId = 2;
|
|
@@ -5364,11 +5482,6 @@ message StickerMetadata {
|
|
|
5364
5482
|
optional bool isAvatarSticker = 14;
|
|
5365
5483
|
}
|
|
5366
5484
|
|
|
5367
|
-
message SubProtocol {
|
|
5368
|
-
optional bytes payload = 1;
|
|
5369
|
-
optional int32 version = 2;
|
|
5370
|
-
}
|
|
5371
|
-
|
|
5372
5485
|
message SyncActionData {
|
|
5373
5486
|
optional bytes index = 1;
|
|
5374
5487
|
optional SyncActionValue value = 2;
|
|
@@ -6327,6 +6440,16 @@ message VerifiedNameCertificate {
|
|
|
6327
6440
|
|
|
6328
6441
|
}
|
|
6329
6442
|
|
|
6443
|
+
message VirtualDeviceOutput {
|
|
6444
|
+
required bytes vdId = 1;
|
|
6445
|
+
required bytes vdPublicKey = 2;
|
|
6446
|
+
required bytes vdEpochStoragePublicKey = 3;
|
|
6447
|
+
required bytes vdEpochStoragePublicKeySig = 4;
|
|
6448
|
+
required bytes ocmfRotationToken = 5;
|
|
6449
|
+
required bytes deviceEpochHmac = 6;
|
|
6450
|
+
required EncryptedSecretValuesOutput encryptedSecretValues = 7;
|
|
6451
|
+
}
|
|
6452
|
+
|
|
6330
6453
|
message WallpaperSettings {
|
|
6331
6454
|
optional string filename = 1;
|
|
6332
6455
|
optional uint32 opacity = 2;
|