@wppconnect/wa-proto 2.3000.1055640952 → 2.3000.1055724655

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.1055640952
4
+ /// WhatsApp Version: 2.3000.1055724655
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -270,6 +270,7 @@ message AIRichResponseTableMetadata {
270
270
 
271
271
  message AIRichResponseUnifiedResponse {
272
272
  optional bytes data = 1;
273
+ optional bytes gzipData = 2;
273
274
  }
274
275
 
275
276
  enum AISubscriptionRequestType {
@@ -520,6 +521,7 @@ message BotCapabilityMetadata {
520
521
  RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH = 89;
521
522
  AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED = 90;
522
523
  AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED = 91;
524
+ AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED = 93;
523
525
  }
524
526
  }
525
527
 
@@ -1957,11 +1959,16 @@ message DeviceCapabilities {
1957
1959
  optional BizAiWebOnboarding bizAiWebOnboarding = 13;
1958
1960
  optional PhoneNumberSharing phoneNumberSharing = 14;
1959
1961
  optional RecentConversationsOnDemand recentConversationsOnDemand = 15;
1962
+ optional AiMuseJarvisGzip aiMuseJarvisGzip = 16;
1960
1963
  message AiFbidMigration {
1961
1964
  optional uint64 chatDbMigrationTimestamp = 1;
1962
1965
  optional uint32 supportVersion = 2;
1963
1966
  }
1964
1967
 
1968
+ message AiMuseJarvisGzip {
1969
+ optional uint32 supportVersion = 1;
1970
+ }
1971
+
1965
1972
  message AiThread {
1966
1973
  optional SupportLevel supportLevel = 1;
1967
1974
  enum SupportLevel {
package/dist/index.d.ts CHANGED
@@ -4454,6 +4454,9 @@ export namespace waproto {
4454
4454
  /** AIRichResponseUnifiedResponse data. */
4455
4455
  data?: (Uint8Array|null);
4456
4456
 
4457
+ /** AIRichResponseUnifiedResponse gzipData. */
4458
+ gzipData?: (Uint8Array|null);
4459
+
4457
4460
  /**
4458
4461
  * Creates a new AIRichResponseUnifiedResponse instance using the specified properties.
4459
4462
  * @param [properties] Properties to set
@@ -4541,6 +4544,9 @@ export namespace waproto {
4541
4544
  /** AIRichResponseUnifiedResponse data */
4542
4545
  data?: (Uint8Array|null);
4543
4546
 
4547
+ /** AIRichResponseUnifiedResponse gzipData */
4548
+ gzipData?: (Uint8Array|null);
4549
+
4544
4550
  /** Unknown fields preserved while decoding when enabled */
4545
4551
  $unknowns?: Uint8Array[];
4546
4552
  }
@@ -7375,7 +7381,10 @@ export namespace waproto {
7375
7381
  AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED = 90,
7376
7382
 
7377
7383
  /** AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED value */
7378
- AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED = 91
7384
+ AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED = 91,
7385
+
7386
+ /** AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED value */
7387
+ AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED = 93
7379
7388
  }
7380
7389
  }
7381
7390
 
@@ -24269,6 +24278,9 @@ export namespace waproto {
24269
24278
  /** DeviceCapabilities recentConversationsOnDemand. */
24270
24279
  recentConversationsOnDemand?: (waproto.DeviceCapabilities.RecentConversationsOnDemand.$Properties|null);
24271
24280
 
24281
+ /** DeviceCapabilities aiMuseJarvisGzip. */
24282
+ aiMuseJarvisGzip?: (waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties|null);
24283
+
24272
24284
  /**
24273
24285
  * Creates a new DeviceCapabilities instance using the specified properties.
24274
24286
  * @param [properties] Properties to set
@@ -24398,6 +24410,9 @@ export namespace waproto {
24398
24410
  /** DeviceCapabilities recentConversationsOnDemand */
24399
24411
  recentConversationsOnDemand?: (waproto.DeviceCapabilities.RecentConversationsOnDemand.$Properties|null);
24400
24412
 
24413
+ /** DeviceCapabilities aiMuseJarvisGzip */
24414
+ aiMuseJarvisGzip?: (waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties|null);
24415
+
24401
24416
  /** Unknown fields preserved while decoding when enabled */
24402
24417
  $unknowns?: Uint8Array[];
24403
24418
  }
@@ -24528,6 +24543,123 @@ export namespace waproto {
24528
24543
  type $Shape = waproto.DeviceCapabilities.AiFbidMigration.$Properties;
24529
24544
  }
24530
24545
 
24546
+ /**
24547
+ * Properties of an AiMuseJarvisGzip.
24548
+ * @deprecated Use waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties instead.
24549
+ */
24550
+ interface IAiMuseJarvisGzip extends waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties {
24551
+ }
24552
+
24553
+ /** Represents an AiMuseJarvisGzip. */
24554
+ class AiMuseJarvisGzip {
24555
+
24556
+ /**
24557
+ * Constructs a new AiMuseJarvisGzip.
24558
+ * @param [properties] Properties to set
24559
+ */
24560
+ constructor(properties?: waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties);
24561
+
24562
+ /** Unknown fields preserved while decoding when enabled */
24563
+ $unknowns?: Uint8Array[];
24564
+
24565
+ /** AiMuseJarvisGzip supportVersion. */
24566
+ supportVersion?: (number|null);
24567
+
24568
+ /**
24569
+ * Creates a new AiMuseJarvisGzip instance using the specified properties.
24570
+ * @param [properties] Properties to set
24571
+ * @returns AiMuseJarvisGzip instance
24572
+ */
24573
+ static create(properties: waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape): waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape;
24574
+ static create(properties?: waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties): waproto.DeviceCapabilities.AiMuseJarvisGzip;
24575
+
24576
+ /**
24577
+ * Encodes the specified AiMuseJarvisGzip message. Does not implicitly {@link waproto.DeviceCapabilities.AiMuseJarvisGzip.verify|verify} messages.
24578
+ * @param message AiMuseJarvisGzip message or plain object to encode
24579
+ * @param [writer] Writer to encode to
24580
+ * @returns Writer
24581
+ */
24582
+ static encode(message: waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
24583
+
24584
+ /**
24585
+ * Encodes the specified AiMuseJarvisGzip message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.AiMuseJarvisGzip.verify|verify} messages.
24586
+ * @param message AiMuseJarvisGzip message or plain object to encode
24587
+ * @param [writer] Writer to encode to
24588
+ * @returns Writer
24589
+ */
24590
+ static encodeDelimited(message: waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
24591
+
24592
+ /**
24593
+ * Decodes an AiMuseJarvisGzip message from the specified reader or buffer.
24594
+ * @param reader Reader or buffer to decode from
24595
+ * @param [length] Message length if known beforehand
24596
+ * @returns {waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape} AiMuseJarvisGzip
24597
+ * @throws {Error} If the payload is not a reader or valid buffer
24598
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24599
+ */
24600
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape;
24601
+
24602
+ /**
24603
+ * Decodes an AiMuseJarvisGzip message from the specified reader or buffer, length delimited.
24604
+ * @param reader Reader or buffer to decode from
24605
+ * @returns {waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape} AiMuseJarvisGzip
24606
+ * @throws {Error} If the payload is not a reader or valid buffer
24607
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24608
+ */
24609
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape;
24610
+
24611
+ /**
24612
+ * Verifies an AiMuseJarvisGzip message.
24613
+ * @param message Plain object to verify
24614
+ * @returns `null` if valid, otherwise the reason why it is not
24615
+ */
24616
+ static verify(message: { [k: string]: any }): (string|null);
24617
+
24618
+ /**
24619
+ * Creates an AiMuseJarvisGzip message from a plain object. Also converts values to their respective internal types.
24620
+ * @param object Plain object
24621
+ * @returns AiMuseJarvisGzip
24622
+ */
24623
+ static fromObject(object: { [k: string]: any }): waproto.DeviceCapabilities.AiMuseJarvisGzip;
24624
+
24625
+ /**
24626
+ * Creates a plain object from an AiMuseJarvisGzip message. Also converts values to other types if specified.
24627
+ * @param message AiMuseJarvisGzip
24628
+ * @param [options] Conversion options
24629
+ * @returns Plain object
24630
+ */
24631
+ static toObject(message: waproto.DeviceCapabilities.AiMuseJarvisGzip, options?: $protobuf.IConversionOptions): { [k: string]: any };
24632
+
24633
+ /**
24634
+ * Converts this AiMuseJarvisGzip to JSON.
24635
+ * @returns JSON object
24636
+ */
24637
+ toJSON(): { [k: string]: any };
24638
+
24639
+ /**
24640
+ * Gets the type url for AiMuseJarvisGzip
24641
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
24642
+ * @returns The type url
24643
+ */
24644
+ static getTypeUrl(prefix?: string): string;
24645
+ }
24646
+
24647
+ namespace AiMuseJarvisGzip {
24648
+
24649
+ /** Properties of an AiMuseJarvisGzip. */
24650
+ interface $Properties {
24651
+
24652
+ /** AiMuseJarvisGzip supportVersion */
24653
+ supportVersion?: (number|null);
24654
+
24655
+ /** Unknown fields preserved while decoding when enabled */
24656
+ $unknowns?: Uint8Array[];
24657
+ }
24658
+
24659
+ /** Shape of an AiMuseJarvisGzip. */
24660
+ type $Shape = waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties;
24661
+ }
24662
+
24531
24663
  /**
24532
24664
  * Properties of an AiThread.
24533
24665
  * @deprecated Use waproto.DeviceCapabilities.AiThread.$Properties instead.
package/dist/index.js CHANGED
@@ -12631,6 +12631,7 @@ $root.waproto = (function() {
12631
12631
  * Properties of a AIRichResponseUnifiedResponse.
12632
12632
  * @typedef {Object} waproto.AIRichResponseUnifiedResponse.$Properties
12633
12633
  * @property {Uint8Array|null} [data] AIRichResponseUnifiedResponse data
12634
+ * @property {Uint8Array|null} [gzipData] AIRichResponseUnifiedResponse gzipData
12634
12635
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
12635
12636
  */
12636
12637
 
@@ -12670,6 +12671,14 @@ $root.waproto = (function() {
12670
12671
  */
12671
12672
  AIRichResponseUnifiedResponse.prototype.data = null;
12672
12673
 
12674
+ /**
12675
+ * AIRichResponseUnifiedResponse gzipData.
12676
+ * @member {Uint8Array|null|undefined} gzipData
12677
+ * @memberof waproto.AIRichResponseUnifiedResponse
12678
+ * @instance
12679
+ */
12680
+ AIRichResponseUnifiedResponse.prototype.gzipData = null;
12681
+
12673
12682
  // OneOf field names bound to virtual getters and setters
12674
12683
  var $oneOfFields;
12675
12684
 
@@ -12679,6 +12688,12 @@ $root.waproto = (function() {
12679
12688
  set: $util.oneOfSetter($oneOfFields)
12680
12689
  });
12681
12690
 
12691
+ // Virtual OneOf for proto3 optional field
12692
+ $Object.defineProperty(AIRichResponseUnifiedResponse.prototype, "_gzipData", {
12693
+ get: $util.oneOfGetter($oneOfFields = ["gzipData"]),
12694
+ set: $util.oneOfSetter($oneOfFields)
12695
+ });
12696
+
12682
12697
  /**
12683
12698
  * Creates a new AIRichResponseUnifiedResponse instance using the specified properties.
12684
12699
  * @function create
@@ -12713,6 +12728,8 @@ $root.waproto = (function() {
12713
12728
  throw $Error("max depth exceeded");
12714
12729
  if (message.data != null && $Object.hasOwnProperty.call(message, "data"))
12715
12730
  writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data);
12731
+ if (message.gzipData != null && $Object.hasOwnProperty.call(message, "gzipData"))
12732
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.gzipData);
12716
12733
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
12717
12734
  for (var i = 0; i < message.$unknowns.length; ++i)
12718
12735
  writer.raw(message.$unknowns[i]);
@@ -12777,6 +12794,13 @@ $root.waproto = (function() {
12777
12794
  message._data = "data";
12778
12795
  continue;
12779
12796
  }
12797
+ case 2: {
12798
+ if (wireType !== 2)
12799
+ break;
12800
+ message.gzipData = reader.bytes();
12801
+ message._gzipData = "gzipData";
12802
+ continue;
12803
+ }
12780
12804
  }
12781
12805
  reader.skipType(wireType, _depth, tag);
12782
12806
  if (!reader.discardUnknown) {
@@ -12831,6 +12855,11 @@ $root.waproto = (function() {
12831
12855
  if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data)))
12832
12856
  return "data: buffer expected";
12833
12857
  }
12858
+ if (message.gzipData != null && $Object.hasOwnProperty.call(message, "gzipData")) {
12859
+ properties._gzipData = 1;
12860
+ if (!(message.gzipData && typeof message.gzipData.length === "number" || $util.isString(message.gzipData)))
12861
+ return "gzipData: buffer expected";
12862
+ }
12834
12863
  return null;
12835
12864
  };
12836
12865
 
@@ -12857,6 +12886,11 @@ $root.waproto = (function() {
12857
12886
  $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0);
12858
12887
  else if (object.data.length >= 0)
12859
12888
  message.data = object.data;
12889
+ if (object.gzipData != null)
12890
+ if (typeof object.gzipData === "string")
12891
+ $util.base64.decode(object.gzipData, message.gzipData = $util.newBuffer($util.base64.length(object.gzipData)), 0);
12892
+ else if (object.gzipData.length >= 0)
12893
+ message.gzipData = object.gzipData;
12860
12894
  return message;
12861
12895
  };
12862
12896
 
@@ -12879,6 +12913,8 @@ $root.waproto = (function() {
12879
12913
  var object = {};
12880
12914
  if (message.data != null && $Object.hasOwnProperty.call(message, "data"))
12881
12915
  object.data = options.bytes === $String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.data) : message.data;
12916
+ if (message.gzipData != null && $Object.hasOwnProperty.call(message, "gzipData"))
12917
+ object.gzipData = options.bytes === $String ? $util.base64.encode(message.gzipData, 0, message.gzipData.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.gzipData) : message.gzipData;
12882
12918
  return object;
12883
12919
  };
12884
12920
 
@@ -20032,6 +20068,10 @@ $root.waproto = (function() {
20032
20068
  case 91:
20033
20069
  message.capabilities[message.capabilities.length] = 91;
20034
20070
  break;
20071
+ case "AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED":
20072
+ case 93:
20073
+ message.capabilities[message.capabilities.length] = 93;
20074
+ break;
20035
20075
  default:
20036
20076
  if (typeof object.capabilities[i] === "number" && (object.capabilities[i] | 0) === object.capabilities[i])
20037
20077
  message.capabilities[message.capabilities.length] = object.capabilities[i];
@@ -20188,6 +20228,7 @@ $root.waproto = (function() {
20188
20228
  * @property {number} RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH=89 RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH value
20189
20229
  * @property {number} AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED=90 AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED value
20190
20230
  * @property {number} AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED=91 AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED value
20231
+ * @property {number} AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED=93 AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED value
20191
20232
  */
20192
20233
  BotCapabilityMetadata.BotCapabilityType = (function() {
20193
20234
  var valuesById = $Object.create(null), values = $Object.create(valuesById);
@@ -20283,6 +20324,7 @@ $root.waproto = (function() {
20283
20324
  values[valuesById[89] = "RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH"] = 89;
20284
20325
  values[valuesById[90] = "AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED"] = 90;
20285
20326
  values[valuesById[91] = "AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED"] = 91;
20327
+ values[valuesById[93] = "AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED"] = 93;
20286
20328
  return values;
20287
20329
  })();
20288
20330
 
@@ -71746,6 +71788,7 @@ $root.waproto = (function() {
71746
71788
  * @property {waproto.DeviceCapabilities.BizAiWebOnboarding.$Properties|null} [bizAiWebOnboarding] DeviceCapabilities bizAiWebOnboarding
71747
71789
  * @property {waproto.DeviceCapabilities.PhoneNumberSharing.$Properties|null} [phoneNumberSharing] DeviceCapabilities phoneNumberSharing
71748
71790
  * @property {waproto.DeviceCapabilities.RecentConversationsOnDemand.$Properties|null} [recentConversationsOnDemand] DeviceCapabilities recentConversationsOnDemand
71791
+ * @property {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties|null} [aiMuseJarvisGzip] DeviceCapabilities aiMuseJarvisGzip
71749
71792
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
71750
71793
  */
71751
71794
 
@@ -71897,6 +71940,14 @@ $root.waproto = (function() {
71897
71940
  */
71898
71941
  DeviceCapabilities.prototype.recentConversationsOnDemand = null;
71899
71942
 
71943
+ /**
71944
+ * DeviceCapabilities aiMuseJarvisGzip.
71945
+ * @member {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties|null|undefined} aiMuseJarvisGzip
71946
+ * @memberof waproto.DeviceCapabilities
71947
+ * @instance
71948
+ */
71949
+ DeviceCapabilities.prototype.aiMuseJarvisGzip = null;
71950
+
71900
71951
  // OneOf field names bound to virtual getters and setters
71901
71952
  var $oneOfFields;
71902
71953
 
@@ -71990,6 +72041,12 @@ $root.waproto = (function() {
71990
72041
  set: $util.oneOfSetter($oneOfFields)
71991
72042
  });
71992
72043
 
72044
+ // Virtual OneOf for proto3 optional field
72045
+ $Object.defineProperty(DeviceCapabilities.prototype, "_aiMuseJarvisGzip", {
72046
+ get: $util.oneOfGetter($oneOfFields = ["aiMuseJarvisGzip"]),
72047
+ set: $util.oneOfSetter($oneOfFields)
72048
+ });
72049
+
71993
72050
  /**
71994
72051
  * Creates a new DeviceCapabilities instance using the specified properties.
71995
72052
  * @function create
@@ -72052,6 +72109,8 @@ $root.waproto = (function() {
72052
72109
  $root.waproto.DeviceCapabilities.PhoneNumberSharing.encode(message.phoneNumberSharing, writer.uint32(/* id 14, wireType 2 =*/114).fork(), _depth + 1).ldelim();
72053
72110
  if (message.recentConversationsOnDemand != null && $Object.hasOwnProperty.call(message, "recentConversationsOnDemand"))
72054
72111
  $root.waproto.DeviceCapabilities.RecentConversationsOnDemand.encode(message.recentConversationsOnDemand, writer.uint32(/* id 15, wireType 2 =*/122).fork(), _depth + 1).ldelim();
72112
+ if (message.aiMuseJarvisGzip != null && $Object.hasOwnProperty.call(message, "aiMuseJarvisGzip"))
72113
+ $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.encode(message.aiMuseJarvisGzip, writer.uint32(/* id 16, wireType 2 =*/130).fork(), _depth + 1).ldelim();
72055
72114
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
72056
72115
  for (var i = 0; i < message.$unknowns.length; ++i)
72057
72116
  writer.raw(message.$unknowns[i]);
@@ -72214,6 +72273,13 @@ $root.waproto = (function() {
72214
72273
  message._recentConversationsOnDemand = "recentConversationsOnDemand";
72215
72274
  continue;
72216
72275
  }
72276
+ case 16: {
72277
+ if (wireType !== 2)
72278
+ break;
72279
+ message.aiMuseJarvisGzip = $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.decode(reader, reader.size(), $undefined, _depth + 1, message.aiMuseJarvisGzip);
72280
+ message._aiMuseJarvisGzip = "aiMuseJarvisGzip";
72281
+ continue;
72282
+ }
72217
72283
  }
72218
72284
  reader.skipType(wireType, _depth, tag);
72219
72285
  if (!reader.discardUnknown) {
@@ -72377,6 +72443,14 @@ $root.waproto = (function() {
72377
72443
  return "recentConversationsOnDemand." + error;
72378
72444
  }
72379
72445
  }
72446
+ if (message.aiMuseJarvisGzip != null && $Object.hasOwnProperty.call(message, "aiMuseJarvisGzip")) {
72447
+ properties._aiMuseJarvisGzip = 1;
72448
+ {
72449
+ var error = $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.verify(message.aiMuseJarvisGzip, _depth + 1);
72450
+ if (error)
72451
+ return "aiMuseJarvisGzip." + error;
72452
+ }
72453
+ }
72380
72454
  return null;
72381
72455
  };
72382
72456
 
@@ -72497,6 +72571,11 @@ $root.waproto = (function() {
72497
72571
  throw $TypeError(".waproto.DeviceCapabilities.recentConversationsOnDemand: object expected");
72498
72572
  message.recentConversationsOnDemand = $root.waproto.DeviceCapabilities.RecentConversationsOnDemand.fromObject(object.recentConversationsOnDemand, _depth + 1);
72499
72573
  }
72574
+ if (object.aiMuseJarvisGzip != null) {
72575
+ if (!$util.isObject(object.aiMuseJarvisGzip))
72576
+ throw $TypeError(".waproto.DeviceCapabilities.aiMuseJarvisGzip: object expected");
72577
+ message.aiMuseJarvisGzip = $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.fromObject(object.aiMuseJarvisGzip, _depth + 1);
72578
+ }
72500
72579
  return message;
72501
72580
  };
72502
72581
 
@@ -72547,6 +72626,8 @@ $root.waproto = (function() {
72547
72626
  object.phoneNumberSharing = $root.waproto.DeviceCapabilities.PhoneNumberSharing.toObject(message.phoneNumberSharing, options, _depth + 1);
72548
72627
  if (message.recentConversationsOnDemand != null && $Object.hasOwnProperty.call(message, "recentConversationsOnDemand"))
72549
72628
  object.recentConversationsOnDemand = $root.waproto.DeviceCapabilities.RecentConversationsOnDemand.toObject(message.recentConversationsOnDemand, options, _depth + 1);
72629
+ if (message.aiMuseJarvisGzip != null && $Object.hasOwnProperty.call(message, "aiMuseJarvisGzip"))
72630
+ object.aiMuseJarvisGzip = $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.toObject(message.aiMuseJarvisGzip, options, _depth + 1);
72550
72631
  return object;
72551
72632
  };
72552
72633
 
@@ -72902,6 +72983,288 @@ $root.waproto = (function() {
72902
72983
  return AiFbidMigration;
72903
72984
  })();
72904
72985
 
72986
+ DeviceCapabilities.AiMuseJarvisGzip = (function() {
72987
+
72988
+ /**
72989
+ * Properties of an AiMuseJarvisGzip.
72990
+ * @typedef {Object} waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties
72991
+ * @property {number|null} [supportVersion] AiMuseJarvisGzip supportVersion
72992
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
72993
+ */
72994
+
72995
+ /**
72996
+ * Properties of an AiMuseJarvisGzip.
72997
+ * @memberof waproto.DeviceCapabilities
72998
+ * @interface IAiMuseJarvisGzip
72999
+ * @augments waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties
73000
+ * @deprecated Use waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties instead.
73001
+ */
73002
+
73003
+ /**
73004
+ * Shape of an AiMuseJarvisGzip.
73005
+ * @typedef {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties} waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape
73006
+ */
73007
+
73008
+ /**
73009
+ * Constructs a new AiMuseJarvisGzip.
73010
+ * @memberof waproto.DeviceCapabilities
73011
+ * @classdesc Represents an AiMuseJarvisGzip.
73012
+ * @constructor
73013
+ * @param {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties=} [properties] Properties to set
73014
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
73015
+ */
73016
+ var AiMuseJarvisGzip = function (properties) {
73017
+ if (properties)
73018
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
73019
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
73020
+ this[keys[i]] = properties[keys[i]];
73021
+ };
73022
+
73023
+ /**
73024
+ * AiMuseJarvisGzip supportVersion.
73025
+ * @member {number|null|undefined} supportVersion
73026
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73027
+ * @instance
73028
+ */
73029
+ AiMuseJarvisGzip.prototype.supportVersion = null;
73030
+
73031
+ // OneOf field names bound to virtual getters and setters
73032
+ var $oneOfFields;
73033
+
73034
+ // Virtual OneOf for proto3 optional field
73035
+ $Object.defineProperty(AiMuseJarvisGzip.prototype, "_supportVersion", {
73036
+ get: $util.oneOfGetter($oneOfFields = ["supportVersion"]),
73037
+ set: $util.oneOfSetter($oneOfFields)
73038
+ });
73039
+
73040
+ /**
73041
+ * Creates a new AiMuseJarvisGzip instance using the specified properties.
73042
+ * @function create
73043
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73044
+ * @static
73045
+ * @param {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties=} [properties] Properties to set
73046
+ * @returns {waproto.DeviceCapabilities.AiMuseJarvisGzip} AiMuseJarvisGzip instance
73047
+ * @type {{
73048
+ * (properties: waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape): waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape;
73049
+ * (properties?: waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties): waproto.DeviceCapabilities.AiMuseJarvisGzip;
73050
+ * }}
73051
+ */
73052
+ AiMuseJarvisGzip.create = function(properties) {
73053
+ return new AiMuseJarvisGzip(properties);
73054
+ };
73055
+
73056
+ /**
73057
+ * Encodes the specified AiMuseJarvisGzip message. Does not implicitly {@link waproto.DeviceCapabilities.AiMuseJarvisGzip.verify|verify} messages.
73058
+ * @function encode
73059
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73060
+ * @static
73061
+ * @param {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties} message AiMuseJarvisGzip message or plain object to encode
73062
+ * @param {$protobuf.Writer} [writer] Writer to encode to
73063
+ * @returns {$protobuf.Writer} Writer
73064
+ */
73065
+ AiMuseJarvisGzip.encode = function (message, writer, _depth) {
73066
+ if (!writer)
73067
+ writer = $Writer.create();
73068
+ if (_depth === $undefined)
73069
+ _depth = 0;
73070
+ if (_depth > $util.recursionLimit)
73071
+ throw $Error("max depth exceeded");
73072
+ if (message.supportVersion != null && $Object.hasOwnProperty.call(message, "supportVersion"))
73073
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.supportVersion);
73074
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
73075
+ for (var i = 0; i < message.$unknowns.length; ++i)
73076
+ writer.raw(message.$unknowns[i]);
73077
+ return writer;
73078
+ };
73079
+
73080
+ /**
73081
+ * Encodes the specified AiMuseJarvisGzip message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.AiMuseJarvisGzip.verify|verify} messages.
73082
+ * @function encodeDelimited
73083
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73084
+ * @static
73085
+ * @param {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties} message AiMuseJarvisGzip message or plain object to encode
73086
+ * @param {$protobuf.Writer} [writer] Writer to encode to
73087
+ * @returns {$protobuf.Writer} Writer
73088
+ */
73089
+ AiMuseJarvisGzip.encodeDelimited = function(message, writer) {
73090
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
73091
+ };
73092
+
73093
+ /**
73094
+ * Decodes an AiMuseJarvisGzip message from the specified reader or buffer.
73095
+ * @function decode
73096
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73097
+ * @static
73098
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73099
+ * @param {number} [length] Message length if known beforehand
73100
+ * @returns {waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape} AiMuseJarvisGzip
73101
+ * @throws {Error} If the payload is not a reader or valid buffer
73102
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
73103
+ */
73104
+ AiMuseJarvisGzip.decode = function (reader, length, _end, _depth, _target) {
73105
+ if (!(reader instanceof $Reader))
73106
+ reader = $Reader.create(reader);
73107
+ if (_depth === $undefined)
73108
+ _depth = 0;
73109
+ if (_depth > $Reader.recursionLimit)
73110
+ throw $Error("max depth exceeded");
73111
+ var end, message;
73112
+ if (length === $undefined)
73113
+ end = reader.len;
73114
+ else {
73115
+ end = reader.pos + length;
73116
+ if (end > reader.len)
73117
+ throw $RangeError("index out of range");
73118
+ length = reader.len;
73119
+ reader.len = end;
73120
+ }
73121
+ message = _target || new $root.waproto.DeviceCapabilities.AiMuseJarvisGzip();
73122
+ while (reader.pos < end) {
73123
+ var start = reader.pos;
73124
+ var tag = reader.tag();
73125
+ if (tag === _end) {
73126
+ _end = $undefined;
73127
+ break;
73128
+ }
73129
+ var wireType = tag & 7;
73130
+ switch (tag >>>= 3) {
73131
+ case 1: {
73132
+ if (wireType !== 0)
73133
+ break;
73134
+ message.supportVersion = reader.uint32();
73135
+ message._supportVersion = "supportVersion";
73136
+ continue;
73137
+ }
73138
+ }
73139
+ reader.skipType(wireType, _depth, tag);
73140
+ if (!reader.discardUnknown) {
73141
+ $util.makeProp(message, "$unknowns", false);
73142
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
73143
+ }
73144
+ }
73145
+ if (length !== $undefined) {
73146
+ if (reader.pos !== end)
73147
+ throw $RangeError("index out of range");
73148
+ reader.len = length;
73149
+ }
73150
+ if (_end !== $undefined)
73151
+ throw $Error("missing end group");
73152
+ return message;
73153
+ };
73154
+
73155
+ /**
73156
+ * Decodes an AiMuseJarvisGzip message from the specified reader or buffer, length delimited.
73157
+ * @function decodeDelimited
73158
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73159
+ * @static
73160
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73161
+ * @returns {waproto.DeviceCapabilities.AiMuseJarvisGzip & waproto.DeviceCapabilities.AiMuseJarvisGzip.$Shape} AiMuseJarvisGzip
73162
+ * @throws {Error} If the payload is not a reader or valid buffer
73163
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
73164
+ */
73165
+ AiMuseJarvisGzip.decodeDelimited = function(reader) {
73166
+ if (!(reader instanceof $Reader))
73167
+ reader = new $Reader(reader);
73168
+ return this.decode(reader, reader.size());
73169
+ };
73170
+
73171
+ /**
73172
+ * Verifies an AiMuseJarvisGzip message.
73173
+ * @function verify
73174
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73175
+ * @static
73176
+ * @param {Object.<string,*>} message Plain object to verify
73177
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
73178
+ */
73179
+ AiMuseJarvisGzip.verify = function (message, _depth) {
73180
+ if (typeof message !== "object" || message === null)
73181
+ return "object expected";
73182
+ if (_depth === $undefined)
73183
+ _depth = 0;
73184
+ if (_depth > $util.recursionLimit)
73185
+ return "max depth exceeded";
73186
+ var properties = {};
73187
+ if (message.supportVersion != null && $Object.hasOwnProperty.call(message, "supportVersion")) {
73188
+ properties._supportVersion = 1;
73189
+ if (!$util.isInteger(message.supportVersion))
73190
+ return "supportVersion: integer expected";
73191
+ }
73192
+ return null;
73193
+ };
73194
+
73195
+ /**
73196
+ * Creates an AiMuseJarvisGzip message from a plain object. Also converts values to their respective internal types.
73197
+ * @function fromObject
73198
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73199
+ * @static
73200
+ * @param {Object.<string,*>} object Plain object
73201
+ * @returns {waproto.DeviceCapabilities.AiMuseJarvisGzip} AiMuseJarvisGzip
73202
+ */
73203
+ AiMuseJarvisGzip.fromObject = function (object, _depth) {
73204
+ if (object instanceof $root.waproto.DeviceCapabilities.AiMuseJarvisGzip)
73205
+ return object;
73206
+ if (!$util.isObject(object))
73207
+ throw $TypeError(".waproto.DeviceCapabilities.AiMuseJarvisGzip: object expected");
73208
+ if (_depth === $undefined)
73209
+ _depth = 0;
73210
+ if (_depth > $util.recursionLimit)
73211
+ throw $Error("max depth exceeded");
73212
+ var message = new $root.waproto.DeviceCapabilities.AiMuseJarvisGzip();
73213
+ if (object.supportVersion != null)
73214
+ message.supportVersion = object.supportVersion >>> 0;
73215
+ return message;
73216
+ };
73217
+
73218
+ /**
73219
+ * Creates a plain object from an AiMuseJarvisGzip message. Also converts values to other types if specified.
73220
+ * @function toObject
73221
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73222
+ * @static
73223
+ * @param {waproto.DeviceCapabilities.AiMuseJarvisGzip} message AiMuseJarvisGzip
73224
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
73225
+ * @returns {Object.<string,*>} Plain object
73226
+ */
73227
+ AiMuseJarvisGzip.toObject = function (message, options, _depth) {
73228
+ if (!options)
73229
+ options = {};
73230
+ if (_depth === $undefined)
73231
+ _depth = 0;
73232
+ if (_depth > $util.recursionLimit)
73233
+ throw $Error("max depth exceeded");
73234
+ var object = {};
73235
+ if (message.supportVersion != null && $Object.hasOwnProperty.call(message, "supportVersion"))
73236
+ object.supportVersion = message.supportVersion;
73237
+ return object;
73238
+ };
73239
+
73240
+ /**
73241
+ * Converts this AiMuseJarvisGzip to JSON.
73242
+ * @function toJSON
73243
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73244
+ * @instance
73245
+ * @returns {Object.<string,*>} JSON object
73246
+ */
73247
+ AiMuseJarvisGzip.prototype.toJSON = function() {
73248
+ return AiMuseJarvisGzip.toObject(this, $protobuf.util.toJSONOptions);
73249
+ };
73250
+
73251
+ /**
73252
+ * Gets the type url for AiMuseJarvisGzip
73253
+ * @function getTypeUrl
73254
+ * @memberof waproto.DeviceCapabilities.AiMuseJarvisGzip
73255
+ * @static
73256
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
73257
+ * @returns {string} The type url
73258
+ */
73259
+ AiMuseJarvisGzip.getTypeUrl = function(prefix) {
73260
+ if (prefix === $undefined)
73261
+ prefix = "type.googleapis.com";
73262
+ return prefix + "/waproto.DeviceCapabilities.AiMuseJarvisGzip";
73263
+ };
73264
+
73265
+ return AiMuseJarvisGzip;
73266
+ })();
73267
+
72905
73268
  DeviceCapabilities.AiThread = (function() {
72906
73269
 
72907
73270
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1055640952",
3
+ "version": "2.3000.1055724655",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {