@wppconnect/wa-proto 2.3000.1047882213 → 2.3000.1047904925

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.1047882213
4
+ /// WhatsApp Version: 2.3000.1047904925
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -1680,6 +1680,7 @@ message ContextInfo {
1680
1680
  optional int32 agmSubtitleStrategy = 31;
1681
1681
  optional int32 agmHeaderInteractionStrategy = 32;
1682
1682
  optional bool containsCtwaFlowsAutoLabel = 33;
1683
+ optional string productId = 34;
1683
1684
  enum AdType {
1684
1685
  CTWA = 0;
1685
1686
  CAWC = 1;
@@ -4758,6 +4759,7 @@ enum MutationProps {
4758
4759
  SHARED_DEVICE_ALLOWLIST_ACTION = 94;
4759
4760
  CONTACT_MANAGER_METADATA_ACTION = 95;
4760
4761
  BUSINESS_FOLDER_ACTIVATION_ACTION = 96;
4762
+ GROUP_HISTORY_TOGGLE_ACTION = 97;
4761
4763
  SHARE_OWN_PN = 10001;
4762
4764
  BUSINESS_BROADCAST_ACTION = 10002;
4763
4765
  AI_THREAD_DELETE_ACTION = 10003;
@@ -5483,6 +5485,7 @@ message SyncActionValue {
5483
5485
  optional SharedDeviceAllowlistAction sharedDeviceAllowlistAction = 94;
5484
5486
  optional ContactManagerMetadataAction contactManagerMetadataAction = 95;
5485
5487
  optional BusinessFolderActivationAction businessFolderActivationAction = 96;
5488
+ optional GroupHistoryToggleAction groupHistoryToggleAction = 97;
5486
5489
  message AgentAction {
5487
5490
  optional string name = 1;
5488
5491
  optional int32 deviceId = 2;
@@ -5703,6 +5706,15 @@ message SyncActionValue {
5703
5706
 
5704
5707
  }
5705
5708
 
5709
+ message GroupHistoryToggleAction {
5710
+ optional GroupHistoryToggleMode groupHistoryToggleMode = 1;
5711
+ enum GroupHistoryToggleMode {
5712
+ GROUP_HISTORY_TOGGLE_MODE_UNKNOWN = 0;
5713
+ GROUP_HISTORY_TOGGLE_MODE_ON = 1;
5714
+ GROUP_HISTORY_TOGGLE_MODE_OFF = 2;
5715
+ }
5716
+ }
5717
+
5706
5718
  message InteractiveMessageAction {
5707
5719
  required InteractiveMessageActionMode type = 1;
5708
5720
  optional string agmId = 2;
package/dist/index.d.ts CHANGED
@@ -21716,6 +21716,9 @@ export namespace waproto {
21716
21716
  /** ExternalAdReplyInfo containsCtwaFlowsAutoLabel. */
21717
21717
  containsCtwaFlowsAutoLabel?: (boolean|null);
21718
21718
 
21719
+ /** ExternalAdReplyInfo productId. */
21720
+ productId?: (string|null);
21721
+
21719
21722
  /**
21720
21723
  * Creates a new ExternalAdReplyInfo instance using the specified properties.
21721
21724
  * @param [properties] Properties to set
@@ -21899,6 +21902,9 @@ export namespace waproto {
21899
21902
  /** ExternalAdReplyInfo containsCtwaFlowsAutoLabel */
21900
21903
  containsCtwaFlowsAutoLabel?: (boolean|null);
21901
21904
 
21905
+ /** ExternalAdReplyInfo productId */
21906
+ productId?: (string|null);
21907
+
21902
21908
  /** Unknown fields preserved while decoding when enabled */
21903
21909
  $unknowns?: Uint8Array[];
21904
21910
  }
@@ -64014,6 +64020,9 @@ export namespace waproto {
64014
64020
  /** BUSINESS_FOLDER_ACTIVATION_ACTION value */
64015
64021
  BUSINESS_FOLDER_ACTIVATION_ACTION = 96,
64016
64022
 
64023
+ /** GROUP_HISTORY_TOGGLE_ACTION value */
64024
+ GROUP_HISTORY_TOGGLE_ACTION = 97,
64025
+
64017
64026
  /** SHARE_OWN_PN value */
64018
64027
  SHARE_OWN_PN = 10001,
64019
64028
 
@@ -73926,6 +73935,9 @@ export namespace waproto {
73926
73935
  /** SyncActionValue businessFolderActivationAction. */
73927
73936
  businessFolderActivationAction?: (waproto.SyncActionValue.BusinessFolderActivationAction.$Properties|null);
73928
73937
 
73938
+ /** SyncActionValue groupHistoryToggleAction. */
73939
+ groupHistoryToggleAction?: (waproto.SyncActionValue.GroupHistoryToggleAction.$Properties|null);
73940
+
73929
73941
  /**
73930
73942
  * Creates a new SyncActionValue instance using the specified properties.
73931
73943
  * @param [properties] Properties to set
@@ -74271,6 +74283,9 @@ export namespace waproto {
74271
74283
  /** SyncActionValue businessFolderActivationAction */
74272
74284
  businessFolderActivationAction?: (waproto.SyncActionValue.BusinessFolderActivationAction.$Properties|null);
74273
74285
 
74286
+ /** SyncActionValue groupHistoryToggleAction */
74287
+ groupHistoryToggleAction?: (waproto.SyncActionValue.GroupHistoryToggleAction.$Properties|null);
74288
+
74274
74289
  /** Unknown fields preserved while decoding when enabled */
74275
74290
  $unknowns?: Uint8Array[];
74276
74291
  }
@@ -74364,6 +74379,7 @@ export namespace waproto {
74364
74379
  sharedDeviceAllowlistAction?: waproto.SyncActionValue.SharedDeviceAllowlistAction.$Shape|null;
74365
74380
  contactManagerMetadataAction?: waproto.SyncActionValue.ContactManagerMetadataAction.$Shape|null;
74366
74381
  businessFolderActivationAction?: waproto.SyncActionValue.BusinessFolderActivationAction.$Shape|null;
74382
+ groupHistoryToggleAction?: waproto.SyncActionValue.GroupHistoryToggleAction.$Shape|null;
74367
74383
  $unknowns?: Uint8Array[];
74368
74384
  };
74369
74385
 
@@ -78835,6 +78851,136 @@ export namespace waproto {
78835
78851
  }
78836
78852
  }
78837
78853
 
78854
+ /**
78855
+ * Properties of a GroupHistoryToggleAction.
78856
+ * @deprecated Use waproto.SyncActionValue.GroupHistoryToggleAction.$Properties instead.
78857
+ */
78858
+ interface IGroupHistoryToggleAction extends waproto.SyncActionValue.GroupHistoryToggleAction.$Properties {
78859
+ }
78860
+
78861
+ /** Represents a GroupHistoryToggleAction. */
78862
+ class GroupHistoryToggleAction {
78863
+
78864
+ /**
78865
+ * Constructs a new GroupHistoryToggleAction.
78866
+ * @param [properties] Properties to set
78867
+ */
78868
+ constructor(properties?: waproto.SyncActionValue.GroupHistoryToggleAction.$Properties);
78869
+
78870
+ /** Unknown fields preserved while decoding when enabled */
78871
+ $unknowns?: Uint8Array[];
78872
+
78873
+ /** GroupHistoryToggleAction groupHistoryToggleMode. */
78874
+ groupHistoryToggleMode?: (waproto.SyncActionValue.GroupHistoryToggleAction.GroupHistoryToggleMode|null);
78875
+
78876
+ /**
78877
+ * Creates a new GroupHistoryToggleAction instance using the specified properties.
78878
+ * @param [properties] Properties to set
78879
+ * @returns GroupHistoryToggleAction instance
78880
+ */
78881
+ static create(properties: waproto.SyncActionValue.GroupHistoryToggleAction.$Shape): waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape;
78882
+ static create(properties?: waproto.SyncActionValue.GroupHistoryToggleAction.$Properties): waproto.SyncActionValue.GroupHistoryToggleAction;
78883
+
78884
+ /**
78885
+ * Encodes the specified GroupHistoryToggleAction message. Does not implicitly {@link waproto.SyncActionValue.GroupHistoryToggleAction.verify|verify} messages.
78886
+ * @param message GroupHistoryToggleAction message or plain object to encode
78887
+ * @param [writer] Writer to encode to
78888
+ * @returns Writer
78889
+ */
78890
+ static encode(message: waproto.SyncActionValue.GroupHistoryToggleAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
78891
+
78892
+ /**
78893
+ * Encodes the specified GroupHistoryToggleAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.GroupHistoryToggleAction.verify|verify} messages.
78894
+ * @param message GroupHistoryToggleAction message or plain object to encode
78895
+ * @param [writer] Writer to encode to
78896
+ * @returns Writer
78897
+ */
78898
+ static encodeDelimited(message: waproto.SyncActionValue.GroupHistoryToggleAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
78899
+
78900
+ /**
78901
+ * Decodes a GroupHistoryToggleAction message from the specified reader or buffer.
78902
+ * @param reader Reader or buffer to decode from
78903
+ * @param [length] Message length if known beforehand
78904
+ * @returns {waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape} GroupHistoryToggleAction
78905
+ * @throws {Error} If the payload is not a reader or valid buffer
78906
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78907
+ */
78908
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape;
78909
+
78910
+ /**
78911
+ * Decodes a GroupHistoryToggleAction message from the specified reader or buffer, length delimited.
78912
+ * @param reader Reader or buffer to decode from
78913
+ * @returns {waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape} GroupHistoryToggleAction
78914
+ * @throws {Error} If the payload is not a reader or valid buffer
78915
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78916
+ */
78917
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape;
78918
+
78919
+ /**
78920
+ * Verifies a GroupHistoryToggleAction message.
78921
+ * @param message Plain object to verify
78922
+ * @returns `null` if valid, otherwise the reason why it is not
78923
+ */
78924
+ static verify(message: { [k: string]: any }): (string|null);
78925
+
78926
+ /**
78927
+ * Creates a GroupHistoryToggleAction message from a plain object. Also converts values to their respective internal types.
78928
+ * @param object Plain object
78929
+ * @returns GroupHistoryToggleAction
78930
+ */
78931
+ static fromObject(object: { [k: string]: any }): waproto.SyncActionValue.GroupHistoryToggleAction;
78932
+
78933
+ /**
78934
+ * Creates a plain object from a GroupHistoryToggleAction message. Also converts values to other types if specified.
78935
+ * @param message GroupHistoryToggleAction
78936
+ * @param [options] Conversion options
78937
+ * @returns Plain object
78938
+ */
78939
+ static toObject(message: waproto.SyncActionValue.GroupHistoryToggleAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
78940
+
78941
+ /**
78942
+ * Converts this GroupHistoryToggleAction to JSON.
78943
+ * @returns JSON object
78944
+ */
78945
+ toJSON(): { [k: string]: any };
78946
+
78947
+ /**
78948
+ * Gets the type url for GroupHistoryToggleAction
78949
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
78950
+ * @returns The type url
78951
+ */
78952
+ static getTypeUrl(prefix?: string): string;
78953
+ }
78954
+
78955
+ namespace GroupHistoryToggleAction {
78956
+
78957
+ /** Properties of a GroupHistoryToggleAction. */
78958
+ interface $Properties {
78959
+
78960
+ /** GroupHistoryToggleAction groupHistoryToggleMode */
78961
+ groupHistoryToggleMode?: (waproto.SyncActionValue.GroupHistoryToggleAction.GroupHistoryToggleMode|null);
78962
+
78963
+ /** Unknown fields preserved while decoding when enabled */
78964
+ $unknowns?: Uint8Array[];
78965
+ }
78966
+
78967
+ /** Shape of a GroupHistoryToggleAction. */
78968
+ type $Shape = waproto.SyncActionValue.GroupHistoryToggleAction.$Properties;
78969
+
78970
+ /** GroupHistoryToggleMode enum. */
78971
+ enum GroupHistoryToggleMode {
78972
+
78973
+ /** GROUP_HISTORY_TOGGLE_MODE_UNKNOWN value */
78974
+ GROUP_HISTORY_TOGGLE_MODE_UNKNOWN = 0,
78975
+
78976
+ /** GROUP_HISTORY_TOGGLE_MODE_ON value */
78977
+ GROUP_HISTORY_TOGGLE_MODE_ON = 1,
78978
+
78979
+ /** GROUP_HISTORY_TOGGLE_MODE_OFF value */
78980
+ GROUP_HISTORY_TOGGLE_MODE_OFF = 2
78981
+ }
78982
+ }
78983
+
78838
78984
  /**
78839
78985
  * Properties of an InteractiveMessageAction.
78840
78986
  * @deprecated Use waproto.SyncActionValue.InteractiveMessageAction.$Properties instead.
package/dist/index.js CHANGED
@@ -62918,6 +62918,7 @@ $root.waproto = (function() {
62918
62918
  * @property {number|null} [agmSubtitleStrategy] ExternalAdReplyInfo agmSubtitleStrategy
62919
62919
  * @property {number|null} [agmHeaderInteractionStrategy] ExternalAdReplyInfo agmHeaderInteractionStrategy
62920
62920
  * @property {boolean|null} [containsCtwaFlowsAutoLabel] ExternalAdReplyInfo containsCtwaFlowsAutoLabel
62921
+ * @property {string|null} [productId] ExternalAdReplyInfo productId
62921
62922
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
62922
62923
  */
62923
62924
 
@@ -63213,6 +63214,14 @@ $root.waproto = (function() {
63213
63214
  */
63214
63215
  ExternalAdReplyInfo.prototype.containsCtwaFlowsAutoLabel = null;
63215
63216
 
63217
+ /**
63218
+ * ExternalAdReplyInfo productId.
63219
+ * @member {string|null|undefined} productId
63220
+ * @memberof waproto.ContextInfo.ExternalAdReplyInfo
63221
+ * @instance
63222
+ */
63223
+ ExternalAdReplyInfo.prototype.productId = null;
63224
+
63216
63225
  // OneOf field names bound to virtual getters and setters
63217
63226
  var $oneOfFields;
63218
63227
 
@@ -63414,6 +63423,12 @@ $root.waproto = (function() {
63414
63423
  set: $util.oneOfSetter($oneOfFields)
63415
63424
  });
63416
63425
 
63426
+ // Virtual OneOf for proto3 optional field
63427
+ $Object.defineProperty(ExternalAdReplyInfo.prototype, "_productId", {
63428
+ get: $util.oneOfGetter($oneOfFields = ["productId"]),
63429
+ set: $util.oneOfSetter($oneOfFields)
63430
+ });
63431
+
63417
63432
  /**
63418
63433
  * Creates a new ExternalAdReplyInfo instance using the specified properties.
63419
63434
  * @function create
@@ -63512,6 +63527,8 @@ $root.waproto = (function() {
63512
63527
  writer.uint32(/* id 32, wireType 0 =*/256).int32(message.agmHeaderInteractionStrategy);
63513
63528
  if (message.containsCtwaFlowsAutoLabel != null && $Object.hasOwnProperty.call(message, "containsCtwaFlowsAutoLabel"))
63514
63529
  writer.uint32(/* id 33, wireType 0 =*/264).bool(message.containsCtwaFlowsAutoLabel);
63530
+ if (message.productId != null && $Object.hasOwnProperty.call(message, "productId"))
63531
+ writer.uint32(/* id 34, wireType 2 =*/274).string(message.productId);
63515
63532
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
63516
63533
  for (var i = 0; i < message.$unknowns.length; ++i)
63517
63534
  writer.raw(message.$unknowns[i]);
@@ -63800,6 +63817,13 @@ $root.waproto = (function() {
63800
63817
  message._containsCtwaFlowsAutoLabel = "containsCtwaFlowsAutoLabel";
63801
63818
  continue;
63802
63819
  }
63820
+ case 34: {
63821
+ if (wireType !== 2)
63822
+ break;
63823
+ message.productId = reader.stringVerify();
63824
+ message._productId = "productId";
63825
+ continue;
63826
+ }
63803
63827
  }
63804
63828
  reader.skipType(wireType, _depth, tag);
63805
63829
  if (!reader.discardUnknown) {
@@ -64014,6 +64038,11 @@ $root.waproto = (function() {
64014
64038
  if (typeof message.containsCtwaFlowsAutoLabel !== "boolean")
64015
64039
  return "containsCtwaFlowsAutoLabel: boolean expected";
64016
64040
  }
64041
+ if (message.productId != null && $Object.hasOwnProperty.call(message, "productId")) {
64042
+ properties._productId = 1;
64043
+ if (!$util.isString(message.productId))
64044
+ return "productId: string expected";
64045
+ }
64017
64046
  return null;
64018
64047
  };
64019
64048
 
@@ -64130,6 +64159,8 @@ $root.waproto = (function() {
64130
64159
  message.agmHeaderInteractionStrategy = object.agmHeaderInteractionStrategy | 0;
64131
64160
  if (object.containsCtwaFlowsAutoLabel != null)
64132
64161
  message.containsCtwaFlowsAutoLabel = $Boolean(object.containsCtwaFlowsAutoLabel);
64162
+ if (object.productId != null)
64163
+ message.productId = $String(object.productId);
64133
64164
  return message;
64134
64165
  };
64135
64166
 
@@ -64216,6 +64247,8 @@ $root.waproto = (function() {
64216
64247
  object.agmHeaderInteractionStrategy = message.agmHeaderInteractionStrategy;
64217
64248
  if (message.containsCtwaFlowsAutoLabel != null && $Object.hasOwnProperty.call(message, "containsCtwaFlowsAutoLabel"))
64218
64249
  object.containsCtwaFlowsAutoLabel = message.containsCtwaFlowsAutoLabel;
64250
+ if (message.productId != null && $Object.hasOwnProperty.call(message, "productId"))
64251
+ object.productId = message.productId;
64219
64252
  return object;
64220
64253
  };
64221
64254
 
@@ -192314,6 +192347,7 @@ $root.waproto = (function() {
192314
192347
  * @property {number} SHARED_DEVICE_ALLOWLIST_ACTION=94 SHARED_DEVICE_ALLOWLIST_ACTION value
192315
192348
  * @property {number} CONTACT_MANAGER_METADATA_ACTION=95 CONTACT_MANAGER_METADATA_ACTION value
192316
192349
  * @property {number} BUSINESS_FOLDER_ACTIVATION_ACTION=96 BUSINESS_FOLDER_ACTIVATION_ACTION value
192350
+ * @property {number} GROUP_HISTORY_TOGGLE_ACTION=97 GROUP_HISTORY_TOGGLE_ACTION value
192317
192351
  * @property {number} SHARE_OWN_PN=10001 SHARE_OWN_PN value
192318
192352
  * @property {number} BUSINESS_BROADCAST_ACTION=10002 BUSINESS_BROADCAST_ACTION value
192319
192353
  * @property {number} AI_THREAD_DELETE_ACTION=10003 AI_THREAD_DELETE_ACTION value
@@ -192410,6 +192444,7 @@ $root.waproto = (function() {
192410
192444
  values[valuesById[94] = "SHARED_DEVICE_ALLOWLIST_ACTION"] = 94;
192411
192445
  values[valuesById[95] = "CONTACT_MANAGER_METADATA_ACTION"] = 95;
192412
192446
  values[valuesById[96] = "BUSINESS_FOLDER_ACTIVATION_ACTION"] = 96;
192447
+ values[valuesById[97] = "GROUP_HISTORY_TOGGLE_ACTION"] = 97;
192413
192448
  values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
192414
192449
  values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
192415
192450
  values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
@@ -219979,6 +220014,7 @@ $root.waproto = (function() {
219979
220014
  * @property {waproto.SyncActionValue.SharedDeviceAllowlistAction.$Properties|null} [sharedDeviceAllowlistAction] SyncActionValue sharedDeviceAllowlistAction
219980
220015
  * @property {waproto.SyncActionValue.ContactManagerMetadataAction.$Properties|null} [contactManagerMetadataAction] SyncActionValue contactManagerMetadataAction
219981
220016
  * @property {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties|null} [businessFolderActivationAction] SyncActionValue businessFolderActivationAction
220017
+ * @property {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties|null} [groupHistoryToggleAction] SyncActionValue groupHistoryToggleAction
219982
220018
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
219983
220019
  */
219984
220020
 
@@ -220080,6 +220116,7 @@ $root.waproto = (function() {
220080
220116
  * sharedDeviceAllowlistAction?: waproto.SyncActionValue.SharedDeviceAllowlistAction.$Shape|null;
220081
220117
  * contactManagerMetadataAction?: waproto.SyncActionValue.ContactManagerMetadataAction.$Shape|null;
220082
220118
  * businessFolderActivationAction?: waproto.SyncActionValue.BusinessFolderActivationAction.$Shape|null;
220119
+ * groupHistoryToggleAction?: waproto.SyncActionValue.GroupHistoryToggleAction.$Shape|null;
220083
220120
  * $unknowns?: Array.<Uint8Array>;
220084
220121
  * }} waproto.SyncActionValue.$Shape
220085
220122
  */
@@ -220795,6 +220832,14 @@ $root.waproto = (function() {
220795
220832
  */
220796
220833
  SyncActionValue.prototype.businessFolderActivationAction = null;
220797
220834
 
220835
+ /**
220836
+ * SyncActionValue groupHistoryToggleAction.
220837
+ * @member {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties|null|undefined} groupHistoryToggleAction
220838
+ * @memberof waproto.SyncActionValue
220839
+ * @instance
220840
+ */
220841
+ SyncActionValue.prototype.groupHistoryToggleAction = null;
220842
+
220798
220843
  // OneOf field names bound to virtual getters and setters
220799
220844
  var $oneOfFields;
220800
220845
 
@@ -221320,6 +221365,12 @@ $root.waproto = (function() {
221320
221365
  set: $util.oneOfSetter($oneOfFields)
221321
221366
  });
221322
221367
 
221368
+ // Virtual OneOf for proto3 optional field
221369
+ $Object.defineProperty(SyncActionValue.prototype, "_groupHistoryToggleAction", {
221370
+ get: $util.oneOfGetter($oneOfFields = ["groupHistoryToggleAction"]),
221371
+ set: $util.oneOfSetter($oneOfFields)
221372
+ });
221373
+
221323
221374
  /**
221324
221375
  * Creates a new SyncActionValue instance using the specified properties.
221325
221376
  * @function create
@@ -221526,6 +221577,8 @@ $root.waproto = (function() {
221526
221577
  $root.waproto.SyncActionValue.ContactManagerMetadataAction.encode(message.contactManagerMetadataAction, writer.uint32(/* id 95, wireType 2 =*/762).fork(), _depth + 1).ldelim();
221527
221578
  if (message.businessFolderActivationAction != null && $Object.hasOwnProperty.call(message, "businessFolderActivationAction"))
221528
221579
  $root.waproto.SyncActionValue.BusinessFolderActivationAction.encode(message.businessFolderActivationAction, writer.uint32(/* id 96, wireType 2 =*/770).fork(), _depth + 1).ldelim();
221580
+ if (message.groupHistoryToggleAction != null && $Object.hasOwnProperty.call(message, "groupHistoryToggleAction"))
221581
+ $root.waproto.SyncActionValue.GroupHistoryToggleAction.encode(message.groupHistoryToggleAction, writer.uint32(/* id 97, wireType 2 =*/778).fork(), _depth + 1).ldelim();
221529
221582
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
221530
221583
  for (var i = 0; i < message.$unknowns.length; ++i)
221531
221584
  writer.raw(message.$unknowns[i]);
@@ -222192,6 +222245,13 @@ $root.waproto = (function() {
222192
222245
  message._businessFolderActivationAction = "businessFolderActivationAction";
222193
222246
  continue;
222194
222247
  }
222248
+ case 97: {
222249
+ if (wireType !== 2)
222250
+ break;
222251
+ message.groupHistoryToggleAction = $root.waproto.SyncActionValue.GroupHistoryToggleAction.decode(reader, reader.uint32(), $undefined, _depth + 1, message.groupHistoryToggleAction);
222252
+ message._groupHistoryToggleAction = "groupHistoryToggleAction";
222253
+ continue;
222254
+ }
222195
222255
  }
222196
222256
  reader.skipType(wireType, _depth, tag);
222197
222257
  if (!reader.discardUnknown) {
@@ -222934,6 +222994,14 @@ $root.waproto = (function() {
222934
222994
  return "businessFolderActivationAction." + error;
222935
222995
  }
222936
222996
  }
222997
+ if (message.groupHistoryToggleAction != null && $Object.hasOwnProperty.call(message, "groupHistoryToggleAction")) {
222998
+ properties._groupHistoryToggleAction = 1;
222999
+ {
223000
+ var error = $root.waproto.SyncActionValue.GroupHistoryToggleAction.verify(message.groupHistoryToggleAction, _depth + 1);
223001
+ if (error)
223002
+ return "groupHistoryToggleAction." + error;
223003
+ }
223004
+ }
222937
223005
  return null;
222938
223006
  };
222939
223007
 
@@ -223394,6 +223462,11 @@ $root.waproto = (function() {
223394
223462
  throw $TypeError(".waproto.SyncActionValue.businessFolderActivationAction: object expected");
223395
223463
  message.businessFolderActivationAction = $root.waproto.SyncActionValue.BusinessFolderActivationAction.fromObject(object.businessFolderActivationAction, _depth + 1);
223396
223464
  }
223465
+ if (object.groupHistoryToggleAction != null) {
223466
+ if (!$util.isObject(object.groupHistoryToggleAction))
223467
+ throw $TypeError(".waproto.SyncActionValue.groupHistoryToggleAction: object expected");
223468
+ message.groupHistoryToggleAction = $root.waproto.SyncActionValue.GroupHistoryToggleAction.fromObject(object.groupHistoryToggleAction, _depth + 1);
223469
+ }
223397
223470
  return message;
223398
223471
  };
223399
223472
 
@@ -223593,6 +223666,8 @@ $root.waproto = (function() {
223593
223666
  object.contactManagerMetadataAction = $root.waproto.SyncActionValue.ContactManagerMetadataAction.toObject(message.contactManagerMetadataAction, options, _depth + 1);
223594
223667
  if (message.businessFolderActivationAction != null && $Object.hasOwnProperty.call(message, "businessFolderActivationAction"))
223595
223668
  object.businessFolderActivationAction = $root.waproto.SyncActionValue.BusinessFolderActivationAction.toObject(message.businessFolderActivationAction, options, _depth + 1);
223669
+ if (message.groupHistoryToggleAction != null && $Object.hasOwnProperty.call(message, "groupHistoryToggleAction"))
223670
+ object.groupHistoryToggleAction = $root.waproto.SyncActionValue.GroupHistoryToggleAction.toObject(message.groupHistoryToggleAction, options, _depth + 1);
223596
223671
  return object;
223597
223672
  };
223598
223673
 
@@ -235408,6 +235483,319 @@ $root.waproto = (function() {
235408
235483
  return FavoritesAction;
235409
235484
  })();
235410
235485
 
235486
+ SyncActionValue.GroupHistoryToggleAction = (function() {
235487
+
235488
+ /**
235489
+ * Properties of a GroupHistoryToggleAction.
235490
+ * @typedef {Object} waproto.SyncActionValue.GroupHistoryToggleAction.$Properties
235491
+ * @property {waproto.SyncActionValue.GroupHistoryToggleAction.GroupHistoryToggleMode|null} [groupHistoryToggleMode] GroupHistoryToggleAction groupHistoryToggleMode
235492
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
235493
+ */
235494
+
235495
+ /**
235496
+ * Properties of a GroupHistoryToggleAction.
235497
+ * @memberof waproto.SyncActionValue
235498
+ * @interface IGroupHistoryToggleAction
235499
+ * @augments waproto.SyncActionValue.GroupHistoryToggleAction.$Properties
235500
+ * @deprecated Use waproto.SyncActionValue.GroupHistoryToggleAction.$Properties instead.
235501
+ */
235502
+
235503
+ /**
235504
+ * Shape of a GroupHistoryToggleAction.
235505
+ * @typedef {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties} waproto.SyncActionValue.GroupHistoryToggleAction.$Shape
235506
+ */
235507
+
235508
+ /**
235509
+ * Constructs a new GroupHistoryToggleAction.
235510
+ * @memberof waproto.SyncActionValue
235511
+ * @classdesc Represents a GroupHistoryToggleAction.
235512
+ * @constructor
235513
+ * @param {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties=} [properties] Properties to set
235514
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
235515
+ */
235516
+ var GroupHistoryToggleAction = function (properties) {
235517
+ if (properties)
235518
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
235519
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
235520
+ this[keys[i]] = properties[keys[i]];
235521
+ };
235522
+
235523
+ /**
235524
+ * GroupHistoryToggleAction groupHistoryToggleMode.
235525
+ * @member {waproto.SyncActionValue.GroupHistoryToggleAction.GroupHistoryToggleMode|null|undefined} groupHistoryToggleMode
235526
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235527
+ * @instance
235528
+ */
235529
+ GroupHistoryToggleAction.prototype.groupHistoryToggleMode = null;
235530
+
235531
+ // OneOf field names bound to virtual getters and setters
235532
+ var $oneOfFields;
235533
+
235534
+ // Virtual OneOf for proto3 optional field
235535
+ $Object.defineProperty(GroupHistoryToggleAction.prototype, "_groupHistoryToggleMode", {
235536
+ get: $util.oneOfGetter($oneOfFields = ["groupHistoryToggleMode"]),
235537
+ set: $util.oneOfSetter($oneOfFields)
235538
+ });
235539
+
235540
+ /**
235541
+ * Creates a new GroupHistoryToggleAction instance using the specified properties.
235542
+ * @function create
235543
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235544
+ * @static
235545
+ * @param {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties=} [properties] Properties to set
235546
+ * @returns {waproto.SyncActionValue.GroupHistoryToggleAction} GroupHistoryToggleAction instance
235547
+ * @type {{
235548
+ * (properties: waproto.SyncActionValue.GroupHistoryToggleAction.$Shape): waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape;
235549
+ * (properties?: waproto.SyncActionValue.GroupHistoryToggleAction.$Properties): waproto.SyncActionValue.GroupHistoryToggleAction;
235550
+ * }}
235551
+ */
235552
+ GroupHistoryToggleAction.create = function(properties) {
235553
+ return new GroupHistoryToggleAction(properties);
235554
+ };
235555
+
235556
+ /**
235557
+ * Encodes the specified GroupHistoryToggleAction message. Does not implicitly {@link waproto.SyncActionValue.GroupHistoryToggleAction.verify|verify} messages.
235558
+ * @function encode
235559
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235560
+ * @static
235561
+ * @param {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties} message GroupHistoryToggleAction message or plain object to encode
235562
+ * @param {$protobuf.Writer} [writer] Writer to encode to
235563
+ * @returns {$protobuf.Writer} Writer
235564
+ */
235565
+ GroupHistoryToggleAction.encode = function (message, writer, _depth) {
235566
+ if (!writer)
235567
+ writer = $Writer.create();
235568
+ if (_depth === $undefined)
235569
+ _depth = 0;
235570
+ if (_depth > $util.recursionLimit)
235571
+ throw $Error("max depth exceeded");
235572
+ if (message.groupHistoryToggleMode != null && $Object.hasOwnProperty.call(message, "groupHistoryToggleMode"))
235573
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.groupHistoryToggleMode);
235574
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
235575
+ for (var i = 0; i < message.$unknowns.length; ++i)
235576
+ writer.raw(message.$unknowns[i]);
235577
+ return writer;
235578
+ };
235579
+
235580
+ /**
235581
+ * Encodes the specified GroupHistoryToggleAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.GroupHistoryToggleAction.verify|verify} messages.
235582
+ * @function encodeDelimited
235583
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235584
+ * @static
235585
+ * @param {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties} message GroupHistoryToggleAction message or plain object to encode
235586
+ * @param {$protobuf.Writer} [writer] Writer to encode to
235587
+ * @returns {$protobuf.Writer} Writer
235588
+ */
235589
+ GroupHistoryToggleAction.encodeDelimited = function(message, writer) {
235590
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
235591
+ };
235592
+
235593
+ /**
235594
+ * Decodes a GroupHistoryToggleAction message from the specified reader or buffer.
235595
+ * @function decode
235596
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235597
+ * @static
235598
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
235599
+ * @param {number} [length] Message length if known beforehand
235600
+ * @returns {waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape} GroupHistoryToggleAction
235601
+ * @throws {Error} If the payload is not a reader or valid buffer
235602
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
235603
+ */
235604
+ GroupHistoryToggleAction.decode = function (reader, length, _end, _depth, _target) {
235605
+ if (!(reader instanceof $Reader))
235606
+ reader = $Reader.create(reader);
235607
+ if (_depth === $undefined)
235608
+ _depth = 0;
235609
+ if (_depth > $Reader.recursionLimit)
235610
+ throw $Error("max depth exceeded");
235611
+ var end, message, value;
235612
+ if (length === $undefined)
235613
+ end = reader.len;
235614
+ else {
235615
+ end = reader.pos + length;
235616
+ if (end > reader.len)
235617
+ throw $RangeError("index out of range");
235618
+ length = reader.len;
235619
+ reader.len = end;
235620
+ }
235621
+ message = _target || new $root.waproto.SyncActionValue.GroupHistoryToggleAction();
235622
+ while (reader.pos < end) {
235623
+ var start = reader.pos;
235624
+ var tag = reader.tag();
235625
+ if (tag === _end) {
235626
+ _end = $undefined;
235627
+ break;
235628
+ }
235629
+ var wireType = tag & 7;
235630
+ switch (tag >>>= 3) {
235631
+ case 1: {
235632
+ if (wireType !== 0)
235633
+ break;
235634
+ message.groupHistoryToggleMode = reader.int32();
235635
+ message._groupHistoryToggleMode = "groupHistoryToggleMode";
235636
+ continue;
235637
+ }
235638
+ }
235639
+ reader.skipType(wireType, _depth, tag);
235640
+ if (!reader.discardUnknown) {
235641
+ $util.makeProp(message, "$unknowns", false);
235642
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
235643
+ }
235644
+ }
235645
+ if (length !== $undefined) {
235646
+ if (reader.pos !== end)
235647
+ throw $RangeError("index out of range");
235648
+ reader.len = length;
235649
+ }
235650
+ if (_end !== $undefined)
235651
+ throw $Error("missing end group");
235652
+ return message;
235653
+ };
235654
+
235655
+ /**
235656
+ * Decodes a GroupHistoryToggleAction message from the specified reader or buffer, length delimited.
235657
+ * @function decodeDelimited
235658
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235659
+ * @static
235660
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
235661
+ * @returns {waproto.SyncActionValue.GroupHistoryToggleAction & waproto.SyncActionValue.GroupHistoryToggleAction.$Shape} GroupHistoryToggleAction
235662
+ * @throws {Error} If the payload is not a reader or valid buffer
235663
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
235664
+ */
235665
+ GroupHistoryToggleAction.decodeDelimited = function(reader) {
235666
+ if (!(reader instanceof $Reader))
235667
+ reader = new $Reader(reader);
235668
+ return this.decode(reader, reader.uint32());
235669
+ };
235670
+
235671
+ /**
235672
+ * Verifies a GroupHistoryToggleAction message.
235673
+ * @function verify
235674
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235675
+ * @static
235676
+ * @param {Object.<string,*>} message Plain object to verify
235677
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
235678
+ */
235679
+ GroupHistoryToggleAction.verify = function (message, _depth) {
235680
+ if (typeof message !== "object" || message === null)
235681
+ return "object expected";
235682
+ if (_depth === $undefined)
235683
+ _depth = 0;
235684
+ if (_depth > $util.recursionLimit)
235685
+ return "max depth exceeded";
235686
+ var properties = {};
235687
+ if (message.groupHistoryToggleMode != null && $Object.hasOwnProperty.call(message, "groupHistoryToggleMode")) {
235688
+ properties._groupHistoryToggleMode = 1;
235689
+ if (typeof message.groupHistoryToggleMode !== "number" || (message.groupHistoryToggleMode | 0) !== message.groupHistoryToggleMode)
235690
+ return "groupHistoryToggleMode: enum value expected";
235691
+ }
235692
+ return null;
235693
+ };
235694
+
235695
+ /**
235696
+ * Creates a GroupHistoryToggleAction message from a plain object. Also converts values to their respective internal types.
235697
+ * @function fromObject
235698
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235699
+ * @static
235700
+ * @param {Object.<string,*>} object Plain object
235701
+ * @returns {waproto.SyncActionValue.GroupHistoryToggleAction} GroupHistoryToggleAction
235702
+ */
235703
+ GroupHistoryToggleAction.fromObject = function (object, _depth) {
235704
+ if (object instanceof $root.waproto.SyncActionValue.GroupHistoryToggleAction)
235705
+ return object;
235706
+ if (!$util.isObject(object))
235707
+ throw $TypeError(".waproto.SyncActionValue.GroupHistoryToggleAction: object expected");
235708
+ if (_depth === $undefined)
235709
+ _depth = 0;
235710
+ if (_depth > $util.recursionLimit)
235711
+ throw $Error("max depth exceeded");
235712
+ var message = new $root.waproto.SyncActionValue.GroupHistoryToggleAction();
235713
+ switch (object.groupHistoryToggleMode) {
235714
+ case "GROUP_HISTORY_TOGGLE_MODE_UNKNOWN":
235715
+ case 0:
235716
+ message.groupHistoryToggleMode = 0;
235717
+ break;
235718
+ case "GROUP_HISTORY_TOGGLE_MODE_ON":
235719
+ case 1:
235720
+ message.groupHistoryToggleMode = 1;
235721
+ break;
235722
+ case "GROUP_HISTORY_TOGGLE_MODE_OFF":
235723
+ case 2:
235724
+ message.groupHistoryToggleMode = 2;
235725
+ break;
235726
+ default:
235727
+ if (typeof object.groupHistoryToggleMode === "number" && (object.groupHistoryToggleMode | 0) === object.groupHistoryToggleMode)
235728
+ message.groupHistoryToggleMode = object.groupHistoryToggleMode;
235729
+ }
235730
+ return message;
235731
+ };
235732
+
235733
+ /**
235734
+ * Creates a plain object from a GroupHistoryToggleAction message. Also converts values to other types if specified.
235735
+ * @function toObject
235736
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235737
+ * @static
235738
+ * @param {waproto.SyncActionValue.GroupHistoryToggleAction} message GroupHistoryToggleAction
235739
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
235740
+ * @returns {Object.<string,*>} Plain object
235741
+ */
235742
+ GroupHistoryToggleAction.toObject = function (message, options, _depth) {
235743
+ if (!options)
235744
+ options = {};
235745
+ if (_depth === $undefined)
235746
+ _depth = 0;
235747
+ if (_depth > $util.recursionLimit)
235748
+ throw $Error("max depth exceeded");
235749
+ var object = {};
235750
+ if (message.groupHistoryToggleMode != null && $Object.hasOwnProperty.call(message, "groupHistoryToggleMode"))
235751
+ object.groupHistoryToggleMode = options.enums === $String ? $root.waproto.SyncActionValue.GroupHistoryToggleAction.GroupHistoryToggleMode[message.groupHistoryToggleMode] === $undefined ? message.groupHistoryToggleMode : $root.waproto.SyncActionValue.GroupHistoryToggleAction.GroupHistoryToggleMode[message.groupHistoryToggleMode] : message.groupHistoryToggleMode;
235752
+ return object;
235753
+ };
235754
+
235755
+ /**
235756
+ * Converts this GroupHistoryToggleAction to JSON.
235757
+ * @function toJSON
235758
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235759
+ * @instance
235760
+ * @returns {Object.<string,*>} JSON object
235761
+ */
235762
+ GroupHistoryToggleAction.prototype.toJSON = function() {
235763
+ return GroupHistoryToggleAction.toObject(this, $protobuf.util.toJSONOptions);
235764
+ };
235765
+
235766
+ /**
235767
+ * Gets the type url for GroupHistoryToggleAction
235768
+ * @function getTypeUrl
235769
+ * @memberof waproto.SyncActionValue.GroupHistoryToggleAction
235770
+ * @static
235771
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
235772
+ * @returns {string} The type url
235773
+ */
235774
+ GroupHistoryToggleAction.getTypeUrl = function(prefix) {
235775
+ if (prefix === $undefined)
235776
+ prefix = "type.googleapis.com";
235777
+ return prefix + "/waproto.SyncActionValue.GroupHistoryToggleAction";
235778
+ };
235779
+
235780
+ /**
235781
+ * GroupHistoryToggleMode enum.
235782
+ * @name waproto.SyncActionValue.GroupHistoryToggleAction.GroupHistoryToggleMode
235783
+ * @enum {number}
235784
+ * @property {number} GROUP_HISTORY_TOGGLE_MODE_UNKNOWN=0 GROUP_HISTORY_TOGGLE_MODE_UNKNOWN value
235785
+ * @property {number} GROUP_HISTORY_TOGGLE_MODE_ON=1 GROUP_HISTORY_TOGGLE_MODE_ON value
235786
+ * @property {number} GROUP_HISTORY_TOGGLE_MODE_OFF=2 GROUP_HISTORY_TOGGLE_MODE_OFF value
235787
+ */
235788
+ GroupHistoryToggleAction.GroupHistoryToggleMode = (function() {
235789
+ var valuesById = $Object.create(null), values = $Object.create(valuesById);
235790
+ values[valuesById[0] = "GROUP_HISTORY_TOGGLE_MODE_UNKNOWN"] = 0;
235791
+ values[valuesById[1] = "GROUP_HISTORY_TOGGLE_MODE_ON"] = 1;
235792
+ values[valuesById[2] = "GROUP_HISTORY_TOGGLE_MODE_OFF"] = 2;
235793
+ return values;
235794
+ })();
235795
+
235796
+ return GroupHistoryToggleAction;
235797
+ })();
235798
+
235411
235799
  SyncActionValue.InteractiveMessageAction = (function() {
235412
235800
 
235413
235801
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1047882213",
3
+ "version": "2.3000.1047904925",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {