@wppconnect/wa-proto 1.1.6 → 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 +8 -0
- package/WAProto.proto +2 -3
- package/dist/index.d.ts +1 -12
- package/dist/index.js +7 -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;
|
|
@@ -401,6 +401,7 @@ message BotSessionMetadata {
|
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
enum BotSessionSource {
|
|
404
|
+
NONE = 0;
|
|
404
405
|
NULL_STATE = 1;
|
|
405
406
|
TYPEAHEAD = 2;
|
|
406
407
|
USER_INPUT = 3;
|
|
@@ -1760,7 +1761,6 @@ message Message {
|
|
|
1760
1761
|
message ExtendedTextMessage {
|
|
1761
1762
|
optional string text = 1;
|
|
1762
1763
|
optional string matchedText = 2;
|
|
1763
|
-
optional string canonicalUrl = 4;
|
|
1764
1764
|
optional string description = 5;
|
|
1765
1765
|
optional string title = 6;
|
|
1766
1766
|
optional fixed32 textArgb = 7;
|
|
@@ -2305,7 +2305,6 @@ message Message {
|
|
|
2305
2305
|
optional string title = 2;
|
|
2306
2306
|
optional string description = 3;
|
|
2307
2307
|
optional bytes thumbData = 4;
|
|
2308
|
-
optional string canonicalUrl = 5;
|
|
2309
2308
|
optional string matchText = 6;
|
|
2310
2309
|
optional string previewType = 7;
|
|
2311
2310
|
optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
|
package/dist/index.d.ts
CHANGED
|
@@ -4608,6 +4608,7 @@ export namespace waproto {
|
|
|
4608
4608
|
|
|
4609
4609
|
/** BotSessionSource enum. */
|
|
4610
4610
|
enum BotSessionSource {
|
|
4611
|
+
NONE = 0,
|
|
4611
4612
|
NULL_STATE = 1,
|
|
4612
4613
|
TYPEAHEAD = 2,
|
|
4613
4614
|
USER_INPUT = 3,
|
|
@@ -19510,9 +19511,6 @@ export namespace waproto {
|
|
|
19510
19511
|
/** ExtendedTextMessage matchedText */
|
|
19511
19512
|
matchedText?: (string|null);
|
|
19512
19513
|
|
|
19513
|
-
/** ExtendedTextMessage canonicalUrl */
|
|
19514
|
-
canonicalUrl?: (string|null);
|
|
19515
|
-
|
|
19516
19514
|
/** ExtendedTextMessage description */
|
|
19517
19515
|
description?: (string|null);
|
|
19518
19516
|
|
|
@@ -19601,9 +19599,6 @@ export namespace waproto {
|
|
|
19601
19599
|
/** ExtendedTextMessage matchedText. */
|
|
19602
19600
|
public matchedText?: (string|null);
|
|
19603
19601
|
|
|
19604
|
-
/** ExtendedTextMessage canonicalUrl. */
|
|
19605
|
-
public canonicalUrl?: (string|null);
|
|
19606
|
-
|
|
19607
19602
|
/** ExtendedTextMessage description. */
|
|
19608
19603
|
public description?: (string|null);
|
|
19609
19604
|
|
|
@@ -26207,9 +26202,6 @@ export namespace waproto {
|
|
|
26207
26202
|
/** LinkPreviewResponse thumbData */
|
|
26208
26203
|
thumbData?: (Uint8Array|null);
|
|
26209
26204
|
|
|
26210
|
-
/** LinkPreviewResponse canonicalUrl */
|
|
26211
|
-
canonicalUrl?: (string|null);
|
|
26212
|
-
|
|
26213
26205
|
/** LinkPreviewResponse matchText */
|
|
26214
26206
|
matchText?: (string|null);
|
|
26215
26207
|
|
|
@@ -26241,9 +26233,6 @@ export namespace waproto {
|
|
|
26241
26233
|
/** LinkPreviewResponse thumbData. */
|
|
26242
26234
|
public thumbData?: (Uint8Array|null);
|
|
26243
26235
|
|
|
26244
|
-
/** LinkPreviewResponse canonicalUrl. */
|
|
26245
|
-
public canonicalUrl?: (string|null);
|
|
26246
|
-
|
|
26247
26236
|
/** LinkPreviewResponse matchText. */
|
|
26248
26237
|
public matchText?: (string|null);
|
|
26249
26238
|
|
package/dist/index.js
CHANGED
|
@@ -13232,6 +13232,7 @@ $root.waproto = (function() {
|
|
|
13232
13232
|
switch (message.sessionSource) {
|
|
13233
13233
|
default:
|
|
13234
13234
|
return "sessionSource: enum value expected";
|
|
13235
|
+
case 0:
|
|
13235
13236
|
case 1:
|
|
13236
13237
|
case 2:
|
|
13237
13238
|
case 3:
|
|
@@ -13265,6 +13266,10 @@ $root.waproto = (function() {
|
|
|
13265
13266
|
break;
|
|
13266
13267
|
}
|
|
13267
13268
|
break;
|
|
13269
|
+
case "NONE":
|
|
13270
|
+
case 0:
|
|
13271
|
+
message.sessionSource = 0;
|
|
13272
|
+
break;
|
|
13268
13273
|
case "NULL_STATE":
|
|
13269
13274
|
case 1:
|
|
13270
13275
|
message.sessionSource = 1;
|
|
@@ -13352,6 +13357,7 @@ $root.waproto = (function() {
|
|
|
13352
13357
|
* BotSessionSource enum.
|
|
13353
13358
|
* @name waproto.BotSessionSource
|
|
13354
13359
|
* @enum {number}
|
|
13360
|
+
* @property {number} NONE=0 NONE value
|
|
13355
13361
|
* @property {number} NULL_STATE=1 NULL_STATE value
|
|
13356
13362
|
* @property {number} TYPEAHEAD=2 TYPEAHEAD value
|
|
13357
13363
|
* @property {number} USER_INPUT=3 USER_INPUT value
|
|
@@ -13361,6 +13367,7 @@ $root.waproto = (function() {
|
|
|
13361
13367
|
*/
|
|
13362
13368
|
waproto.BotSessionSource = (function() {
|
|
13363
13369
|
var valuesById = {}, values = Object.create(valuesById);
|
|
13370
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
13364
13371
|
values[valuesById[1] = "NULL_STATE"] = 1;
|
|
13365
13372
|
values[valuesById[2] = "TYPEAHEAD"] = 2;
|
|
13366
13373
|
values[valuesById[3] = "USER_INPUT"] = 3;
|
|
@@ -61247,7 +61254,6 @@ $root.waproto = (function() {
|
|
|
61247
61254
|
* @interface IExtendedTextMessage
|
|
61248
61255
|
* @property {string|null} [text] ExtendedTextMessage text
|
|
61249
61256
|
* @property {string|null} [matchedText] ExtendedTextMessage matchedText
|
|
61250
|
-
* @property {string|null} [canonicalUrl] ExtendedTextMessage canonicalUrl
|
|
61251
61257
|
* @property {string|null} [description] ExtendedTextMessage description
|
|
61252
61258
|
* @property {string|null} [title] ExtendedTextMessage title
|
|
61253
61259
|
* @property {number|null} [textArgb] ExtendedTextMessage textArgb
|
|
@@ -61305,14 +61311,6 @@ $root.waproto = (function() {
|
|
|
61305
61311
|
*/
|
|
61306
61312
|
ExtendedTextMessage.prototype.matchedText = null;
|
|
61307
61313
|
|
|
61308
|
-
/**
|
|
61309
|
-
* ExtendedTextMessage canonicalUrl.
|
|
61310
|
-
* @member {string|null|undefined} canonicalUrl
|
|
61311
|
-
* @memberof waproto.Message.ExtendedTextMessage
|
|
61312
|
-
* @instance
|
|
61313
|
-
*/
|
|
61314
|
-
ExtendedTextMessage.prototype.canonicalUrl = null;
|
|
61315
|
-
|
|
61316
61314
|
/**
|
|
61317
61315
|
* ExtendedTextMessage description.
|
|
61318
61316
|
* @member {string|null|undefined} description
|
|
@@ -61520,12 +61518,6 @@ $root.waproto = (function() {
|
|
|
61520
61518
|
set: $util.oneOfSetter($oneOfFields)
|
|
61521
61519
|
});
|
|
61522
61520
|
|
|
61523
|
-
// Virtual OneOf for proto3 optional field
|
|
61524
|
-
Object.defineProperty(ExtendedTextMessage.prototype, "_canonicalUrl", {
|
|
61525
|
-
get: $util.oneOfGetter($oneOfFields = ["canonicalUrl"]),
|
|
61526
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61527
|
-
});
|
|
61528
|
-
|
|
61529
61521
|
// Virtual OneOf for proto3 optional field
|
|
61530
61522
|
Object.defineProperty(ExtendedTextMessage.prototype, "_description", {
|
|
61531
61523
|
get: $util.oneOfGetter($oneOfFields = ["description"]),
|
|
@@ -61698,8 +61690,6 @@ $root.waproto = (function() {
|
|
|
61698
61690
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
|
|
61699
61691
|
if (message.matchedText != null && Object.hasOwnProperty.call(message, "matchedText"))
|
|
61700
61692
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.matchedText);
|
|
61701
|
-
if (message.canonicalUrl != null && Object.hasOwnProperty.call(message, "canonicalUrl"))
|
|
61702
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.canonicalUrl);
|
|
61703
61693
|
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
61704
61694
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.description);
|
|
61705
61695
|
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
@@ -61790,10 +61780,6 @@ $root.waproto = (function() {
|
|
|
61790
61780
|
message.matchedText = reader.string();
|
|
61791
61781
|
break;
|
|
61792
61782
|
}
|
|
61793
|
-
case 4: {
|
|
61794
|
-
message.canonicalUrl = reader.string();
|
|
61795
|
-
break;
|
|
61796
|
-
}
|
|
61797
61783
|
case 5: {
|
|
61798
61784
|
message.description = reader.string();
|
|
61799
61785
|
break;
|
|
@@ -61936,11 +61922,6 @@ $root.waproto = (function() {
|
|
|
61936
61922
|
if (!$util.isString(message.matchedText))
|
|
61937
61923
|
return "matchedText: string expected";
|
|
61938
61924
|
}
|
|
61939
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
61940
|
-
properties._canonicalUrl = 1;
|
|
61941
|
-
if (!$util.isString(message.canonicalUrl))
|
|
61942
|
-
return "canonicalUrl: string expected";
|
|
61943
|
-
}
|
|
61944
61925
|
if (message.description != null && message.hasOwnProperty("description")) {
|
|
61945
61926
|
properties._description = 1;
|
|
61946
61927
|
if (!$util.isString(message.description))
|
|
@@ -62120,8 +62101,6 @@ $root.waproto = (function() {
|
|
|
62120
62101
|
message.text = String(object.text);
|
|
62121
62102
|
if (object.matchedText != null)
|
|
62122
62103
|
message.matchedText = String(object.matchedText);
|
|
62123
|
-
if (object.canonicalUrl != null)
|
|
62124
|
-
message.canonicalUrl = String(object.canonicalUrl);
|
|
62125
62104
|
if (object.description != null)
|
|
62126
62105
|
message.description = String(object.description);
|
|
62127
62106
|
if (object.title != null)
|
|
@@ -62336,11 +62315,6 @@ $root.waproto = (function() {
|
|
|
62336
62315
|
if (options.oneofs)
|
|
62337
62316
|
object._matchedText = "matchedText";
|
|
62338
62317
|
}
|
|
62339
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
62340
|
-
object.canonicalUrl = message.canonicalUrl;
|
|
62341
|
-
if (options.oneofs)
|
|
62342
|
-
object._canonicalUrl = "canonicalUrl";
|
|
62343
|
-
}
|
|
62344
62318
|
if (message.description != null && message.hasOwnProperty("description")) {
|
|
62345
62319
|
object.description = message.description;
|
|
62346
62320
|
if (options.oneofs)
|
|
@@ -81787,7 +81761,6 @@ $root.waproto = (function() {
|
|
|
81787
81761
|
* @property {string|null} [title] LinkPreviewResponse title
|
|
81788
81762
|
* @property {string|null} [description] LinkPreviewResponse description
|
|
81789
81763
|
* @property {Uint8Array|null} [thumbData] LinkPreviewResponse thumbData
|
|
81790
|
-
* @property {string|null} [canonicalUrl] LinkPreviewResponse canonicalUrl
|
|
81791
81764
|
* @property {string|null} [matchText] LinkPreviewResponse matchText
|
|
81792
81765
|
* @property {string|null} [previewType] LinkPreviewResponse previewType
|
|
81793
81766
|
* @property {waproto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.ILinkPreviewHighQualityThumbnail|null} [hqThumbnail] LinkPreviewResponse hqThumbnail
|
|
@@ -81840,14 +81813,6 @@ $root.waproto = (function() {
|
|
|
81840
81813
|
*/
|
|
81841
81814
|
LinkPreviewResponse.prototype.thumbData = null;
|
|
81842
81815
|
|
|
81843
|
-
/**
|
|
81844
|
-
* LinkPreviewResponse canonicalUrl.
|
|
81845
|
-
* @member {string|null|undefined} canonicalUrl
|
|
81846
|
-
* @memberof waproto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse
|
|
81847
|
-
* @instance
|
|
81848
|
-
*/
|
|
81849
|
-
LinkPreviewResponse.prototype.canonicalUrl = null;
|
|
81850
|
-
|
|
81851
81816
|
/**
|
|
81852
81817
|
* LinkPreviewResponse matchText.
|
|
81853
81818
|
* @member {string|null|undefined} matchText
|
|
@@ -81899,12 +81864,6 @@ $root.waproto = (function() {
|
|
|
81899
81864
|
set: $util.oneOfSetter($oneOfFields)
|
|
81900
81865
|
});
|
|
81901
81866
|
|
|
81902
|
-
// Virtual OneOf for proto3 optional field
|
|
81903
|
-
Object.defineProperty(LinkPreviewResponse.prototype, "_canonicalUrl", {
|
|
81904
|
-
get: $util.oneOfGetter($oneOfFields = ["canonicalUrl"]),
|
|
81905
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
81906
|
-
});
|
|
81907
|
-
|
|
81908
81867
|
// Virtual OneOf for proto3 optional field
|
|
81909
81868
|
Object.defineProperty(LinkPreviewResponse.prototype, "_matchText", {
|
|
81910
81869
|
get: $util.oneOfGetter($oneOfFields = ["matchText"]),
|
|
@@ -81955,8 +81914,6 @@ $root.waproto = (function() {
|
|
|
81955
81914
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
|
|
81956
81915
|
if (message.thumbData != null && Object.hasOwnProperty.call(message, "thumbData"))
|
|
81957
81916
|
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.thumbData);
|
|
81958
|
-
if (message.canonicalUrl != null && Object.hasOwnProperty.call(message, "canonicalUrl"))
|
|
81959
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.canonicalUrl);
|
|
81960
81917
|
if (message.matchText != null && Object.hasOwnProperty.call(message, "matchText"))
|
|
81961
81918
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.matchText);
|
|
81962
81919
|
if (message.previewType != null && Object.hasOwnProperty.call(message, "previewType"))
|
|
@@ -82013,10 +81970,6 @@ $root.waproto = (function() {
|
|
|
82013
81970
|
message.thumbData = reader.bytes();
|
|
82014
81971
|
break;
|
|
82015
81972
|
}
|
|
82016
|
-
case 5: {
|
|
82017
|
-
message.canonicalUrl = reader.string();
|
|
82018
|
-
break;
|
|
82019
|
-
}
|
|
82020
81973
|
case 6: {
|
|
82021
81974
|
message.matchText = reader.string();
|
|
82022
81975
|
break;
|
|
@@ -82085,11 +82038,6 @@ $root.waproto = (function() {
|
|
|
82085
82038
|
if (!(message.thumbData && typeof message.thumbData.length === "number" || $util.isString(message.thumbData)))
|
|
82086
82039
|
return "thumbData: buffer expected";
|
|
82087
82040
|
}
|
|
82088
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
82089
|
-
properties._canonicalUrl = 1;
|
|
82090
|
-
if (!$util.isString(message.canonicalUrl))
|
|
82091
|
-
return "canonicalUrl: string expected";
|
|
82092
|
-
}
|
|
82093
82041
|
if (message.matchText != null && message.hasOwnProperty("matchText")) {
|
|
82094
82042
|
properties._matchText = 1;
|
|
82095
82043
|
if (!$util.isString(message.matchText))
|
|
@@ -82134,8 +82082,6 @@ $root.waproto = (function() {
|
|
|
82134
82082
|
$util.base64.decode(object.thumbData, message.thumbData = $util.newBuffer($util.base64.length(object.thumbData)), 0);
|
|
82135
82083
|
else if (object.thumbData.length >= 0)
|
|
82136
82084
|
message.thumbData = object.thumbData;
|
|
82137
|
-
if (object.canonicalUrl != null)
|
|
82138
|
-
message.canonicalUrl = String(object.canonicalUrl);
|
|
82139
82085
|
if (object.matchText != null)
|
|
82140
82086
|
message.matchText = String(object.matchText);
|
|
82141
82087
|
if (object.previewType != null)
|
|
@@ -82181,11 +82127,6 @@ $root.waproto = (function() {
|
|
|
82181
82127
|
if (options.oneofs)
|
|
82182
82128
|
object._thumbData = "thumbData";
|
|
82183
82129
|
}
|
|
82184
|
-
if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
|
|
82185
|
-
object.canonicalUrl = message.canonicalUrl;
|
|
82186
|
-
if (options.oneofs)
|
|
82187
|
-
object._canonicalUrl = "canonicalUrl";
|
|
82188
|
-
}
|
|
82189
82130
|
if (message.matchText != null && message.hasOwnProperty("matchText")) {
|
|
82190
82131
|
object.matchText = message.matchText;
|
|
82191
82132
|
if (options.oneofs)
|