@wppconnect/wa-proto 1.1.4 → 1.1.6
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 +132 -6
- package/dist/index.d.ts +1618 -10
- package/dist/index.js +4522 -35
- package/package.json +1 -1
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.1019136581
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -42,6 +42,96 @@ message ADVSignedKeyIndexList {
|
|
|
42
42
|
optional bytes accountSignatureKey = 3;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
message AIRichResponseMessage {
|
|
46
|
+
optional AIRichResponseMessageType messageType = 1;
|
|
47
|
+
repeated AIRichResponseSubMessage submessages = 2;
|
|
48
|
+
message AIRichResponseCodeMetadata {
|
|
49
|
+
optional string codeLanguage = 1;
|
|
50
|
+
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
|
51
|
+
message AIRichResponseCodeBlock {
|
|
52
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
|
53
|
+
optional string codeContent = 2;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
enum AIRichResponseCodeHighlightType {
|
|
57
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
|
58
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
|
59
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
|
60
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
|
61
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
|
62
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message AIRichResponseDynamicMetadata {
|
|
67
|
+
optional AIRichResponseDynamicMetadataType type = 1;
|
|
68
|
+
optional uint64 version = 2;
|
|
69
|
+
optional string url = 3;
|
|
70
|
+
optional uint32 loopCount = 4;
|
|
71
|
+
enum AIRichResponseDynamicMetadataType {
|
|
72
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
|
73
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
|
74
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message AIRichResponseGridImageMetadata {
|
|
79
|
+
optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
|
|
80
|
+
repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message AIRichResponseImageURL {
|
|
84
|
+
optional string imagePreviewUrl = 1;
|
|
85
|
+
optional string imageHighResUrl = 2;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message AIRichResponseInlineImageMetadata {
|
|
89
|
+
optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
|
|
90
|
+
optional string imageText = 2;
|
|
91
|
+
optional AIRichResponseImageAlignment alignment = 3;
|
|
92
|
+
optional string tapLinkUrl = 4;
|
|
93
|
+
enum AIRichResponseImageAlignment {
|
|
94
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
|
95
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
|
96
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
enum AIRichResponseMessageType {
|
|
101
|
+
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
|
102
|
+
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
|
103
|
+
AI_RICH_RESPONSE_TYPE_ARTIFACTS = 2;
|
|
104
|
+
}
|
|
105
|
+
message AIRichResponseSubMessage {
|
|
106
|
+
optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
|
|
107
|
+
optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
|
108
|
+
optional string messageText = 3;
|
|
109
|
+
optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
|
|
110
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
|
|
111
|
+
optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
|
|
112
|
+
optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
enum AIRichResponseSubMessageType {
|
|
116
|
+
AI_RICH_RESPONSE_UNKNOWN = 0;
|
|
117
|
+
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
|
118
|
+
AI_RICH_RESPONSE_TEXT = 2;
|
|
119
|
+
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
|
120
|
+
AI_RICH_RESPONSE_TABLE = 4;
|
|
121
|
+
AI_RICH_RESPONSE_CODE = 5;
|
|
122
|
+
AI_RICH_RESPONSE_DYNAMIC = 6;
|
|
123
|
+
}
|
|
124
|
+
message AIRichResponseTableMetadata {
|
|
125
|
+
repeated AIRichResponseTableRow rows = 1;
|
|
126
|
+
message AIRichResponseTableRow {
|
|
127
|
+
repeated string items = 1;
|
|
128
|
+
optional bool isHeading = 2;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
}
|
|
134
|
+
|
|
45
135
|
message ActionLink {
|
|
46
136
|
optional string url = 1;
|
|
47
137
|
optional string buttonTitle = 2;
|
|
@@ -121,6 +211,8 @@ message BotCapabilityMetadata {
|
|
|
121
211
|
RICH_RESPONSE_THREAD_SURFING = 5;
|
|
122
212
|
RICH_RESPONSE_TABLE = 6;
|
|
123
213
|
RICH_RESPONSE_CODE = 7;
|
|
214
|
+
RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
|
|
215
|
+
RICH_RESPONSE_INLINE_IMAGE = 9;
|
|
124
216
|
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
|
125
217
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
|
126
218
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
|
@@ -434,6 +526,7 @@ message ChatRowOpaqueData {
|
|
|
434
526
|
|
|
435
527
|
message ClientPairingProps {
|
|
436
528
|
optional bool isChatDbLidMigrated = 1;
|
|
529
|
+
optional bool isSyncdPureLidSession = 2;
|
|
437
530
|
}
|
|
438
531
|
|
|
439
532
|
message ClientPayload {
|
|
@@ -705,6 +798,7 @@ message ContextInfo {
|
|
|
705
798
|
optional bytes ctwaPayload = 55;
|
|
706
799
|
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
|
707
800
|
optional StatusAttributionType statusAttributionType = 57;
|
|
801
|
+
optional UrlTrackingMap urlTrackingMap = 58;
|
|
708
802
|
message AdReplyInfo {
|
|
709
803
|
optional string advertiserName = 1;
|
|
710
804
|
optional MediaType mediaType = 2;
|
|
@@ -1204,10 +1298,20 @@ message KeyId {
|
|
|
1204
1298
|
optional bytes id = 1;
|
|
1205
1299
|
}
|
|
1206
1300
|
|
|
1301
|
+
message LIDMigrationMapping {
|
|
1302
|
+
required uint64 pn = 1;
|
|
1303
|
+
required uint64 assignedLid = 2;
|
|
1304
|
+
optional uint64 latestLid = 3;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1207
1307
|
message LIDMigrationMappingSyncMessage {
|
|
1208
1308
|
optional bytes encodedMappingPayload = 1;
|
|
1209
1309
|
}
|
|
1210
1310
|
|
|
1311
|
+
message LIDMigrationMappingSyncPayload {
|
|
1312
|
+
repeated LIDMigrationMapping pnToLidMappings = 1;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1211
1315
|
message LegacyMessage {
|
|
1212
1316
|
optional Message.EventResponseMessage eventResponseMessage = 1;
|
|
1213
1317
|
optional Message.PollVoteMessage pollVote = 2;
|
|
@@ -1333,6 +1437,8 @@ message Message {
|
|
|
1333
1437
|
optional FutureProofMessage pollCreationMessageV4 = 93;
|
|
1334
1438
|
optional FutureProofMessage pollCreationMessageV5 = 94;
|
|
1335
1439
|
optional FutureProofMessage statusAddYours = 95;
|
|
1440
|
+
optional FutureProofMessage groupStatusMessage = 96;
|
|
1441
|
+
optional AIRichResponseMessage richResponseMessage = 97;
|
|
1336
1442
|
message AlbumMessage {
|
|
1337
1443
|
optional uint32 expectedImageCount = 2;
|
|
1338
1444
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -1860,6 +1966,7 @@ message Message {
|
|
|
1860
1966
|
optional Body body = 2;
|
|
1861
1967
|
optional Footer footer = 3;
|
|
1862
1968
|
optional ContextInfo contextInfo = 15;
|
|
1969
|
+
optional UrlTrackingMap urlTrackingMap = 16;
|
|
1863
1970
|
oneof interactiveMessage {
|
|
1864
1971
|
Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
|
|
1865
1972
|
Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
|
|
@@ -2255,13 +2362,18 @@ message Message {
|
|
|
2255
2362
|
}
|
|
2256
2363
|
}
|
|
2257
2364
|
|
|
2365
|
+
enum PollContentType {
|
|
2366
|
+
UNKNOWN = 0;
|
|
2367
|
+
TEXT = 1;
|
|
2368
|
+
IMAGE = 2;
|
|
2369
|
+
}
|
|
2258
2370
|
message PollCreationMessage {
|
|
2259
2371
|
optional bytes encKey = 1;
|
|
2260
2372
|
optional string name = 2;
|
|
2261
2373
|
repeated Option options = 3;
|
|
2262
2374
|
optional uint32 selectableOptionsCount = 4;
|
|
2263
2375
|
optional ContextInfo contextInfo = 5;
|
|
2264
|
-
optional Message.
|
|
2376
|
+
optional Message.PollContentType pollContentType = 6;
|
|
2265
2377
|
optional PollType pollType = 7;
|
|
2266
2378
|
optional Option correctAnswer = 8;
|
|
2267
2379
|
message Option {
|
|
@@ -2280,10 +2392,6 @@ message Message {
|
|
|
2280
2392
|
optional bytes encIv = 2;
|
|
2281
2393
|
}
|
|
2282
2394
|
|
|
2283
|
-
enum PollMediaType {
|
|
2284
|
-
TEXT = 1;
|
|
2285
|
-
IMAGE = 2;
|
|
2286
|
-
}
|
|
2287
2395
|
message PollResultSnapshotMessage {
|
|
2288
2396
|
optional string name = 1;
|
|
2289
2397
|
repeated PollVote pollVotes = 2;
|
|
@@ -2708,6 +2816,7 @@ message MsgOpaqueData {
|
|
|
2708
2816
|
optional string pollUpdateParentKey = 23;
|
|
2709
2817
|
optional PollEncValue encPollVote = 24;
|
|
2710
2818
|
optional bool isSentCagPollCreation = 28;
|
|
2819
|
+
optional PollContentType pollContentType = 42;
|
|
2711
2820
|
optional PollVotesSnapshot pollVotesSnapshot = 41;
|
|
2712
2821
|
optional string encReactionTargetMessageKey = 25;
|
|
2713
2822
|
optional bytes encReactionEncPayload = 26;
|
|
@@ -2732,8 +2841,14 @@ message MsgOpaqueData {
|
|
|
2732
2841
|
optional bytes jpegThumbnail = 6;
|
|
2733
2842
|
}
|
|
2734
2843
|
|
|
2844
|
+
enum PollContentType {
|
|
2845
|
+
UNKNOWN = 0;
|
|
2846
|
+
TEXT = 1;
|
|
2847
|
+
IMAGE = 2;
|
|
2848
|
+
}
|
|
2735
2849
|
message PollOption {
|
|
2736
2850
|
optional string name = 1;
|
|
2851
|
+
optional string hash = 2;
|
|
2737
2852
|
}
|
|
2738
2853
|
|
|
2739
2854
|
message PollVoteSnapshot {
|
|
@@ -3644,6 +3759,17 @@ message TemplateButton {
|
|
|
3644
3759
|
|
|
3645
3760
|
}
|
|
3646
3761
|
|
|
3762
|
+
message UrlTrackingMap {
|
|
3763
|
+
repeated UrlTrackingMapElement urlTrackingMapElements = 1;
|
|
3764
|
+
message UrlTrackingMapElement {
|
|
3765
|
+
optional string originalUrl = 1;
|
|
3766
|
+
optional string unconsentedUsersUrl = 2;
|
|
3767
|
+
optional string consentedUsersUrl = 3;
|
|
3768
|
+
optional uint32 cardIndex = 4;
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3647
3773
|
message UserPassword {
|
|
3648
3774
|
optional Encoding encoding = 1;
|
|
3649
3775
|
optional Transformer transformer = 2;
|