@wppconnect/wa-proto 2.3000.1051351692 → 2.3000.1051428616

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1051351692
4
+ /// WhatsApp Version: 2.3000.1051428616
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -1225,6 +1225,7 @@ message ClientPairingProps {
1225
1225
  optional bool isHsThumbnailSyncEnabled = 4;
1226
1226
  optional bytes subscriptionSyncPayload = 5;
1227
1227
  optional bool isBotJidDbMigrated = 6;
1228
+ optional bytes companionAddPeerPayload = 7;
1228
1229
  }
1229
1230
 
1230
1231
  message ClientPayload {
@@ -5612,6 +5613,8 @@ message MsgOpaqueData {
5612
5613
  optional string name = 1;
5613
5614
  optional string hash = 2;
5614
5615
  optional string addOptionMsgKey = 3;
5616
+ optional uint32 localId = 4;
5617
+ optional uint32 addOptionMsgT = 5;
5615
5618
  }
5616
5619
 
5617
5620
  enum PollType {
package/dist/index.d.ts CHANGED
@@ -17153,6 +17153,9 @@ export namespace waproto {
17153
17153
  /** ClientPairingProps isBotJidDbMigrated. */
17154
17154
  isBotJidDbMigrated?: (boolean|null);
17155
17155
 
17156
+ /** ClientPairingProps companionAddPeerPayload. */
17157
+ companionAddPeerPayload?: (Uint8Array|null);
17158
+
17156
17159
  /**
17157
17160
  * Creates a new ClientPairingProps instance using the specified properties.
17158
17161
  * @param [properties] Properties to set
@@ -17255,6 +17258,9 @@ export namespace waproto {
17255
17258
  /** ClientPairingProps isBotJidDbMigrated */
17256
17259
  isBotJidDbMigrated?: (boolean|null);
17257
17260
 
17261
+ /** ClientPairingProps companionAddPeerPayload */
17262
+ companionAddPeerPayload?: (Uint8Array|null);
17263
+
17258
17264
  /** Unknown fields preserved while decoding when enabled */
17259
17265
  $unknowns?: Uint8Array[];
17260
17266
  }
@@ -78787,6 +78793,12 @@ export namespace waproto {
78787
78793
  /** PollOption addOptionMsgKey. */
78788
78794
  addOptionMsgKey?: (string|null);
78789
78795
 
78796
+ /** PollOption localId. */
78797
+ localId?: (number|null);
78798
+
78799
+ /** PollOption addOptionMsgT. */
78800
+ addOptionMsgT?: (number|null);
78801
+
78790
78802
  /**
78791
78803
  * Creates a new PollOption instance using the specified properties.
78792
78804
  * @param [properties] Properties to set
@@ -78880,6 +78892,12 @@ export namespace waproto {
78880
78892
  /** PollOption addOptionMsgKey */
78881
78893
  addOptionMsgKey?: (string|null);
78882
78894
 
78895
+ /** PollOption localId */
78896
+ localId?: (number|null);
78897
+
78898
+ /** PollOption addOptionMsgT */
78899
+ addOptionMsgT?: (number|null);
78900
+
78883
78901
  /** Unknown fields preserved while decoding when enabled */
78884
78902
  $unknowns?: Uint8Array[];
78885
78903
  }
package/dist/index.js CHANGED
@@ -48171,6 +48171,7 @@ $root.waproto = (function() {
48171
48171
  * @property {boolean|null} [isHsThumbnailSyncEnabled] ClientPairingProps isHsThumbnailSyncEnabled
48172
48172
  * @property {Uint8Array|null} [subscriptionSyncPayload] ClientPairingProps subscriptionSyncPayload
48173
48173
  * @property {boolean|null} [isBotJidDbMigrated] ClientPairingProps isBotJidDbMigrated
48174
+ * @property {Uint8Array|null} [companionAddPeerPayload] ClientPairingProps companionAddPeerPayload
48174
48175
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
48175
48176
  */
48176
48177
 
@@ -48250,6 +48251,14 @@ $root.waproto = (function() {
48250
48251
  */
48251
48252
  ClientPairingProps.prototype.isBotJidDbMigrated = null;
48252
48253
 
48254
+ /**
48255
+ * ClientPairingProps companionAddPeerPayload.
48256
+ * @member {Uint8Array|null|undefined} companionAddPeerPayload
48257
+ * @memberof waproto.ClientPairingProps
48258
+ * @instance
48259
+ */
48260
+ ClientPairingProps.prototype.companionAddPeerPayload = null;
48261
+
48253
48262
  // OneOf field names bound to virtual getters and setters
48254
48263
  var $oneOfFields;
48255
48264
 
@@ -48289,6 +48298,12 @@ $root.waproto = (function() {
48289
48298
  set: $util.oneOfSetter($oneOfFields)
48290
48299
  });
48291
48300
 
48301
+ // Virtual OneOf for proto3 optional field
48302
+ $Object.defineProperty(ClientPairingProps.prototype, "_companionAddPeerPayload", {
48303
+ get: $util.oneOfGetter($oneOfFields = ["companionAddPeerPayload"]),
48304
+ set: $util.oneOfSetter($oneOfFields)
48305
+ });
48306
+
48292
48307
  /**
48293
48308
  * Creates a new ClientPairingProps instance using the specified properties.
48294
48309
  * @function create
@@ -48333,6 +48348,8 @@ $root.waproto = (function() {
48333
48348
  writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.subscriptionSyncPayload);
48334
48349
  if (message.isBotJidDbMigrated != null && $Object.hasOwnProperty.call(message, "isBotJidDbMigrated"))
48335
48350
  writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isBotJidDbMigrated);
48351
+ if (message.companionAddPeerPayload != null && $Object.hasOwnProperty.call(message, "companionAddPeerPayload"))
48352
+ writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.companionAddPeerPayload);
48336
48353
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
48337
48354
  for (var i = 0; i < message.$unknowns.length; ++i)
48338
48355
  writer.raw(message.$unknowns[i]);
@@ -48432,6 +48449,13 @@ $root.waproto = (function() {
48432
48449
  message._isBotJidDbMigrated = "isBotJidDbMigrated";
48433
48450
  continue;
48434
48451
  }
48452
+ case 7: {
48453
+ if (wireType !== 2)
48454
+ break;
48455
+ message.companionAddPeerPayload = reader.bytes();
48456
+ message._companionAddPeerPayload = "companionAddPeerPayload";
48457
+ continue;
48458
+ }
48435
48459
  }
48436
48460
  reader.skipType(wireType, _depth, tag);
48437
48461
  if (!reader.discardUnknown) {
@@ -48511,6 +48535,11 @@ $root.waproto = (function() {
48511
48535
  if (typeof message.isBotJidDbMigrated !== "boolean")
48512
48536
  return "isBotJidDbMigrated: boolean expected";
48513
48537
  }
48538
+ if (message.companionAddPeerPayload != null && $Object.hasOwnProperty.call(message, "companionAddPeerPayload")) {
48539
+ properties._companionAddPeerPayload = 1;
48540
+ if (!(message.companionAddPeerPayload && typeof message.companionAddPeerPayload.length === "number" || $util.isString(message.companionAddPeerPayload)))
48541
+ return "companionAddPeerPayload: buffer expected";
48542
+ }
48514
48543
  return null;
48515
48544
  };
48516
48545
 
@@ -48547,6 +48576,11 @@ $root.waproto = (function() {
48547
48576
  message.subscriptionSyncPayload = object.subscriptionSyncPayload;
48548
48577
  if (object.isBotJidDbMigrated != null)
48549
48578
  message.isBotJidDbMigrated = $Boolean(object.isBotJidDbMigrated);
48579
+ if (object.companionAddPeerPayload != null)
48580
+ if (typeof object.companionAddPeerPayload === "string")
48581
+ $util.base64.decode(object.companionAddPeerPayload, message.companionAddPeerPayload = $util.newBuffer($util.base64.length(object.companionAddPeerPayload)), 0);
48582
+ else if (object.companionAddPeerPayload.length >= 0)
48583
+ message.companionAddPeerPayload = object.companionAddPeerPayload;
48550
48584
  return message;
48551
48585
  };
48552
48586
 
@@ -48579,6 +48613,8 @@ $root.waproto = (function() {
48579
48613
  object.subscriptionSyncPayload = options.bytes === $String ? $util.base64.encode(message.subscriptionSyncPayload, 0, message.subscriptionSyncPayload.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.subscriptionSyncPayload) : message.subscriptionSyncPayload;
48580
48614
  if (message.isBotJidDbMigrated != null && $Object.hasOwnProperty.call(message, "isBotJidDbMigrated"))
48581
48615
  object.isBotJidDbMigrated = message.isBotJidDbMigrated;
48616
+ if (message.companionAddPeerPayload != null && $Object.hasOwnProperty.call(message, "companionAddPeerPayload"))
48617
+ object.companionAddPeerPayload = options.bytes === $String ? $util.base64.encode(message.companionAddPeerPayload, 0, message.companionAddPeerPayload.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.companionAddPeerPayload) : message.companionAddPeerPayload;
48582
48618
  return object;
48583
48619
  };
48584
48620
 
@@ -234530,6 +234566,8 @@ $root.waproto = (function() {
234530
234566
  * @property {string|null} [name] PollOption name
234531
234567
  * @property {string|null} [hash] PollOption hash
234532
234568
  * @property {string|null} [addOptionMsgKey] PollOption addOptionMsgKey
234569
+ * @property {number|null} [localId] PollOption localId
234570
+ * @property {number|null} [addOptionMsgT] PollOption addOptionMsgT
234533
234571
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
234534
234572
  */
234535
234573
 
@@ -234585,6 +234623,22 @@ $root.waproto = (function() {
234585
234623
  */
234586
234624
  PollOption.prototype.addOptionMsgKey = null;
234587
234625
 
234626
+ /**
234627
+ * PollOption localId.
234628
+ * @member {number|null|undefined} localId
234629
+ * @memberof waproto.MsgOpaqueData.PollOption
234630
+ * @instance
234631
+ */
234632
+ PollOption.prototype.localId = null;
234633
+
234634
+ /**
234635
+ * PollOption addOptionMsgT.
234636
+ * @member {number|null|undefined} addOptionMsgT
234637
+ * @memberof waproto.MsgOpaqueData.PollOption
234638
+ * @instance
234639
+ */
234640
+ PollOption.prototype.addOptionMsgT = null;
234641
+
234588
234642
  // OneOf field names bound to virtual getters and setters
234589
234643
  var $oneOfFields;
234590
234644
 
@@ -234606,6 +234660,18 @@ $root.waproto = (function() {
234606
234660
  set: $util.oneOfSetter($oneOfFields)
234607
234661
  });
234608
234662
 
234663
+ // Virtual OneOf for proto3 optional field
234664
+ $Object.defineProperty(PollOption.prototype, "_localId", {
234665
+ get: $util.oneOfGetter($oneOfFields = ["localId"]),
234666
+ set: $util.oneOfSetter($oneOfFields)
234667
+ });
234668
+
234669
+ // Virtual OneOf for proto3 optional field
234670
+ $Object.defineProperty(PollOption.prototype, "_addOptionMsgT", {
234671
+ get: $util.oneOfGetter($oneOfFields = ["addOptionMsgT"]),
234672
+ set: $util.oneOfSetter($oneOfFields)
234673
+ });
234674
+
234609
234675
  /**
234610
234676
  * Creates a new PollOption instance using the specified properties.
234611
234677
  * @function create
@@ -234644,6 +234710,10 @@ $root.waproto = (function() {
234644
234710
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.hash);
234645
234711
  if (message.addOptionMsgKey != null && $Object.hasOwnProperty.call(message, "addOptionMsgKey"))
234646
234712
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.addOptionMsgKey);
234713
+ if (message.localId != null && $Object.hasOwnProperty.call(message, "localId"))
234714
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.localId);
234715
+ if (message.addOptionMsgT != null && $Object.hasOwnProperty.call(message, "addOptionMsgT"))
234716
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.addOptionMsgT);
234647
234717
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
234648
234718
  for (var i = 0; i < message.$unknowns.length; ++i)
234649
234719
  writer.raw(message.$unknowns[i]);
@@ -234722,6 +234792,20 @@ $root.waproto = (function() {
234722
234792
  message._addOptionMsgKey = "addOptionMsgKey";
234723
234793
  continue;
234724
234794
  }
234795
+ case 4: {
234796
+ if (wireType !== 0)
234797
+ break;
234798
+ message.localId = reader.uint32();
234799
+ message._localId = "localId";
234800
+ continue;
234801
+ }
234802
+ case 5: {
234803
+ if (wireType !== 0)
234804
+ break;
234805
+ message.addOptionMsgT = reader.uint32();
234806
+ message._addOptionMsgT = "addOptionMsgT";
234807
+ continue;
234808
+ }
234725
234809
  }
234726
234810
  reader.skipType(wireType, _depth, tag);
234727
234811
  if (!reader.discardUnknown) {
@@ -234786,6 +234870,16 @@ $root.waproto = (function() {
234786
234870
  if (!$util.isString(message.addOptionMsgKey))
234787
234871
  return "addOptionMsgKey: string expected";
234788
234872
  }
234873
+ if (message.localId != null && $Object.hasOwnProperty.call(message, "localId")) {
234874
+ properties._localId = 1;
234875
+ if (!$util.isInteger(message.localId))
234876
+ return "localId: integer expected";
234877
+ }
234878
+ if (message.addOptionMsgT != null && $Object.hasOwnProperty.call(message, "addOptionMsgT")) {
234879
+ properties._addOptionMsgT = 1;
234880
+ if (!$util.isInteger(message.addOptionMsgT))
234881
+ return "addOptionMsgT: integer expected";
234882
+ }
234789
234883
  return null;
234790
234884
  };
234791
234885
 
@@ -234813,6 +234907,10 @@ $root.waproto = (function() {
234813
234907
  message.hash = $String(object.hash);
234814
234908
  if (object.addOptionMsgKey != null)
234815
234909
  message.addOptionMsgKey = $String(object.addOptionMsgKey);
234910
+ if (object.localId != null)
234911
+ message.localId = object.localId >>> 0;
234912
+ if (object.addOptionMsgT != null)
234913
+ message.addOptionMsgT = object.addOptionMsgT >>> 0;
234816
234914
  return message;
234817
234915
  };
234818
234916
 
@@ -234839,6 +234937,10 @@ $root.waproto = (function() {
234839
234937
  object.hash = message.hash;
234840
234938
  if (message.addOptionMsgKey != null && $Object.hasOwnProperty.call(message, "addOptionMsgKey"))
234841
234939
  object.addOptionMsgKey = message.addOptionMsgKey;
234940
+ if (message.localId != null && $Object.hasOwnProperty.call(message, "localId"))
234941
+ object.localId = message.localId;
234942
+ if (message.addOptionMsgT != null && $Object.hasOwnProperty.call(message, "addOptionMsgT"))
234943
+ object.addOptionMsgT = message.addOptionMsgT;
234842
234944
  return object;
234843
234945
  };
234844
234946
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1051351692",
3
+ "version": "2.3000.1051428616",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {