@wppconnect/wa-proto 1.0.1 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1016137669
4
+ /// WhatsApp Version: 2.3000.1017264179
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -111,6 +111,26 @@ message BotAvatarMetadata {
111
111
  optional uint32 wordCount = 5;
112
112
  }
113
113
 
114
+ message BotCapabilityMetadata {
115
+ repeated BotCapabilityType capabilities = 1;
116
+ enum BotCapabilityType {
117
+ PROGRESS_INDICATOR = 1;
118
+ RICH_RESPONSE_HEADING = 2;
119
+ RICH_RESPONSE_NESTED_LIST = 3;
120
+ }
121
+ }
122
+
123
+ message BotImagineMetadata {
124
+ optional ImagineType imagineType = 1;
125
+ enum ImagineType {
126
+ UNKNOWN = 0;
127
+ IMAGINE = 1;
128
+ MEMU = 2;
129
+ FLASH = 3;
130
+ EDIT = 4;
131
+ }
132
+ }
133
+
114
134
  message BotMediaMetadata {
115
135
  optional string fileSha256 = 1;
116
136
  optional string mediaKey = 2;
@@ -126,6 +146,17 @@ message BotMediaMetadata {
126
146
  }
127
147
  }
128
148
 
149
+ message BotMemoryFact {
150
+ optional string fact = 1;
151
+ optional string factId = 2;
152
+ }
153
+
154
+ message BotMemoryMetadata {
155
+ repeated BotMemoryFact addedFacts = 1;
156
+ repeated BotMemoryFact removedFacts = 2;
157
+ optional string disclaimer = 3;
158
+ }
159
+
129
160
  message BotMemuMetadata {
130
161
  repeated BotMediaMetadata faceImages = 1;
131
162
  }
@@ -142,6 +173,10 @@ message BotMetadata {
142
173
  optional BotReminderMetadata reminderMetadata = 9;
143
174
  optional BotModelMetadata modelMetadata = 10;
144
175
  optional string messageDisclaimerText = 11;
176
+ optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
177
+ optional BotCapabilityMetadata capabilityMetadata = 13;
178
+ optional BotImagineMetadata imagineMetadata = 14;
179
+ optional BotMemoryMetadata memoryMetadata = 15;
145
180
  }
146
181
 
147
182
  message BotModelMetadata {
@@ -176,9 +211,14 @@ message BotPluginMetadata {
176
211
  enum SearchProvider {
177
212
  BING = 1;
178
213
  GOOGLE = 2;
214
+ SUPPORT = 3;
179
215
  }
180
216
  }
181
217
 
218
+ message BotProgressIndicatorMetadata {
219
+ optional string progressDescription = 1;
220
+ }
221
+
182
222
  message BotReminderMetadata {
183
223
  optional MessageKey requestMessageKey = 1;
184
224
  optional ReminderAction action = 2;
@@ -359,7 +399,7 @@ message ClientPayload {
359
399
  optional int32 yearClass = 36;
360
400
  optional int32 memClass = 37;
361
401
  optional InteropData interopData = 38;
362
- optional bool isPcr = 39;
402
+ optional TrafficAnonymization trafficAnonymization = 40;
363
403
  enum ConnectReason {
364
404
  PUSH = 0;
365
405
  USER_ACTIVATED = 1;
@@ -426,6 +466,10 @@ message ClientPayload {
426
466
  INTEROP = 2;
427
467
  INTEROP_MSGR = 3;
428
468
  }
469
+ enum TrafficAnonymization {
470
+ OFF = 0;
471
+ STANDARD = 1;
472
+ }
429
473
  message UserAgent {
430
474
  optional Platform platform = 1;
431
475
  optional AppVersion appVersion = 2;
@@ -588,6 +632,9 @@ message ContextInfo {
588
632
  optional FeatureEligibilities featureEligibilities = 49;
589
633
  optional string entryPointConversionExternalSource = 50;
590
634
  optional string entryPointConversionExternalMedium = 51;
635
+ optional string ctwaSignals = 54;
636
+ optional bytes ctwaPayload = 55;
637
+ optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
591
638
  message AdReplyInfo {
592
639
  optional string advertiserName = 1;
593
640
  optional MediaType mediaType = 2;
@@ -635,6 +682,12 @@ message ContextInfo {
635
682
  optional string ref = 14;
636
683
  optional bool clickToWhatsappCall = 15;
637
684
  optional bool adContextPreviewDismissed = 16;
685
+ optional string sourceApp = 17;
686
+ optional bool automatedGreetingMessageShown = 18;
687
+ optional string greetingMessageBody = 19;
688
+ optional string ctaPayload = 20;
689
+ optional bool disableNudge = 21;
690
+ optional string originalImageUrl = 22;
638
691
  enum MediaType {
639
692
  NONE = 0;
640
693
  IMAGE = 1;
@@ -648,6 +701,12 @@ message ContextInfo {
648
701
  optional bool canRequestFeedback = 3;
649
702
  }
650
703
 
704
+ message ForwardedAIBotMessageInfo {
705
+ optional string botName = 1;
706
+ optional string botJid = 2;
707
+ optional string creatorName = 3;
708
+ }
709
+
651
710
  message ForwardedNewsletterMessageInfo {
652
711
  optional string newsletterJid = 1;
653
712
  optional int32 serverMessageId = 2;
@@ -777,6 +836,7 @@ message DeviceProps {
777
836
  optional bool supportHostedGroupMsg = 11;
778
837
  optional bool supportFbidBotChatHistory = 12;
779
838
  optional bool supportAddOnHistorySyncMigration = 13;
839
+ optional bool supportMessageAssociation = 14;
780
840
  }
781
841
 
782
842
  enum PlatformType {
@@ -804,6 +864,7 @@ message DeviceProps {
804
864
  UWP = 21;
805
865
  VR = 22;
806
866
  CLOUD_API = 23;
867
+ SMARTGLASSES = 24;
807
868
  }
808
869
  }
809
870
 
@@ -848,8 +909,10 @@ message EmbeddedMusic {
848
909
  optional string artworkDirectPath = 5;
849
910
  optional bytes artworkSha256 = 6;
850
911
  optional bytes artworkEncSha256 = 7;
912
+ optional bytes artworkMediaKey = 11;
851
913
  optional string artistAttribution = 8;
852
914
  optional bytes countryBlocklist = 9;
915
+ optional bool isExplicit = 10;
853
916
  }
854
917
 
855
918
  message EncryptedPairingRequest {
@@ -1036,6 +1099,7 @@ message InteractiveAnnotation {
1036
1099
  Location location = 2;
1037
1100
  ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
1038
1101
  bool embeddedAction = 6;
1102
+ TapLinkAction tapAction = 7;
1039
1103
  }
1040
1104
  }
1041
1105
 
@@ -1100,6 +1164,7 @@ message MediaRetryNotification {
1100
1164
  optional string stanzaId = 1;
1101
1165
  optional string directPath = 2;
1102
1166
  optional ResultType result = 3;
1167
+ optional bytes messageSecret = 4;
1103
1168
  enum ResultType {
1104
1169
  GENERAL_ERROR = 0;
1105
1170
  SUCCESS = 1;
@@ -1187,8 +1252,9 @@ message Message {
1187
1252
  optional StickerPackMessage stickerPackMessage = 86;
1188
1253
  optional FutureProofMessage statusMentionMessage = 87;
1189
1254
  optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
1255
+ optional FutureProofMessage pollCreationMessageV4 = 89;
1256
+ optional FutureProofMessage pollCreationOptionImageMessage = 90;
1190
1257
  message AlbumMessage {
1191
- optional string caption = 1;
1192
1258
  optional uint32 expectedImageCount = 2;
1193
1259
  optional uint32 expectedVideoCount = 3;
1194
1260
  optional ContextInfo contextInfo = 17;
@@ -1360,6 +1426,8 @@ message Message {
1360
1426
  optional string conversionSource = 2;
1361
1427
  optional bytes conversionData = 3;
1362
1428
  optional uint32 conversionDelaySeconds = 4;
1429
+ optional string ctwaSignals = 5;
1430
+ optional bytes ctwaPayload = 6;
1363
1431
  }
1364
1432
 
1365
1433
  message CallLogMessage {
@@ -1553,6 +1621,7 @@ message Message {
1553
1621
  PLACEHOLDER = 4;
1554
1622
  IMAGE = 5;
1555
1623
  PAYMENT_LINKS = 6;
1624
+ PROFILE = 7;
1556
1625
  }
1557
1626
  }
1558
1627
 
@@ -1986,6 +2055,7 @@ message Message {
1986
2055
  optional bool oldestMsgFromMe = 3;
1987
2056
  optional int32 onDemandMsgCount = 4;
1988
2057
  optional int64 oldestMsgTimestampMs = 5;
2058
+ optional string accountLid = 6;
1989
2059
  }
1990
2060
 
1991
2061
  message PlaceholderMessageResendRequest {
@@ -2014,6 +2084,11 @@ message Message {
2014
2084
  optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
2015
2085
  optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
2016
2086
  optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
2087
+ optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
2088
+ message CompanionMetaNonceFetchResponse {
2089
+ optional string nonce = 1;
2090
+ }
2091
+
2017
2092
  message FullHistorySyncOnDemandRequestResponse {
2018
2093
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2019
2094
  optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
@@ -2070,6 +2145,7 @@ message Message {
2070
2145
  PLACEHOLDER_MESSAGE_RESEND = 4;
2071
2146
  WAFFLE_LINKING_NONCE_FETCH = 5;
2072
2147
  FULL_HISTORY_SYNC_ON_DEMAND = 6;
2148
+ COMPANION_META_NONCE_FETCH = 7;
2073
2149
  }
2074
2150
  message PinInChatMessage {
2075
2151
  optional MessageKey key = 1;
@@ -2095,8 +2171,10 @@ message Message {
2095
2171
  repeated Option options = 3;
2096
2172
  optional uint32 selectableOptionsCount = 4;
2097
2173
  optional ContextInfo contextInfo = 5;
2174
+ optional Message.PollType pollType = 6;
2098
2175
  message Option {
2099
2176
  optional string optionName = 1;
2177
+ optional string optionHash = 2;
2100
2178
  }
2101
2179
 
2102
2180
  }
@@ -2117,6 +2195,10 @@ message Message {
2117
2195
 
2118
2196
  }
2119
2197
 
2198
+ enum PollType {
2199
+ TEXT = 1;
2200
+ IMAGE = 2;
2201
+ }
2120
2202
  message PollUpdateMessage {
2121
2203
  optional MessageKey pollCreationMessageKey = 1;
2122
2204
  optional Message.PollEncValue vote = 2;
@@ -2305,7 +2387,7 @@ message Message {
2305
2387
  optional string name = 2;
2306
2388
  optional string publisher = 3;
2307
2389
  repeated Sticker stickers = 4;
2308
- optional uint64 fileSize = 5;
2390
+ optional uint64 fileLength = 5;
2309
2391
  optional bytes fileSha256 = 6;
2310
2392
  optional bytes fileEncSha256 = 7;
2311
2393
  optional bytes mediaKey = 8;
@@ -2320,6 +2402,9 @@ message Message {
2320
2402
  optional bytes thumbnailEncSha256 = 17;
2321
2403
  optional uint32 thumbnailHeight = 18;
2322
2404
  optional uint32 thumbnailWidth = 19;
2405
+ optional string imageDataHash = 20;
2406
+ optional uint64 stickerPackSize = 21;
2407
+ optional StickerPackOrigin stickerPackOrigin = 22;
2323
2408
  message Sticker {
2324
2409
  optional string fileName = 1;
2325
2410
  optional bool isAnimated = 2;
@@ -2329,6 +2414,11 @@ message Message {
2329
2414
  optional string mimetype = 6;
2330
2415
  }
2331
2416
 
2417
+ enum StickerPackOrigin {
2418
+ FIRST_PARTY = 0;
2419
+ THIRD_PARTY = 1;
2420
+ USER_CREATED = 2;
2421
+ }
2332
2422
  }
2333
2423
 
2334
2424
  message StickerSyncRMRMessage {
@@ -2446,12 +2536,16 @@ message MessageAddOnContextInfo {
2446
2536
  message MessageAssociation {
2447
2537
  optional AssociationType associationType = 1;
2448
2538
  optional MessageKey parentMessageKey = 2;
2539
+ optional int32 messageIndex = 3;
2449
2540
  enum AssociationType {
2450
2541
  UNKNOWN = 0;
2451
2542
  MEDIA_ALBUM = 1;
2452
2543
  BOT_PLUGIN = 2;
2453
2544
  EVENT_COVER_IMAGE = 3;
2454
2545
  STATUS_POLL = 4;
2546
+ HD_VIDEO_DUAL_UPLOAD = 5;
2547
+ STATUS_TAPPABLE_MESSAGE = 6;
2548
+ MEDIA_POLL = 7;
2455
2549
  }
2456
2550
  }
2457
2551
 
@@ -2516,6 +2610,7 @@ message MsgOpaqueData {
2516
2610
  optional string pollUpdateParentKey = 23;
2517
2611
  optional PollEncValue encPollVote = 24;
2518
2612
  optional bool isSentCagPollCreation = 28;
2613
+ optional PollVotesSnapshot pollVotesSnapshot = 41;
2519
2614
  optional string encReactionTargetMessageKey = 25;
2520
2615
  optional bytes encReactionEncPayload = 26;
2521
2616
  optional bytes encReactionEncIv = 27;
@@ -2543,6 +2638,15 @@ message MsgOpaqueData {
2543
2638
  optional string name = 1;
2544
2639
  }
2545
2640
 
2641
+ message PollVoteSnapshot {
2642
+ optional MsgOpaqueData.PollOption option = 1;
2643
+ optional int32 optionVoteCount = 2;
2644
+ }
2645
+
2646
+ message PollVotesSnapshot {
2647
+ repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
2648
+ }
2649
+
2546
2650
  }
2547
2651
 
2548
2652
  message MsgRowOpaqueData {
@@ -3129,6 +3233,16 @@ message SyncActionValue {
3129
3233
  optional int32 predefinedId = 3;
3130
3234
  optional bool deleted = 4;
3131
3235
  optional int32 orderIndex = 5;
3236
+ optional bool isActive = 6;
3237
+ optional ListType type = 7;
3238
+ enum ListType {
3239
+ NONE = 0;
3240
+ UNREAD = 1;
3241
+ GROUPS = 2;
3242
+ FAVORITES = 3;
3243
+ PREDEFINED = 4;
3244
+ CUSTOM = 5;
3245
+ }
3132
3246
  }
3133
3247
 
3134
3248
  message LabelReorderingAction {
@@ -3378,6 +3492,11 @@ message SyncdVersion {
3378
3492
  optional uint64 version = 1;
3379
3493
  }
3380
3494
 
3495
+ message TapLinkAction {
3496
+ optional string title = 1;
3497
+ optional string tapUrl = 2;
3498
+ }
3499
+
3381
3500
  message TemplateButton {
3382
3501
  optional uint32 index = 4;
3383
3502
  oneof button {
@@ -3571,6 +3690,7 @@ message WebMessageInfo {
3571
3690
  optional MessageKey targetMessageId = 67;
3572
3691
  repeated MessageAddOn messageAddOns = 68;
3573
3692
  optional StatusMentionMessage statusMentionMessageInfo = 69;
3693
+ optional bool isSupportAiMessage = 70;
3574
3694
  enum BizPrivacyStatus {
3575
3695
  E2EE = 0;
3576
3696
  FB = 2;