@jkt48connect-corp/baileys 7.3.1 → 7.3.3
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/README.md +1311 -1283
- package/WAProto/WAProto.proto +227 -2
- package/lib/Utils/generics.js +2 -2
- package/lib/index.d.ts +12 -0
- package/package.json +17 -24
- package/lib/Utils/messages.js.bak +0 -1249
package/WAProto/WAProto.proto
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
-
package
|
2
|
+
package waproto;
|
3
3
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
4
|
+
/// WhatsApp Version: 2.3000.1020903593
|
5
5
|
|
6
6
|
message ADVDeviceIdentity {
|
7
7
|
optional uint32 rawId = 1;
|
@@ -45,6 +45,11 @@ message ADVSignedKeyIndexList {
|
|
45
45
|
message AIRichResponseMessage {
|
46
46
|
optional AIRichResponseMessageType messageType = 1;
|
47
47
|
repeated AIRichResponseSubMessage submessages = 2;
|
48
|
+
optional AIRichResponseAbstractData abstractData = 3;
|
49
|
+
message AIRichResponseAbstractData {
|
50
|
+
optional bytes data = 1;
|
51
|
+
}
|
52
|
+
|
48
53
|
message AIRichResponseCodeMetadata {
|
49
54
|
optional string codeLanguage = 1;
|
50
55
|
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
@@ -63,6 +68,28 @@ message AIRichResponseMessage {
|
|
63
68
|
}
|
64
69
|
}
|
65
70
|
|
71
|
+
message AIRichResponseContentItemsMetadata {
|
72
|
+
repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
|
73
|
+
optional ContentType contentType = 2;
|
74
|
+
message AIRichResponseContentItemMetadata {
|
75
|
+
oneof aIRichResponseContentItem {
|
76
|
+
AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
message AIRichResponseReelItem {
|
81
|
+
optional string title = 1;
|
82
|
+
optional string profileIconUrl = 2;
|
83
|
+
optional string thumbnailUrl = 3;
|
84
|
+
optional string videoUrl = 4;
|
85
|
+
}
|
86
|
+
|
87
|
+
enum ContentType {
|
88
|
+
DEFAULT = 0;
|
89
|
+
CAROUSEL = 1;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
66
93
|
message AIRichResponseDynamicMetadata {
|
67
94
|
optional AIRichResponseDynamicMetadataType type = 1;
|
68
95
|
optional uint64 version = 2;
|
@@ -98,6 +125,36 @@ message AIRichResponseMessage {
|
|
98
125
|
}
|
99
126
|
}
|
100
127
|
|
128
|
+
message AIRichResponseLatexMetadata {
|
129
|
+
optional string text = 1;
|
130
|
+
repeated AIRichResponseLatexExpression expressions = 2;
|
131
|
+
message AIRichResponseLatexExpression {
|
132
|
+
optional string latexExpression = 1;
|
133
|
+
optional string url = 2;
|
134
|
+
optional double width = 3;
|
135
|
+
optional double height = 4;
|
136
|
+
optional double fontHeight = 5;
|
137
|
+
}
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
message AIRichResponseMapMetadata {
|
142
|
+
optional double centerLatitude = 1;
|
143
|
+
optional double centerLongitude = 2;
|
144
|
+
optional double latitudeDelta = 3;
|
145
|
+
optional double longitudeDelta = 4;
|
146
|
+
repeated AIRichResponseMapAnnotation annotations = 5;
|
147
|
+
optional bool showInfoList = 6;
|
148
|
+
message AIRichResponseMapAnnotation {
|
149
|
+
optional uint32 annotationNumber = 1;
|
150
|
+
optional double latitude = 2;
|
151
|
+
optional double longitude = 3;
|
152
|
+
optional string title = 4;
|
153
|
+
optional string body = 5;
|
154
|
+
}
|
155
|
+
|
156
|
+
}
|
157
|
+
|
101
158
|
enum AIRichResponseMessageType {
|
102
159
|
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
103
160
|
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
@@ -110,6 +167,9 @@ message AIRichResponseMessage {
|
|
110
167
|
optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
|
111
168
|
optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
|
112
169
|
optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
170
|
+
optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
|
171
|
+
optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
|
172
|
+
optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
|
113
173
|
}
|
114
174
|
|
115
175
|
enum AIRichResponseSubMessageType {
|
@@ -120,6 +180,9 @@ message AIRichResponseMessage {
|
|
120
180
|
AI_RICH_RESPONSE_TABLE = 4;
|
121
181
|
AI_RICH_RESPONSE_CODE = 5;
|
122
182
|
AI_RICH_RESPONSE_DYNAMIC = 6;
|
183
|
+
AI_RICH_RESPONSE_MAP = 7;
|
184
|
+
AI_RICH_RESPONSE_LATEX = 8;
|
185
|
+
AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
|
123
186
|
}
|
124
187
|
message AIRichResponseTableMetadata {
|
125
188
|
repeated AIRichResponseTableRow rows = 1;
|
@@ -132,6 +195,13 @@ message AIRichResponseMessage {
|
|
132
195
|
|
133
196
|
}
|
134
197
|
|
198
|
+
message Account {
|
199
|
+
optional string lid = 1;
|
200
|
+
optional string username = 2;
|
201
|
+
optional string countryCode = 3;
|
202
|
+
optional bool isUsernameDeleted = 4;
|
203
|
+
}
|
204
|
+
|
135
205
|
message ActionLink {
|
136
206
|
optional string url = 1;
|
137
207
|
optional string buttonTitle = 2;
|
@@ -204,6 +274,7 @@ message BotAvatarMetadata {
|
|
204
274
|
message BotCapabilityMetadata {
|
205
275
|
repeated BotCapabilityType capabilities = 1;
|
206
276
|
enum BotCapabilityType {
|
277
|
+
UNKNOWN = 0;
|
207
278
|
PROGRESS_INDICATOR = 1;
|
208
279
|
RICH_RESPONSE_HEADING = 2;
|
209
280
|
RICH_RESPONSE_NESTED_LIST = 3;
|
@@ -227,6 +298,12 @@ message BotCapabilityMetadata {
|
|
227
298
|
RICH_RESPONSE_SUB_HEADING = 21;
|
228
299
|
RICH_RESPONSE_GRID_IMAGE = 22;
|
229
300
|
AI_STUDIO_UGC_MEMORY = 23;
|
301
|
+
RICH_RESPONSE_LATEX = 24;
|
302
|
+
RICH_RESPONSE_MAPS = 25;
|
303
|
+
RICH_RESPONSE_INLINE_REELS = 26;
|
304
|
+
AGENTIC_PLANNING = 27;
|
305
|
+
ACCOUNT_LINKING = 28;
|
306
|
+
STREAMING_DISAGGREGATION = 29;
|
230
307
|
}
|
231
308
|
}
|
232
309
|
|
@@ -302,6 +379,7 @@ message BotMetadata {
|
|
302
379
|
optional BotRenderingMetadata renderingMetadata = 16;
|
303
380
|
optional BotMetricsMetadata botMetricsMetadata = 17;
|
304
381
|
optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
|
382
|
+
optional BotSourcesMetadata richResponseSourcesMetadata = 19;
|
305
383
|
}
|
306
384
|
|
307
385
|
enum BotMetricsEntryPoint {
|
@@ -322,12 +400,23 @@ enum BotMetricsEntryPoint {
|
|
322
400
|
FORWARD = 15;
|
323
401
|
APP_SHORTCUT = 16;
|
324
402
|
FF_FAMILY = 17;
|
403
|
+
AI_TAB = 18;
|
404
|
+
AI_HOME = 19;
|
405
|
+
AI_DEEPLINK_IMMERSIVE = 20;
|
406
|
+
AI_DEEPLINK = 21;
|
325
407
|
}
|
326
408
|
message BotMetricsMetadata {
|
327
409
|
optional string destinationId = 1;
|
328
410
|
optional BotMetricsEntryPoint destinationEntryPoint = 2;
|
411
|
+
optional BotMetricsThreadEntryPoint threadOrigin = 3;
|
329
412
|
}
|
330
413
|
|
414
|
+
enum BotMetricsThreadEntryPoint {
|
415
|
+
AI_TAB_THREAD = 1;
|
416
|
+
AI_HOME_THREAD = 2;
|
417
|
+
AI_DEEPLINK_IMMERSIVE_THREAD = 3;
|
418
|
+
AI_DEEPLINK_THREAD = 4;
|
419
|
+
}
|
331
420
|
message BotModelMetadata {
|
332
421
|
optional ModelType modelType = 1;
|
333
422
|
optional PremiumModelStatus premiumModelStatus = 2;
|
@@ -371,6 +460,54 @@ message BotPluginMetadata {
|
|
371
460
|
|
372
461
|
message BotProgressIndicatorMetadata {
|
373
462
|
optional string progressDescription = 1;
|
463
|
+
repeated BotPlanningStepMetadata stepsMetadata = 2;
|
464
|
+
message BotPlanningStepMetadata {
|
465
|
+
optional string statusTitle = 1;
|
466
|
+
optional string statusBody = 2;
|
467
|
+
repeated BotPlanningSearchSourcesMetadata sourcesMetadata = 3;
|
468
|
+
optional PlanningStepStatus status = 4;
|
469
|
+
optional bool isReasoning = 5;
|
470
|
+
optional bool isEnhancedSearch = 6;
|
471
|
+
repeated BotPlanningStepSectionMetadata sections = 7;
|
472
|
+
message BotPlanningSearchSourceMetadata {
|
473
|
+
optional string title = 1;
|
474
|
+
optional BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;
|
475
|
+
optional string sourceUrl = 3;
|
476
|
+
optional string favIconUrl = 4;
|
477
|
+
}
|
478
|
+
|
479
|
+
message BotPlanningSearchSourcesMetadata {
|
480
|
+
optional string sourceTitle = 1;
|
481
|
+
optional BotPlanningSearchSourceProvider provider = 2;
|
482
|
+
optional string sourceUrl = 3;
|
483
|
+
enum BotPlanningSearchSourceProvider {
|
484
|
+
UNKNOWN = 0;
|
485
|
+
OTHER = 1;
|
486
|
+
GOOGLE = 2;
|
487
|
+
BING = 3;
|
488
|
+
}
|
489
|
+
}
|
490
|
+
|
491
|
+
message BotPlanningStepSectionMetadata {
|
492
|
+
optional string sectionTitle = 1;
|
493
|
+
optional string sectionBody = 2;
|
494
|
+
repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
|
495
|
+
}
|
496
|
+
|
497
|
+
enum BotSearchSourceProvider {
|
498
|
+
UNKNOWN_PROVIDER = 0;
|
499
|
+
OTHER = 1;
|
500
|
+
GOOGLE = 2;
|
501
|
+
BING = 3;
|
502
|
+
}
|
503
|
+
enum PlanningStepStatus {
|
504
|
+
UNKNOWN = 0;
|
505
|
+
PLANNED = 1;
|
506
|
+
EXECUTING = 2;
|
507
|
+
FINISHED = 3;
|
508
|
+
}
|
509
|
+
}
|
510
|
+
|
374
511
|
}
|
375
512
|
|
376
513
|
message BotPromptSuggestion {
|
@@ -426,6 +563,25 @@ enum BotSessionSource {
|
|
426
563
|
EMU_FLASH_FOLLOWUP = 5;
|
427
564
|
VOICE = 6;
|
428
565
|
}
|
566
|
+
message BotSourcesMetadata {
|
567
|
+
repeated BotSourceItem sources = 1;
|
568
|
+
message BotSourceItem {
|
569
|
+
optional SourceProvider provider = 1;
|
570
|
+
optional string thumbnailCdnUrl = 2;
|
571
|
+
optional string sourceProviderUrl = 3;
|
572
|
+
optional string sourceQuery = 4;
|
573
|
+
optional string faviconCdnUrl = 5;
|
574
|
+
optional uint32 citationNumber = 6;
|
575
|
+
enum SourceProvider {
|
576
|
+
UNKNOWN = 0;
|
577
|
+
BING = 1;
|
578
|
+
GOOGLE = 2;
|
579
|
+
SUPPORT = 3;
|
580
|
+
}
|
581
|
+
}
|
582
|
+
|
583
|
+
}
|
584
|
+
|
429
585
|
message BotSuggestedPromptMetadata {
|
430
586
|
repeated string suggestedPrompts = 1;
|
431
587
|
optional uint32 selectedPromptIndex = 2;
|
@@ -583,6 +739,7 @@ message ClientPayload {
|
|
583
739
|
optional int32 memClass = 37;
|
584
740
|
optional InteropData interopData = 38;
|
585
741
|
optional TrafficAnonymization trafficAnonymization = 40;
|
742
|
+
optional bool lidDbMigrated = 41;
|
586
743
|
enum ConnectReason {
|
587
744
|
PUSH = 0;
|
588
745
|
USER_ACTIVATED = 1;
|
@@ -826,6 +983,8 @@ message ContextInfo {
|
|
826
983
|
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
827
984
|
optional StatusAttributionType statusAttributionType = 57;
|
828
985
|
optional UrlTrackingMap urlTrackingMap = 58;
|
986
|
+
optional PairedMediaType pairedMediaType = 59;
|
987
|
+
optional uint32 rankingVersion = 60;
|
829
988
|
message AdReplyInfo {
|
830
989
|
optional string advertiserName = 1;
|
831
990
|
optional MediaType mediaType = 2;
|
@@ -879,6 +1038,7 @@ message ContextInfo {
|
|
879
1038
|
optional string ctaPayload = 20;
|
880
1039
|
optional bool disableNudge = 21;
|
881
1040
|
optional string originalImageUrl = 22;
|
1041
|
+
optional bool wtwaAdFormat = 23;
|
882
1042
|
enum MediaType {
|
883
1043
|
NONE = 0;
|
884
1044
|
IMAGE = 1;
|
@@ -912,6 +1072,13 @@ message ContextInfo {
|
|
912
1072
|
}
|
913
1073
|
}
|
914
1074
|
|
1075
|
+
enum PairedMediaType {
|
1076
|
+
NOT_PAIRED_MEDIA = 0;
|
1077
|
+
SD_VIDEO_PARENT = 1;
|
1078
|
+
HD_VIDEO_CHILD = 2;
|
1079
|
+
SD_IMAGE_PARENT = 3;
|
1080
|
+
HD_IMAGE_CHILD = 4;
|
1081
|
+
}
|
915
1082
|
enum StatusAttributionType {
|
916
1083
|
NONE = 0;
|
917
1084
|
RESHARED_FROM_MENTION = 1;
|
@@ -974,6 +1141,8 @@ message Conversation {
|
|
974
1141
|
optional PrivacySystemMessage systemMessageToInsert = 47;
|
975
1142
|
optional bool capiCreatedGroup = 48;
|
976
1143
|
optional string accountLid = 49;
|
1144
|
+
optional bool limitSharing = 50;
|
1145
|
+
optional int64 limitSharingSettingTimestamp = 51;
|
977
1146
|
enum EndOfHistoryTransferType {
|
978
1147
|
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
979
1148
|
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
@@ -983,11 +1152,16 @@ message Conversation {
|
|
983
1152
|
|
984
1153
|
message DeviceCapabilities {
|
985
1154
|
optional ChatLockSupportLevel chatLockSupportLevel = 1;
|
1155
|
+
optional LIDMigration lidMigration = 2;
|
986
1156
|
enum ChatLockSupportLevel {
|
987
1157
|
NONE = 0;
|
988
1158
|
MINIMAL = 1;
|
989
1159
|
FULL = 2;
|
990
1160
|
}
|
1161
|
+
message LIDMigration {
|
1162
|
+
optional uint64 chatDbMigrationTimestamp = 1;
|
1163
|
+
}
|
1164
|
+
|
991
1165
|
}
|
992
1166
|
|
993
1167
|
message DeviceConsistencyCodeMessage {
|
@@ -1233,6 +1407,7 @@ message HistorySync {
|
|
1233
1407
|
repeated PhoneNumberToLIDMapping phoneNumberToLidMappings = 15;
|
1234
1408
|
optional string companionMetaNonce = 16;
|
1235
1409
|
optional bytes shareableChatIdentifierEncryptionKey = 17;
|
1410
|
+
repeated Account accounts = 18;
|
1236
1411
|
enum BotAIWaitListState {
|
1237
1412
|
IN_WAITLIST = 0;
|
1238
1413
|
AI_AVAILABLE = 1;
|
@@ -1293,12 +1468,18 @@ message InteractiveAnnotation {
|
|
1293
1468
|
repeated Point polygonVertices = 1;
|
1294
1469
|
optional bool shouldSkipConfirmation = 4;
|
1295
1470
|
optional EmbeddedContent embeddedContent = 5;
|
1471
|
+
optional StatusLinkType statusLinkType = 8;
|
1296
1472
|
oneof action {
|
1297
1473
|
Location location = 2;
|
1298
1474
|
ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
|
1299
1475
|
bool embeddedAction = 6;
|
1300
1476
|
TapLinkAction tapAction = 7;
|
1301
1477
|
}
|
1478
|
+
enum StatusLinkType {
|
1479
|
+
RASTERIZED_LINK_PREVIEW = 1;
|
1480
|
+
RASTERIZED_LINK_TRUNCATED = 2;
|
1481
|
+
RASTERIZED_LINK_FULL_URL = 3;
|
1482
|
+
}
|
1302
1483
|
}
|
1303
1484
|
|
1304
1485
|
message KeepInChat {
|
@@ -1346,6 +1527,15 @@ message LegacyMessage {
|
|
1346
1527
|
optional Message.PollVoteMessage pollVote = 2;
|
1347
1528
|
}
|
1348
1529
|
|
1530
|
+
message LimitSharing {
|
1531
|
+
optional bool sharingLimited = 1;
|
1532
|
+
optional Trigger trigger = 2;
|
1533
|
+
enum Trigger {
|
1534
|
+
CHAT_SETTING = 0;
|
1535
|
+
BIZ_SUPPORTS_FB_HOSTING = 1;
|
1536
|
+
}
|
1537
|
+
}
|
1538
|
+
|
1349
1539
|
message LocalizedName {
|
1350
1540
|
optional string lg = 1;
|
1351
1541
|
optional string lc = 2;
|
@@ -1469,6 +1659,7 @@ message Message {
|
|
1469
1659
|
optional FutureProofMessage groupStatusMessage = 96;
|
1470
1660
|
optional AIRichResponseMessage richResponseMessage = 97;
|
1471
1661
|
optional StatusNotificationMessage statusNotificationMessage = 98;
|
1662
|
+
optional FutureProofMessage limitSharingMessage = 99;
|
1472
1663
|
message AlbumMessage {
|
1473
1664
|
optional uint32 expectedImageCount = 2;
|
1474
1665
|
optional uint32 expectedVideoCount = 3;
|
@@ -1817,6 +2008,7 @@ message Message {
|
|
1817
2008
|
optional uint32 videoHeight = 31;
|
1818
2009
|
optional uint32 videoWidth = 32;
|
1819
2010
|
optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
|
2011
|
+
optional LinkPreviewMetadata linkPreviewMetadata = 34;
|
1820
2012
|
enum FontType {
|
1821
2013
|
SYSTEM = 0;
|
1822
2014
|
SYSTEM_TEXT = 1;
|
@@ -1833,6 +2025,10 @@ message Message {
|
|
1833
2025
|
SUB = 2;
|
1834
2026
|
DEFAULT_SUB = 3;
|
1835
2027
|
}
|
2028
|
+
message LinkPreviewMetadata {
|
2029
|
+
optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
|
2030
|
+
}
|
2031
|
+
|
1836
2032
|
enum PreviewType {
|
1837
2033
|
NONE = 0;
|
1838
2034
|
VIDEO = 1;
|
@@ -1986,6 +2182,7 @@ message Message {
|
|
1986
2182
|
USER_IMAGE = 0;
|
1987
2183
|
AI_GENERATED = 1;
|
1988
2184
|
AI_MODIFIED = 2;
|
2185
|
+
RASTERIZED_TEXT_STATUS = 3;
|
1989
2186
|
}
|
1990
2187
|
}
|
1991
2188
|
|
@@ -2266,6 +2463,23 @@ message Message {
|
|
2266
2463
|
}
|
2267
2464
|
}
|
2268
2465
|
|
2466
|
+
message PaymentLinkMetadata {
|
2467
|
+
optional PaymentLinkButton button = 1;
|
2468
|
+
optional PaymentLinkHeader header = 2;
|
2469
|
+
message PaymentLinkButton {
|
2470
|
+
required string displayText = 1;
|
2471
|
+
}
|
2472
|
+
|
2473
|
+
message PaymentLinkHeader {
|
2474
|
+
required PaymentLinkHeaderType headerType = 1;
|
2475
|
+
enum PaymentLinkHeaderType {
|
2476
|
+
LINK_PREVIEW = 0;
|
2477
|
+
ORDER = 1;
|
2478
|
+
}
|
2479
|
+
}
|
2480
|
+
|
2481
|
+
}
|
2482
|
+
|
2269
2483
|
message PeerDataOperationRequestMessage {
|
2270
2484
|
optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
|
2271
2485
|
repeated RequestStickerReupload requestStickerReupload = 2;
|
@@ -2499,6 +2713,7 @@ message Message {
|
|
2499
2713
|
optional MediaNotifyMessage mediaNotifyMessage = 21;
|
2500
2714
|
optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
|
2501
2715
|
optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
|
2716
|
+
optional LimitSharing limitSharing = 24;
|
2502
2717
|
enum Type {
|
2503
2718
|
REVOKE = 0;
|
2504
2719
|
EPHEMERAL_SETTING = 3;
|
@@ -2521,6 +2736,8 @@ message Message {
|
|
2521
2736
|
REMINDER_MESSAGE = 23;
|
2522
2737
|
BOT_MEMU_ONBOARDING_MESSAGE = 24;
|
2523
2738
|
STATUS_MENTION_MESSAGE = 25;
|
2739
|
+
STOP_GENERATION_MESSAGE = 26;
|
2740
|
+
LIMIT_SHARING = 27;
|
2524
2741
|
}
|
2525
2742
|
}
|
2526
2743
|
|
@@ -2795,6 +3012,11 @@ message MessageAssociation {
|
|
2795
3012
|
MEDIA_POLL = 7;
|
2796
3013
|
STATUS_ADD_YOURS = 8;
|
2797
3014
|
STATUS_NOTIFICATION = 9;
|
3015
|
+
HD_IMAGE_DUAL_UPLOAD = 10;
|
3016
|
+
STICKER_ANNOTATION = 11;
|
3017
|
+
MOTION_PHOTO = 12;
|
3018
|
+
STATUS_LINK_ACTION = 13;
|
3019
|
+
VIEW_ALL_REPLIES = 14;
|
2798
3020
|
}
|
2799
3021
|
}
|
2800
3022
|
|
@@ -4214,6 +4436,9 @@ message WebMessageInfo {
|
|
4214
4436
|
STATUS_MENTION = 210;
|
4215
4437
|
USER_CONTROLS_SYSTEM_MESSAGE = 211;
|
4216
4438
|
SUPPORT_SYSTEM_MESSAGE = 212;
|
4439
|
+
CHANGE_LID = 213;
|
4440
|
+
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE = 214;
|
4441
|
+
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE = 215;
|
4217
4442
|
}
|
4218
4443
|
}
|
4219
4444
|
|
package/lib/Utils/generics.js
CHANGED
@@ -44,7 +44,7 @@ exports.Browsers = {
|
|
44
44
|
};
|
45
45
|
const getPlatformId = (browser) => {
|
46
46
|
const platformType = WAProto_1.proto.DeviceProps.PlatformType[browser.toUpperCase()];
|
47
|
-
return platformType ? platformType.toString()
|
47
|
+
return platformType ? platformType.toString() : '1' //chrome
|
48
48
|
};
|
49
49
|
exports.getPlatformId = getPlatformId;
|
50
50
|
exports.BufferJSON = {
|
@@ -180,7 +180,7 @@ const generateMessageIDV2 = (userId) => {
|
|
180
180
|
const random = (0, crypto_1.randomBytes)(16);
|
181
181
|
random.copy(data, 28);
|
182
182
|
const hash = (0, crypto_1.createHash)('sha256').update(data).digest();
|
183
|
-
return '
|
183
|
+
return 'BAE5-' + hash.toString('hex').toUpperCase().substring(0, 18);
|
184
184
|
};
|
185
185
|
exports.generateMessageIDV2 = generateMessageIDV2;
|
186
186
|
// generate a random ID to attach to a message
|
package/lib/index.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
import makeWASocket from './Socket';
|
2
|
+
export * from '../WAProto';
|
3
|
+
export * from './Utils';
|
4
|
+
export * from './Types';
|
5
|
+
export * from './Store';
|
6
|
+
export * from './Defaults';
|
7
|
+
export * from './WABinary';
|
8
|
+
export * from './WAM';
|
9
|
+
export * from './WAUSync';
|
10
|
+
export type WASocket = ReturnType<typeof makeWASocket>;
|
11
|
+
export { makeWASocket };
|
12
|
+
export default makeWASocket;
|
package/package.json
CHANGED
@@ -1,27 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jkt48connect-corp/baileys",
|
3
|
-
"version": "7.3.
|
3
|
+
"version": "7.3.3",
|
4
4
|
"description": "WhatsApp API",
|
5
5
|
"keywords": [
|
6
|
-
"Baileys",
|
7
|
-
"whiskeysockets/baileys",
|
8
|
-
"whatsapp",
|
9
|
-
"meta",
|
10
|
-
"valzyy",
|
11
|
-
"jkt48connect",
|
12
6
|
"whatsapp",
|
13
7
|
"js-whatsapp",
|
14
8
|
"whatsapp-api",
|
15
9
|
"whatsapp-web",
|
16
|
-
"whatsapp-chat",
|
17
|
-
"whatsapp-group",
|
18
|
-
"automation",
|
19
10
|
"multi-device",
|
20
|
-
"
|
11
|
+
"newsletter",
|
12
|
+
"whatsapp-bot"
|
21
13
|
],
|
22
|
-
"homepage": "https://
|
14
|
+
"homepage": "https://github.com/J-Forces/Baileyss",
|
23
15
|
"repository": {
|
24
|
-
"url": ""
|
16
|
+
"url": "git+ssh://git@github.com/J-Forces/Baileyss.git"
|
25
17
|
},
|
26
18
|
"license": "MIT",
|
27
19
|
"author": "Adhiraj Singh",
|
@@ -54,20 +46,21 @@
|
|
54
46
|
"@hapi/boom": "^9.1.3",
|
55
47
|
"async-lock": "^1.4.1",
|
56
48
|
"audio-decode": "^2.1.3",
|
57
|
-
"axios": "^1.
|
49
|
+
"axios": "^1.6.0",
|
58
50
|
"cache-manager": "4.0.1",
|
59
51
|
"futoin-hkdf": "^1.5.1",
|
60
52
|
"libphonenumber-js": "^1.10.20",
|
61
|
-
"libsignal": "github:
|
53
|
+
"libsignal": "github:nstar-y/libsignal",
|
54
|
+
"lodash": "^4.17.21",
|
62
55
|
"music-metadata": "^7.12.3",
|
63
56
|
"node-cache": "^5.1.2",
|
64
57
|
"pino": "^7.0.0",
|
65
|
-
"protobufjs": "^
|
66
|
-
"uuid": "^
|
58
|
+
"protobufjs": "^6.11.3",
|
59
|
+
"uuid": "^10.0.0",
|
67
60
|
"ws": "^8.13.0"
|
68
61
|
},
|
69
62
|
"devDependencies": {
|
70
|
-
"@adiwajshing/eslint-config": "github:
|
63
|
+
"@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
|
71
64
|
"@types/got": "^9.6.11",
|
72
65
|
"@types/jest": "^27.5.1",
|
73
66
|
"@types/node": "^16.0.0",
|
@@ -77,22 +70,22 @@
|
|
77
70
|
"eslint": "^8.0.0",
|
78
71
|
"jest": "^27.0.6",
|
79
72
|
"jimp": "^0.16.1",
|
80
|
-
"
|
73
|
+
"json": "^11.0.0",
|
74
|
+
"link-preview-js": "^3.0.5",
|
81
75
|
"open": "^8.4.2",
|
82
76
|
"qrcode-terminal": "^0.12.0",
|
83
77
|
"release-it": "^15.10.3",
|
84
|
-
"sharp": "^0.
|
78
|
+
"sharp": "^0.32.6",
|
85
79
|
"ts-jest": "^27.0.3",
|
86
80
|
"ts-node": "^10.8.1",
|
87
81
|
"typedoc": "^0.24.7",
|
88
|
-
"typescript": "^4.6.4"
|
89
|
-
"json": "^11.0.0"
|
82
|
+
"typescript": "^4.6.4"
|
90
83
|
},
|
91
84
|
"peerDependencies": {
|
92
85
|
"jimp": "^0.16.1",
|
93
86
|
"link-preview-js": "^3.0.0",
|
94
87
|
"qrcode-terminal": "^0.12.0",
|
95
|
-
"sharp": "^0.32.
|
88
|
+
"sharp": "^0.32.6"
|
96
89
|
},
|
97
90
|
"peerDependenciesMeta": {
|
98
91
|
"jimp": {
|
@@ -109,4 +102,4 @@
|
|
109
102
|
}
|
110
103
|
},
|
111
104
|
"packageManager": "yarn@1.22.19"
|
112
|
-
}
|
105
|
+
}
|