@wppconnect/wa-proto 2.3000.1023054691 → 2.3000.1023399589

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.3000.1023399589 (2025-06-02)
2
+
3
+
4
+
1
5
  ## 2.3000.1023054691 (2025-05-21)
2
6
 
3
7
 
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1023054691
4
+ /// WhatsApp Version: 2.3000.1023399589
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -1873,7 +1873,8 @@ message Message {
1873
1873
  BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1874
1874
  }
1875
1875
  enum ReportKind {
1876
- GENERIC = 0;
1876
+ NONE = 0;
1877
+ GENERIC = 1;
1877
1878
  }
1878
1879
  }
1879
1880
 
@@ -3188,6 +3189,7 @@ message MessageContextInfo {
3188
3189
  optional string supportPayload = 12;
3189
3190
  optional LimitSharing limitSharing = 13;
3190
3191
  optional LimitSharing limitSharingV2 = 14;
3192
+ repeated ThreadID threadId = 15;
3191
3193
  enum MessageAddonExpiryType {
3192
3194
  STATIC = 1;
3193
3195
  DEPENDENT_ON_PARENT = 2;
@@ -4207,6 +4209,15 @@ message TemplateButton {
4207
4209
 
4208
4210
  }
4209
4211
 
4212
+ message ThreadID {
4213
+ optional ThreadType threadType = 1;
4214
+ optional MessageKey threadKey = 2;
4215
+ enum ThreadType {
4216
+ UNKNOWN = 0;
4217
+ VIEW_REPLIES = 1;
4218
+ }
4219
+ }
4220
+
4210
4221
  message UrlTrackingMap {
4211
4222
  repeated UrlTrackingMapElement urlTrackingMapElements = 1;
4212
4223
  message UrlTrackingMapElement {
package/dist/index.d.ts CHANGED
@@ -20246,7 +20246,8 @@ export namespace waproto {
20246
20246
 
20247
20247
  /** ReportKind enum. */
20248
20248
  enum ReportKind {
20249
- GENERIC = 0
20249
+ NONE = 0,
20250
+ GENERIC = 1
20250
20251
  }
20251
20252
  }
20252
20253
 
@@ -35992,6 +35993,9 @@ export namespace waproto {
35992
35993
 
35993
35994
  /** MessageContextInfo limitSharingV2 */
35994
35995
  limitSharingV2?: (waproto.ILimitSharing|null);
35996
+
35997
+ /** MessageContextInfo threadId */
35998
+ threadId?: (waproto.IThreadID[]|null);
35995
35999
  }
35996
36000
 
35997
36001
  /** Represents a MessageContextInfo. */
@@ -36045,6 +36049,9 @@ export namespace waproto {
36045
36049
  /** MessageContextInfo limitSharingV2. */
36046
36050
  public limitSharingV2?: (waproto.ILimitSharing|null);
36047
36051
 
36052
+ /** MessageContextInfo threadId. */
36053
+ public threadId: waproto.IThreadID[];
36054
+
36048
36055
  /**
36049
36056
  * Creates a new MessageContextInfo instance using the specified properties.
36050
36057
  * @param [properties] Properties to set
@@ -51259,6 +51266,118 @@ export namespace waproto {
51259
51266
  }
51260
51267
  }
51261
51268
 
51269
+ /** Properties of a ThreadID. */
51270
+ interface IThreadID {
51271
+
51272
+ /** ThreadID threadType */
51273
+ threadType?: (waproto.ThreadID.ThreadType|null);
51274
+
51275
+ /** ThreadID threadKey */
51276
+ threadKey?: (waproto.IMessageKey|null);
51277
+ }
51278
+
51279
+ /** Represents a ThreadID. */
51280
+ class ThreadID implements IThreadID {
51281
+
51282
+ /**
51283
+ * Constructs a new ThreadID.
51284
+ * @param [properties] Properties to set
51285
+ */
51286
+ constructor(properties?: waproto.IThreadID);
51287
+
51288
+ /** ThreadID threadType. */
51289
+ public threadType?: (waproto.ThreadID.ThreadType|null);
51290
+
51291
+ /** ThreadID threadKey. */
51292
+ public threadKey?: (waproto.IMessageKey|null);
51293
+
51294
+ /**
51295
+ * Creates a new ThreadID instance using the specified properties.
51296
+ * @param [properties] Properties to set
51297
+ * @returns ThreadID instance
51298
+ */
51299
+ public static create(properties?: waproto.IThreadID): waproto.ThreadID;
51300
+
51301
+ /**
51302
+ * Encodes the specified ThreadID message. Does not implicitly {@link waproto.ThreadID.verify|verify} messages.
51303
+ * @param message ThreadID message or plain object to encode
51304
+ * @param [writer] Writer to encode to
51305
+ * @returns Writer
51306
+ */
51307
+ public static encode(message: waproto.IThreadID, writer?: $protobuf.Writer): $protobuf.Writer;
51308
+
51309
+ /**
51310
+ * Encodes the specified ThreadID message, length delimited. Does not implicitly {@link waproto.ThreadID.verify|verify} messages.
51311
+ * @param message ThreadID message or plain object to encode
51312
+ * @param [writer] Writer to encode to
51313
+ * @returns Writer
51314
+ */
51315
+ public static encodeDelimited(message: waproto.IThreadID, writer?: $protobuf.Writer): $protobuf.Writer;
51316
+
51317
+ /**
51318
+ * Decodes a ThreadID message from the specified reader or buffer.
51319
+ * @param reader Reader or buffer to decode from
51320
+ * @param [length] Message length if known beforehand
51321
+ * @returns ThreadID
51322
+ * @throws {Error} If the payload is not a reader or valid buffer
51323
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51324
+ */
51325
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.ThreadID;
51326
+
51327
+ /**
51328
+ * Decodes a ThreadID message from the specified reader or buffer, length delimited.
51329
+ * @param reader Reader or buffer to decode from
51330
+ * @returns ThreadID
51331
+ * @throws {Error} If the payload is not a reader or valid buffer
51332
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51333
+ */
51334
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.ThreadID;
51335
+
51336
+ /**
51337
+ * Verifies a ThreadID message.
51338
+ * @param message Plain object to verify
51339
+ * @returns `null` if valid, otherwise the reason why it is not
51340
+ */
51341
+ public static verify(message: { [k: string]: any }): (string|null);
51342
+
51343
+ /**
51344
+ * Creates a ThreadID message from a plain object. Also converts values to their respective internal types.
51345
+ * @param object Plain object
51346
+ * @returns ThreadID
51347
+ */
51348
+ public static fromObject(object: { [k: string]: any }): waproto.ThreadID;
51349
+
51350
+ /**
51351
+ * Creates a plain object from a ThreadID message. Also converts values to other types if specified.
51352
+ * @param message ThreadID
51353
+ * @param [options] Conversion options
51354
+ * @returns Plain object
51355
+ */
51356
+ public static toObject(message: waproto.ThreadID, options?: $protobuf.IConversionOptions): { [k: string]: any };
51357
+
51358
+ /**
51359
+ * Converts this ThreadID to JSON.
51360
+ * @returns JSON object
51361
+ */
51362
+ public toJSON(): { [k: string]: any };
51363
+
51364
+ /**
51365
+ * Gets the default type url for ThreadID
51366
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
51367
+ * @returns The default type url
51368
+ */
51369
+ public static getTypeUrl(typeUrlPrefix?: string): string;
51370
+ }
51371
+
51372
+ namespace ThreadID {
51373
+
51374
+ /** ThreadType enum. */
51375
+ enum ThreadType {
51376
+ UNKNOWN = 0,
51377
+ VIEW_REPLIES = 1
51378
+ }
51379
+ }
51380
+
51262
51381
  /** Properties of an UrlTrackingMap. */
51263
51382
  interface IUrlTrackingMap {
51264
51383
 
package/dist/index.js CHANGED
@@ -63422,6 +63422,7 @@ $root.waproto = (function() {
63422
63422
  default:
63423
63423
  return "kindReport: enum value expected";
63424
63424
  case 0:
63425
+ case 1:
63425
63426
  break;
63426
63427
  }
63427
63428
  }
@@ -63540,10 +63541,14 @@ $root.waproto = (function() {
63540
63541
  break;
63541
63542
  }
63542
63543
  break;
63543
- case "GENERIC":
63544
+ case "NONE":
63544
63545
  case 0:
63545
63546
  message.kindReport = 0;
63546
63547
  break;
63548
+ case "GENERIC":
63549
+ case 1:
63550
+ message.kindReport = 1;
63551
+ break;
63547
63552
  }
63548
63553
  return message;
63549
63554
  };
@@ -63710,11 +63715,13 @@ $root.waproto = (function() {
63710
63715
  * ReportKind enum.
63711
63716
  * @name waproto.Message.BotFeedbackMessage.ReportKind
63712
63717
  * @enum {number}
63713
- * @property {number} GENERIC=0 GENERIC value
63718
+ * @property {number} NONE=0 NONE value
63719
+ * @property {number} GENERIC=1 GENERIC value
63714
63720
  */
63715
63721
  BotFeedbackMessage.ReportKind = (function() {
63716
63722
  var valuesById = {}, values = Object.create(valuesById);
63717
- values[valuesById[0] = "GENERIC"] = 0;
63723
+ values[valuesById[0] = "NONE"] = 0;
63724
+ values[valuesById[1] = "GENERIC"] = 1;
63718
63725
  return values;
63719
63726
  })();
63720
63727
 
@@ -111806,6 +111813,7 @@ $root.waproto = (function() {
111806
111813
  * @property {string|null} [supportPayload] MessageContextInfo supportPayload
111807
111814
  * @property {waproto.ILimitSharing|null} [limitSharing] MessageContextInfo limitSharing
111808
111815
  * @property {waproto.ILimitSharing|null} [limitSharingV2] MessageContextInfo limitSharingV2
111816
+ * @property {Array.<waproto.IThreadID>|null} [threadId] MessageContextInfo threadId
111809
111817
  */
111810
111818
 
111811
111819
  /**
@@ -111817,6 +111825,7 @@ $root.waproto = (function() {
111817
111825
  * @param {waproto.IMessageContextInfo=} [properties] Properties to set
111818
111826
  */
111819
111827
  function MessageContextInfo(properties) {
111828
+ this.threadId = [];
111820
111829
  if (properties)
111821
111830
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
111822
111831
  if (properties[keys[i]] != null)
@@ -111935,6 +111944,14 @@ $root.waproto = (function() {
111935
111944
  */
111936
111945
  MessageContextInfo.prototype.limitSharingV2 = null;
111937
111946
 
111947
+ /**
111948
+ * MessageContextInfo threadId.
111949
+ * @member {Array.<waproto.IThreadID>} threadId
111950
+ * @memberof waproto.MessageContextInfo
111951
+ * @instance
111952
+ */
111953
+ MessageContextInfo.prototype.threadId = $util.emptyArray;
111954
+
111938
111955
  // OneOf field names bound to virtual getters and setters
111939
111956
  var $oneOfFields;
111940
111957
 
@@ -112074,6 +112091,9 @@ $root.waproto = (function() {
112074
112091
  $root.waproto.LimitSharing.encode(message.limitSharing, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
112075
112092
  if (message.limitSharingV2 != null && Object.hasOwnProperty.call(message, "limitSharingV2"))
112076
112093
  $root.waproto.LimitSharing.encode(message.limitSharingV2, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
112094
+ if (message.threadId != null && message.threadId.length)
112095
+ for (var i = 0; i < message.threadId.length; ++i)
112096
+ $root.waproto.ThreadID.encode(message.threadId[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
112077
112097
  return writer;
112078
112098
  };
112079
112099
 
@@ -112164,6 +112184,12 @@ $root.waproto = (function() {
112164
112184
  message.limitSharingV2 = $root.waproto.LimitSharing.decode(reader, reader.uint32());
112165
112185
  break;
112166
112186
  }
112187
+ case 15: {
112188
+ if (!(message.threadId && message.threadId.length))
112189
+ message.threadId = [];
112190
+ message.threadId.push($root.waproto.ThreadID.decode(reader, reader.uint32()));
112191
+ break;
112192
+ }
112167
112193
  default:
112168
112194
  reader.skipType(tag & 7);
112169
112195
  break;
@@ -112290,6 +112316,15 @@ $root.waproto = (function() {
112290
112316
  return "limitSharingV2." + error;
112291
112317
  }
112292
112318
  }
112319
+ if (message.threadId != null && message.hasOwnProperty("threadId")) {
112320
+ if (!Array.isArray(message.threadId))
112321
+ return "threadId: array expected";
112322
+ for (var i = 0; i < message.threadId.length; ++i) {
112323
+ var error = $root.waproto.ThreadID.verify(message.threadId[i]);
112324
+ if (error)
112325
+ return "threadId." + error;
112326
+ }
112327
+ }
112293
112328
  return null;
112294
112329
  };
112295
112330
 
@@ -112371,6 +112406,16 @@ $root.waproto = (function() {
112371
112406
  throw TypeError(".waproto.MessageContextInfo.limitSharingV2: object expected");
112372
112407
  message.limitSharingV2 = $root.waproto.LimitSharing.fromObject(object.limitSharingV2);
112373
112408
  }
112409
+ if (object.threadId) {
112410
+ if (!Array.isArray(object.threadId))
112411
+ throw TypeError(".waproto.MessageContextInfo.threadId: array expected");
112412
+ message.threadId = [];
112413
+ for (var i = 0; i < object.threadId.length; ++i) {
112414
+ if (typeof object.threadId[i] !== "object")
112415
+ throw TypeError(".waproto.MessageContextInfo.threadId: object expected");
112416
+ message.threadId[i] = $root.waproto.ThreadID.fromObject(object.threadId[i]);
112417
+ }
112418
+ }
112374
112419
  return message;
112375
112420
  };
112376
112421
 
@@ -112387,6 +112432,8 @@ $root.waproto = (function() {
112387
112432
  if (!options)
112388
112433
  options = {};
112389
112434
  var object = {};
112435
+ if (options.arrays || options.defaults)
112436
+ object.threadId = [];
112390
112437
  if (message.deviceListMetadata != null && message.hasOwnProperty("deviceListMetadata")) {
112391
112438
  object.deviceListMetadata = $root.waproto.DeviceListMetadata.toObject(message.deviceListMetadata, options);
112392
112439
  if (options.oneofs)
@@ -112457,6 +112504,11 @@ $root.waproto = (function() {
112457
112504
  if (options.oneofs)
112458
112505
  object._limitSharingV2 = "limitSharingV2";
112459
112506
  }
112507
+ if (message.threadId && message.threadId.length) {
112508
+ object.threadId = [];
112509
+ for (var j = 0; j < message.threadId.length; ++j)
112510
+ object.threadId[j] = $root.waproto.ThreadID.toObject(message.threadId[j], options);
112511
+ }
112460
112512
  return object;
112461
112513
  };
112462
112514
 
@@ -154791,6 +154843,294 @@ $root.waproto = (function() {
154791
154843
  return TemplateButton;
154792
154844
  })();
154793
154845
 
154846
+ waproto.ThreadID = (function() {
154847
+
154848
+ /**
154849
+ * Properties of a ThreadID.
154850
+ * @memberof waproto
154851
+ * @interface IThreadID
154852
+ * @property {waproto.ThreadID.ThreadType|null} [threadType] ThreadID threadType
154853
+ * @property {waproto.IMessageKey|null} [threadKey] ThreadID threadKey
154854
+ */
154855
+
154856
+ /**
154857
+ * Constructs a new ThreadID.
154858
+ * @memberof waproto
154859
+ * @classdesc Represents a ThreadID.
154860
+ * @implements IThreadID
154861
+ * @constructor
154862
+ * @param {waproto.IThreadID=} [properties] Properties to set
154863
+ */
154864
+ function ThreadID(properties) {
154865
+ if (properties)
154866
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
154867
+ if (properties[keys[i]] != null)
154868
+ this[keys[i]] = properties[keys[i]];
154869
+ }
154870
+
154871
+ /**
154872
+ * ThreadID threadType.
154873
+ * @member {waproto.ThreadID.ThreadType|null|undefined} threadType
154874
+ * @memberof waproto.ThreadID
154875
+ * @instance
154876
+ */
154877
+ ThreadID.prototype.threadType = null;
154878
+
154879
+ /**
154880
+ * ThreadID threadKey.
154881
+ * @member {waproto.IMessageKey|null|undefined} threadKey
154882
+ * @memberof waproto.ThreadID
154883
+ * @instance
154884
+ */
154885
+ ThreadID.prototype.threadKey = null;
154886
+
154887
+ // OneOf field names bound to virtual getters and setters
154888
+ var $oneOfFields;
154889
+
154890
+ // Virtual OneOf for proto3 optional field
154891
+ Object.defineProperty(ThreadID.prototype, "_threadType", {
154892
+ get: $util.oneOfGetter($oneOfFields = ["threadType"]),
154893
+ set: $util.oneOfSetter($oneOfFields)
154894
+ });
154895
+
154896
+ // Virtual OneOf for proto3 optional field
154897
+ Object.defineProperty(ThreadID.prototype, "_threadKey", {
154898
+ get: $util.oneOfGetter($oneOfFields = ["threadKey"]),
154899
+ set: $util.oneOfSetter($oneOfFields)
154900
+ });
154901
+
154902
+ /**
154903
+ * Creates a new ThreadID instance using the specified properties.
154904
+ * @function create
154905
+ * @memberof waproto.ThreadID
154906
+ * @static
154907
+ * @param {waproto.IThreadID=} [properties] Properties to set
154908
+ * @returns {waproto.ThreadID} ThreadID instance
154909
+ */
154910
+ ThreadID.create = function create(properties) {
154911
+ return new ThreadID(properties);
154912
+ };
154913
+
154914
+ /**
154915
+ * Encodes the specified ThreadID message. Does not implicitly {@link waproto.ThreadID.verify|verify} messages.
154916
+ * @function encode
154917
+ * @memberof waproto.ThreadID
154918
+ * @static
154919
+ * @param {waproto.IThreadID} message ThreadID message or plain object to encode
154920
+ * @param {$protobuf.Writer} [writer] Writer to encode to
154921
+ * @returns {$protobuf.Writer} Writer
154922
+ */
154923
+ ThreadID.encode = function encode(message, writer) {
154924
+ if (!writer)
154925
+ writer = $Writer.create();
154926
+ if (message.threadType != null && Object.hasOwnProperty.call(message, "threadType"))
154927
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.threadType);
154928
+ if (message.threadKey != null && Object.hasOwnProperty.call(message, "threadKey"))
154929
+ $root.waproto.MessageKey.encode(message.threadKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
154930
+ return writer;
154931
+ };
154932
+
154933
+ /**
154934
+ * Encodes the specified ThreadID message, length delimited. Does not implicitly {@link waproto.ThreadID.verify|verify} messages.
154935
+ * @function encodeDelimited
154936
+ * @memberof waproto.ThreadID
154937
+ * @static
154938
+ * @param {waproto.IThreadID} message ThreadID message or plain object to encode
154939
+ * @param {$protobuf.Writer} [writer] Writer to encode to
154940
+ * @returns {$protobuf.Writer} Writer
154941
+ */
154942
+ ThreadID.encodeDelimited = function encodeDelimited(message, writer) {
154943
+ return this.encode(message, writer).ldelim();
154944
+ };
154945
+
154946
+ /**
154947
+ * Decodes a ThreadID message from the specified reader or buffer.
154948
+ * @function decode
154949
+ * @memberof waproto.ThreadID
154950
+ * @static
154951
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
154952
+ * @param {number} [length] Message length if known beforehand
154953
+ * @returns {waproto.ThreadID} ThreadID
154954
+ * @throws {Error} If the payload is not a reader or valid buffer
154955
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
154956
+ */
154957
+ ThreadID.decode = function decode(reader, length) {
154958
+ if (!(reader instanceof $Reader))
154959
+ reader = $Reader.create(reader);
154960
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.ThreadID();
154961
+ while (reader.pos < end) {
154962
+ var tag = reader.uint32();
154963
+ switch (tag >>> 3) {
154964
+ case 1: {
154965
+ message.threadType = reader.int32();
154966
+ break;
154967
+ }
154968
+ case 2: {
154969
+ message.threadKey = $root.waproto.MessageKey.decode(reader, reader.uint32());
154970
+ break;
154971
+ }
154972
+ default:
154973
+ reader.skipType(tag & 7);
154974
+ break;
154975
+ }
154976
+ }
154977
+ return message;
154978
+ };
154979
+
154980
+ /**
154981
+ * Decodes a ThreadID message from the specified reader or buffer, length delimited.
154982
+ * @function decodeDelimited
154983
+ * @memberof waproto.ThreadID
154984
+ * @static
154985
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
154986
+ * @returns {waproto.ThreadID} ThreadID
154987
+ * @throws {Error} If the payload is not a reader or valid buffer
154988
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
154989
+ */
154990
+ ThreadID.decodeDelimited = function decodeDelimited(reader) {
154991
+ if (!(reader instanceof $Reader))
154992
+ reader = new $Reader(reader);
154993
+ return this.decode(reader, reader.uint32());
154994
+ };
154995
+
154996
+ /**
154997
+ * Verifies a ThreadID message.
154998
+ * @function verify
154999
+ * @memberof waproto.ThreadID
155000
+ * @static
155001
+ * @param {Object.<string,*>} message Plain object to verify
155002
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
155003
+ */
155004
+ ThreadID.verify = function verify(message) {
155005
+ if (typeof message !== "object" || message === null)
155006
+ return "object expected";
155007
+ var properties = {};
155008
+ if (message.threadType != null && message.hasOwnProperty("threadType")) {
155009
+ properties._threadType = 1;
155010
+ switch (message.threadType) {
155011
+ default:
155012
+ return "threadType: enum value expected";
155013
+ case 0:
155014
+ case 1:
155015
+ break;
155016
+ }
155017
+ }
155018
+ if (message.threadKey != null && message.hasOwnProperty("threadKey")) {
155019
+ properties._threadKey = 1;
155020
+ {
155021
+ var error = $root.waproto.MessageKey.verify(message.threadKey);
155022
+ if (error)
155023
+ return "threadKey." + error;
155024
+ }
155025
+ }
155026
+ return null;
155027
+ };
155028
+
155029
+ /**
155030
+ * Creates a ThreadID message from a plain object. Also converts values to their respective internal types.
155031
+ * @function fromObject
155032
+ * @memberof waproto.ThreadID
155033
+ * @static
155034
+ * @param {Object.<string,*>} object Plain object
155035
+ * @returns {waproto.ThreadID} ThreadID
155036
+ */
155037
+ ThreadID.fromObject = function fromObject(object) {
155038
+ if (object instanceof $root.waproto.ThreadID)
155039
+ return object;
155040
+ var message = new $root.waproto.ThreadID();
155041
+ switch (object.threadType) {
155042
+ default:
155043
+ if (typeof object.threadType === "number") {
155044
+ message.threadType = object.threadType;
155045
+ break;
155046
+ }
155047
+ break;
155048
+ case "UNKNOWN":
155049
+ case 0:
155050
+ message.threadType = 0;
155051
+ break;
155052
+ case "VIEW_REPLIES":
155053
+ case 1:
155054
+ message.threadType = 1;
155055
+ break;
155056
+ }
155057
+ if (object.threadKey != null) {
155058
+ if (typeof object.threadKey !== "object")
155059
+ throw TypeError(".waproto.ThreadID.threadKey: object expected");
155060
+ message.threadKey = $root.waproto.MessageKey.fromObject(object.threadKey);
155061
+ }
155062
+ return message;
155063
+ };
155064
+
155065
+ /**
155066
+ * Creates a plain object from a ThreadID message. Also converts values to other types if specified.
155067
+ * @function toObject
155068
+ * @memberof waproto.ThreadID
155069
+ * @static
155070
+ * @param {waproto.ThreadID} message ThreadID
155071
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
155072
+ * @returns {Object.<string,*>} Plain object
155073
+ */
155074
+ ThreadID.toObject = function toObject(message, options) {
155075
+ if (!options)
155076
+ options = {};
155077
+ var object = {};
155078
+ if (message.threadType != null && message.hasOwnProperty("threadType")) {
155079
+ object.threadType = options.enums === String ? $root.waproto.ThreadID.ThreadType[message.threadType] === undefined ? message.threadType : $root.waproto.ThreadID.ThreadType[message.threadType] : message.threadType;
155080
+ if (options.oneofs)
155081
+ object._threadType = "threadType";
155082
+ }
155083
+ if (message.threadKey != null && message.hasOwnProperty("threadKey")) {
155084
+ object.threadKey = $root.waproto.MessageKey.toObject(message.threadKey, options);
155085
+ if (options.oneofs)
155086
+ object._threadKey = "threadKey";
155087
+ }
155088
+ return object;
155089
+ };
155090
+
155091
+ /**
155092
+ * Converts this ThreadID to JSON.
155093
+ * @function toJSON
155094
+ * @memberof waproto.ThreadID
155095
+ * @instance
155096
+ * @returns {Object.<string,*>} JSON object
155097
+ */
155098
+ ThreadID.prototype.toJSON = function toJSON() {
155099
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
155100
+ };
155101
+
155102
+ /**
155103
+ * Gets the default type url for ThreadID
155104
+ * @function getTypeUrl
155105
+ * @memberof waproto.ThreadID
155106
+ * @static
155107
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
155108
+ * @returns {string} The default type url
155109
+ */
155110
+ ThreadID.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
155111
+ if (typeUrlPrefix === undefined) {
155112
+ typeUrlPrefix = "type.googleapis.com";
155113
+ }
155114
+ return typeUrlPrefix + "/waproto.ThreadID";
155115
+ };
155116
+
155117
+ /**
155118
+ * ThreadType enum.
155119
+ * @name waproto.ThreadID.ThreadType
155120
+ * @enum {number}
155121
+ * @property {number} UNKNOWN=0 UNKNOWN value
155122
+ * @property {number} VIEW_REPLIES=1 VIEW_REPLIES value
155123
+ */
155124
+ ThreadID.ThreadType = (function() {
155125
+ var valuesById = {}, values = Object.create(valuesById);
155126
+ values[valuesById[0] = "UNKNOWN"] = 0;
155127
+ values[valuesById[1] = "VIEW_REPLIES"] = 1;
155128
+ return values;
155129
+ })();
155130
+
155131
+ return ThreadID;
155132
+ })();
155133
+
154794
155134
  waproto.UrlTrackingMap = (function() {
154795
155135
 
154796
155136
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1023054691",
3
+ "version": "2.3000.1023399589",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "author": {