@wppconnect/wa-proto 2.3000.1051404344 → 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.1051404344
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 {
@@ -5613,6 +5614,7 @@ message MsgOpaqueData {
5613
5614
  optional string hash = 2;
5614
5615
  optional string addOptionMsgKey = 3;
5615
5616
  optional uint32 localId = 4;
5617
+ optional uint32 addOptionMsgT = 5;
5616
5618
  }
5617
5619
 
5618
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
  }
@@ -78790,6 +78796,9 @@ export namespace waproto {
78790
78796
  /** PollOption localId. */
78791
78797
  localId?: (number|null);
78792
78798
 
78799
+ /** PollOption addOptionMsgT. */
78800
+ addOptionMsgT?: (number|null);
78801
+
78793
78802
  /**
78794
78803
  * Creates a new PollOption instance using the specified properties.
78795
78804
  * @param [properties] Properties to set
@@ -78886,6 +78895,9 @@ export namespace waproto {
78886
78895
  /** PollOption localId */
78887
78896
  localId?: (number|null);
78888
78897
 
78898
+ /** PollOption addOptionMsgT */
78899
+ addOptionMsgT?: (number|null);
78900
+
78889
78901
  /** Unknown fields preserved while decoding when enabled */
78890
78902
  $unknowns?: Uint8Array[];
78891
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
 
@@ -234531,6 +234567,7 @@ $root.waproto = (function() {
234531
234567
  * @property {string|null} [hash] PollOption hash
234532
234568
  * @property {string|null} [addOptionMsgKey] PollOption addOptionMsgKey
234533
234569
  * @property {number|null} [localId] PollOption localId
234570
+ * @property {number|null} [addOptionMsgT] PollOption addOptionMsgT
234534
234571
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
234535
234572
  */
234536
234573
 
@@ -234594,6 +234631,14 @@ $root.waproto = (function() {
234594
234631
  */
234595
234632
  PollOption.prototype.localId = null;
234596
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
+
234597
234642
  // OneOf field names bound to virtual getters and setters
234598
234643
  var $oneOfFields;
234599
234644
 
@@ -234621,6 +234666,12 @@ $root.waproto = (function() {
234621
234666
  set: $util.oneOfSetter($oneOfFields)
234622
234667
  });
234623
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
+
234624
234675
  /**
234625
234676
  * Creates a new PollOption instance using the specified properties.
234626
234677
  * @function create
@@ -234661,6 +234712,8 @@ $root.waproto = (function() {
234661
234712
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.addOptionMsgKey);
234662
234713
  if (message.localId != null && $Object.hasOwnProperty.call(message, "localId"))
234663
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);
234664
234717
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
234665
234718
  for (var i = 0; i < message.$unknowns.length; ++i)
234666
234719
  writer.raw(message.$unknowns[i]);
@@ -234746,6 +234799,13 @@ $root.waproto = (function() {
234746
234799
  message._localId = "localId";
234747
234800
  continue;
234748
234801
  }
234802
+ case 5: {
234803
+ if (wireType !== 0)
234804
+ break;
234805
+ message.addOptionMsgT = reader.uint32();
234806
+ message._addOptionMsgT = "addOptionMsgT";
234807
+ continue;
234808
+ }
234749
234809
  }
234750
234810
  reader.skipType(wireType, _depth, tag);
234751
234811
  if (!reader.discardUnknown) {
@@ -234815,6 +234875,11 @@ $root.waproto = (function() {
234815
234875
  if (!$util.isInteger(message.localId))
234816
234876
  return "localId: integer expected";
234817
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
+ }
234818
234883
  return null;
234819
234884
  };
234820
234885
 
@@ -234844,6 +234909,8 @@ $root.waproto = (function() {
234844
234909
  message.addOptionMsgKey = $String(object.addOptionMsgKey);
234845
234910
  if (object.localId != null)
234846
234911
  message.localId = object.localId >>> 0;
234912
+ if (object.addOptionMsgT != null)
234913
+ message.addOptionMsgT = object.addOptionMsgT >>> 0;
234847
234914
  return message;
234848
234915
  };
234849
234916
 
@@ -234872,6 +234939,8 @@ $root.waproto = (function() {
234872
234939
  object.addOptionMsgKey = message.addOptionMsgKey;
234873
234940
  if (message.localId != null && $Object.hasOwnProperty.call(message, "localId"))
234874
234941
  object.localId = message.localId;
234942
+ if (message.addOptionMsgT != null && $Object.hasOwnProperty.call(message, "addOptionMsgT"))
234943
+ object.addOptionMsgT = message.addOptionMsgT;
234875
234944
  return object;
234876
234945
  };
234877
234946
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1051404344",
3
+ "version": "2.3000.1051428616",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {