@wppconnect/wa-proto 2.3000.1050611685 → 2.3000.1050653261

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.1050611685
4
+ /// WhatsApp Version: 2.3000.1050653261
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -5695,6 +5695,7 @@ enum MutationProps {
5695
5695
  GROUP_HISTORY_TOGGLE_ACTION = 97;
5696
5696
  BB_PRO_PENDING_CUSTOMER_BASE_ACTION = 98;
5697
5697
  COMMUNITY_NESTING_STATE_ACTION = 99;
5698
+ SHARED_DEVICE_SECRET_ACTION = 100;
5698
5699
  SHARE_OWN_PN = 10001;
5699
5700
  BUSINESS_BROADCAST_ACTION = 10002;
5700
5701
  AI_THREAD_DELETE_ACTION = 10003;
@@ -6440,6 +6441,7 @@ message SyncActionValue {
6440
6441
  optional GroupHistoryToggleAction groupHistoryToggleAction = 97;
6441
6442
  optional BBProPendingCustomerBaseAction bbProPendingCustomerBaseAction = 98;
6442
6443
  optional CommunityNestingStateAction communityNestingStateAction = 99;
6444
+ optional SharedDeviceSecretAction sharedDeviceSecretAction = 100;
6443
6445
  message AgentAction {
6444
6446
  optional string name = 1;
6445
6447
  optional int32 deviceId = 2;
@@ -7023,6 +7025,11 @@ message SyncActionValue {
7023
7025
  optional bool allowed = 1;
7024
7026
  }
7025
7027
 
7028
+ message SharedDeviceSecretAction {
7029
+ optional bytes secret = 1;
7030
+ optional int64 ttlMs = 2;
7031
+ }
7032
+
7026
7033
  message StarAction {
7027
7034
  optional bool starred = 1;
7028
7035
  }
package/dist/index.d.ts CHANGED
@@ -78987,6 +78987,9 @@ export namespace waproto {
78987
78987
  /** COMMUNITY_NESTING_STATE_ACTION value */
78988
78988
  COMMUNITY_NESTING_STATE_ACTION = 99,
78989
78989
 
78990
+ /** SHARED_DEVICE_SECRET_ACTION value */
78991
+ SHARED_DEVICE_SECRET_ACTION = 100,
78992
+
78990
78993
  /** SHARE_OWN_PN value */
78991
78994
  SHARE_OWN_PN = 10001,
78992
78995
 
@@ -89289,6 +89292,9 @@ export namespace waproto {
89289
89292
  /** SyncActionValue communityNestingStateAction. */
89290
89293
  communityNestingStateAction?: (waproto.SyncActionValue.CommunityNestingStateAction.$Properties|null);
89291
89294
 
89295
+ /** SyncActionValue sharedDeviceSecretAction. */
89296
+ sharedDeviceSecretAction?: (waproto.SyncActionValue.SharedDeviceSecretAction.$Properties|null);
89297
+
89292
89298
  /**
89293
89299
  * Creates a new SyncActionValue instance using the specified properties.
89294
89300
  * @param [properties] Properties to set
@@ -89643,6 +89649,9 @@ export namespace waproto {
89643
89649
  /** SyncActionValue communityNestingStateAction */
89644
89650
  communityNestingStateAction?: (waproto.SyncActionValue.CommunityNestingStateAction.$Properties|null);
89645
89651
 
89652
+ /** SyncActionValue sharedDeviceSecretAction */
89653
+ sharedDeviceSecretAction?: (waproto.SyncActionValue.SharedDeviceSecretAction.$Properties|null);
89654
+
89646
89655
  /** Unknown fields preserved while decoding when enabled */
89647
89656
  $unknowns?: Uint8Array[];
89648
89657
  }
@@ -89739,6 +89748,7 @@ export namespace waproto {
89739
89748
  groupHistoryToggleAction?: waproto.SyncActionValue.GroupHistoryToggleAction.$Shape|null;
89740
89749
  bbProPendingCustomerBaseAction?: waproto.SyncActionValue.BBProPendingCustomerBaseAction.$Shape|null;
89741
89750
  communityNestingStateAction?: waproto.SyncActionValue.CommunityNestingStateAction.$Shape|null;
89751
+ sharedDeviceSecretAction?: waproto.SyncActionValue.SharedDeviceSecretAction.$Shape|null;
89742
89752
  $unknowns?: Uint8Array[];
89743
89753
  };
89744
89754
 
@@ -99791,6 +99801,129 @@ export namespace waproto {
99791
99801
  type $Shape = waproto.SyncActionValue.SharedDeviceAllowlistAction.$Properties;
99792
99802
  }
99793
99803
 
99804
+ /**
99805
+ * Properties of a SharedDeviceSecretAction.
99806
+ * @deprecated Use waproto.SyncActionValue.SharedDeviceSecretAction.$Properties instead.
99807
+ */
99808
+ interface ISharedDeviceSecretAction extends waproto.SyncActionValue.SharedDeviceSecretAction.$Properties {
99809
+ }
99810
+
99811
+ /** Represents a SharedDeviceSecretAction. */
99812
+ class SharedDeviceSecretAction {
99813
+
99814
+ /**
99815
+ * Constructs a new SharedDeviceSecretAction.
99816
+ * @param [properties] Properties to set
99817
+ */
99818
+ constructor(properties?: waproto.SyncActionValue.SharedDeviceSecretAction.$Properties);
99819
+
99820
+ /** Unknown fields preserved while decoding when enabled */
99821
+ $unknowns?: Uint8Array[];
99822
+
99823
+ /** SharedDeviceSecretAction secret. */
99824
+ secret?: (Uint8Array|null);
99825
+
99826
+ /** SharedDeviceSecretAction ttlMs. */
99827
+ ttlMs?: (number|Long|null);
99828
+
99829
+ /**
99830
+ * Creates a new SharedDeviceSecretAction instance using the specified properties.
99831
+ * @param [properties] Properties to set
99832
+ * @returns SharedDeviceSecretAction instance
99833
+ */
99834
+ static create(properties: waproto.SyncActionValue.SharedDeviceSecretAction.$Shape): waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape;
99835
+ static create(properties?: waproto.SyncActionValue.SharedDeviceSecretAction.$Properties): waproto.SyncActionValue.SharedDeviceSecretAction;
99836
+
99837
+ /**
99838
+ * Encodes the specified SharedDeviceSecretAction message. Does not implicitly {@link waproto.SyncActionValue.SharedDeviceSecretAction.verify|verify} messages.
99839
+ * @param message SharedDeviceSecretAction message or plain object to encode
99840
+ * @param [writer] Writer to encode to
99841
+ * @returns Writer
99842
+ */
99843
+ static encode(message: waproto.SyncActionValue.SharedDeviceSecretAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
99844
+
99845
+ /**
99846
+ * Encodes the specified SharedDeviceSecretAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.SharedDeviceSecretAction.verify|verify} messages.
99847
+ * @param message SharedDeviceSecretAction message or plain object to encode
99848
+ * @param [writer] Writer to encode to
99849
+ * @returns Writer
99850
+ */
99851
+ static encodeDelimited(message: waproto.SyncActionValue.SharedDeviceSecretAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
99852
+
99853
+ /**
99854
+ * Decodes a SharedDeviceSecretAction message from the specified reader or buffer.
99855
+ * @param reader Reader or buffer to decode from
99856
+ * @param [length] Message length if known beforehand
99857
+ * @returns {waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape} SharedDeviceSecretAction
99858
+ * @throws {Error} If the payload is not a reader or valid buffer
99859
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
99860
+ */
99861
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape;
99862
+
99863
+ /**
99864
+ * Decodes a SharedDeviceSecretAction message from the specified reader or buffer, length delimited.
99865
+ * @param reader Reader or buffer to decode from
99866
+ * @returns {waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape} SharedDeviceSecretAction
99867
+ * @throws {Error} If the payload is not a reader or valid buffer
99868
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
99869
+ */
99870
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape;
99871
+
99872
+ /**
99873
+ * Verifies a SharedDeviceSecretAction message.
99874
+ * @param message Plain object to verify
99875
+ * @returns `null` if valid, otherwise the reason why it is not
99876
+ */
99877
+ static verify(message: { [k: string]: any }): (string|null);
99878
+
99879
+ /**
99880
+ * Creates a SharedDeviceSecretAction message from a plain object. Also converts values to their respective internal types.
99881
+ * @param object Plain object
99882
+ * @returns SharedDeviceSecretAction
99883
+ */
99884
+ static fromObject(object: { [k: string]: any }): waproto.SyncActionValue.SharedDeviceSecretAction;
99885
+
99886
+ /**
99887
+ * Creates a plain object from a SharedDeviceSecretAction message. Also converts values to other types if specified.
99888
+ * @param message SharedDeviceSecretAction
99889
+ * @param [options] Conversion options
99890
+ * @returns Plain object
99891
+ */
99892
+ static toObject(message: waproto.SyncActionValue.SharedDeviceSecretAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
99893
+
99894
+ /**
99895
+ * Converts this SharedDeviceSecretAction to JSON.
99896
+ * @returns JSON object
99897
+ */
99898
+ toJSON(): { [k: string]: any };
99899
+
99900
+ /**
99901
+ * Gets the type url for SharedDeviceSecretAction
99902
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
99903
+ * @returns The type url
99904
+ */
99905
+ static getTypeUrl(prefix?: string): string;
99906
+ }
99907
+
99908
+ namespace SharedDeviceSecretAction {
99909
+
99910
+ /** Properties of a SharedDeviceSecretAction. */
99911
+ interface $Properties {
99912
+
99913
+ /** SharedDeviceSecretAction secret */
99914
+ secret?: (Uint8Array|null);
99915
+
99916
+ /** SharedDeviceSecretAction ttlMs */
99917
+ ttlMs?: (number|Long|null);
99918
+
99919
+ /** Unknown fields preserved while decoding when enabled */
99920
+ $unknowns?: Uint8Array[];
99921
+ }
99922
+
99923
+ /** Shape of a SharedDeviceSecretAction. */
99924
+ type $Shape = waproto.SyncActionValue.SharedDeviceSecretAction.$Properties;
99925
+ }
99926
+
99794
99927
  /**
99795
99928
  * Properties of a StarAction.
99796
99929
  * @deprecated Use waproto.SyncActionValue.StarAction.$Properties instead.
package/dist/index.js CHANGED
@@ -234311,6 +234311,7 @@ $root.waproto = (function() {
234311
234311
  * @property {number} GROUP_HISTORY_TOGGLE_ACTION=97 GROUP_HISTORY_TOGGLE_ACTION value
234312
234312
  * @property {number} BB_PRO_PENDING_CUSTOMER_BASE_ACTION=98 BB_PRO_PENDING_CUSTOMER_BASE_ACTION value
234313
234313
  * @property {number} COMMUNITY_NESTING_STATE_ACTION=99 COMMUNITY_NESTING_STATE_ACTION value
234314
+ * @property {number} SHARED_DEVICE_SECRET_ACTION=100 SHARED_DEVICE_SECRET_ACTION value
234314
234315
  * @property {number} SHARE_OWN_PN=10001 SHARE_OWN_PN value
234315
234316
  * @property {number} BUSINESS_BROADCAST_ACTION=10002 BUSINESS_BROADCAST_ACTION value
234316
234317
  * @property {number} AI_THREAD_DELETE_ACTION=10003 AI_THREAD_DELETE_ACTION value
@@ -234410,6 +234411,7 @@ $root.waproto = (function() {
234410
234411
  values[valuesById[97] = "GROUP_HISTORY_TOGGLE_ACTION"] = 97;
234411
234412
  values[valuesById[98] = "BB_PRO_PENDING_CUSTOMER_BASE_ACTION"] = 98;
234412
234413
  values[valuesById[99] = "COMMUNITY_NESTING_STATE_ACTION"] = 99;
234414
+ values[valuesById[100] = "SHARED_DEVICE_SECRET_ACTION"] = 100;
234413
234415
  values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
234414
234416
  values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
234415
234417
  values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
@@ -263005,6 +263007,7 @@ $root.waproto = (function() {
263005
263007
  * @property {waproto.SyncActionValue.GroupHistoryToggleAction.$Properties|null} [groupHistoryToggleAction] SyncActionValue groupHistoryToggleAction
263006
263008
  * @property {waproto.SyncActionValue.BBProPendingCustomerBaseAction.$Properties|null} [bbProPendingCustomerBaseAction] SyncActionValue bbProPendingCustomerBaseAction
263007
263009
  * @property {waproto.SyncActionValue.CommunityNestingStateAction.$Properties|null} [communityNestingStateAction] SyncActionValue communityNestingStateAction
263010
+ * @property {waproto.SyncActionValue.SharedDeviceSecretAction.$Properties|null} [sharedDeviceSecretAction] SyncActionValue sharedDeviceSecretAction
263008
263011
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
263009
263012
  */
263010
263013
 
@@ -263109,6 +263112,7 @@ $root.waproto = (function() {
263109
263112
  * groupHistoryToggleAction?: waproto.SyncActionValue.GroupHistoryToggleAction.$Shape|null;
263110
263113
  * bbProPendingCustomerBaseAction?: waproto.SyncActionValue.BBProPendingCustomerBaseAction.$Shape|null;
263111
263114
  * communityNestingStateAction?: waproto.SyncActionValue.CommunityNestingStateAction.$Shape|null;
263115
+ * sharedDeviceSecretAction?: waproto.SyncActionValue.SharedDeviceSecretAction.$Shape|null;
263112
263116
  * $unknowns?: Array.<Uint8Array>;
263113
263117
  * }} waproto.SyncActionValue.$Shape
263114
263118
  */
@@ -263848,6 +263852,14 @@ $root.waproto = (function() {
263848
263852
  */
263849
263853
  SyncActionValue.prototype.communityNestingStateAction = null;
263850
263854
 
263855
+ /**
263856
+ * SyncActionValue sharedDeviceSecretAction.
263857
+ * @member {waproto.SyncActionValue.SharedDeviceSecretAction.$Properties|null|undefined} sharedDeviceSecretAction
263858
+ * @memberof waproto.SyncActionValue
263859
+ * @instance
263860
+ */
263861
+ SyncActionValue.prototype.sharedDeviceSecretAction = null;
263862
+
263851
263863
  // OneOf field names bound to virtual getters and setters
263852
263864
  var $oneOfFields;
263853
263865
 
@@ -264391,6 +264403,12 @@ $root.waproto = (function() {
264391
264403
  set: $util.oneOfSetter($oneOfFields)
264392
264404
  });
264393
264405
 
264406
+ // Virtual OneOf for proto3 optional field
264407
+ $Object.defineProperty(SyncActionValue.prototype, "_sharedDeviceSecretAction", {
264408
+ get: $util.oneOfGetter($oneOfFields = ["sharedDeviceSecretAction"]),
264409
+ set: $util.oneOfSetter($oneOfFields)
264410
+ });
264411
+
264394
264412
  /**
264395
264413
  * Creates a new SyncActionValue instance using the specified properties.
264396
264414
  * @function create
@@ -264603,6 +264621,8 @@ $root.waproto = (function() {
264603
264621
  $root.waproto.SyncActionValue.BBProPendingCustomerBaseAction.encode(message.bbProPendingCustomerBaseAction, writer.uint32(/* id 98, wireType 2 =*/786).fork(), _depth + 1).ldelim();
264604
264622
  if (message.communityNestingStateAction != null && $Object.hasOwnProperty.call(message, "communityNestingStateAction"))
264605
264623
  $root.waproto.SyncActionValue.CommunityNestingStateAction.encode(message.communityNestingStateAction, writer.uint32(/* id 99, wireType 2 =*/794).fork(), _depth + 1).ldelim();
264624
+ if (message.sharedDeviceSecretAction != null && $Object.hasOwnProperty.call(message, "sharedDeviceSecretAction"))
264625
+ $root.waproto.SyncActionValue.SharedDeviceSecretAction.encode(message.sharedDeviceSecretAction, writer.uint32(/* id 100, wireType 2 =*/802).fork(), _depth + 1).ldelim();
264606
264626
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
264607
264627
  for (var i = 0; i < message.$unknowns.length; ++i)
264608
264628
  writer.raw(message.$unknowns[i]);
@@ -265290,6 +265310,13 @@ $root.waproto = (function() {
265290
265310
  message._communityNestingStateAction = "communityNestingStateAction";
265291
265311
  continue;
265292
265312
  }
265313
+ case 100: {
265314
+ if (wireType !== 2)
265315
+ break;
265316
+ message.sharedDeviceSecretAction = $root.waproto.SyncActionValue.SharedDeviceSecretAction.decode(reader, reader.size(), $undefined, _depth + 1, message.sharedDeviceSecretAction);
265317
+ message._sharedDeviceSecretAction = "sharedDeviceSecretAction";
265318
+ continue;
265319
+ }
265293
265320
  }
265294
265321
  reader.skipType(wireType, _depth, tag);
265295
265322
  if (!reader.discardUnknown) {
@@ -266056,6 +266083,14 @@ $root.waproto = (function() {
266056
266083
  return "communityNestingStateAction." + error;
266057
266084
  }
266058
266085
  }
266086
+ if (message.sharedDeviceSecretAction != null && $Object.hasOwnProperty.call(message, "sharedDeviceSecretAction")) {
266087
+ properties._sharedDeviceSecretAction = 1;
266088
+ {
266089
+ var error = $root.waproto.SyncActionValue.SharedDeviceSecretAction.verify(message.sharedDeviceSecretAction, _depth + 1);
266090
+ if (error)
266091
+ return "sharedDeviceSecretAction." + error;
266092
+ }
266093
+ }
266059
266094
  return null;
266060
266095
  };
266061
266096
 
@@ -266531,6 +266566,11 @@ $root.waproto = (function() {
266531
266566
  throw $TypeError(".waproto.SyncActionValue.communityNestingStateAction: object expected");
266532
266567
  message.communityNestingStateAction = $root.waproto.SyncActionValue.CommunityNestingStateAction.fromObject(object.communityNestingStateAction, _depth + 1);
266533
266568
  }
266569
+ if (object.sharedDeviceSecretAction != null) {
266570
+ if (!$util.isObject(object.sharedDeviceSecretAction))
266571
+ throw $TypeError(".waproto.SyncActionValue.sharedDeviceSecretAction: object expected");
266572
+ message.sharedDeviceSecretAction = $root.waproto.SyncActionValue.SharedDeviceSecretAction.fromObject(object.sharedDeviceSecretAction, _depth + 1);
266573
+ }
266534
266574
  return message;
266535
266575
  };
266536
266576
 
@@ -266736,6 +266776,8 @@ $root.waproto = (function() {
266736
266776
  object.bbProPendingCustomerBaseAction = $root.waproto.SyncActionValue.BBProPendingCustomerBaseAction.toObject(message.bbProPendingCustomerBaseAction, options, _depth + 1);
266737
266777
  if (message.communityNestingStateAction != null && $Object.hasOwnProperty.call(message, "communityNestingStateAction"))
266738
266778
  object.communityNestingStateAction = $root.waproto.SyncActionValue.CommunityNestingStateAction.toObject(message.communityNestingStateAction, options, _depth + 1);
266779
+ if (message.sharedDeviceSecretAction != null && $Object.hasOwnProperty.call(message, "sharedDeviceSecretAction"))
266780
+ object.sharedDeviceSecretAction = $root.waproto.SyncActionValue.SharedDeviceSecretAction.toObject(message.sharedDeviceSecretAction, options, _depth + 1);
266739
266781
  return object;
266740
266782
  };
266741
266783
 
@@ -293289,6 +293331,336 @@ $root.waproto = (function() {
293289
293331
  return SharedDeviceAllowlistAction;
293290
293332
  })();
293291
293333
 
293334
+ SyncActionValue.SharedDeviceSecretAction = (function() {
293335
+
293336
+ /**
293337
+ * Properties of a SharedDeviceSecretAction.
293338
+ * @typedef {Object} waproto.SyncActionValue.SharedDeviceSecretAction.$Properties
293339
+ * @property {Uint8Array|null} [secret] SharedDeviceSecretAction secret
293340
+ * @property {number|Long|null} [ttlMs] SharedDeviceSecretAction ttlMs
293341
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
293342
+ */
293343
+
293344
+ /**
293345
+ * Properties of a SharedDeviceSecretAction.
293346
+ * @memberof waproto.SyncActionValue
293347
+ * @interface ISharedDeviceSecretAction
293348
+ * @augments waproto.SyncActionValue.SharedDeviceSecretAction.$Properties
293349
+ * @deprecated Use waproto.SyncActionValue.SharedDeviceSecretAction.$Properties instead.
293350
+ */
293351
+
293352
+ /**
293353
+ * Shape of a SharedDeviceSecretAction.
293354
+ * @typedef {waproto.SyncActionValue.SharedDeviceSecretAction.$Properties} waproto.SyncActionValue.SharedDeviceSecretAction.$Shape
293355
+ */
293356
+
293357
+ /**
293358
+ * Constructs a new SharedDeviceSecretAction.
293359
+ * @memberof waproto.SyncActionValue
293360
+ * @classdesc Represents a SharedDeviceSecretAction.
293361
+ * @constructor
293362
+ * @param {waproto.SyncActionValue.SharedDeviceSecretAction.$Properties=} [properties] Properties to set
293363
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
293364
+ */
293365
+ var SharedDeviceSecretAction = function (properties) {
293366
+ if (properties)
293367
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
293368
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
293369
+ this[keys[i]] = properties[keys[i]];
293370
+ };
293371
+
293372
+ /**
293373
+ * SharedDeviceSecretAction secret.
293374
+ * @member {Uint8Array|null|undefined} secret
293375
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293376
+ * @instance
293377
+ */
293378
+ SharedDeviceSecretAction.prototype.secret = null;
293379
+
293380
+ /**
293381
+ * SharedDeviceSecretAction ttlMs.
293382
+ * @member {number|Long|null|undefined} ttlMs
293383
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293384
+ * @instance
293385
+ */
293386
+ SharedDeviceSecretAction.prototype.ttlMs = null;
293387
+
293388
+ // OneOf field names bound to virtual getters and setters
293389
+ var $oneOfFields;
293390
+
293391
+ // Virtual OneOf for proto3 optional field
293392
+ $Object.defineProperty(SharedDeviceSecretAction.prototype, "_secret", {
293393
+ get: $util.oneOfGetter($oneOfFields = ["secret"]),
293394
+ set: $util.oneOfSetter($oneOfFields)
293395
+ });
293396
+
293397
+ // Virtual OneOf for proto3 optional field
293398
+ $Object.defineProperty(SharedDeviceSecretAction.prototype, "_ttlMs", {
293399
+ get: $util.oneOfGetter($oneOfFields = ["ttlMs"]),
293400
+ set: $util.oneOfSetter($oneOfFields)
293401
+ });
293402
+
293403
+ /**
293404
+ * Creates a new SharedDeviceSecretAction instance using the specified properties.
293405
+ * @function create
293406
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293407
+ * @static
293408
+ * @param {waproto.SyncActionValue.SharedDeviceSecretAction.$Properties=} [properties] Properties to set
293409
+ * @returns {waproto.SyncActionValue.SharedDeviceSecretAction} SharedDeviceSecretAction instance
293410
+ * @type {{
293411
+ * (properties: waproto.SyncActionValue.SharedDeviceSecretAction.$Shape): waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape;
293412
+ * (properties?: waproto.SyncActionValue.SharedDeviceSecretAction.$Properties): waproto.SyncActionValue.SharedDeviceSecretAction;
293413
+ * }}
293414
+ */
293415
+ SharedDeviceSecretAction.create = function(properties) {
293416
+ return new SharedDeviceSecretAction(properties);
293417
+ };
293418
+
293419
+ /**
293420
+ * Encodes the specified SharedDeviceSecretAction message. Does not implicitly {@link waproto.SyncActionValue.SharedDeviceSecretAction.verify|verify} messages.
293421
+ * @function encode
293422
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293423
+ * @static
293424
+ * @param {waproto.SyncActionValue.SharedDeviceSecretAction.$Properties} message SharedDeviceSecretAction message or plain object to encode
293425
+ * @param {$protobuf.Writer} [writer] Writer to encode to
293426
+ * @returns {$protobuf.Writer} Writer
293427
+ */
293428
+ SharedDeviceSecretAction.encode = function (message, writer, _depth) {
293429
+ if (!writer)
293430
+ writer = $Writer.create();
293431
+ if (_depth === $undefined)
293432
+ _depth = 0;
293433
+ if (_depth > $util.recursionLimit)
293434
+ throw $Error("max depth exceeded");
293435
+ if (message.secret != null && $Object.hasOwnProperty.call(message, "secret"))
293436
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.secret);
293437
+ if (message.ttlMs != null && $Object.hasOwnProperty.call(message, "ttlMs"))
293438
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.ttlMs);
293439
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
293440
+ for (var i = 0; i < message.$unknowns.length; ++i)
293441
+ writer.raw(message.$unknowns[i]);
293442
+ return writer;
293443
+ };
293444
+
293445
+ /**
293446
+ * Encodes the specified SharedDeviceSecretAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.SharedDeviceSecretAction.verify|verify} messages.
293447
+ * @function encodeDelimited
293448
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293449
+ * @static
293450
+ * @param {waproto.SyncActionValue.SharedDeviceSecretAction.$Properties} message SharedDeviceSecretAction message or plain object to encode
293451
+ * @param {$protobuf.Writer} [writer] Writer to encode to
293452
+ * @returns {$protobuf.Writer} Writer
293453
+ */
293454
+ SharedDeviceSecretAction.encodeDelimited = function(message, writer) {
293455
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
293456
+ };
293457
+
293458
+ /**
293459
+ * Decodes a SharedDeviceSecretAction message from the specified reader or buffer.
293460
+ * @function decode
293461
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293462
+ * @static
293463
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
293464
+ * @param {number} [length] Message length if known beforehand
293465
+ * @returns {waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape} SharedDeviceSecretAction
293466
+ * @throws {Error} If the payload is not a reader or valid buffer
293467
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
293468
+ */
293469
+ SharedDeviceSecretAction.decode = function (reader, length, _end, _depth, _target) {
293470
+ if (!(reader instanceof $Reader))
293471
+ reader = $Reader.create(reader);
293472
+ if (_depth === $undefined)
293473
+ _depth = 0;
293474
+ if (_depth > $Reader.recursionLimit)
293475
+ throw $Error("max depth exceeded");
293476
+ var end, message;
293477
+ if (length === $undefined)
293478
+ end = reader.len;
293479
+ else {
293480
+ end = reader.pos + length;
293481
+ if (end > reader.len)
293482
+ throw $RangeError("index out of range");
293483
+ length = reader.len;
293484
+ reader.len = end;
293485
+ }
293486
+ message = _target || new $root.waproto.SyncActionValue.SharedDeviceSecretAction();
293487
+ while (reader.pos < end) {
293488
+ var start = reader.pos;
293489
+ var tag = reader.tag();
293490
+ if (tag === _end) {
293491
+ _end = $undefined;
293492
+ break;
293493
+ }
293494
+ var wireType = tag & 7;
293495
+ switch (tag >>>= 3) {
293496
+ case 1: {
293497
+ if (wireType !== 2)
293498
+ break;
293499
+ message.secret = reader.bytes();
293500
+ message._secret = "secret";
293501
+ continue;
293502
+ }
293503
+ case 2: {
293504
+ if (wireType !== 0)
293505
+ break;
293506
+ message.ttlMs = reader.int64();
293507
+ message._ttlMs = "ttlMs";
293508
+ continue;
293509
+ }
293510
+ }
293511
+ reader.skipType(wireType, _depth, tag);
293512
+ if (!reader.discardUnknown) {
293513
+ $util.makeProp(message, "$unknowns", false);
293514
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
293515
+ }
293516
+ }
293517
+ if (length !== $undefined) {
293518
+ if (reader.pos !== end)
293519
+ throw $RangeError("index out of range");
293520
+ reader.len = length;
293521
+ }
293522
+ if (_end !== $undefined)
293523
+ throw $Error("missing end group");
293524
+ return message;
293525
+ };
293526
+
293527
+ /**
293528
+ * Decodes a SharedDeviceSecretAction message from the specified reader or buffer, length delimited.
293529
+ * @function decodeDelimited
293530
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293531
+ * @static
293532
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
293533
+ * @returns {waproto.SyncActionValue.SharedDeviceSecretAction & waproto.SyncActionValue.SharedDeviceSecretAction.$Shape} SharedDeviceSecretAction
293534
+ * @throws {Error} If the payload is not a reader or valid buffer
293535
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
293536
+ */
293537
+ SharedDeviceSecretAction.decodeDelimited = function(reader) {
293538
+ if (!(reader instanceof $Reader))
293539
+ reader = new $Reader(reader);
293540
+ return this.decode(reader, reader.size());
293541
+ };
293542
+
293543
+ /**
293544
+ * Verifies a SharedDeviceSecretAction message.
293545
+ * @function verify
293546
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293547
+ * @static
293548
+ * @param {Object.<string,*>} message Plain object to verify
293549
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
293550
+ */
293551
+ SharedDeviceSecretAction.verify = function (message, _depth) {
293552
+ if (typeof message !== "object" || message === null)
293553
+ return "object expected";
293554
+ if (_depth === $undefined)
293555
+ _depth = 0;
293556
+ if (_depth > $util.recursionLimit)
293557
+ return "max depth exceeded";
293558
+ var properties = {};
293559
+ if (message.secret != null && $Object.hasOwnProperty.call(message, "secret")) {
293560
+ properties._secret = 1;
293561
+ if (!(message.secret && typeof message.secret.length === "number" || $util.isString(message.secret)))
293562
+ return "secret: buffer expected";
293563
+ }
293564
+ if (message.ttlMs != null && $Object.hasOwnProperty.call(message, "ttlMs")) {
293565
+ properties._ttlMs = 1;
293566
+ if (!$util.isInteger(message.ttlMs) && !(message.ttlMs && $util.isInteger(message.ttlMs.low) && $util.isInteger(message.ttlMs.high)))
293567
+ return "ttlMs: integer|Long expected";
293568
+ }
293569
+ return null;
293570
+ };
293571
+
293572
+ /**
293573
+ * Creates a SharedDeviceSecretAction message from a plain object. Also converts values to their respective internal types.
293574
+ * @function fromObject
293575
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293576
+ * @static
293577
+ * @param {Object.<string,*>} object Plain object
293578
+ * @returns {waproto.SyncActionValue.SharedDeviceSecretAction} SharedDeviceSecretAction
293579
+ */
293580
+ SharedDeviceSecretAction.fromObject = function (object, _depth) {
293581
+ if (object instanceof $root.waproto.SyncActionValue.SharedDeviceSecretAction)
293582
+ return object;
293583
+ if (!$util.isObject(object))
293584
+ throw $TypeError(".waproto.SyncActionValue.SharedDeviceSecretAction: object expected");
293585
+ if (_depth === $undefined)
293586
+ _depth = 0;
293587
+ if (_depth > $util.recursionLimit)
293588
+ throw $Error("max depth exceeded");
293589
+ var message = new $root.waproto.SyncActionValue.SharedDeviceSecretAction();
293590
+ if (object.secret != null)
293591
+ if (typeof object.secret === "string")
293592
+ $util.base64.decode(object.secret, message.secret = $util.newBuffer($util.base64.length(object.secret)), 0);
293593
+ else if (object.secret.length >= 0)
293594
+ message.secret = object.secret;
293595
+ if (object.ttlMs != null)
293596
+ if ($util.Long)
293597
+ message.ttlMs = $util.Long.fromValue(object.ttlMs, false);
293598
+ else if (typeof object.ttlMs === "string")
293599
+ message.ttlMs = $parseInt(object.ttlMs, 10);
293600
+ else if (typeof object.ttlMs === "number")
293601
+ message.ttlMs = object.ttlMs;
293602
+ else if (typeof object.ttlMs === "object")
293603
+ message.ttlMs = new $util.LongBits(object.ttlMs.low >>> 0, object.ttlMs.high >>> 0).toNumber();
293604
+ return message;
293605
+ };
293606
+
293607
+ /**
293608
+ * Creates a plain object from a SharedDeviceSecretAction message. Also converts values to other types if specified.
293609
+ * @function toObject
293610
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293611
+ * @static
293612
+ * @param {waproto.SyncActionValue.SharedDeviceSecretAction} message SharedDeviceSecretAction
293613
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
293614
+ * @returns {Object.<string,*>} Plain object
293615
+ */
293616
+ SharedDeviceSecretAction.toObject = function (message, options, _depth) {
293617
+ if (!options)
293618
+ options = {};
293619
+ if (_depth === $undefined)
293620
+ _depth = 0;
293621
+ if (_depth > $util.recursionLimit)
293622
+ throw $Error("max depth exceeded");
293623
+ var object = {};
293624
+ if (message.secret != null && $Object.hasOwnProperty.call(message, "secret"))
293625
+ object.secret = options.bytes === $String ? $util.base64.encode(message.secret, 0, message.secret.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.secret) : message.secret;
293626
+ if (message.ttlMs != null && $Object.hasOwnProperty.call(message, "ttlMs"))
293627
+ if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
293628
+ object.ttlMs = typeof message.ttlMs === "number" ? $BigInt(message.ttlMs) : $util.Long.fromBits(message.ttlMs.low >>> 0, message.ttlMs.high >>> 0, false).toBigInt();
293629
+ else if (typeof message.ttlMs === "number")
293630
+ object.ttlMs = options.longs === $String ? $String(message.ttlMs) : message.ttlMs;
293631
+ else
293632
+ object.ttlMs = options.longs === $String ? $util.Long.prototype.toString.call(message.ttlMs) : options.longs === $Number ? new $util.LongBits(message.ttlMs.low >>> 0, message.ttlMs.high >>> 0).toNumber() : message.ttlMs;
293633
+ return object;
293634
+ };
293635
+
293636
+ /**
293637
+ * Converts this SharedDeviceSecretAction to JSON.
293638
+ * @function toJSON
293639
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293640
+ * @instance
293641
+ * @returns {Object.<string,*>} JSON object
293642
+ */
293643
+ SharedDeviceSecretAction.prototype.toJSON = function() {
293644
+ return SharedDeviceSecretAction.toObject(this, $protobuf.util.toJSONOptions);
293645
+ };
293646
+
293647
+ /**
293648
+ * Gets the type url for SharedDeviceSecretAction
293649
+ * @function getTypeUrl
293650
+ * @memberof waproto.SyncActionValue.SharedDeviceSecretAction
293651
+ * @static
293652
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
293653
+ * @returns {string} The type url
293654
+ */
293655
+ SharedDeviceSecretAction.getTypeUrl = function(prefix) {
293656
+ if (prefix === $undefined)
293657
+ prefix = "type.googleapis.com";
293658
+ return prefix + "/waproto.SyncActionValue.SharedDeviceSecretAction";
293659
+ };
293660
+
293661
+ return SharedDeviceSecretAction;
293662
+ })();
293663
+
293292
293664
  SyncActionValue.StarAction = (function() {
293293
293665
 
293294
293666
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1050611685",
3
+ "version": "2.3000.1050653261",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {