@wppconnect/wa-proto 1.1.2 → 1.1.4
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 +97 -2
- package/dist/index.d.ts +854 -9
- package/dist/index.js +2575 -35
- package/package.json +4 -4
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.1018289212
|
|
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;
|
|
@@ -599,6 +648,10 @@ message CommentMetadata {
|
|
|
599
648
|
optional uint32 replyCount = 2;
|
|
600
649
|
}
|
|
601
650
|
|
|
651
|
+
message CompanionCommitment {
|
|
652
|
+
optional bytes hash = 1;
|
|
653
|
+
}
|
|
654
|
+
|
|
602
655
|
message CompanionEphemeralIdentity {
|
|
603
656
|
optional bytes publicKey = 1;
|
|
604
657
|
optional DeviceProps.PlatformType deviceType = 2;
|
|
@@ -651,6 +704,7 @@ message ContextInfo {
|
|
|
651
704
|
optional string ctwaSignals = 54;
|
|
652
705
|
optional bytes ctwaPayload = 55;
|
|
653
706
|
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
|
707
|
+
optional StatusAttributionType statusAttributionType = 57;
|
|
654
708
|
message AdReplyInfo {
|
|
655
709
|
optional string advertiserName = 1;
|
|
656
710
|
optional MediaType mediaType = 2;
|
|
@@ -736,6 +790,10 @@ message ContextInfo {
|
|
|
736
790
|
}
|
|
737
791
|
}
|
|
738
792
|
|
|
793
|
+
enum StatusAttributionType {
|
|
794
|
+
NONE = 0;
|
|
795
|
+
RESHARED_FROM_MENTION = 1;
|
|
796
|
+
}
|
|
739
797
|
message UTMInfo {
|
|
740
798
|
optional string utmSource = 1;
|
|
741
799
|
optional string utmCampaign = 2;
|
|
@@ -792,6 +850,7 @@ message Conversation {
|
|
|
792
850
|
optional bool locked = 46;
|
|
793
851
|
optional PrivacySystemMessage systemMessageToInsert = 47;
|
|
794
852
|
optional bool capiCreatedGroup = 48;
|
|
853
|
+
optional string accountLid = 49;
|
|
795
854
|
enum EndOfHistoryTransferType {
|
|
796
855
|
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
|
797
856
|
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
|
@@ -1268,9 +1327,12 @@ message Message {
|
|
|
1268
1327
|
optional StickerPackMessage stickerPackMessage = 86;
|
|
1269
1328
|
optional FutureProofMessage statusMentionMessage = 87;
|
|
1270
1329
|
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
|
|
1271
|
-
optional FutureProofMessage pollCreationMessageV4 = 89;
|
|
1272
1330
|
optional FutureProofMessage pollCreationOptionImageMessage = 90;
|
|
1273
1331
|
optional FutureProofMessage associatedChildMessage = 91;
|
|
1332
|
+
optional FutureProofMessage groupStatusMentionMessage = 92;
|
|
1333
|
+
optional FutureProofMessage pollCreationMessageV4 = 93;
|
|
1334
|
+
optional FutureProofMessage pollCreationMessageV5 = 94;
|
|
1335
|
+
optional FutureProofMessage statusAddYours = 95;
|
|
1274
1336
|
message AlbumMessage {
|
|
1275
1337
|
optional uint32 expectedImageCount = 2;
|
|
1276
1338
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -2200,11 +2262,17 @@ message Message {
|
|
|
2200
2262
|
optional uint32 selectableOptionsCount = 4;
|
|
2201
2263
|
optional ContextInfo contextInfo = 5;
|
|
2202
2264
|
optional Message.PollMediaType pollMediaType = 6;
|
|
2265
|
+
optional PollType pollType = 7;
|
|
2266
|
+
optional Option correctAnswer = 8;
|
|
2203
2267
|
message Option {
|
|
2204
2268
|
optional string optionName = 1;
|
|
2205
2269
|
optional string optionHash = 2;
|
|
2206
2270
|
}
|
|
2207
2271
|
|
|
2272
|
+
enum PollType {
|
|
2273
|
+
POLL = 0;
|
|
2274
|
+
QUIZ = 1;
|
|
2275
|
+
}
|
|
2208
2276
|
}
|
|
2209
2277
|
|
|
2210
2278
|
message PollEncValue {
|
|
@@ -2575,6 +2643,7 @@ message MessageAssociation {
|
|
|
2575
2643
|
HD_VIDEO_DUAL_UPLOAD = 5;
|
|
2576
2644
|
STATUS_TAPPABLE_MESSAGE = 6;
|
|
2577
2645
|
MEDIA_POLL = 7;
|
|
2646
|
+
STATUS_ADD_YOURS = 8;
|
|
2578
2647
|
}
|
|
2579
2648
|
}
|
|
2580
2649
|
|
|
@@ -2712,6 +2781,12 @@ message NotificationSettings {
|
|
|
2712
2781
|
optional string callVibrate = 6;
|
|
2713
2782
|
}
|
|
2714
2783
|
|
|
2784
|
+
message PairingRequest {
|
|
2785
|
+
optional bytes companionPublicKey = 1;
|
|
2786
|
+
optional bytes companionIdentityKey = 2;
|
|
2787
|
+
optional bytes advSecret = 3;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2715
2790
|
message PastParticipant {
|
|
2716
2791
|
optional string userJid = 1;
|
|
2717
2792
|
optional LeaveReason leaveReason = 2;
|
|
@@ -2747,6 +2822,8 @@ message PatchDebugData {
|
|
|
2747
2822
|
WEB = 4;
|
|
2748
2823
|
UWP = 5;
|
|
2749
2824
|
DARWIN = 6;
|
|
2825
|
+
IPAD = 7;
|
|
2826
|
+
WEAROS = 8;
|
|
2750
2827
|
}
|
|
2751
2828
|
}
|
|
2752
2829
|
|
|
@@ -2912,6 +2989,7 @@ message PremiumMessageInfo {
|
|
|
2912
2989
|
|
|
2913
2990
|
message PrimaryEphemeralIdentity {
|
|
2914
2991
|
optional bytes publicKey = 1;
|
|
2992
|
+
optional bytes nonce = 2;
|
|
2915
2993
|
}
|
|
2916
2994
|
|
|
2917
2995
|
enum PrivacySystemMessage {
|
|
@@ -2936,6 +3014,11 @@ message ProcessedVideo {
|
|
|
2936
3014
|
}
|
|
2937
3015
|
}
|
|
2938
3016
|
|
|
3017
|
+
message ProloguePayload {
|
|
3018
|
+
optional bytes companionEphemeralIdentity = 1;
|
|
3019
|
+
optional CompanionCommitment commitment = 2;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
2939
3022
|
message Pushname {
|
|
2940
3023
|
optional string id = 1;
|
|
2941
3024
|
optional string pushname = 2;
|
|
@@ -3164,6 +3247,7 @@ message SyncActionValue {
|
|
|
3164
3247
|
optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
|
|
3165
3248
|
optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
|
|
3166
3249
|
optional UsernameChatStartModeAction usernameChatStartMode = 59;
|
|
3250
|
+
optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
|
|
3167
3251
|
message AgentAction {
|
|
3168
3252
|
optional string name = 1;
|
|
3169
3253
|
optional int32 deviceID = 2;
|
|
@@ -3337,6 +3421,16 @@ message SyncActionValue {
|
|
|
3337
3421
|
}
|
|
3338
3422
|
}
|
|
3339
3423
|
|
|
3424
|
+
message NotificationActivitySettingAction {
|
|
3425
|
+
optional NotificationActivitySetting notificationActivitySetting = 1;
|
|
3426
|
+
enum NotificationActivitySetting {
|
|
3427
|
+
DEFAULT_ALL_MESSAGES = 0;
|
|
3428
|
+
ALL_MESSAGES = 1;
|
|
3429
|
+
HIGHLIGHTS = 2;
|
|
3430
|
+
DEFAULT_HIGHLIGHTS = 3;
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3340
3434
|
message NuxAction {
|
|
3341
3435
|
optional bool acknowledged = 1;
|
|
3342
3436
|
}
|
|
@@ -3720,6 +3814,7 @@ message WebMessageInfo {
|
|
|
3720
3814
|
repeated MessageAddOn messageAddOns = 68;
|
|
3721
3815
|
optional StatusMentionMessage statusMentionMessageInfo = 69;
|
|
3722
3816
|
optional bool isSupportAiMessage = 70;
|
|
3817
|
+
repeated string statusMentionSources = 71;
|
|
3723
3818
|
enum BizPrivacyStatus {
|
|
3724
3819
|
E2EE = 0;
|
|
3725
3820
|
FB = 2;
|