@wppconnect/wa-proto 1.1.3 → 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 +4 -0
- package/WAProto.proto +96 -2
- package/dist/index.d.ts +848 -9
- package/dist/index.js +2540 -39
- 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.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,10 +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;
|
|
1274
1332
|
optional FutureProofMessage groupStatusMentionMessage = 92;
|
|
1333
|
+
optional FutureProofMessage pollCreationMessageV4 = 93;
|
|
1334
|
+
optional FutureProofMessage pollCreationMessageV5 = 94;
|
|
1335
|
+
optional FutureProofMessage statusAddYours = 95;
|
|
1275
1336
|
message AlbumMessage {
|
|
1276
1337
|
optional uint32 expectedImageCount = 2;
|
|
1277
1338
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -2201,11 +2262,17 @@ message Message {
|
|
|
2201
2262
|
optional uint32 selectableOptionsCount = 4;
|
|
2202
2263
|
optional ContextInfo contextInfo = 5;
|
|
2203
2264
|
optional Message.PollMediaType pollMediaType = 6;
|
|
2265
|
+
optional PollType pollType = 7;
|
|
2266
|
+
optional Option correctAnswer = 8;
|
|
2204
2267
|
message Option {
|
|
2205
2268
|
optional string optionName = 1;
|
|
2206
2269
|
optional string optionHash = 2;
|
|
2207
2270
|
}
|
|
2208
2271
|
|
|
2272
|
+
enum PollType {
|
|
2273
|
+
POLL = 0;
|
|
2274
|
+
QUIZ = 1;
|
|
2275
|
+
}
|
|
2209
2276
|
}
|
|
2210
2277
|
|
|
2211
2278
|
message PollEncValue {
|
|
@@ -2576,6 +2643,7 @@ message MessageAssociation {
|
|
|
2576
2643
|
HD_VIDEO_DUAL_UPLOAD = 5;
|
|
2577
2644
|
STATUS_TAPPABLE_MESSAGE = 6;
|
|
2578
2645
|
MEDIA_POLL = 7;
|
|
2646
|
+
STATUS_ADD_YOURS = 8;
|
|
2579
2647
|
}
|
|
2580
2648
|
}
|
|
2581
2649
|
|
|
@@ -2713,6 +2781,12 @@ message NotificationSettings {
|
|
|
2713
2781
|
optional string callVibrate = 6;
|
|
2714
2782
|
}
|
|
2715
2783
|
|
|
2784
|
+
message PairingRequest {
|
|
2785
|
+
optional bytes companionPublicKey = 1;
|
|
2786
|
+
optional bytes companionIdentityKey = 2;
|
|
2787
|
+
optional bytes advSecret = 3;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2716
2790
|
message PastParticipant {
|
|
2717
2791
|
optional string userJid = 1;
|
|
2718
2792
|
optional LeaveReason leaveReason = 2;
|
|
@@ -2748,6 +2822,8 @@ message PatchDebugData {
|
|
|
2748
2822
|
WEB = 4;
|
|
2749
2823
|
UWP = 5;
|
|
2750
2824
|
DARWIN = 6;
|
|
2825
|
+
IPAD = 7;
|
|
2826
|
+
WEAROS = 8;
|
|
2751
2827
|
}
|
|
2752
2828
|
}
|
|
2753
2829
|
|
|
@@ -2913,6 +2989,7 @@ message PremiumMessageInfo {
|
|
|
2913
2989
|
|
|
2914
2990
|
message PrimaryEphemeralIdentity {
|
|
2915
2991
|
optional bytes publicKey = 1;
|
|
2992
|
+
optional bytes nonce = 2;
|
|
2916
2993
|
}
|
|
2917
2994
|
|
|
2918
2995
|
enum PrivacySystemMessage {
|
|
@@ -2937,6 +3014,11 @@ message ProcessedVideo {
|
|
|
2937
3014
|
}
|
|
2938
3015
|
}
|
|
2939
3016
|
|
|
3017
|
+
message ProloguePayload {
|
|
3018
|
+
optional bytes companionEphemeralIdentity = 1;
|
|
3019
|
+
optional CompanionCommitment commitment = 2;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
2940
3022
|
message Pushname {
|
|
2941
3023
|
optional string id = 1;
|
|
2942
3024
|
optional string pushname = 2;
|
|
@@ -3165,6 +3247,7 @@ message SyncActionValue {
|
|
|
3165
3247
|
optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
|
|
3166
3248
|
optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
|
|
3167
3249
|
optional UsernameChatStartModeAction usernameChatStartMode = 59;
|
|
3250
|
+
optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
|
|
3168
3251
|
message AgentAction {
|
|
3169
3252
|
optional string name = 1;
|
|
3170
3253
|
optional int32 deviceID = 2;
|
|
@@ -3338,6 +3421,16 @@ message SyncActionValue {
|
|
|
3338
3421
|
}
|
|
3339
3422
|
}
|
|
3340
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
|
+
|
|
3341
3434
|
message NuxAction {
|
|
3342
3435
|
optional bool acknowledged = 1;
|
|
3343
3436
|
}
|
|
@@ -3721,6 +3814,7 @@ message WebMessageInfo {
|
|
|
3721
3814
|
repeated MessageAddOn messageAddOns = 68;
|
|
3722
3815
|
optional StatusMentionMessage statusMentionMessageInfo = 69;
|
|
3723
3816
|
optional bool isSupportAiMessage = 70;
|
|
3817
|
+
repeated string statusMentionSources = 71;
|
|
3724
3818
|
enum BizPrivacyStatus {
|
|
3725
3819
|
E2EE = 0;
|
|
3726
3820
|
FB = 2;
|