@wppconnect/wa-proto 1.1.7 → 1.1.8
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 +4 -0
- package/WAProto.proto +1 -3
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -66
- 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.1019270342
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -1761,7 +1761,6 @@ message Message {
|
|
|
1761
1761
|
message ExtendedTextMessage {
|
|
1762
1762
|
optional string text = 1;
|
|
1763
1763
|
optional string matchedText = 2;
|
|
1764
|
-
optional string canonicalUrl = 4;
|
|
1765
1764
|
optional string description = 5;
|
|
1766
1765
|
optional string title = 6;
|
|
1767
1766
|
optional fixed32 textArgb = 7;
|
|
@@ -2306,7 +2305,6 @@ message Message {
|
|
|
2306
2305
|
optional string title = 2;
|
|
2307
2306
|
optional string description = 3;
|
|
2308
2307
|
optional bytes thumbData = 4;
|
|
2309
|
-
optional string canonicalUrl = 5;
|
|
2310
2308
|
optional string matchText = 6;
|
|
2311
2309
|
optional string previewType = 7;
|
|
2312
2310
|
optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
|
package/dist/index.d.ts
CHANGED
|
@@ -19511,9 +19511,6 @@ export namespace waproto {
|
|
|
19511
19511
|
/** ExtendedTextMessage matchedText */
|
|
19512
19512
|
matchedText?: (string|null);
|
|
19513
19513
|
|
|
19514
|
-
/** ExtendedTextMessage canonicalUrl */
|
|
19515
|
-
canonicalUrl?: (string|null);
|
|
19516
|
-
|
|
19517
19514
|
/** ExtendedTextMessage description */
|
|
19518
19515
|
description?: (string|null);
|
|
19519
19516
|
|
|
@@ -19602,9 +19599,6 @@ export namespace waproto {
|
|
|
19602
19599
|
/** ExtendedTextMessage matchedText. */
|
|
19603
19600
|
public matchedText?: (string|null);
|
|
19604
19601
|
|
|
19605
|
-
/** ExtendedTextMessage canonicalUrl. */
|
|
19606
|
-
public canonicalUrl?: (string|null);
|
|
19607
|
-
|
|
19608
19602
|
/** ExtendedTextMessage description. */
|
|
19609
19603
|
public description?: (string|null);
|
|
19610
19604
|
|
|
@@ -26208,9 +26202,6 @@ export namespace waproto {
|
|
|
26208
26202
|
/** LinkPreviewResponse thumbData */
|
|
26209
26203
|
thumbData?: (Uint8Array|null);
|
|
26210
26204
|
|
|
26211
|
-
/** LinkPreviewResponse canonicalUrl */
|
|
26212
|
-
canonicalUrl?: (string|null);
|
|
26213
|
-
|
|
26214
26205
|
/** LinkPreviewResponse matchText */
|
|
26215
26206
|
matchText?: (string|null);
|
|
26216
26207
|
|
|
@@ -26242,9 +26233,6 @@ export namespace waproto {
|
|
|
26242
26233
|
/** LinkPreviewResponse thumbData. */
|
|
26243
26234
|
public thumbData?: (Uint8Array|null);
|
|
26244
26235
|
|
|
26245
|
-
/** LinkPreviewResponse canonicalUrl. */
|
|
26246
|
-
public canonicalUrl?: (string|null);
|
|
26247
|
-
|
|
26248
26236
|
/** LinkPreviewResponse matchText. */
|
|
26249
26237
|
public matchText?: (string|null);
|
|
26250
26238
|
|
package/dist/index.js
CHANGED
|
@@ -61254,7 +61254,6 @@ $root.waproto = (function() {
|
|
|
61254
61254
|
* @interface IExtendedTextMessage
|
|
61255
61255
|
* @property {string|null} [text] ExtendedTextMessage text
|
|
61256
61256
|
* @property {string|null} [matchedText] ExtendedTextMessage matchedText
|
|
61257
|
-
* @property {string|null} [canonicalUrl] ExtendedTextMessage canonicalUrl
|
|
61258
61257
|
* @property {string|null} [description] ExtendedTextMessage description
|
|
61259
61258
|
* @property {string|null} [title] ExtendedTextMessage title
|
|
61260
61259
|
* @property {number|null} [textArgb] ExtendedTextMessage textArgb
|
|
@@ -61312,14 +61311,6 @@ $root.waproto = (function() {
|
|
|
61312
61311
|
*/
|
|
61313
61312
|
ExtendedTextMessage.prototype.matchedText = null;
|
|
61314
61313
|
|
|
61315
|
-
/**
|
|
61316
|
-
* ExtendedTextMessage canonicalUrl.
|
|
61317
|
-
* @member {string|null|undefined} canonicalUrl
|
|
61318
|
-
* @memberof waproto.Message.ExtendedTextMessage
|
|
61319
|
-
* @instance
|
|
61320
|
-
*/
|
|
61321
|
-
ExtendedTextMessage.prototype.canonicalUrl = null;
|
|
61322
|
-
|
|
61323
61314
|
/**
|
|
61324
61315
|
* ExtendedTextMessage description.
|
|
61325
61316
|
* @member {string|null|undefined} description
|
|
@@ -61527,12 +61518,6 @@ $root.waproto = (function() {
|
|
|
61527
61518
|
set: $util.oneOfSetter($oneOfFields)
|
|
61528
61519
|
});
|
|
61529
61520
|
|
|
61530
|
-
// Virtual OneOf for proto3 optional field
|
|
61531
|
-
Object.defineProperty(ExtendedTextMessage.prototype, "_canonicalUrl", {
|
|
61532
|
-
get: $util.oneOfGetter($oneOfFields = ["canonicalUrl"]),
|
|
61533
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61534
|
-
});
|
|
61535
|
-
|
|
61536
61521
|
// Virtual OneOf for proto3 optional field
|
|
61537
61522
|
Object.defineProperty(ExtendedTextMessage.prototype, "_description", {
|
|
61538
61523
|
get: $util.oneOfGetter($oneOfFields = ["description"]),
|
|
@@ -61705,8 +61690,6 @@ $root.waproto = (function() {
|
|
|
61705
61690
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
|
|
61706
61691
|
if (message.matchedText != null && Object.hasOwnProperty.call(message, "matchedText"))
|
|
61707
61692
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.matchedText);
|
|
61708
|
-
if (message.canonicalUrl != null && Object.hasOwnProperty.call(message, "canonicalUrl"))
|
|
61709
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.canonicalUrl);
|
|
61710
61693
|
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
61711
61694
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.description);
|
|
61712
61695
|
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
@@ -61797,10 +61780,6 @@ $root.waproto = (function() {
|
|
|
61797
61780
|
message.matchedText = reader.string();
|
|
61798
61781
|
break;
|
|
61799
61782
|
}
|
|
61800
|
-
case 4: {
|
|
61801
|
-
message.canonicalUrl = reader.string();
|
|
61802
|
-
break;
|
|
61803
|
-
}
|
|
61804
61783
|
case 5: {
|
|
61805
61784
|
message.description = reader.string();
|
|
61806
61785
|
break;
|
|
@@ -61943,11 +61922,6 @@ $root.waproto = (function() {
|
|
|
61943
61922
|
if (!$util.isString(message.matchedText))
|
|
61944
61923
|
return "matchedText: string expected";
|
|
61945
61924
|
}
|
|
61946
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
61947
|
-
properties._canonicalUrl = 1;
|
|
61948
|
-
if (!$util.isString(message.canonicalUrl))
|
|
61949
|
-
return "canonicalUrl: string expected";
|
|
61950
|
-
}
|
|
61951
61925
|
if (message.description != null && message.hasOwnProperty("description")) {
|
|
61952
61926
|
properties._description = 1;
|
|
61953
61927
|
if (!$util.isString(message.description))
|
|
@@ -62127,8 +62101,6 @@ $root.waproto = (function() {
|
|
|
62127
62101
|
message.text = String(object.text);
|
|
62128
62102
|
if (object.matchedText != null)
|
|
62129
62103
|
message.matchedText = String(object.matchedText);
|
|
62130
|
-
if (object.canonicalUrl != null)
|
|
62131
|
-
message.canonicalUrl = String(object.canonicalUrl);
|
|
62132
62104
|
if (object.description != null)
|
|
62133
62105
|
message.description = String(object.description);
|
|
62134
62106
|
if (object.title != null)
|
|
@@ -62343,11 +62315,6 @@ $root.waproto = (function() {
|
|
|
62343
62315
|
if (options.oneofs)
|
|
62344
62316
|
object._matchedText = "matchedText";
|
|
62345
62317
|
}
|
|
62346
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
62347
|
-
object.canonicalUrl = message.canonicalUrl;
|
|
62348
|
-
if (options.oneofs)
|
|
62349
|
-
object._canonicalUrl = "canonicalUrl";
|
|
62350
|
-
}
|
|
62351
62318
|
if (message.description != null && message.hasOwnProperty("description")) {
|
|
62352
62319
|
object.description = message.description;
|
|
62353
62320
|
if (options.oneofs)
|
|
@@ -81794,7 +81761,6 @@ $root.waproto = (function() {
|
|
|
81794
81761
|
* @property {string|null} [title] LinkPreviewResponse title
|
|
81795
81762
|
* @property {string|null} [description] LinkPreviewResponse description
|
|
81796
81763
|
* @property {Uint8Array|null} [thumbData] LinkPreviewResponse thumbData
|
|
81797
|
-
* @property {string|null} [canonicalUrl] LinkPreviewResponse canonicalUrl
|
|
81798
81764
|
* @property {string|null} [matchText] LinkPreviewResponse matchText
|
|
81799
81765
|
* @property {string|null} [previewType] LinkPreviewResponse previewType
|
|
81800
81766
|
* @property {waproto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.ILinkPreviewHighQualityThumbnail|null} [hqThumbnail] LinkPreviewResponse hqThumbnail
|
|
@@ -81847,14 +81813,6 @@ $root.waproto = (function() {
|
|
|
81847
81813
|
*/
|
|
81848
81814
|
LinkPreviewResponse.prototype.thumbData = null;
|
|
81849
81815
|
|
|
81850
|
-
/**
|
|
81851
|
-
* LinkPreviewResponse canonicalUrl.
|
|
81852
|
-
* @member {string|null|undefined} canonicalUrl
|
|
81853
|
-
* @memberof waproto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse
|
|
81854
|
-
* @instance
|
|
81855
|
-
*/
|
|
81856
|
-
LinkPreviewResponse.prototype.canonicalUrl = null;
|
|
81857
|
-
|
|
81858
81816
|
/**
|
|
81859
81817
|
* LinkPreviewResponse matchText.
|
|
81860
81818
|
* @member {string|null|undefined} matchText
|
|
@@ -81906,12 +81864,6 @@ $root.waproto = (function() {
|
|
|
81906
81864
|
set: $util.oneOfSetter($oneOfFields)
|
|
81907
81865
|
});
|
|
81908
81866
|
|
|
81909
|
-
// Virtual OneOf for proto3 optional field
|
|
81910
|
-
Object.defineProperty(LinkPreviewResponse.prototype, "_canonicalUrl", {
|
|
81911
|
-
get: $util.oneOfGetter($oneOfFields = ["canonicalUrl"]),
|
|
81912
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
81913
|
-
});
|
|
81914
|
-
|
|
81915
81867
|
// Virtual OneOf for proto3 optional field
|
|
81916
81868
|
Object.defineProperty(LinkPreviewResponse.prototype, "_matchText", {
|
|
81917
81869
|
get: $util.oneOfGetter($oneOfFields = ["matchText"]),
|
|
@@ -81962,8 +81914,6 @@ $root.waproto = (function() {
|
|
|
81962
81914
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
|
|
81963
81915
|
if (message.thumbData != null && Object.hasOwnProperty.call(message, "thumbData"))
|
|
81964
81916
|
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.thumbData);
|
|
81965
|
-
if (message.canonicalUrl != null && Object.hasOwnProperty.call(message, "canonicalUrl"))
|
|
81966
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.canonicalUrl);
|
|
81967
81917
|
if (message.matchText != null && Object.hasOwnProperty.call(message, "matchText"))
|
|
81968
81918
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.matchText);
|
|
81969
81919
|
if (message.previewType != null && Object.hasOwnProperty.call(message, "previewType"))
|
|
@@ -82020,10 +81970,6 @@ $root.waproto = (function() {
|
|
|
82020
81970
|
message.thumbData = reader.bytes();
|
|
82021
81971
|
break;
|
|
82022
81972
|
}
|
|
82023
|
-
case 5: {
|
|
82024
|
-
message.canonicalUrl = reader.string();
|
|
82025
|
-
break;
|
|
82026
|
-
}
|
|
82027
81973
|
case 6: {
|
|
82028
81974
|
message.matchText = reader.string();
|
|
82029
81975
|
break;
|
|
@@ -82092,11 +82038,6 @@ $root.waproto = (function() {
|
|
|
82092
82038
|
if (!(message.thumbData && typeof message.thumbData.length === "number" || $util.isString(message.thumbData)))
|
|
82093
82039
|
return "thumbData: buffer expected";
|
|
82094
82040
|
}
|
|
82095
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
82096
|
-
properties._canonicalUrl = 1;
|
|
82097
|
-
if (!$util.isString(message.canonicalUrl))
|
|
82098
|
-
return "canonicalUrl: string expected";
|
|
82099
|
-
}
|
|
82100
82041
|
if (message.matchText != null && message.hasOwnProperty("matchText")) {
|
|
82101
82042
|
properties._matchText = 1;
|
|
82102
82043
|
if (!$util.isString(message.matchText))
|
|
@@ -82141,8 +82082,6 @@ $root.waproto = (function() {
|
|
|
82141
82082
|
$util.base64.decode(object.thumbData, message.thumbData = $util.newBuffer($util.base64.length(object.thumbData)), 0);
|
|
82142
82083
|
else if (object.thumbData.length >= 0)
|
|
82143
82084
|
message.thumbData = object.thumbData;
|
|
82144
|
-
if (object.canonicalUrl != null)
|
|
82145
|
-
message.canonicalUrl = String(object.canonicalUrl);
|
|
82146
82085
|
if (object.matchText != null)
|
|
82147
82086
|
message.matchText = String(object.matchText);
|
|
82148
82087
|
if (object.previewType != null)
|
|
@@ -82188,11 +82127,6 @@ $root.waproto = (function() {
|
|
|
82188
82127
|
if (options.oneofs)
|
|
82189
82128
|
object._thumbData = "thumbData";
|
|
82190
82129
|
}
|
|
82191
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
82192
|
-
object.canonicalUrl = message.canonicalUrl;
|
|
82193
|
-
if (options.oneofs)
|
|
82194
|
-
object._canonicalUrl = "canonicalUrl";
|
|
82195
|
-
}
|
|
82196
82130
|
if (message.matchText != null && message.hasOwnProperty("matchText")) {
|
|
82197
82131
|
object.matchText = message.matchText;
|
|
82198
82132
|
if (options.oneofs)
|