@wppconnect/wa-proto 1.1.5 → 1.1.7
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 +96 -1
- package/dist/index.d.ts +1150 -0
- package/dist/index.js +3199 -0
- 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.1019229338
|
|
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;
|
|
@@ -309,6 +401,7 @@ message BotSessionMetadata {
|
|
|
309
401
|
}
|
|
310
402
|
|
|
311
403
|
enum BotSessionSource {
|
|
404
|
+
NONE = 0;
|
|
312
405
|
NULL_STATE = 1;
|
|
313
406
|
TYPEAHEAD = 2;
|
|
314
407
|
USER_INPUT = 3;
|
|
@@ -1346,6 +1439,7 @@ message Message {
|
|
|
1346
1439
|
optional FutureProofMessage pollCreationMessageV5 = 94;
|
|
1347
1440
|
optional FutureProofMessage statusAddYours = 95;
|
|
1348
1441
|
optional FutureProofMessage groupStatusMessage = 96;
|
|
1442
|
+
optional AIRichResponseMessage richResponseMessage = 97;
|
|
1349
1443
|
message AlbumMessage {
|
|
1350
1444
|
optional uint32 expectedImageCount = 2;
|
|
1351
1445
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -2755,6 +2849,7 @@ message MsgOpaqueData {
|
|
|
2755
2849
|
}
|
|
2756
2850
|
message PollOption {
|
|
2757
2851
|
optional string name = 1;
|
|
2852
|
+
optional string hash = 2;
|
|
2758
2853
|
}
|
|
2759
2854
|
|
|
2760
2855
|
message PollVoteSnapshot {
|