@wppconnect/wa-proto 1.1.49 → 2.3000.1022964842
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 +12 -0
- package/README.md +49 -18
- package/WAProto.proto +210 -27
- package/dist/index.d.ts +2244 -224
- package/dist/index.js +6861 -554
- package/index.js +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 2.3000.1022964842 (2025-05-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## 2.3000.1022948279 (2025-05-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [1.1.50](https://github.com/wppconnect-team/wa-proto/compare/v1.1.49...v1.1.50) (2025-03-18)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
## [1.1.49](https://github.com/wppconnect-team/wa-proto/compare/v1.1.48...v1.1.49) (2025-03-15)
|
|
2
14
|
|
|
3
15
|
|
package/README.md
CHANGED
|
@@ -7,29 +7,60 @@
|
|
|
7
7
|
[](https://github.com/wppconnect/wa-proto/actions)
|
|
8
8
|
[](https://github.com/release-it/release-it)
|
|
9
9
|
|
|
10
|
-
> WPPConnect/WA-Proto is
|
|
10
|
+
> **WPPConnect/WA-Proto** is an open-source package providing up-to-date Protocol Buffer (`.proto`) definitions extracted from WhatsApp Web (2.3000.x series). It enables Node.js and TypeScript developers to encode, decode, and work with WhatsApp message structures using the [protobufjs](https://github.com/protobufjs/protobuf.js) library.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
## Features
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
- Official WhatsApp Web `.proto` schema for 2.3000.x versions
|
|
15
|
+
- Ready for use with Node.js and TypeScript
|
|
16
|
+
- Ideal for bots, integrations, and WhatsApp research
|
|
17
|
+
- Compatible with [protobufjs](https://github.com/protobufjs/protobuf.js)
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
[](https://t.me/wppconnect)
|
|
18
|
-
[](https://chat.whatsapp.com/LJaQu6ZyNvnBPNAVRbX00K)
|
|
19
|
-
[](https://www.youtube.com/c/wppconnect)
|
|
19
|
+
## Installation
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
```sh
|
|
22
|
+
npm install @wppconnect/wa-proto
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage Example (Node.js & TypeScript)
|
|
26
|
+
|
|
27
|
+
Below is an example showing how to use the static build from the `dist` folder, accessing the WhatsApp proto definitions directly:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
// TypeScript example using the static build from 'dist'
|
|
31
|
+
import { waproto } from "@wppconnect/wa-proto";
|
|
32
|
+
// // Node.js version
|
|
33
|
+
// const { waproto } = require("@wppconnect/wa-proto");
|
|
34
|
+
|
|
35
|
+
// Create a new message payload
|
|
36
|
+
const payload = {
|
|
37
|
+
conversation: "Hello from WA-Proto!"
|
|
38
|
+
// ...set other fields as needed
|
|
39
|
+
};
|
|
22
40
|
|
|
23
|
-
|
|
41
|
+
// Verify the payload
|
|
42
|
+
const errMsg = waproto.Message.verify(payload);
|
|
43
|
+
if (errMsg) throw Error(errMsg);
|
|
24
44
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
You may obtain a copy of the License at
|
|
45
|
+
// Create a message instance
|
|
46
|
+
const message = waproto.Message.create(payload);
|
|
28
47
|
|
|
29
|
-
|
|
48
|
+
// Encode the message to a buffer
|
|
49
|
+
const buffer = waproto.Message.encode(message).finish();
|
|
50
|
+
|
|
51
|
+
// Decode the buffer back to a message
|
|
52
|
+
const decoded = waproto.Message.decode(buffer);
|
|
53
|
+
|
|
54
|
+
console.log("Decoded message:", decoded);
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
> **Tip:** You can also generate static JS/TS code using `protobufjs-cli` for better TypeScript integration:
|
|
58
|
+
>
|
|
59
|
+
> ```sh
|
|
60
|
+
> npx pbjs -t static-module -w commonjs -o dist/index.js WAProto.proto
|
|
61
|
+
> npx pbts -o dist/index.d.ts dist/index.js
|
|
62
|
+
> ```
|
|
63
|
+
|
|
64
|
+
## License
|
|
30
65
|
|
|
31
|
-
|
|
32
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
33
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
34
|
-
See the License for the specific language governing permissions and
|
|
35
|
-
limitations under the License.
|
|
66
|
+
Apache 2.0 - See [LICENSE](./LICENSE) for details.
|
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.1022964842
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -42,14 +42,16 @@ message ADVSignedKeyIndexList {
|
|
|
42
42
|
optional bytes accountSignatureKey = 3;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
message AIQueryFanout {
|
|
46
|
+
optional MessageKey messageKey = 1;
|
|
47
|
+
optional Message message = 2;
|
|
48
|
+
optional int64 timestamp = 3;
|
|
49
|
+
}
|
|
50
|
+
|
|
45
51
|
message AIRichResponseMessage {
|
|
46
52
|
optional AIRichResponseMessageType messageType = 1;
|
|
47
53
|
repeated AIRichResponseSubMessage submessages = 2;
|
|
48
|
-
optional
|
|
49
|
-
message AIRichResponseAbstractData {
|
|
50
|
-
optional bytes data = 1;
|
|
51
|
-
}
|
|
52
|
-
|
|
54
|
+
optional AIRichResponseUnifiedResponse unifiedResponse = 3;
|
|
53
55
|
message AIRichResponseCodeMetadata {
|
|
54
56
|
optional string codeLanguage = 1;
|
|
55
57
|
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
|
@@ -134,6 +136,10 @@ message AIRichResponseMessage {
|
|
|
134
136
|
optional double width = 3;
|
|
135
137
|
optional double height = 4;
|
|
136
138
|
optional double fontHeight = 5;
|
|
139
|
+
optional double imageTopPadding = 6;
|
|
140
|
+
optional double imageLeadingPadding = 7;
|
|
141
|
+
optional double imageBottomPadding = 8;
|
|
142
|
+
optional double imageTrailingPadding = 9;
|
|
137
143
|
}
|
|
138
144
|
|
|
139
145
|
}
|
|
@@ -193,6 +199,10 @@ message AIRichResponseMessage {
|
|
|
193
199
|
|
|
194
200
|
}
|
|
195
201
|
|
|
202
|
+
message AIRichResponseUnifiedResponse {
|
|
203
|
+
optional bytes data = 1;
|
|
204
|
+
}
|
|
205
|
+
|
|
196
206
|
}
|
|
197
207
|
|
|
198
208
|
message Account {
|
|
@@ -263,6 +273,11 @@ message BizIdentityInfo {
|
|
|
263
273
|
}
|
|
264
274
|
}
|
|
265
275
|
|
|
276
|
+
message BotAgeCollectionMetadata {
|
|
277
|
+
optional bool ageCollectionEligible = 1;
|
|
278
|
+
optional bool shouldTriggerAgeCollectionOnClient = 2;
|
|
279
|
+
}
|
|
280
|
+
|
|
266
281
|
message BotAvatarMetadata {
|
|
267
282
|
optional uint32 sentiment = 1;
|
|
268
283
|
optional string behaviorGraph = 2;
|
|
@@ -304,6 +319,12 @@ message BotCapabilityMetadata {
|
|
|
304
319
|
AGENTIC_PLANNING = 27;
|
|
305
320
|
ACCOUNT_LINKING = 28;
|
|
306
321
|
STREAMING_DISAGGREGATION = 29;
|
|
322
|
+
RICH_RESPONSE_GRID_IMAGE_3P = 30;
|
|
323
|
+
RICH_RESPONSE_LATEX_INLINE = 31;
|
|
324
|
+
QUERY_PLAN = 32;
|
|
325
|
+
PROACTIVE_MESSAGE = 33;
|
|
326
|
+
RICH_RESPONSE_UNIFIED_RESPONSE = 34;
|
|
327
|
+
PROMOTION_MESSAGE = 35;
|
|
307
328
|
}
|
|
308
329
|
}
|
|
309
330
|
|
|
@@ -328,6 +349,7 @@ message BotLinkedAccount {
|
|
|
328
349
|
message BotLinkedAccountsMetadata {
|
|
329
350
|
repeated BotLinkedAccount accounts = 1;
|
|
330
351
|
optional bytes acAuthTokens = 2;
|
|
352
|
+
optional int32 acErrorCode = 3;
|
|
331
353
|
}
|
|
332
354
|
|
|
333
355
|
message BotMediaMetadata {
|
|
@@ -380,6 +402,11 @@ message BotMetadata {
|
|
|
380
402
|
optional BotMetricsMetadata botMetricsMetadata = 17;
|
|
381
403
|
optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
|
|
382
404
|
optional BotSourcesMetadata richResponseSourcesMetadata = 19;
|
|
405
|
+
optional bytes aiConversationContext = 20;
|
|
406
|
+
optional BotPromotionMessageMetadata botPromotionMessageMetadata = 21;
|
|
407
|
+
optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
|
|
408
|
+
optional BotQuotaMetadata botQuotaMetadata = 23;
|
|
409
|
+
optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
|
|
383
410
|
}
|
|
384
411
|
|
|
385
412
|
enum BotMetricsEntryPoint {
|
|
@@ -404,6 +431,9 @@ enum BotMetricsEntryPoint {
|
|
|
404
431
|
AI_HOME = 19;
|
|
405
432
|
AI_DEEPLINK_IMMERSIVE = 20;
|
|
406
433
|
AI_DEEPLINK = 21;
|
|
434
|
+
META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
|
|
435
|
+
UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
|
|
436
|
+
NEW_CHAT_AI_STUDIO = 24;
|
|
407
437
|
}
|
|
408
438
|
message BotMetricsMetadata {
|
|
409
439
|
optional string destinationId = 1;
|
|
@@ -417,6 +447,14 @@ enum BotMetricsThreadEntryPoint {
|
|
|
417
447
|
AI_DEEPLINK_IMMERSIVE_THREAD = 3;
|
|
418
448
|
AI_DEEPLINK_THREAD = 4;
|
|
419
449
|
}
|
|
450
|
+
message BotModeSelectionMetadata {
|
|
451
|
+
repeated BotUserSelectionMode mode = 1;
|
|
452
|
+
enum BotUserSelectionMode {
|
|
453
|
+
UNKNOWN_MODE = 0;
|
|
454
|
+
REASONING_MODE = 1;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
420
458
|
message BotModelMetadata {
|
|
421
459
|
optional ModelType modelType = 1;
|
|
422
460
|
optional PremiumModelStatus premiumModelStatus = 2;
|
|
@@ -510,6 +548,15 @@ message BotProgressIndicatorMetadata {
|
|
|
510
548
|
|
|
511
549
|
}
|
|
512
550
|
|
|
551
|
+
message BotPromotionMessageMetadata {
|
|
552
|
+
optional BotPromotionType promotionType = 1;
|
|
553
|
+
optional string buttonTitle = 2;
|
|
554
|
+
enum BotPromotionType {
|
|
555
|
+
UNKNOWN_TYPE = 0;
|
|
556
|
+
C50 = 1;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
513
560
|
message BotPromptSuggestion {
|
|
514
561
|
optional string prompt = 1;
|
|
515
562
|
optional string promptId = 2;
|
|
@@ -519,6 +566,20 @@ message BotPromptSuggestions {
|
|
|
519
566
|
repeated BotPromptSuggestion suggestions = 1;
|
|
520
567
|
}
|
|
521
568
|
|
|
569
|
+
message BotQuotaMetadata {
|
|
570
|
+
repeated BotFeatureQuotaMetadata botFeatureQuotaMetadata = 1;
|
|
571
|
+
message BotFeatureQuotaMetadata {
|
|
572
|
+
optional BotFeatureType featureType = 1;
|
|
573
|
+
optional uint32 remainingQuota = 2;
|
|
574
|
+
optional uint64 expirationTimestamp = 3;
|
|
575
|
+
enum BotFeatureType {
|
|
576
|
+
UNKNOWN_FEATURE = 0;
|
|
577
|
+
REASONING_FEATURE = 1;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
}
|
|
582
|
+
|
|
522
583
|
message BotReminderMetadata {
|
|
523
584
|
optional MessageKey requestMessageKey = 1;
|
|
524
585
|
optional ReminderAction action = 2;
|
|
@@ -740,6 +801,11 @@ message ClientPayload {
|
|
|
740
801
|
optional InteropData interopData = 38;
|
|
741
802
|
optional TrafficAnonymization trafficAnonymization = 40;
|
|
742
803
|
optional bool lidDbMigrated = 41;
|
|
804
|
+
optional AccountType accountType = 42;
|
|
805
|
+
enum AccountType {
|
|
806
|
+
DEFAULT = 0;
|
|
807
|
+
GUEST = 1;
|
|
808
|
+
}
|
|
743
809
|
enum ConnectReason {
|
|
744
810
|
PUSH = 0;
|
|
745
811
|
USER_ACTIVATED = 1;
|
|
@@ -806,6 +872,7 @@ message ClientPayload {
|
|
|
806
872
|
MESSENGER = 1;
|
|
807
873
|
INTEROP = 2;
|
|
808
874
|
INTEROP_MSGR = 3;
|
|
875
|
+
WHATSAPP_LID = 4;
|
|
809
876
|
}
|
|
810
877
|
enum TrafficAnonymization {
|
|
811
878
|
OFF = 0;
|
|
@@ -985,6 +1052,9 @@ message ContextInfo {
|
|
|
985
1052
|
optional UrlTrackingMap urlTrackingMap = 58;
|
|
986
1053
|
optional PairedMediaType pairedMediaType = 59;
|
|
987
1054
|
optional uint32 rankingVersion = 60;
|
|
1055
|
+
optional MemberLabel memberLabel = 62;
|
|
1056
|
+
optional bool isQuestion = 63;
|
|
1057
|
+
optional StatusSourceType statusSourceType = 64;
|
|
988
1058
|
message AdReplyInfo {
|
|
989
1059
|
optional string advertiserName = 1;
|
|
990
1060
|
optional MediaType mediaType = 2;
|
|
@@ -1038,7 +1108,13 @@ message ContextInfo {
|
|
|
1038
1108
|
optional string ctaPayload = 20;
|
|
1039
1109
|
optional bool disableNudge = 21;
|
|
1040
1110
|
optional string originalImageUrl = 22;
|
|
1041
|
-
optional
|
|
1111
|
+
optional string automatedGreetingMessageCtaType = 23;
|
|
1112
|
+
optional bool wtwaAdFormat = 24;
|
|
1113
|
+
optional AdType adType = 25;
|
|
1114
|
+
enum AdType {
|
|
1115
|
+
CTWA = 0;
|
|
1116
|
+
CAWC = 1;
|
|
1117
|
+
}
|
|
1042
1118
|
enum MediaType {
|
|
1043
1119
|
NONE = 0;
|
|
1044
1120
|
IMAGE = 1;
|
|
@@ -1078,12 +1154,22 @@ message ContextInfo {
|
|
|
1078
1154
|
HD_VIDEO_CHILD = 2;
|
|
1079
1155
|
SD_IMAGE_PARENT = 3;
|
|
1080
1156
|
HD_IMAGE_CHILD = 4;
|
|
1157
|
+
MOTION_PHOTO_PARENT = 5;
|
|
1158
|
+
MOTION_PHOTO_CHILD = 6;
|
|
1081
1159
|
}
|
|
1082
1160
|
enum StatusAttributionType {
|
|
1083
1161
|
NONE = 0;
|
|
1084
1162
|
RESHARED_FROM_MENTION = 1;
|
|
1085
1163
|
RESHARED_FROM_POST = 2;
|
|
1086
1164
|
}
|
|
1165
|
+
enum StatusSourceType {
|
|
1166
|
+
IMAGE = 0;
|
|
1167
|
+
VIDEO = 1;
|
|
1168
|
+
GIF = 2;
|
|
1169
|
+
AUDIO = 3;
|
|
1170
|
+
TEXT = 4;
|
|
1171
|
+
MUSIC_STANDALONE = 5;
|
|
1172
|
+
}
|
|
1087
1173
|
message UTMInfo {
|
|
1088
1174
|
optional string utmSource = 1;
|
|
1089
1175
|
optional string utmCampaign = 2;
|
|
@@ -1143,6 +1229,8 @@ message Conversation {
|
|
|
1143
1229
|
optional string accountLid = 49;
|
|
1144
1230
|
optional bool limitSharing = 50;
|
|
1145
1231
|
optional int64 limitSharingSettingTimestamp = 51;
|
|
1232
|
+
optional LimitSharing.TriggerType limitSharingTrigger = 52;
|
|
1233
|
+
optional bool limitSharingInitiatedByMe = 53;
|
|
1146
1234
|
enum EndOfHistoryTransferType {
|
|
1147
1235
|
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
|
1148
1236
|
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
|
@@ -1350,6 +1438,7 @@ message GlobalSettings {
|
|
|
1350
1438
|
optional NotificationSettings individualNotificationSettings = 17;
|
|
1351
1439
|
optional NotificationSettings groupNotificationSettings = 18;
|
|
1352
1440
|
optional ChatLockSettings chatLockSettings = 19;
|
|
1441
|
+
optional int64 chatDbLidMigrationTimestamp = 20;
|
|
1353
1442
|
}
|
|
1354
1443
|
|
|
1355
1444
|
message GroupMention {
|
|
@@ -1520,6 +1609,7 @@ message LIDMigrationMappingSyncMessage {
|
|
|
1520
1609
|
|
|
1521
1610
|
message LIDMigrationMappingSyncPayload {
|
|
1522
1611
|
repeated LIDMigrationMapping pnToLidMappings = 1;
|
|
1612
|
+
optional uint64 chatDbMigrationTimestamp = 2;
|
|
1523
1613
|
}
|
|
1524
1614
|
|
|
1525
1615
|
message LegacyMessage {
|
|
@@ -1529,10 +1619,14 @@ message LegacyMessage {
|
|
|
1529
1619
|
|
|
1530
1620
|
message LimitSharing {
|
|
1531
1621
|
optional bool sharingLimited = 1;
|
|
1532
|
-
optional
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1622
|
+
optional TriggerType trigger = 2;
|
|
1623
|
+
optional int64 limitSharingSettingTimestamp = 3;
|
|
1624
|
+
optional bool initiatedByMe = 4;
|
|
1625
|
+
enum TriggerType {
|
|
1626
|
+
UNKNOWN = 0;
|
|
1627
|
+
CHAT_SETTING = 1;
|
|
1628
|
+
BIZ_SUPPORTS_FB_HOSTING = 2;
|
|
1629
|
+
UNKNOWN_GROUP = 3;
|
|
1536
1630
|
}
|
|
1537
1631
|
}
|
|
1538
1632
|
|
|
@@ -1576,6 +1670,11 @@ enum MediaVisibility {
|
|
|
1576
1670
|
OFF = 1;
|
|
1577
1671
|
ON = 2;
|
|
1578
1672
|
}
|
|
1673
|
+
message MemberLabel {
|
|
1674
|
+
optional string label = 1;
|
|
1675
|
+
optional int64 labelTimestamp = 2;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1579
1678
|
message Message {
|
|
1580
1679
|
optional string conversation = 1;
|
|
1581
1680
|
optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
|
|
@@ -1660,6 +1759,9 @@ message Message {
|
|
|
1660
1759
|
optional AIRichResponseMessage richResponseMessage = 97;
|
|
1661
1760
|
optional StatusNotificationMessage statusNotificationMessage = 98;
|
|
1662
1761
|
optional FutureProofMessage limitSharingMessage = 99;
|
|
1762
|
+
optional FutureProofMessage botTaskMessage = 100;
|
|
1763
|
+
optional FutureProofMessage questionMessage = 101;
|
|
1764
|
+
optional MessageHistoryNotice messageHistoryNotice = 102;
|
|
1663
1765
|
message AlbumMessage {
|
|
1664
1766
|
optional uint32 expectedImageCount = 2;
|
|
1665
1767
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -1837,6 +1939,7 @@ message Message {
|
|
|
1837
1939
|
optional uint32 conversionDelaySeconds = 4;
|
|
1838
1940
|
optional string ctwaSignals = 5;
|
|
1839
1941
|
optional bytes ctwaPayload = 6;
|
|
1942
|
+
optional ContextInfo contextInfo = 7;
|
|
1840
1943
|
}
|
|
1841
1944
|
|
|
1842
1945
|
message CallLogMessage {
|
|
@@ -1881,11 +1984,17 @@ message Message {
|
|
|
1881
1984
|
optional int64 senderNotificationTimestampMs = 2;
|
|
1882
1985
|
optional string consumerLid = 3;
|
|
1883
1986
|
optional string consumerPhoneNumber = 4;
|
|
1987
|
+
optional CloudAPIThreadControlNotificationContent notificationContent = 5;
|
|
1884
1988
|
enum CloudAPIThreadControl {
|
|
1885
1989
|
UNKNOWN = 0;
|
|
1886
1990
|
CONTROL_PASSED = 1;
|
|
1887
1991
|
CONTROL_TAKEN = 2;
|
|
1888
1992
|
}
|
|
1993
|
+
message CloudAPIThreadControlNotificationContent {
|
|
1994
|
+
optional string handoffNotificationText = 1;
|
|
1995
|
+
optional string extraJson = 2;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1889
1998
|
}
|
|
1890
1999
|
|
|
1891
2000
|
message CommentMessage {
|
|
@@ -1967,6 +2076,7 @@ message Message {
|
|
|
1967
2076
|
optional int64 startTime = 7;
|
|
1968
2077
|
optional int64 endTime = 8;
|
|
1969
2078
|
optional bool extraGuestsAllowed = 9;
|
|
2079
|
+
optional bool isScheduleCall = 10;
|
|
1970
2080
|
}
|
|
1971
2081
|
|
|
1972
2082
|
message EventResponseMessage {
|
|
@@ -2008,7 +2118,8 @@ message Message {
|
|
|
2008
2118
|
optional uint32 videoHeight = 31;
|
|
2009
2119
|
optional uint32 videoWidth = 32;
|
|
2010
2120
|
optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
|
|
2011
|
-
optional LinkPreviewMetadata linkPreviewMetadata = 34;
|
|
2121
|
+
optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
|
|
2122
|
+
optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
|
|
2012
2123
|
enum FontType {
|
|
2013
2124
|
SYSTEM = 0;
|
|
2014
2125
|
SYSTEM_TEXT = 1;
|
|
@@ -2025,10 +2136,6 @@ message Message {
|
|
|
2025
2136
|
SUB = 2;
|
|
2026
2137
|
DEFAULT_SUB = 3;
|
|
2027
2138
|
}
|
|
2028
|
-
message LinkPreviewMetadata {
|
|
2029
|
-
optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
2139
|
enum PreviewType {
|
|
2033
2140
|
NONE = 0;
|
|
2034
2141
|
VIDEO = 1;
|
|
@@ -2306,6 +2413,12 @@ message Message {
|
|
|
2306
2413
|
optional int64 timestampMs = 3;
|
|
2307
2414
|
}
|
|
2308
2415
|
|
|
2416
|
+
message LinkPreviewMetadata {
|
|
2417
|
+
optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
|
|
2418
|
+
optional Message.URLMetadata urlMetadata = 2;
|
|
2419
|
+
optional uint32 fbExperimentId = 3;
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2309
2422
|
message ListMessage {
|
|
2310
2423
|
optional string title = 1;
|
|
2311
2424
|
optional string description = 2;
|
|
@@ -2408,14 +2521,25 @@ message Message {
|
|
|
2408
2521
|
}
|
|
2409
2522
|
|
|
2410
2523
|
message MessageHistoryBundle {
|
|
2411
|
-
optional string mimetype =
|
|
2412
|
-
optional bytes fileSha256 =
|
|
2413
|
-
optional bytes mediaKey =
|
|
2414
|
-
optional bytes fileEncSha256 =
|
|
2415
|
-
optional string directPath =
|
|
2416
|
-
optional int64 mediaKeyTimestamp =
|
|
2417
|
-
optional ContextInfo contextInfo =
|
|
2418
|
-
|
|
2524
|
+
optional string mimetype = 1;
|
|
2525
|
+
optional bytes fileSha256 = 2;
|
|
2526
|
+
optional bytes mediaKey = 3;
|
|
2527
|
+
optional bytes fileEncSha256 = 4;
|
|
2528
|
+
optional string directPath = 5;
|
|
2529
|
+
optional int64 mediaKeyTimestamp = 6;
|
|
2530
|
+
optional ContextInfo contextInfo = 7;
|
|
2531
|
+
optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
message MessageHistoryMetadata {
|
|
2535
|
+
repeated string historyReceivers = 1;
|
|
2536
|
+
optional int64 firstMessageTimestamp = 2;
|
|
2537
|
+
optional int64 messageCount = 3;
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
message MessageHistoryNotice {
|
|
2541
|
+
optional ContextInfo contextInfo = 1;
|
|
2542
|
+
optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
|
|
2419
2543
|
}
|
|
2420
2544
|
|
|
2421
2545
|
message NewsletterAdminInviteMessage {
|
|
@@ -2442,6 +2566,7 @@ message Message {
|
|
|
2442
2566
|
optional ContextInfo contextInfo = 17;
|
|
2443
2567
|
optional int32 messageVersion = 12;
|
|
2444
2568
|
optional MessageKey orderRequestMessageId = 13;
|
|
2569
|
+
optional string catalogType = 15;
|
|
2445
2570
|
enum OrderStatus {
|
|
2446
2571
|
INQUIRY = 1;
|
|
2447
2572
|
ACCEPTED = 2;
|
|
@@ -2467,11 +2592,11 @@ message Message {
|
|
|
2467
2592
|
optional PaymentLinkButton button = 1;
|
|
2468
2593
|
optional PaymentLinkHeader header = 2;
|
|
2469
2594
|
message PaymentLinkButton {
|
|
2470
|
-
|
|
2595
|
+
optional string displayText = 1;
|
|
2471
2596
|
}
|
|
2472
2597
|
|
|
2473
2598
|
message PaymentLinkHeader {
|
|
2474
|
-
|
|
2599
|
+
optional PaymentLinkHeaderType headerType = 1;
|
|
2475
2600
|
enum PaymentLinkHeaderType {
|
|
2476
2601
|
LINK_PREVIEW = 0;
|
|
2477
2602
|
ORDER = 1;
|
|
@@ -2487,6 +2612,7 @@ message Message {
|
|
|
2487
2612
|
optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
|
|
2488
2613
|
repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
|
|
2489
2614
|
optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
|
|
2615
|
+
optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
|
|
2490
2616
|
message FullHistorySyncOnDemandRequest {
|
|
2491
2617
|
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
|
2492
2618
|
optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
|
|
@@ -2514,6 +2640,11 @@ message Message {
|
|
|
2514
2640
|
optional bool includeHqThumbnail = 2;
|
|
2515
2641
|
}
|
|
2516
2642
|
|
|
2643
|
+
message SyncDCollectionFatalRecoveryRequest {
|
|
2644
|
+
optional string collectionName = 1;
|
|
2645
|
+
optional int64 timestamp = 2;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2517
2648
|
}
|
|
2518
2649
|
|
|
2519
2650
|
message PeerDataOperationRequestResponseMessage {
|
|
@@ -2528,6 +2659,7 @@ message Message {
|
|
|
2528
2659
|
optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
|
|
2529
2660
|
optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
|
|
2530
2661
|
optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
|
|
2662
|
+
optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
|
|
2531
2663
|
message CompanionMetaNonceFetchResponse {
|
|
2532
2664
|
optional string nonce = 1;
|
|
2533
2665
|
}
|
|
@@ -2570,6 +2702,11 @@ message Message {
|
|
|
2570
2702
|
optional bytes webMessageInfoBytes = 1;
|
|
2571
2703
|
}
|
|
2572
2704
|
|
|
2705
|
+
message SyncDSnapshotFatalRecoveryResponse {
|
|
2706
|
+
optional bytes collectionSnapshot = 1;
|
|
2707
|
+
optional bool isCompressed = 2;
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2573
2710
|
message WaffleNonceFetchResponse {
|
|
2574
2711
|
optional string nonce = 1;
|
|
2575
2712
|
optional string waEntFbid = 2;
|
|
@@ -2588,6 +2725,7 @@ message Message {
|
|
|
2588
2725
|
WAFFLE_LINKING_NONCE_FETCH = 5;
|
|
2589
2726
|
FULL_HISTORY_SYNC_ON_DEMAND = 6;
|
|
2590
2727
|
COMPANION_META_NONCE_FETCH = 7;
|
|
2728
|
+
COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
|
|
2591
2729
|
}
|
|
2592
2730
|
message PinInChatMessage {
|
|
2593
2731
|
optional MessageKey key = 1;
|
|
@@ -2714,6 +2852,9 @@ message Message {
|
|
|
2714
2852
|
optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
|
|
2715
2853
|
optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
|
|
2716
2854
|
optional LimitSharing limitSharing = 24;
|
|
2855
|
+
optional bytes aiPsiMetadata = 25;
|
|
2856
|
+
optional AIQueryFanout aiQueryFanout = 26;
|
|
2857
|
+
optional MemberLabel memberLabel = 27;
|
|
2717
2858
|
enum Type {
|
|
2718
2859
|
REVOKE = 0;
|
|
2719
2860
|
EPHEMERAL_SETTING = 3;
|
|
@@ -2738,6 +2879,9 @@ message Message {
|
|
|
2738
2879
|
STATUS_MENTION_MESSAGE = 25;
|
|
2739
2880
|
STOP_GENERATION_MESSAGE = 26;
|
|
2740
2881
|
LIMIT_SHARING = 27;
|
|
2882
|
+
AI_PSI_METADATA = 28;
|
|
2883
|
+
AI_QUERY_FANOUT = 29;
|
|
2884
|
+
GROUP_MEMBER_LABEL_CHANGE = 30;
|
|
2741
2885
|
}
|
|
2742
2886
|
}
|
|
2743
2887
|
|
|
@@ -2798,6 +2942,7 @@ message Message {
|
|
|
2798
2942
|
enum SecretEncType {
|
|
2799
2943
|
UNKNOWN = 0;
|
|
2800
2944
|
EVENT_EDIT = 1;
|
|
2945
|
+
MESSAGE_EDIT = 2;
|
|
2801
2946
|
}
|
|
2802
2947
|
}
|
|
2803
2948
|
|
|
@@ -2938,6 +3083,10 @@ message Message {
|
|
|
2938
3083
|
|
|
2939
3084
|
}
|
|
2940
3085
|
|
|
3086
|
+
message URLMetadata {
|
|
3087
|
+
optional uint32 fbExperimentId = 1;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
2941
3090
|
message VideoMessage {
|
|
2942
3091
|
optional string url = 1;
|
|
2943
3092
|
optional string mimetype = 2;
|
|
@@ -2965,6 +3114,7 @@ message Message {
|
|
|
2965
3114
|
repeated InteractiveAnnotation annotations = 25;
|
|
2966
3115
|
optional string accessibilityLabel = 26;
|
|
2967
3116
|
repeated ProcessedVideo processedVideos = 27;
|
|
3117
|
+
optional uint32 externalShareFullVideoDurationInSeconds = 28;
|
|
2968
3118
|
enum Attribution {
|
|
2969
3119
|
NONE = 0;
|
|
2970
3120
|
GIPHY = 1;
|
|
@@ -3008,7 +3158,7 @@ message MessageAssociation {
|
|
|
3008
3158
|
EVENT_COVER_IMAGE = 3;
|
|
3009
3159
|
STATUS_POLL = 4;
|
|
3010
3160
|
HD_VIDEO_DUAL_UPLOAD = 5;
|
|
3011
|
-
|
|
3161
|
+
STATUS_EXTERNAL_RESHARE = 6;
|
|
3012
3162
|
MEDIA_POLL = 7;
|
|
3013
3163
|
STATUS_ADD_YOURS = 8;
|
|
3014
3164
|
STATUS_NOTIFICATION = 9;
|
|
@@ -3033,6 +3183,8 @@ message MessageContextInfo {
|
|
|
3033
3183
|
optional MessageAssociation messageAssociation = 10;
|
|
3034
3184
|
optional bool capiCreatedGroup = 11;
|
|
3035
3185
|
optional string supportPayload = 12;
|
|
3186
|
+
optional LimitSharing limitSharing = 13;
|
|
3187
|
+
optional LimitSharing limitSharingV2 = 14;
|
|
3036
3188
|
enum MessageAddonExpiryType {
|
|
3037
3189
|
STATIC = 1;
|
|
3038
3190
|
DEPENDENT_ON_PARENT = 2;
|
|
@@ -3097,6 +3249,7 @@ message MsgOpaqueData {
|
|
|
3097
3249
|
optional int64 eventStartTime = 37;
|
|
3098
3250
|
optional EventLocation eventLocation = 38;
|
|
3099
3251
|
optional int64 eventEndTime = 40;
|
|
3252
|
+
optional bytes plainProtobufBytes = 43;
|
|
3100
3253
|
message EventLocation {
|
|
3101
3254
|
optional double degreesLatitude = 1;
|
|
3102
3255
|
optional double degreesLongitude = 2;
|
|
@@ -3628,6 +3781,9 @@ message SyncActionValue {
|
|
|
3628
3781
|
optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
|
|
3629
3782
|
optional UsernameChatStartModeAction usernameChatStartMode = 59;
|
|
3630
3783
|
optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
|
|
3784
|
+
optional LidContactAction lidContactAction = 61;
|
|
3785
|
+
optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
|
|
3786
|
+
optional PaymentTosAction paymentTosAction = 63;
|
|
3631
3787
|
message AgentAction {
|
|
3632
3788
|
optional string name = 1;
|
|
3633
3789
|
optional int32 deviceID = 2;
|
|
@@ -3668,6 +3824,12 @@ message SyncActionValue {
|
|
|
3668
3824
|
optional string firstName = 2;
|
|
3669
3825
|
optional string lidJid = 3;
|
|
3670
3826
|
optional bool saveOnPrimaryAddressbook = 4;
|
|
3827
|
+
optional string pnJid = 5;
|
|
3828
|
+
optional string username = 6;
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
message CtwaPerCustomerDataSharingAction {
|
|
3832
|
+
optional bool isCtwaPerCustomerDataSharingEnabled = 1;
|
|
3671
3833
|
}
|
|
3672
3834
|
|
|
3673
3835
|
message CustomPaymentMethod {
|
|
@@ -3728,6 +3890,7 @@ message SyncActionValue {
|
|
|
3728
3890
|
optional int32 orderIndex = 5;
|
|
3729
3891
|
optional bool isActive = 6;
|
|
3730
3892
|
optional ListType type = 7;
|
|
3893
|
+
optional bool isImmutable = 8;
|
|
3731
3894
|
enum ListType {
|
|
3732
3895
|
NONE = 0;
|
|
3733
3896
|
UNREAD = 1;
|
|
@@ -3735,6 +3898,8 @@ message SyncActionValue {
|
|
|
3735
3898
|
FAVORITES = 3;
|
|
3736
3899
|
PREDEFINED = 4;
|
|
3737
3900
|
CUSTOM = 5;
|
|
3901
|
+
COMMUNITY = 6;
|
|
3902
|
+
SERVER_ASSIGNED = 7;
|
|
3738
3903
|
}
|
|
3739
3904
|
}
|
|
3740
3905
|
|
|
@@ -3742,6 +3907,13 @@ message SyncActionValue {
|
|
|
3742
3907
|
repeated int32 sortedLabelIds = 1;
|
|
3743
3908
|
}
|
|
3744
3909
|
|
|
3910
|
+
message LidContactAction {
|
|
3911
|
+
optional string fullName = 1;
|
|
3912
|
+
optional string firstName = 2;
|
|
3913
|
+
optional string username = 3;
|
|
3914
|
+
optional bool saveOnPrimaryAddressbook = 4;
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3745
3917
|
message LocaleSetting {
|
|
3746
3918
|
optional string locale = 1;
|
|
3747
3919
|
}
|
|
@@ -3819,6 +3991,14 @@ message SyncActionValue {
|
|
|
3819
3991
|
optional string cpi = 1;
|
|
3820
3992
|
}
|
|
3821
3993
|
|
|
3994
|
+
message PaymentTosAction {
|
|
3995
|
+
required PaymentNotice paymentNotice = 1;
|
|
3996
|
+
required bool accepted = 2;
|
|
3997
|
+
enum PaymentNotice {
|
|
3998
|
+
BR_PAY_PRIVACY_POLICY = 0;
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
|
|
3822
4002
|
message PinAction {
|
|
3823
4003
|
optional bool pinned = 1;
|
|
3824
4004
|
}
|
|
@@ -4439,6 +4619,9 @@ message WebMessageInfo {
|
|
|
4439
4619
|
CHANGE_LID = 213;
|
|
4440
4620
|
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE = 214;
|
|
4441
4621
|
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE = 215;
|
|
4622
|
+
CHANGE_LIMIT_SHARING = 216;
|
|
4623
|
+
GROUP_MEMBER_LINK_MODE = 217;
|
|
4624
|
+
BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
|
|
4442
4625
|
}
|
|
4443
4626
|
}
|
|
4444
4627
|
|