@wppconnect/wa-proto 2.3000.1046821791 → 2.3000.1046829849
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/WAProto.proto +2 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +33 -0
- package/package.json +1 -1
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.1046829849
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -4681,6 +4681,7 @@ message MsgOpaqueData {
|
|
|
4681
4681
|
optional bool sharableEventInviteIsCanceled = 58;
|
|
4682
4682
|
optional bytes sharableEventInviteJpegThumbnail = 59;
|
|
4683
4683
|
optional string sharableEventInviteCallLink = 60;
|
|
4684
|
+
optional string mediaPngThumbnail = 61;
|
|
4684
4685
|
message EventLocation {
|
|
4685
4686
|
optional double degreesLatitude = 1;
|
|
4686
4687
|
optional double degreesLongitude = 2;
|
package/dist/index.d.ts
CHANGED
|
@@ -63922,6 +63922,9 @@ export namespace waproto {
|
|
|
63922
63922
|
/** MsgOpaqueData sharableEventInviteCallLink. */
|
|
63923
63923
|
sharableEventInviteCallLink?: (string|null);
|
|
63924
63924
|
|
|
63925
|
+
/** MsgOpaqueData mediaPngThumbnail. */
|
|
63926
|
+
mediaPngThumbnail?: (string|null);
|
|
63927
|
+
|
|
63925
63928
|
/**
|
|
63926
63929
|
* Creates a new MsgOpaqueData instance using the specified properties.
|
|
63927
63930
|
* @param [properties] Properties to set
|
|
@@ -64171,6 +64174,9 @@ export namespace waproto {
|
|
|
64171
64174
|
/** MsgOpaqueData sharableEventInviteCallLink */
|
|
64172
64175
|
sharableEventInviteCallLink?: (string|null);
|
|
64173
64176
|
|
|
64177
|
+
/** MsgOpaqueData mediaPngThumbnail */
|
|
64178
|
+
mediaPngThumbnail?: (string|null);
|
|
64179
|
+
|
|
64174
64180
|
/** Unknown fields preserved while decoding when enabled */
|
|
64175
64181
|
$unknowns?: Uint8Array[];
|
|
64176
64182
|
}
|
package/dist/index.js
CHANGED
|
@@ -191550,6 +191550,7 @@ $root.waproto = (function() {
|
|
|
191550
191550
|
* @property {boolean|null} [sharableEventInviteIsCanceled] MsgOpaqueData sharableEventInviteIsCanceled
|
|
191551
191551
|
* @property {Uint8Array|null} [sharableEventInviteJpegThumbnail] MsgOpaqueData sharableEventInviteJpegThumbnail
|
|
191552
191552
|
* @property {string|null} [sharableEventInviteCallLink] MsgOpaqueData sharableEventInviteCallLink
|
|
191553
|
+
* @property {string|null} [mediaPngThumbnail] MsgOpaqueData mediaPngThumbnail
|
|
191553
191554
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
191554
191555
|
*/
|
|
191555
191556
|
|
|
@@ -192022,6 +192023,14 @@ $root.waproto = (function() {
|
|
|
192022
192023
|
*/
|
|
192023
192024
|
MsgOpaqueData.prototype.sharableEventInviteCallLink = null;
|
|
192024
192025
|
|
|
192026
|
+
/**
|
|
192027
|
+
* MsgOpaqueData mediaPngThumbnail.
|
|
192028
|
+
* @member {string|null|undefined} mediaPngThumbnail
|
|
192029
|
+
* @memberof waproto.MsgOpaqueData
|
|
192030
|
+
* @instance
|
|
192031
|
+
*/
|
|
192032
|
+
MsgOpaqueData.prototype.mediaPngThumbnail = null;
|
|
192033
|
+
|
|
192025
192034
|
// OneOf field names bound to virtual getters and setters
|
|
192026
192035
|
var $oneOfFields;
|
|
192027
192036
|
|
|
@@ -192349,6 +192358,12 @@ $root.waproto = (function() {
|
|
|
192349
192358
|
set: $util.oneOfSetter($oneOfFields)
|
|
192350
192359
|
});
|
|
192351
192360
|
|
|
192361
|
+
// Virtual OneOf for proto3 optional field
|
|
192362
|
+
$Object.defineProperty(MsgOpaqueData.prototype, "_mediaPngThumbnail", {
|
|
192363
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaPngThumbnail"]),
|
|
192364
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
192365
|
+
});
|
|
192366
|
+
|
|
192352
192367
|
/**
|
|
192353
192368
|
* Creates a new MsgOpaqueData instance using the specified properties.
|
|
192354
192369
|
* @function create
|
|
@@ -192492,6 +192507,8 @@ $root.waproto = (function() {
|
|
|
192492
192507
|
writer.uint32(/* id 59, wireType 2 =*/474).bytes(message.sharableEventInviteJpegThumbnail);
|
|
192493
192508
|
if (message.sharableEventInviteCallLink != null && $Object.hasOwnProperty.call(message, "sharableEventInviteCallLink"))
|
|
192494
192509
|
writer.uint32(/* id 60, wireType 2 =*/482).string(message.sharableEventInviteCallLink);
|
|
192510
|
+
if (message.mediaPngThumbnail != null && $Object.hasOwnProperty.call(message, "mediaPngThumbnail"))
|
|
192511
|
+
writer.uint32(/* id 61, wireType 2 =*/490).string(message.mediaPngThumbnail);
|
|
192495
192512
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
192496
192513
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
192497
192514
|
writer.raw(message.$unknowns[i]);
|
|
@@ -192935,6 +192952,13 @@ $root.waproto = (function() {
|
|
|
192935
192952
|
message._sharableEventInviteCallLink = "sharableEventInviteCallLink";
|
|
192936
192953
|
continue;
|
|
192937
192954
|
}
|
|
192955
|
+
case 61: {
|
|
192956
|
+
if (wireType !== 2)
|
|
192957
|
+
break;
|
|
192958
|
+
message.mediaPngThumbnail = reader.stringVerify();
|
|
192959
|
+
message._mediaPngThumbnail = "mediaPngThumbnail";
|
|
192960
|
+
continue;
|
|
192961
|
+
}
|
|
192938
192962
|
}
|
|
192939
192963
|
reader.skipType(wireType, _depth, tag);
|
|
192940
192964
|
if (!reader.discardUnknown) {
|
|
@@ -193272,6 +193296,11 @@ $root.waproto = (function() {
|
|
|
193272
193296
|
if (!$util.isString(message.sharableEventInviteCallLink))
|
|
193273
193297
|
return "sharableEventInviteCallLink: string expected";
|
|
193274
193298
|
}
|
|
193299
|
+
if (message.mediaPngThumbnail != null && $Object.hasOwnProperty.call(message, "mediaPngThumbnail")) {
|
|
193300
|
+
properties._mediaPngThumbnail = 1;
|
|
193301
|
+
if (!$util.isString(message.mediaPngThumbnail))
|
|
193302
|
+
return "mediaPngThumbnail: string expected";
|
|
193303
|
+
}
|
|
193275
193304
|
return null;
|
|
193276
193305
|
};
|
|
193277
193306
|
|
|
@@ -193515,6 +193544,8 @@ $root.waproto = (function() {
|
|
|
193515
193544
|
message.sharableEventInviteJpegThumbnail = object.sharableEventInviteJpegThumbnail;
|
|
193516
193545
|
if (object.sharableEventInviteCallLink != null)
|
|
193517
193546
|
message.sharableEventInviteCallLink = $String(object.sharableEventInviteCallLink);
|
|
193547
|
+
if (object.mediaPngThumbnail != null)
|
|
193548
|
+
message.mediaPngThumbnail = $String(object.mediaPngThumbnail);
|
|
193518
193549
|
return message;
|
|
193519
193550
|
};
|
|
193520
193551
|
|
|
@@ -193680,6 +193711,8 @@ $root.waproto = (function() {
|
|
|
193680
193711
|
object.sharableEventInviteJpegThumbnail = options.bytes === $String ? $util.base64.encode(message.sharableEventInviteJpegThumbnail, 0, message.sharableEventInviteJpegThumbnail.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.sharableEventInviteJpegThumbnail) : message.sharableEventInviteJpegThumbnail;
|
|
193681
193712
|
if (message.sharableEventInviteCallLink != null && $Object.hasOwnProperty.call(message, "sharableEventInviteCallLink"))
|
|
193682
193713
|
object.sharableEventInviteCallLink = message.sharableEventInviteCallLink;
|
|
193714
|
+
if (message.mediaPngThumbnail != null && $Object.hasOwnProperty.call(message, "mediaPngThumbnail"))
|
|
193715
|
+
object.mediaPngThumbnail = message.mediaPngThumbnail;
|
|
193683
193716
|
return object;
|
|
193684
193717
|
};
|
|
193685
193718
|
|