@wppconnect/wa-proto 1.1.3 → 1.1.5
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/CHANGELOG.md +8 -0
- package/WAProto.proto +133 -7
- package/dist/index.d.ts +1317 -19
- package/dist/index.js +3870 -74
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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.1018934872
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -118,9 +118,20 @@ message BotCapabilityMetadata {
|
|
|
118
118
|
RICH_RESPONSE_HEADING = 2;
|
|
119
119
|
RICH_RESPONSE_NESTED_LIST = 3;
|
|
120
120
|
AI_MEMORY = 4;
|
|
121
|
+
RICH_RESPONSE_THREAD_SURFING = 5;
|
|
122
|
+
RICH_RESPONSE_TABLE = 6;
|
|
123
|
+
RICH_RESPONSE_CODE = 7;
|
|
121
124
|
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
|
122
125
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
|
123
126
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
|
127
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
|
|
128
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
|
|
129
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
|
|
130
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
|
|
131
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
|
|
132
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
|
|
133
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
|
|
134
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
|
|
124
135
|
}
|
|
125
136
|
}
|
|
126
137
|
|
|
@@ -181,16 +192,43 @@ message BotMetadata {
|
|
|
181
192
|
optional BotCapabilityMetadata capabilityMetadata = 13;
|
|
182
193
|
optional BotImagineMetadata imagineMetadata = 14;
|
|
183
194
|
optional BotMemoryMetadata memoryMetadata = 15;
|
|
195
|
+
optional BotRenderingMetadata renderingMetadata = 16;
|
|
196
|
+
optional BotMetricsMetadata botMetricsMetadata = 17;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
enum BotMetricsEntryPoint {
|
|
200
|
+
FAVICON = 1;
|
|
201
|
+
CHATLIST = 2;
|
|
202
|
+
AISEARCH_NULL_STATE_PAPER_PLANE = 3;
|
|
203
|
+
AISEARCH_NULL_STATE_SUGGESTION = 4;
|
|
204
|
+
AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
|
|
205
|
+
AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
|
|
206
|
+
AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
|
|
207
|
+
AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
|
|
208
|
+
AIVOICE_SEARCH_BAR = 9;
|
|
209
|
+
AIVOICE_FAVICON = 10;
|
|
210
|
+
AISTUDIO = 11;
|
|
211
|
+
DEEPLINK = 12;
|
|
212
|
+
NOTIFICATION = 13;
|
|
213
|
+
PROFILE_MESSAGE_BUTTON = 14;
|
|
214
|
+
FORWARD = 15;
|
|
215
|
+
APP_SHORTCUT = 16;
|
|
216
|
+
}
|
|
217
|
+
message BotMetricsMetadata {
|
|
218
|
+
optional string destinationId = 1;
|
|
219
|
+
optional BotMetricsEntryPoint destinationEntryPoint = 2;
|
|
184
220
|
}
|
|
185
221
|
|
|
186
222
|
message BotModelMetadata {
|
|
187
223
|
optional ModelType modelType = 1;
|
|
188
224
|
optional PremiumModelStatus premiumModelStatus = 2;
|
|
189
225
|
enum ModelType {
|
|
226
|
+
UNKNOWN_TYPE = 0;
|
|
190
227
|
LLAMA_PROD = 1;
|
|
191
228
|
LLAMA_PROD_PREMIUM = 2;
|
|
192
229
|
}
|
|
193
230
|
enum PremiumModelStatus {
|
|
231
|
+
UNKNOWN_STATUS = 0;
|
|
194
232
|
AVAILABLE = 1;
|
|
195
233
|
QUOTA_EXCEED_LIMIT = 2;
|
|
196
234
|
}
|
|
@@ -210,10 +248,12 @@ message BotPluginMetadata {
|
|
|
210
248
|
optional PluginType parentPluginType = 12;
|
|
211
249
|
optional string faviconCdnUrl = 13;
|
|
212
250
|
enum PluginType {
|
|
251
|
+
UNKNOWN_PLUGIN = 0;
|
|
213
252
|
REELS = 1;
|
|
214
253
|
SEARCH = 2;
|
|
215
254
|
}
|
|
216
255
|
enum SearchProvider {
|
|
256
|
+
UNKNOWN = 0;
|
|
217
257
|
BING = 1;
|
|
218
258
|
GOOGLE = 2;
|
|
219
259
|
SUPPORT = 3;
|
|
@@ -254,6 +294,15 @@ message BotReminderMetadata {
|
|
|
254
294
|
}
|
|
255
295
|
}
|
|
256
296
|
|
|
297
|
+
message BotRenderingMetadata {
|
|
298
|
+
repeated Keyword keywords = 1;
|
|
299
|
+
message Keyword {
|
|
300
|
+
optional string value = 1;
|
|
301
|
+
repeated string associatedPrompts = 2;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
}
|
|
305
|
+
|
|
257
306
|
message BotSessionMetadata {
|
|
258
307
|
optional string sessionId = 1;
|
|
259
308
|
optional BotSessionSource sessionSource = 2;
|
|
@@ -385,6 +434,7 @@ message ChatRowOpaqueData {
|
|
|
385
434
|
|
|
386
435
|
message ClientPairingProps {
|
|
387
436
|
optional bool isChatDbLidMigrated = 1;
|
|
437
|
+
optional bool isSyncdPureLidSession = 2;
|
|
388
438
|
}
|
|
389
439
|
|
|
390
440
|
message ClientPayload {
|
|
@@ -599,6 +649,10 @@ message CommentMetadata {
|
|
|
599
649
|
optional uint32 replyCount = 2;
|
|
600
650
|
}
|
|
601
651
|
|
|
652
|
+
message CompanionCommitment {
|
|
653
|
+
optional bytes hash = 1;
|
|
654
|
+
}
|
|
655
|
+
|
|
602
656
|
message CompanionEphemeralIdentity {
|
|
603
657
|
optional bytes publicKey = 1;
|
|
604
658
|
optional DeviceProps.PlatformType deviceType = 2;
|
|
@@ -651,6 +705,8 @@ message ContextInfo {
|
|
|
651
705
|
optional string ctwaSignals = 54;
|
|
652
706
|
optional bytes ctwaPayload = 55;
|
|
653
707
|
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
|
708
|
+
optional StatusAttributionType statusAttributionType = 57;
|
|
709
|
+
optional UrlTrackingMap urlTrackingMap = 58;
|
|
654
710
|
message AdReplyInfo {
|
|
655
711
|
optional string advertiserName = 1;
|
|
656
712
|
optional MediaType mediaType = 2;
|
|
@@ -736,6 +792,10 @@ message ContextInfo {
|
|
|
736
792
|
}
|
|
737
793
|
}
|
|
738
794
|
|
|
795
|
+
enum StatusAttributionType {
|
|
796
|
+
NONE = 0;
|
|
797
|
+
RESHARED_FROM_MENTION = 1;
|
|
798
|
+
}
|
|
739
799
|
message UTMInfo {
|
|
740
800
|
optional string utmSource = 1;
|
|
741
801
|
optional string utmCampaign = 2;
|
|
@@ -792,6 +852,7 @@ message Conversation {
|
|
|
792
852
|
optional bool locked = 46;
|
|
793
853
|
optional PrivacySystemMessage systemMessageToInsert = 47;
|
|
794
854
|
optional bool capiCreatedGroup = 48;
|
|
855
|
+
optional string accountLid = 49;
|
|
795
856
|
enum EndOfHistoryTransferType {
|
|
796
857
|
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
|
797
858
|
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
|
@@ -1145,10 +1206,20 @@ message KeyId {
|
|
|
1145
1206
|
optional bytes id = 1;
|
|
1146
1207
|
}
|
|
1147
1208
|
|
|
1209
|
+
message LIDMigrationMapping {
|
|
1210
|
+
required uint64 pn = 1;
|
|
1211
|
+
required uint64 assignedLid = 2;
|
|
1212
|
+
optional uint64 latestLid = 3;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1148
1215
|
message LIDMigrationMappingSyncMessage {
|
|
1149
1216
|
optional bytes encodedMappingPayload = 1;
|
|
1150
1217
|
}
|
|
1151
1218
|
|
|
1219
|
+
message LIDMigrationMappingSyncPayload {
|
|
1220
|
+
repeated LIDMigrationMapping pnToLidMappings = 1;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1152
1223
|
message LegacyMessage {
|
|
1153
1224
|
optional Message.EventResponseMessage eventResponseMessage = 1;
|
|
1154
1225
|
optional Message.PollVoteMessage pollVote = 2;
|
|
@@ -1268,10 +1339,13 @@ message Message {
|
|
|
1268
1339
|
optional StickerPackMessage stickerPackMessage = 86;
|
|
1269
1340
|
optional FutureProofMessage statusMentionMessage = 87;
|
|
1270
1341
|
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
|
|
1271
|
-
optional FutureProofMessage pollCreationMessageV4 = 89;
|
|
1272
1342
|
optional FutureProofMessage pollCreationOptionImageMessage = 90;
|
|
1273
1343
|
optional FutureProofMessage associatedChildMessage = 91;
|
|
1274
1344
|
optional FutureProofMessage groupStatusMentionMessage = 92;
|
|
1345
|
+
optional FutureProofMessage pollCreationMessageV4 = 93;
|
|
1346
|
+
optional FutureProofMessage pollCreationMessageV5 = 94;
|
|
1347
|
+
optional FutureProofMessage statusAddYours = 95;
|
|
1348
|
+
optional FutureProofMessage groupStatusMessage = 96;
|
|
1275
1349
|
message AlbumMessage {
|
|
1276
1350
|
optional uint32 expectedImageCount = 2;
|
|
1277
1351
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -1799,6 +1873,7 @@ message Message {
|
|
|
1799
1873
|
optional Body body = 2;
|
|
1800
1874
|
optional Footer footer = 3;
|
|
1801
1875
|
optional ContextInfo contextInfo = 15;
|
|
1876
|
+
optional UrlTrackingMap urlTrackingMap = 16;
|
|
1802
1877
|
oneof interactiveMessage {
|
|
1803
1878
|
Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
|
|
1804
1879
|
Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
|
|
@@ -2194,18 +2269,29 @@ message Message {
|
|
|
2194
2269
|
}
|
|
2195
2270
|
}
|
|
2196
2271
|
|
|
2272
|
+
enum PollContentType {
|
|
2273
|
+
UNKNOWN = 0;
|
|
2274
|
+
TEXT = 1;
|
|
2275
|
+
IMAGE = 2;
|
|
2276
|
+
}
|
|
2197
2277
|
message PollCreationMessage {
|
|
2198
2278
|
optional bytes encKey = 1;
|
|
2199
2279
|
optional string name = 2;
|
|
2200
2280
|
repeated Option options = 3;
|
|
2201
2281
|
optional uint32 selectableOptionsCount = 4;
|
|
2202
2282
|
optional ContextInfo contextInfo = 5;
|
|
2203
|
-
optional Message.
|
|
2283
|
+
optional Message.PollContentType pollContentType = 6;
|
|
2284
|
+
optional PollType pollType = 7;
|
|
2285
|
+
optional Option correctAnswer = 8;
|
|
2204
2286
|
message Option {
|
|
2205
2287
|
optional string optionName = 1;
|
|
2206
2288
|
optional string optionHash = 2;
|
|
2207
2289
|
}
|
|
2208
2290
|
|
|
2291
|
+
enum PollType {
|
|
2292
|
+
POLL = 0;
|
|
2293
|
+
QUIZ = 1;
|
|
2294
|
+
}
|
|
2209
2295
|
}
|
|
2210
2296
|
|
|
2211
2297
|
message PollEncValue {
|
|
@@ -2213,10 +2299,6 @@ message Message {
|
|
|
2213
2299
|
optional bytes encIv = 2;
|
|
2214
2300
|
}
|
|
2215
2301
|
|
|
2216
|
-
enum PollMediaType {
|
|
2217
|
-
TEXT = 1;
|
|
2218
|
-
IMAGE = 2;
|
|
2219
|
-
}
|
|
2220
2302
|
message PollResultSnapshotMessage {
|
|
2221
2303
|
optional string name = 1;
|
|
2222
2304
|
repeated PollVote pollVotes = 2;
|
|
@@ -2576,6 +2658,7 @@ message MessageAssociation {
|
|
|
2576
2658
|
HD_VIDEO_DUAL_UPLOAD = 5;
|
|
2577
2659
|
STATUS_TAPPABLE_MESSAGE = 6;
|
|
2578
2660
|
MEDIA_POLL = 7;
|
|
2661
|
+
STATUS_ADD_YOURS = 8;
|
|
2579
2662
|
}
|
|
2580
2663
|
}
|
|
2581
2664
|
|
|
@@ -2640,6 +2723,7 @@ message MsgOpaqueData {
|
|
|
2640
2723
|
optional string pollUpdateParentKey = 23;
|
|
2641
2724
|
optional PollEncValue encPollVote = 24;
|
|
2642
2725
|
optional bool isSentCagPollCreation = 28;
|
|
2726
|
+
optional PollContentType pollContentType = 42;
|
|
2643
2727
|
optional PollVotesSnapshot pollVotesSnapshot = 41;
|
|
2644
2728
|
optional string encReactionTargetMessageKey = 25;
|
|
2645
2729
|
optional bytes encReactionEncPayload = 26;
|
|
@@ -2664,6 +2748,11 @@ message MsgOpaqueData {
|
|
|
2664
2748
|
optional bytes jpegThumbnail = 6;
|
|
2665
2749
|
}
|
|
2666
2750
|
|
|
2751
|
+
enum PollContentType {
|
|
2752
|
+
UNKNOWN = 0;
|
|
2753
|
+
TEXT = 1;
|
|
2754
|
+
IMAGE = 2;
|
|
2755
|
+
}
|
|
2667
2756
|
message PollOption {
|
|
2668
2757
|
optional string name = 1;
|
|
2669
2758
|
}
|
|
@@ -2713,6 +2802,12 @@ message NotificationSettings {
|
|
|
2713
2802
|
optional string callVibrate = 6;
|
|
2714
2803
|
}
|
|
2715
2804
|
|
|
2805
|
+
message PairingRequest {
|
|
2806
|
+
optional bytes companionPublicKey = 1;
|
|
2807
|
+
optional bytes companionIdentityKey = 2;
|
|
2808
|
+
optional bytes advSecret = 3;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2716
2811
|
message PastParticipant {
|
|
2717
2812
|
optional string userJid = 1;
|
|
2718
2813
|
optional LeaveReason leaveReason = 2;
|
|
@@ -2748,6 +2843,8 @@ message PatchDebugData {
|
|
|
2748
2843
|
WEB = 4;
|
|
2749
2844
|
UWP = 5;
|
|
2750
2845
|
DARWIN = 6;
|
|
2846
|
+
IPAD = 7;
|
|
2847
|
+
WEAROS = 8;
|
|
2751
2848
|
}
|
|
2752
2849
|
}
|
|
2753
2850
|
|
|
@@ -2913,6 +3010,7 @@ message PremiumMessageInfo {
|
|
|
2913
3010
|
|
|
2914
3011
|
message PrimaryEphemeralIdentity {
|
|
2915
3012
|
optional bytes publicKey = 1;
|
|
3013
|
+
optional bytes nonce = 2;
|
|
2916
3014
|
}
|
|
2917
3015
|
|
|
2918
3016
|
enum PrivacySystemMessage {
|
|
@@ -2937,6 +3035,11 @@ message ProcessedVideo {
|
|
|
2937
3035
|
}
|
|
2938
3036
|
}
|
|
2939
3037
|
|
|
3038
|
+
message ProloguePayload {
|
|
3039
|
+
optional bytes companionEphemeralIdentity = 1;
|
|
3040
|
+
optional CompanionCommitment commitment = 2;
|
|
3041
|
+
}
|
|
3042
|
+
|
|
2940
3043
|
message Pushname {
|
|
2941
3044
|
optional string id = 1;
|
|
2942
3045
|
optional string pushname = 2;
|
|
@@ -3165,6 +3268,7 @@ message SyncActionValue {
|
|
|
3165
3268
|
optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
|
|
3166
3269
|
optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
|
|
3167
3270
|
optional UsernameChatStartModeAction usernameChatStartMode = 59;
|
|
3271
|
+
optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
|
|
3168
3272
|
message AgentAction {
|
|
3169
3273
|
optional string name = 1;
|
|
3170
3274
|
optional int32 deviceID = 2;
|
|
@@ -3338,6 +3442,16 @@ message SyncActionValue {
|
|
|
3338
3442
|
}
|
|
3339
3443
|
}
|
|
3340
3444
|
|
|
3445
|
+
message NotificationActivitySettingAction {
|
|
3446
|
+
optional NotificationActivitySetting notificationActivitySetting = 1;
|
|
3447
|
+
enum NotificationActivitySetting {
|
|
3448
|
+
DEFAULT_ALL_MESSAGES = 0;
|
|
3449
|
+
ALL_MESSAGES = 1;
|
|
3450
|
+
HIGHLIGHTS = 2;
|
|
3451
|
+
DEFAULT_HIGHLIGHTS = 3;
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3341
3455
|
message NuxAction {
|
|
3342
3456
|
optional bool acknowledged = 1;
|
|
3343
3457
|
}
|
|
@@ -3551,6 +3665,17 @@ message TemplateButton {
|
|
|
3551
3665
|
|
|
3552
3666
|
}
|
|
3553
3667
|
|
|
3668
|
+
message UrlTrackingMap {
|
|
3669
|
+
repeated UrlTrackingMapElement urlTrackingMapElements = 1;
|
|
3670
|
+
message UrlTrackingMapElement {
|
|
3671
|
+
optional string originalUrl = 1;
|
|
3672
|
+
optional string unconsentedUsersUrl = 2;
|
|
3673
|
+
optional string consentedUsersUrl = 3;
|
|
3674
|
+
optional uint32 cardIndex = 4;
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3554
3679
|
message UserPassword {
|
|
3555
3680
|
optional Encoding encoding = 1;
|
|
3556
3681
|
optional Transformer transformer = 2;
|
|
@@ -3721,6 +3846,7 @@ message WebMessageInfo {
|
|
|
3721
3846
|
repeated MessageAddOn messageAddOns = 68;
|
|
3722
3847
|
optional StatusMentionMessage statusMentionMessageInfo = 69;
|
|
3723
3848
|
optional bool isSupportAiMessage = 70;
|
|
3849
|
+
repeated string statusMentionSources = 71;
|
|
3724
3850
|
enum BizPrivacyStatus {
|
|
3725
3851
|
E2EE = 0;
|
|
3726
3852
|
FB = 2;
|