@wppconnect/wa-proto 2.3000.1051327739 → 2.3000.1051404344
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.1051404344
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -5612,6 +5612,7 @@ message MsgOpaqueData {
|
|
|
5612
5612
|
optional string name = 1;
|
|
5613
5613
|
optional string hash = 2;
|
|
5614
5614
|
optional string addOptionMsgKey = 3;
|
|
5615
|
+
optional uint32 localId = 4;
|
|
5615
5616
|
}
|
|
5616
5617
|
|
|
5617
5618
|
enum PollType {
|
package/dist/index.d.ts
CHANGED
|
@@ -78787,6 +78787,9 @@ export namespace waproto {
|
|
|
78787
78787
|
/** PollOption addOptionMsgKey. */
|
|
78788
78788
|
addOptionMsgKey?: (string|null);
|
|
78789
78789
|
|
|
78790
|
+
/** PollOption localId. */
|
|
78791
|
+
localId?: (number|null);
|
|
78792
|
+
|
|
78790
78793
|
/**
|
|
78791
78794
|
* Creates a new PollOption instance using the specified properties.
|
|
78792
78795
|
* @param [properties] Properties to set
|
|
@@ -78880,6 +78883,9 @@ export namespace waproto {
|
|
|
78880
78883
|
/** PollOption addOptionMsgKey */
|
|
78881
78884
|
addOptionMsgKey?: (string|null);
|
|
78882
78885
|
|
|
78886
|
+
/** PollOption localId */
|
|
78887
|
+
localId?: (number|null);
|
|
78888
|
+
|
|
78883
78889
|
/** Unknown fields preserved while decoding when enabled */
|
|
78884
78890
|
$unknowns?: Uint8Array[];
|
|
78885
78891
|
}
|
package/dist/index.js
CHANGED
|
@@ -234530,6 +234530,7 @@ $root.waproto = (function() {
|
|
|
234530
234530
|
* @property {string|null} [name] PollOption name
|
|
234531
234531
|
* @property {string|null} [hash] PollOption hash
|
|
234532
234532
|
* @property {string|null} [addOptionMsgKey] PollOption addOptionMsgKey
|
|
234533
|
+
* @property {number|null} [localId] PollOption localId
|
|
234533
234534
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
234534
234535
|
*/
|
|
234535
234536
|
|
|
@@ -234585,6 +234586,14 @@ $root.waproto = (function() {
|
|
|
234585
234586
|
*/
|
|
234586
234587
|
PollOption.prototype.addOptionMsgKey = null;
|
|
234587
234588
|
|
|
234589
|
+
/**
|
|
234590
|
+
* PollOption localId.
|
|
234591
|
+
* @member {number|null|undefined} localId
|
|
234592
|
+
* @memberof waproto.MsgOpaqueData.PollOption
|
|
234593
|
+
* @instance
|
|
234594
|
+
*/
|
|
234595
|
+
PollOption.prototype.localId = null;
|
|
234596
|
+
|
|
234588
234597
|
// OneOf field names bound to virtual getters and setters
|
|
234589
234598
|
var $oneOfFields;
|
|
234590
234599
|
|
|
@@ -234606,6 +234615,12 @@ $root.waproto = (function() {
|
|
|
234606
234615
|
set: $util.oneOfSetter($oneOfFields)
|
|
234607
234616
|
});
|
|
234608
234617
|
|
|
234618
|
+
// Virtual OneOf for proto3 optional field
|
|
234619
|
+
$Object.defineProperty(PollOption.prototype, "_localId", {
|
|
234620
|
+
get: $util.oneOfGetter($oneOfFields = ["localId"]),
|
|
234621
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
234622
|
+
});
|
|
234623
|
+
|
|
234609
234624
|
/**
|
|
234610
234625
|
* Creates a new PollOption instance using the specified properties.
|
|
234611
234626
|
* @function create
|
|
@@ -234644,6 +234659,8 @@ $root.waproto = (function() {
|
|
|
234644
234659
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hash);
|
|
234645
234660
|
if (message.addOptionMsgKey != null && $Object.hasOwnProperty.call(message, "addOptionMsgKey"))
|
|
234646
234661
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.addOptionMsgKey);
|
|
234662
|
+
if (message.localId != null && $Object.hasOwnProperty.call(message, "localId"))
|
|
234663
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.localId);
|
|
234647
234664
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
234648
234665
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
234649
234666
|
writer.raw(message.$unknowns[i]);
|
|
@@ -234722,6 +234739,13 @@ $root.waproto = (function() {
|
|
|
234722
234739
|
message._addOptionMsgKey = "addOptionMsgKey";
|
|
234723
234740
|
continue;
|
|
234724
234741
|
}
|
|
234742
|
+
case 4: {
|
|
234743
|
+
if (wireType !== 0)
|
|
234744
|
+
break;
|
|
234745
|
+
message.localId = reader.uint32();
|
|
234746
|
+
message._localId = "localId";
|
|
234747
|
+
continue;
|
|
234748
|
+
}
|
|
234725
234749
|
}
|
|
234726
234750
|
reader.skipType(wireType, _depth, tag);
|
|
234727
234751
|
if (!reader.discardUnknown) {
|
|
@@ -234786,6 +234810,11 @@ $root.waproto = (function() {
|
|
|
234786
234810
|
if (!$util.isString(message.addOptionMsgKey))
|
|
234787
234811
|
return "addOptionMsgKey: string expected";
|
|
234788
234812
|
}
|
|
234813
|
+
if (message.localId != null && $Object.hasOwnProperty.call(message, "localId")) {
|
|
234814
|
+
properties._localId = 1;
|
|
234815
|
+
if (!$util.isInteger(message.localId))
|
|
234816
|
+
return "localId: integer expected";
|
|
234817
|
+
}
|
|
234789
234818
|
return null;
|
|
234790
234819
|
};
|
|
234791
234820
|
|
|
@@ -234813,6 +234842,8 @@ $root.waproto = (function() {
|
|
|
234813
234842
|
message.hash = $String(object.hash);
|
|
234814
234843
|
if (object.addOptionMsgKey != null)
|
|
234815
234844
|
message.addOptionMsgKey = $String(object.addOptionMsgKey);
|
|
234845
|
+
if (object.localId != null)
|
|
234846
|
+
message.localId = object.localId >>> 0;
|
|
234816
234847
|
return message;
|
|
234817
234848
|
};
|
|
234818
234849
|
|
|
@@ -234839,6 +234870,8 @@ $root.waproto = (function() {
|
|
|
234839
234870
|
object.hash = message.hash;
|
|
234840
234871
|
if (message.addOptionMsgKey != null && $Object.hasOwnProperty.call(message, "addOptionMsgKey"))
|
|
234841
234872
|
object.addOptionMsgKey = message.addOptionMsgKey;
|
|
234873
|
+
if (message.localId != null && $Object.hasOwnProperty.call(message, "localId"))
|
|
234874
|
+
object.localId = message.localId;
|
|
234842
234875
|
return object;
|
|
234843
234876
|
};
|
|
234844
234877
|
|