@wppconnect/wa-proto 2.3000.1022982921 → 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,11 @@
1
+ ## 2.3000.1023399589 (2025-06-02)
2
+
3
+
4
+
5
+ ## 2.3000.1023054691 (2025-05-21)
6
+
7
+
8
+
1
9
  ## 2.3000.1022982921 (2025-05-20)
2
10
 
3
11
 
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1022982921
4
+ /// WhatsApp Version: 2.3000.1023399589
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -434,6 +434,7 @@ enum BotMetricsEntryPoint {
434
434
  META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
435
435
  UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
436
436
  NEW_CHAT_AI_STUDIO = 24;
437
+ AIVOICE_FAVICON_CALL_HISTORY = 25;
437
438
  }
438
439
  message BotMetricsMetadata {
439
440
  optional string destinationId = 1;
@@ -1854,6 +1855,8 @@ message Message {
1854
1855
  BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
1855
1856
  BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
1856
1857
  BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
1858
+ BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
1859
+ BOT_FEEDBACK_NEGATIVE = 14;
1857
1860
  }
1858
1861
  enum BotFeedbackKindMultipleNegative {
1859
1862
  BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
@@ -1870,7 +1873,8 @@ message Message {
1870
1873
  BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1871
1874
  }
1872
1875
  enum ReportKind {
1873
- GENERIC = 0;
1876
+ NONE = 0;
1877
+ GENERIC = 1;
1874
1878
  }
1875
1879
  }
1876
1880
 
@@ -3185,6 +3189,7 @@ message MessageContextInfo {
3185
3189
  optional string supportPayload = 12;
3186
3190
  optional LimitSharing limitSharing = 13;
3187
3191
  optional LimitSharing limitSharingV2 = 14;
3192
+ repeated ThreadID threadId = 15;
3188
3193
  enum MessageAddonExpiryType {
3189
3194
  STATIC = 1;
3190
3195
  DEPENDENT_ON_PARENT = 2;
@@ -4204,6 +4209,15 @@ message TemplateButton {
4204
4209
 
4205
4210
  }
4206
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
+
4207
4221
  message UrlTrackingMap {
4208
4222
  repeated UrlTrackingMapElement urlTrackingMapElements = 1;
4209
4223
  message UrlTrackingMapElement {
package/dist/index.d.ts CHANGED
@@ -5020,7 +5020,8 @@ export namespace waproto {
5020
5020
  AI_DEEPLINK = 21,
5021
5021
  META_AI_CHAT_SHORTCUT_AI_STUDIO = 22,
5022
5022
  UGC_CHAT_SHORTCUT_AI_STUDIO = 23,
5023
- NEW_CHAT_AI_STUDIO = 24
5023
+ NEW_CHAT_AI_STUDIO = 24,
5024
+ AIVOICE_FAVICON_CALL_HISTORY = 25
5024
5025
  }
5025
5026
 
5026
5027
  /** Properties of a BotMetricsMetadata. */
@@ -20220,7 +20221,9 @@ export namespace waproto {
20220
20221
  BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9,
20221
20222
  BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10,
20222
20223
  BOT_FEEDBACK_NEGATIVE_CLARITY = 11,
20223
- BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12
20224
+ BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12,
20225
+ BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13,
20226
+ BOT_FEEDBACK_NEGATIVE = 14
20224
20227
  }
20225
20228
 
20226
20229
  /** BotFeedbackKindMultipleNegative enum. */
@@ -20243,7 +20246,8 @@ export namespace waproto {
20243
20246
 
20244
20247
  /** ReportKind enum. */
20245
20248
  enum ReportKind {
20246
- GENERIC = 0
20249
+ NONE = 0,
20250
+ GENERIC = 1
20247
20251
  }
20248
20252
  }
20249
20253
 
@@ -35989,6 +35993,9 @@ export namespace waproto {
35989
35993
 
35990
35994
  /** MessageContextInfo limitSharingV2 */
35991
35995
  limitSharingV2?: (waproto.ILimitSharing|null);
35996
+
35997
+ /** MessageContextInfo threadId */
35998
+ threadId?: (waproto.IThreadID[]|null);
35992
35999
  }
35993
36000
 
35994
36001
  /** Represents a MessageContextInfo. */
@@ -36042,6 +36049,9 @@ export namespace waproto {
36042
36049
  /** MessageContextInfo limitSharingV2. */
36043
36050
  public limitSharingV2?: (waproto.ILimitSharing|null);
36044
36051
 
36052
+ /** MessageContextInfo threadId. */
36053
+ public threadId: waproto.IThreadID[];
36054
+
36045
36055
  /**
36046
36056
  * Creates a new MessageContextInfo instance using the specified properties.
36047
36057
  * @param [properties] Properties to set
@@ -51256,6 +51266,118 @@ export namespace waproto {
51256
51266
  }
51257
51267
  }
51258
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
+
51259
51381
  /** Properties of an UrlTrackingMap. */
51260
51382
  interface IUrlTrackingMap {
51261
51383
 
package/dist/index.js CHANGED
@@ -14554,6 +14554,7 @@ $root.waproto = (function() {
14554
14554
  * @property {number} META_AI_CHAT_SHORTCUT_AI_STUDIO=22 META_AI_CHAT_SHORTCUT_AI_STUDIO value
14555
14555
  * @property {number} UGC_CHAT_SHORTCUT_AI_STUDIO=23 UGC_CHAT_SHORTCUT_AI_STUDIO value
14556
14556
  * @property {number} NEW_CHAT_AI_STUDIO=24 NEW_CHAT_AI_STUDIO value
14557
+ * @property {number} AIVOICE_FAVICON_CALL_HISTORY=25 AIVOICE_FAVICON_CALL_HISTORY value
14557
14558
  */
14558
14559
  waproto.BotMetricsEntryPoint = (function() {
14559
14560
  var valuesById = {}, values = Object.create(valuesById);
@@ -14581,6 +14582,7 @@ $root.waproto = (function() {
14581
14582
  values[valuesById[22] = "META_AI_CHAT_SHORTCUT_AI_STUDIO"] = 22;
14582
14583
  values[valuesById[23] = "UGC_CHAT_SHORTCUT_AI_STUDIO"] = 23;
14583
14584
  values[valuesById[24] = "NEW_CHAT_AI_STUDIO"] = 24;
14585
+ values[valuesById[25] = "AIVOICE_FAVICON_CALL_HISTORY"] = 25;
14584
14586
  return values;
14585
14587
  })();
14586
14588
 
@@ -14801,6 +14803,7 @@ $root.waproto = (function() {
14801
14803
  case 22:
14802
14804
  case 23:
14803
14805
  case 24:
14806
+ case 25:
14804
14807
  break;
14805
14808
  }
14806
14809
  }
@@ -14936,6 +14939,10 @@ $root.waproto = (function() {
14936
14939
  case 24:
14937
14940
  message.destinationEntryPoint = 24;
14938
14941
  break;
14942
+ case "AIVOICE_FAVICON_CALL_HISTORY":
14943
+ case 25:
14944
+ message.destinationEntryPoint = 25;
14945
+ break;
14939
14946
  }
14940
14947
  switch (object.threadOrigin) {
14941
14948
  default:
@@ -63389,6 +63396,8 @@ $root.waproto = (function() {
63389
63396
  case 10:
63390
63397
  case 11:
63391
63398
  case 12:
63399
+ case 13:
63400
+ case 14:
63392
63401
  break;
63393
63402
  }
63394
63403
  }
@@ -63413,6 +63422,7 @@ $root.waproto = (function() {
63413
63422
  default:
63414
63423
  return "kindReport: enum value expected";
63415
63424
  case 0:
63425
+ case 1:
63416
63426
  break;
63417
63427
  }
63418
63428
  }
@@ -63495,6 +63505,14 @@ $root.waproto = (function() {
63495
63505
  case 12:
63496
63506
  message.kind = 12;
63497
63507
  break;
63508
+ case "BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY":
63509
+ case 13:
63510
+ message.kind = 13;
63511
+ break;
63512
+ case "BOT_FEEDBACK_NEGATIVE":
63513
+ case 14:
63514
+ message.kind = 14;
63515
+ break;
63498
63516
  }
63499
63517
  if (object.text != null)
63500
63518
  message.text = String(object.text);
@@ -63523,10 +63541,14 @@ $root.waproto = (function() {
63523
63541
  break;
63524
63542
  }
63525
63543
  break;
63526
- case "GENERIC":
63544
+ case "NONE":
63527
63545
  case 0:
63528
63546
  message.kindReport = 0;
63529
63547
  break;
63548
+ case "GENERIC":
63549
+ case 1:
63550
+ message.kindReport = 1;
63551
+ break;
63530
63552
  }
63531
63553
  return message;
63532
63554
  };
@@ -63626,6 +63648,8 @@ $root.waproto = (function() {
63626
63648
  * @property {number} BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10 BOT_FEEDBACK_NEGATIVE_PERSONALIZED value
63627
63649
  * @property {number} BOT_FEEDBACK_NEGATIVE_CLARITY=11 BOT_FEEDBACK_NEGATIVE_CLARITY value
63628
63650
  * @property {number} BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12 BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON value
63651
+ * @property {number} BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13 BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY value
63652
+ * @property {number} BOT_FEEDBACK_NEGATIVE=14 BOT_FEEDBACK_NEGATIVE value
63629
63653
  */
63630
63654
  BotFeedbackMessage.BotFeedbackKind = (function() {
63631
63655
  var valuesById = {}, values = Object.create(valuesById);
@@ -63642,6 +63666,8 @@ $root.waproto = (function() {
63642
63666
  values[valuesById[10] = "BOT_FEEDBACK_NEGATIVE_PERSONALIZED"] = 10;
63643
63667
  values[valuesById[11] = "BOT_FEEDBACK_NEGATIVE_CLARITY"] = 11;
63644
63668
  values[valuesById[12] = "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON"] = 12;
63669
+ values[valuesById[13] = "BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY"] = 13;
63670
+ values[valuesById[14] = "BOT_FEEDBACK_NEGATIVE"] = 14;
63645
63671
  return values;
63646
63672
  })();
63647
63673
 
@@ -63689,11 +63715,13 @@ $root.waproto = (function() {
63689
63715
  * ReportKind enum.
63690
63716
  * @name waproto.Message.BotFeedbackMessage.ReportKind
63691
63717
  * @enum {number}
63692
- * @property {number} GENERIC=0 GENERIC value
63718
+ * @property {number} NONE=0 NONE value
63719
+ * @property {number} GENERIC=1 GENERIC value
63693
63720
  */
63694
63721
  BotFeedbackMessage.ReportKind = (function() {
63695
63722
  var valuesById = {}, values = Object.create(valuesById);
63696
- values[valuesById[0] = "GENERIC"] = 0;
63723
+ values[valuesById[0] = "NONE"] = 0;
63724
+ values[valuesById[1] = "GENERIC"] = 1;
63697
63725
  return values;
63698
63726
  })();
63699
63727
 
@@ -111785,6 +111813,7 @@ $root.waproto = (function() {
111785
111813
  * @property {string|null} [supportPayload] MessageContextInfo supportPayload
111786
111814
  * @property {waproto.ILimitSharing|null} [limitSharing] MessageContextInfo limitSharing
111787
111815
  * @property {waproto.ILimitSharing|null} [limitSharingV2] MessageContextInfo limitSharingV2
111816
+ * @property {Array.<waproto.IThreadID>|null} [threadId] MessageContextInfo threadId
111788
111817
  */
111789
111818
 
111790
111819
  /**
@@ -111796,6 +111825,7 @@ $root.waproto = (function() {
111796
111825
  * @param {waproto.IMessageContextInfo=} [properties] Properties to set
111797
111826
  */
111798
111827
  function MessageContextInfo(properties) {
111828
+ this.threadId = [];
111799
111829
  if (properties)
111800
111830
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
111801
111831
  if (properties[keys[i]] != null)
@@ -111914,6 +111944,14 @@ $root.waproto = (function() {
111914
111944
  */
111915
111945
  MessageContextInfo.prototype.limitSharingV2 = null;
111916
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
+
111917
111955
  // OneOf field names bound to virtual getters and setters
111918
111956
  var $oneOfFields;
111919
111957
 
@@ -112053,6 +112091,9 @@ $root.waproto = (function() {
112053
112091
  $root.waproto.LimitSharing.encode(message.limitSharing, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
112054
112092
  if (message.limitSharingV2 != null && Object.hasOwnProperty.call(message, "limitSharingV2"))
112055
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();
112056
112097
  return writer;
112057
112098
  };
112058
112099
 
@@ -112143,6 +112184,12 @@ $root.waproto = (function() {
112143
112184
  message.limitSharingV2 = $root.waproto.LimitSharing.decode(reader, reader.uint32());
112144
112185
  break;
112145
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
+ }
112146
112193
  default:
112147
112194
  reader.skipType(tag & 7);
112148
112195
  break;
@@ -112269,6 +112316,15 @@ $root.waproto = (function() {
112269
112316
  return "limitSharingV2." + error;
112270
112317
  }
112271
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
+ }
112272
112328
  return null;
112273
112329
  };
112274
112330
 
@@ -112350,6 +112406,16 @@ $root.waproto = (function() {
112350
112406
  throw TypeError(".waproto.MessageContextInfo.limitSharingV2: object expected");
112351
112407
  message.limitSharingV2 = $root.waproto.LimitSharing.fromObject(object.limitSharingV2);
112352
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
+ }
112353
112419
  return message;
112354
112420
  };
112355
112421
 
@@ -112366,6 +112432,8 @@ $root.waproto = (function() {
112366
112432
  if (!options)
112367
112433
  options = {};
112368
112434
  var object = {};
112435
+ if (options.arrays || options.defaults)
112436
+ object.threadId = [];
112369
112437
  if (message.deviceListMetadata != null && message.hasOwnProperty("deviceListMetadata")) {
112370
112438
  object.deviceListMetadata = $root.waproto.DeviceListMetadata.toObject(message.deviceListMetadata, options);
112371
112439
  if (options.oneofs)
@@ -112436,6 +112504,11 @@ $root.waproto = (function() {
112436
112504
  if (options.oneofs)
112437
112505
  object._limitSharingV2 = "limitSharingV2";
112438
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
+ }
112439
112512
  return object;
112440
112513
  };
112441
112514
 
@@ -154770,6 +154843,294 @@ $root.waproto = (function() {
154770
154843
  return TemplateButton;
154771
154844
  })();
154772
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
+
154773
155134
  waproto.UrlTrackingMap = (function() {
154774
155135
 
154775
155136
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1022982921",
3
+ "version": "2.3000.1023399589",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "author": {