@wppconnect/wa-proto 2.3000.1049311260 → 2.3000.1049405779

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.1049311260
4
+ /// WhatsApp Version: 2.3000.1049405779
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -2039,6 +2039,8 @@ message DeviceCapabilities {
2039
2039
  optional AiFbidMigration aiFbidMigration = 7;
2040
2040
  optional BizAiSettingsSync bizAiSettingsSync = 8;
2041
2041
  optional ContactRefresh contactRefresh = 9;
2042
+ optional ReverseHistorySync reverseHistorySync = 10;
2043
+ optional NewsletterChatsMigration newsletterChatsMigration = 11;
2042
2044
  message AiFbidMigration {
2043
2045
  optional uint64 chatDbMigrationTimestamp = 1;
2044
2046
  optional uint32 supportVersion = 2;
@@ -2084,6 +2086,20 @@ message DeviceCapabilities {
2084
2086
  RECEIVER_ENABLED = 1;
2085
2087
  SENDER_ENABLED = 2;
2086
2088
  }
2089
+ message NewsletterChatsMigration {
2090
+ optional bool effectiveMigrated = 1;
2091
+ optional int64 countdownEndsAt = 2;
2092
+ optional bool rolledBack = 3;
2093
+ }
2094
+
2095
+ message ReverseHistorySync {
2096
+ repeated Product enabledProducts = 1;
2097
+ enum Product {
2098
+ PRODUCT_UNSPECIFIED = 0;
2099
+ HATCH = 1;
2100
+ }
2101
+ }
2102
+
2087
2103
  message UserHasAvatar {
2088
2104
  optional bool userHasAvatar = 1;
2089
2105
  }
package/dist/index.d.ts CHANGED
@@ -27101,6 +27101,12 @@ export namespace waproto {
27101
27101
  /** DeviceCapabilities contactRefresh. */
27102
27102
  contactRefresh?: (waproto.DeviceCapabilities.ContactRefresh.$Properties|null);
27103
27103
 
27104
+ /** DeviceCapabilities reverseHistorySync. */
27105
+ reverseHistorySync?: (waproto.DeviceCapabilities.ReverseHistorySync.$Properties|null);
27106
+
27107
+ /** DeviceCapabilities newsletterChatsMigration. */
27108
+ newsletterChatsMigration?: (waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties|null);
27109
+
27104
27110
  /**
27105
27111
  * Creates a new DeviceCapabilities instance using the specified properties.
27106
27112
  * @param [properties] Properties to set
@@ -27212,6 +27218,12 @@ export namespace waproto {
27212
27218
  /** DeviceCapabilities contactRefresh */
27213
27219
  contactRefresh?: (waproto.DeviceCapabilities.ContactRefresh.$Properties|null);
27214
27220
 
27221
+ /** DeviceCapabilities reverseHistorySync */
27222
+ reverseHistorySync?: (waproto.DeviceCapabilities.ReverseHistorySync.$Properties|null);
27223
+
27224
+ /** DeviceCapabilities newsletterChatsMigration */
27225
+ newsletterChatsMigration?: (waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties|null);
27226
+
27215
27227
  /** Unknown fields preserved while decoding when enabled */
27216
27228
  $unknowns?: Uint8Array[];
27217
27229
  }
@@ -27996,6 +28008,262 @@ export namespace waproto {
27996
28008
  SENDER_ENABLED = 2
27997
28009
  }
27998
28010
 
28011
+ /**
28012
+ * Properties of a NewsletterChatsMigration.
28013
+ * @deprecated Use waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties instead.
28014
+ */
28015
+ interface INewsletterChatsMigration extends waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties {
28016
+ }
28017
+
28018
+ /** Represents a NewsletterChatsMigration. */
28019
+ class NewsletterChatsMigration {
28020
+
28021
+ /**
28022
+ * Constructs a new NewsletterChatsMigration.
28023
+ * @param [properties] Properties to set
28024
+ */
28025
+ constructor(properties?: waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties);
28026
+
28027
+ /** Unknown fields preserved while decoding when enabled */
28028
+ $unknowns?: Uint8Array[];
28029
+
28030
+ /** NewsletterChatsMigration effectiveMigrated. */
28031
+ effectiveMigrated?: (boolean|null);
28032
+
28033
+ /** NewsletterChatsMigration countdownEndsAt. */
28034
+ countdownEndsAt?: (number|Long|null);
28035
+
28036
+ /** NewsletterChatsMigration rolledBack. */
28037
+ rolledBack?: (boolean|null);
28038
+
28039
+ /**
28040
+ * Creates a new NewsletterChatsMigration instance using the specified properties.
28041
+ * @param [properties] Properties to set
28042
+ * @returns NewsletterChatsMigration instance
28043
+ */
28044
+ static create(properties: waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape): waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape;
28045
+ static create(properties?: waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties): waproto.DeviceCapabilities.NewsletterChatsMigration;
28046
+
28047
+ /**
28048
+ * Encodes the specified NewsletterChatsMigration message. Does not implicitly {@link waproto.DeviceCapabilities.NewsletterChatsMigration.verify|verify} messages.
28049
+ * @param message NewsletterChatsMigration message or plain object to encode
28050
+ * @param [writer] Writer to encode to
28051
+ * @returns Writer
28052
+ */
28053
+ static encode(message: waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
28054
+
28055
+ /**
28056
+ * Encodes the specified NewsletterChatsMigration message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.NewsletterChatsMigration.verify|verify} messages.
28057
+ * @param message NewsletterChatsMigration message or plain object to encode
28058
+ * @param [writer] Writer to encode to
28059
+ * @returns Writer
28060
+ */
28061
+ static encodeDelimited(message: waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
28062
+
28063
+ /**
28064
+ * Decodes a NewsletterChatsMigration message from the specified reader or buffer.
28065
+ * @param reader Reader or buffer to decode from
28066
+ * @param [length] Message length if known beforehand
28067
+ * @returns {waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape} NewsletterChatsMigration
28068
+ * @throws {Error} If the payload is not a reader or valid buffer
28069
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28070
+ */
28071
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape;
28072
+
28073
+ /**
28074
+ * Decodes a NewsletterChatsMigration message from the specified reader or buffer, length delimited.
28075
+ * @param reader Reader or buffer to decode from
28076
+ * @returns {waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape} NewsletterChatsMigration
28077
+ * @throws {Error} If the payload is not a reader or valid buffer
28078
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28079
+ */
28080
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape;
28081
+
28082
+ /**
28083
+ * Verifies a NewsletterChatsMigration message.
28084
+ * @param message Plain object to verify
28085
+ * @returns `null` if valid, otherwise the reason why it is not
28086
+ */
28087
+ static verify(message: { [k: string]: any }): (string|null);
28088
+
28089
+ /**
28090
+ * Creates a NewsletterChatsMigration message from a plain object. Also converts values to their respective internal types.
28091
+ * @param object Plain object
28092
+ * @returns NewsletterChatsMigration
28093
+ */
28094
+ static fromObject(object: { [k: string]: any }): waproto.DeviceCapabilities.NewsletterChatsMigration;
28095
+
28096
+ /**
28097
+ * Creates a plain object from a NewsletterChatsMigration message. Also converts values to other types if specified.
28098
+ * @param message NewsletterChatsMigration
28099
+ * @param [options] Conversion options
28100
+ * @returns Plain object
28101
+ */
28102
+ static toObject(message: waproto.DeviceCapabilities.NewsletterChatsMigration, options?: $protobuf.IConversionOptions): { [k: string]: any };
28103
+
28104
+ /**
28105
+ * Converts this NewsletterChatsMigration to JSON.
28106
+ * @returns JSON object
28107
+ */
28108
+ toJSON(): { [k: string]: any };
28109
+
28110
+ /**
28111
+ * Gets the type url for NewsletterChatsMigration
28112
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
28113
+ * @returns The type url
28114
+ */
28115
+ static getTypeUrl(prefix?: string): string;
28116
+ }
28117
+
28118
+ namespace NewsletterChatsMigration {
28119
+
28120
+ /** Properties of a NewsletterChatsMigration. */
28121
+ interface $Properties {
28122
+
28123
+ /** NewsletterChatsMigration effectiveMigrated */
28124
+ effectiveMigrated?: (boolean|null);
28125
+
28126
+ /** NewsletterChatsMigration countdownEndsAt */
28127
+ countdownEndsAt?: (number|Long|null);
28128
+
28129
+ /** NewsletterChatsMigration rolledBack */
28130
+ rolledBack?: (boolean|null);
28131
+
28132
+ /** Unknown fields preserved while decoding when enabled */
28133
+ $unknowns?: Uint8Array[];
28134
+ }
28135
+
28136
+ /** Shape of a NewsletterChatsMigration. */
28137
+ type $Shape = waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties;
28138
+ }
28139
+
28140
+ /**
28141
+ * Properties of a ReverseHistorySync.
28142
+ * @deprecated Use waproto.DeviceCapabilities.ReverseHistorySync.$Properties instead.
28143
+ */
28144
+ interface IReverseHistorySync extends waproto.DeviceCapabilities.ReverseHistorySync.$Properties {
28145
+ }
28146
+
28147
+ /** Represents a ReverseHistorySync. */
28148
+ class ReverseHistorySync {
28149
+
28150
+ /**
28151
+ * Constructs a new ReverseHistorySync.
28152
+ * @param [properties] Properties to set
28153
+ */
28154
+ constructor(properties?: waproto.DeviceCapabilities.ReverseHistorySync.$Properties);
28155
+
28156
+ /** Unknown fields preserved while decoding when enabled */
28157
+ $unknowns?: Uint8Array[];
28158
+
28159
+ /** ReverseHistorySync enabledProducts. */
28160
+ enabledProducts: waproto.DeviceCapabilities.ReverseHistorySync.Product[];
28161
+
28162
+ /**
28163
+ * Creates a new ReverseHistorySync instance using the specified properties.
28164
+ * @param [properties] Properties to set
28165
+ * @returns ReverseHistorySync instance
28166
+ */
28167
+ static create(properties: waproto.DeviceCapabilities.ReverseHistorySync.$Shape): waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape;
28168
+ static create(properties?: waproto.DeviceCapabilities.ReverseHistorySync.$Properties): waproto.DeviceCapabilities.ReverseHistorySync;
28169
+
28170
+ /**
28171
+ * Encodes the specified ReverseHistorySync message. Does not implicitly {@link waproto.DeviceCapabilities.ReverseHistorySync.verify|verify} messages.
28172
+ * @param message ReverseHistorySync message or plain object to encode
28173
+ * @param [writer] Writer to encode to
28174
+ * @returns Writer
28175
+ */
28176
+ static encode(message: waproto.DeviceCapabilities.ReverseHistorySync.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
28177
+
28178
+ /**
28179
+ * Encodes the specified ReverseHistorySync message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.ReverseHistorySync.verify|verify} messages.
28180
+ * @param message ReverseHistorySync message or plain object to encode
28181
+ * @param [writer] Writer to encode to
28182
+ * @returns Writer
28183
+ */
28184
+ static encodeDelimited(message: waproto.DeviceCapabilities.ReverseHistorySync.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
28185
+
28186
+ /**
28187
+ * Decodes a ReverseHistorySync message from the specified reader or buffer.
28188
+ * @param reader Reader or buffer to decode from
28189
+ * @param [length] Message length if known beforehand
28190
+ * @returns {waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape} ReverseHistorySync
28191
+ * @throws {Error} If the payload is not a reader or valid buffer
28192
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28193
+ */
28194
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape;
28195
+
28196
+ /**
28197
+ * Decodes a ReverseHistorySync message from the specified reader or buffer, length delimited.
28198
+ * @param reader Reader or buffer to decode from
28199
+ * @returns {waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape} ReverseHistorySync
28200
+ * @throws {Error} If the payload is not a reader or valid buffer
28201
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28202
+ */
28203
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape;
28204
+
28205
+ /**
28206
+ * Verifies a ReverseHistorySync message.
28207
+ * @param message Plain object to verify
28208
+ * @returns `null` if valid, otherwise the reason why it is not
28209
+ */
28210
+ static verify(message: { [k: string]: any }): (string|null);
28211
+
28212
+ /**
28213
+ * Creates a ReverseHistorySync message from a plain object. Also converts values to their respective internal types.
28214
+ * @param object Plain object
28215
+ * @returns ReverseHistorySync
28216
+ */
28217
+ static fromObject(object: { [k: string]: any }): waproto.DeviceCapabilities.ReverseHistorySync;
28218
+
28219
+ /**
28220
+ * Creates a plain object from a ReverseHistorySync message. Also converts values to other types if specified.
28221
+ * @param message ReverseHistorySync
28222
+ * @param [options] Conversion options
28223
+ * @returns Plain object
28224
+ */
28225
+ static toObject(message: waproto.DeviceCapabilities.ReverseHistorySync, options?: $protobuf.IConversionOptions): { [k: string]: any };
28226
+
28227
+ /**
28228
+ * Converts this ReverseHistorySync to JSON.
28229
+ * @returns JSON object
28230
+ */
28231
+ toJSON(): { [k: string]: any };
28232
+
28233
+ /**
28234
+ * Gets the type url for ReverseHistorySync
28235
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
28236
+ * @returns The type url
28237
+ */
28238
+ static getTypeUrl(prefix?: string): string;
28239
+ }
28240
+
28241
+ namespace ReverseHistorySync {
28242
+
28243
+ /** Properties of a ReverseHistorySync. */
28244
+ interface $Properties {
28245
+
28246
+ /** ReverseHistorySync enabledProducts */
28247
+ enabledProducts?: (waproto.DeviceCapabilities.ReverseHistorySync.Product[]|null);
28248
+
28249
+ /** Unknown fields preserved while decoding when enabled */
28250
+ $unknowns?: Uint8Array[];
28251
+ }
28252
+
28253
+ /** Shape of a ReverseHistorySync. */
28254
+ type $Shape = waproto.DeviceCapabilities.ReverseHistorySync.$Properties;
28255
+
28256
+ /** Product enum. */
28257
+ enum Product {
28258
+
28259
+ /** PRODUCT_UNSPECIFIED value */
28260
+ PRODUCT_UNSPECIFIED = 0,
28261
+
28262
+ /** HATCH value */
28263
+ HATCH = 1
28264
+ }
28265
+ }
28266
+
27999
28267
  /**
28000
28268
  * Properties of a UserHasAvatar.
28001
28269
  * @deprecated Use waproto.DeviceCapabilities.UserHasAvatar.$Properties instead.
package/dist/index.js CHANGED
@@ -78867,6 +78867,8 @@ $root.waproto = (function() {
78867
78867
  * @property {waproto.DeviceCapabilities.AiFbidMigration.$Properties|null} [aiFbidMigration] DeviceCapabilities aiFbidMigration
78868
78868
  * @property {waproto.DeviceCapabilities.BizAiSettingsSync.$Properties|null} [bizAiSettingsSync] DeviceCapabilities bizAiSettingsSync
78869
78869
  * @property {waproto.DeviceCapabilities.ContactRefresh.$Properties|null} [contactRefresh] DeviceCapabilities contactRefresh
78870
+ * @property {waproto.DeviceCapabilities.ReverseHistorySync.$Properties|null} [reverseHistorySync] DeviceCapabilities reverseHistorySync
78871
+ * @property {waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties|null} [newsletterChatsMigration] DeviceCapabilities newsletterChatsMigration
78870
78872
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
78871
78873
  */
78872
78874
 
@@ -78970,6 +78972,22 @@ $root.waproto = (function() {
78970
78972
  */
78971
78973
  DeviceCapabilities.prototype.contactRefresh = null;
78972
78974
 
78975
+ /**
78976
+ * DeviceCapabilities reverseHistorySync.
78977
+ * @member {waproto.DeviceCapabilities.ReverseHistorySync.$Properties|null|undefined} reverseHistorySync
78978
+ * @memberof waproto.DeviceCapabilities
78979
+ * @instance
78980
+ */
78981
+ DeviceCapabilities.prototype.reverseHistorySync = null;
78982
+
78983
+ /**
78984
+ * DeviceCapabilities newsletterChatsMigration.
78985
+ * @member {waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties|null|undefined} newsletterChatsMigration
78986
+ * @memberof waproto.DeviceCapabilities
78987
+ * @instance
78988
+ */
78989
+ DeviceCapabilities.prototype.newsletterChatsMigration = null;
78990
+
78973
78991
  // OneOf field names bound to virtual getters and setters
78974
78992
  var $oneOfFields;
78975
78993
 
@@ -79027,6 +79045,18 @@ $root.waproto = (function() {
79027
79045
  set: $util.oneOfSetter($oneOfFields)
79028
79046
  });
79029
79047
 
79048
+ // Virtual OneOf for proto3 optional field
79049
+ $Object.defineProperty(DeviceCapabilities.prototype, "_reverseHistorySync", {
79050
+ get: $util.oneOfGetter($oneOfFields = ["reverseHistorySync"]),
79051
+ set: $util.oneOfSetter($oneOfFields)
79052
+ });
79053
+
79054
+ // Virtual OneOf for proto3 optional field
79055
+ $Object.defineProperty(DeviceCapabilities.prototype, "_newsletterChatsMigration", {
79056
+ get: $util.oneOfGetter($oneOfFields = ["newsletterChatsMigration"]),
79057
+ set: $util.oneOfSetter($oneOfFields)
79058
+ });
79059
+
79030
79060
  /**
79031
79061
  * Creates a new DeviceCapabilities instance using the specified properties.
79032
79062
  * @function create
@@ -79077,6 +79107,10 @@ $root.waproto = (function() {
79077
79107
  $root.waproto.DeviceCapabilities.BizAiSettingsSync.encode(message.bizAiSettingsSync, writer.uint32(/* id 8, wireType 2 =*/66).fork(), _depth + 1).ldelim();
79078
79108
  if (message.contactRefresh != null && $Object.hasOwnProperty.call(message, "contactRefresh"))
79079
79109
  $root.waproto.DeviceCapabilities.ContactRefresh.encode(message.contactRefresh, writer.uint32(/* id 9, wireType 2 =*/74).fork(), _depth + 1).ldelim();
79110
+ if (message.reverseHistorySync != null && $Object.hasOwnProperty.call(message, "reverseHistorySync"))
79111
+ $root.waproto.DeviceCapabilities.ReverseHistorySync.encode(message.reverseHistorySync, writer.uint32(/* id 10, wireType 2 =*/82).fork(), _depth + 1).ldelim();
79112
+ if (message.newsletterChatsMigration != null && $Object.hasOwnProperty.call(message, "newsletterChatsMigration"))
79113
+ $root.waproto.DeviceCapabilities.NewsletterChatsMigration.encode(message.newsletterChatsMigration, writer.uint32(/* id 11, wireType 2 =*/90).fork(), _depth + 1).ldelim();
79080
79114
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
79081
79115
  for (var i = 0; i < message.$unknowns.length; ++i)
79082
79116
  writer.raw(message.$unknowns[i]);
@@ -79197,6 +79231,20 @@ $root.waproto = (function() {
79197
79231
  message._contactRefresh = "contactRefresh";
79198
79232
  continue;
79199
79233
  }
79234
+ case 10: {
79235
+ if (wireType !== 2)
79236
+ break;
79237
+ message.reverseHistorySync = $root.waproto.DeviceCapabilities.ReverseHistorySync.decode(reader, reader.uint32(), $undefined, _depth + 1, message.reverseHistorySync);
79238
+ message._reverseHistorySync = "reverseHistorySync";
79239
+ continue;
79240
+ }
79241
+ case 11: {
79242
+ if (wireType !== 2)
79243
+ break;
79244
+ message.newsletterChatsMigration = $root.waproto.DeviceCapabilities.NewsletterChatsMigration.decode(reader, reader.uint32(), $undefined, _depth + 1, message.newsletterChatsMigration);
79245
+ message._newsletterChatsMigration = "newsletterChatsMigration";
79246
+ continue;
79247
+ }
79200
79248
  }
79201
79249
  reader.skipType(wireType, _depth, tag);
79202
79250
  if (!reader.discardUnknown) {
@@ -79312,6 +79360,22 @@ $root.waproto = (function() {
79312
79360
  return "contactRefresh." + error;
79313
79361
  }
79314
79362
  }
79363
+ if (message.reverseHistorySync != null && $Object.hasOwnProperty.call(message, "reverseHistorySync")) {
79364
+ properties._reverseHistorySync = 1;
79365
+ {
79366
+ var error = $root.waproto.DeviceCapabilities.ReverseHistorySync.verify(message.reverseHistorySync, _depth + 1);
79367
+ if (error)
79368
+ return "reverseHistorySync." + error;
79369
+ }
79370
+ }
79371
+ if (message.newsletterChatsMigration != null && $Object.hasOwnProperty.call(message, "newsletterChatsMigration")) {
79372
+ properties._newsletterChatsMigration = 1;
79373
+ {
79374
+ var error = $root.waproto.DeviceCapabilities.NewsletterChatsMigration.verify(message.newsletterChatsMigration, _depth + 1);
79375
+ if (error)
79376
+ return "newsletterChatsMigration." + error;
79377
+ }
79378
+ }
79315
79379
  return null;
79316
79380
  };
79317
79381
 
@@ -79402,6 +79466,16 @@ $root.waproto = (function() {
79402
79466
  throw $TypeError(".waproto.DeviceCapabilities.contactRefresh: object expected");
79403
79467
  message.contactRefresh = $root.waproto.DeviceCapabilities.ContactRefresh.fromObject(object.contactRefresh, _depth + 1);
79404
79468
  }
79469
+ if (object.reverseHistorySync != null) {
79470
+ if (!$util.isObject(object.reverseHistorySync))
79471
+ throw $TypeError(".waproto.DeviceCapabilities.reverseHistorySync: object expected");
79472
+ message.reverseHistorySync = $root.waproto.DeviceCapabilities.ReverseHistorySync.fromObject(object.reverseHistorySync, _depth + 1);
79473
+ }
79474
+ if (object.newsletterChatsMigration != null) {
79475
+ if (!$util.isObject(object.newsletterChatsMigration))
79476
+ throw $TypeError(".waproto.DeviceCapabilities.newsletterChatsMigration: object expected");
79477
+ message.newsletterChatsMigration = $root.waproto.DeviceCapabilities.NewsletterChatsMigration.fromObject(object.newsletterChatsMigration, _depth + 1);
79478
+ }
79405
79479
  return message;
79406
79480
  };
79407
79481
 
@@ -79440,6 +79514,10 @@ $root.waproto = (function() {
79440
79514
  object.bizAiSettingsSync = $root.waproto.DeviceCapabilities.BizAiSettingsSync.toObject(message.bizAiSettingsSync, options, _depth + 1);
79441
79515
  if (message.contactRefresh != null && $Object.hasOwnProperty.call(message, "contactRefresh"))
79442
79516
  object.contactRefresh = $root.waproto.DeviceCapabilities.ContactRefresh.toObject(message.contactRefresh, options, _depth + 1);
79517
+ if (message.reverseHistorySync != null && $Object.hasOwnProperty.call(message, "reverseHistorySync"))
79518
+ object.reverseHistorySync = $root.waproto.DeviceCapabilities.ReverseHistorySync.toObject(message.reverseHistorySync, options, _depth + 1);
79519
+ if (message.newsletterChatsMigration != null && $Object.hasOwnProperty.call(message, "newsletterChatsMigration"))
79520
+ object.newsletterChatsMigration = $root.waproto.DeviceCapabilities.NewsletterChatsMigration.toObject(message.newsletterChatsMigration, options, _depth + 1);
79443
79521
  return object;
79444
79522
  };
79445
79523
 
@@ -81445,6 +81523,684 @@ $root.waproto = (function() {
81445
81523
  return values;
81446
81524
  })();
81447
81525
 
81526
+ DeviceCapabilities.NewsletterChatsMigration = (function() {
81527
+
81528
+ /**
81529
+ * Properties of a NewsletterChatsMigration.
81530
+ * @typedef {Object} waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties
81531
+ * @property {boolean|null} [effectiveMigrated] NewsletterChatsMigration effectiveMigrated
81532
+ * @property {number|Long|null} [countdownEndsAt] NewsletterChatsMigration countdownEndsAt
81533
+ * @property {boolean|null} [rolledBack] NewsletterChatsMigration rolledBack
81534
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
81535
+ */
81536
+
81537
+ /**
81538
+ * Properties of a NewsletterChatsMigration.
81539
+ * @memberof waproto.DeviceCapabilities
81540
+ * @interface INewsletterChatsMigration
81541
+ * @augments waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties
81542
+ * @deprecated Use waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties instead.
81543
+ */
81544
+
81545
+ /**
81546
+ * Shape of a NewsletterChatsMigration.
81547
+ * @typedef {waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties} waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape
81548
+ */
81549
+
81550
+ /**
81551
+ * Constructs a new NewsletterChatsMigration.
81552
+ * @memberof waproto.DeviceCapabilities
81553
+ * @classdesc Represents a NewsletterChatsMigration.
81554
+ * @constructor
81555
+ * @param {waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties=} [properties] Properties to set
81556
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
81557
+ */
81558
+ var NewsletterChatsMigration = function (properties) {
81559
+ if (properties)
81560
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
81561
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
81562
+ this[keys[i]] = properties[keys[i]];
81563
+ };
81564
+
81565
+ /**
81566
+ * NewsletterChatsMigration effectiveMigrated.
81567
+ * @member {boolean|null|undefined} effectiveMigrated
81568
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81569
+ * @instance
81570
+ */
81571
+ NewsletterChatsMigration.prototype.effectiveMigrated = null;
81572
+
81573
+ /**
81574
+ * NewsletterChatsMigration countdownEndsAt.
81575
+ * @member {number|Long|null|undefined} countdownEndsAt
81576
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81577
+ * @instance
81578
+ */
81579
+ NewsletterChatsMigration.prototype.countdownEndsAt = null;
81580
+
81581
+ /**
81582
+ * NewsletterChatsMigration rolledBack.
81583
+ * @member {boolean|null|undefined} rolledBack
81584
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81585
+ * @instance
81586
+ */
81587
+ NewsletterChatsMigration.prototype.rolledBack = null;
81588
+
81589
+ // OneOf field names bound to virtual getters and setters
81590
+ var $oneOfFields;
81591
+
81592
+ // Virtual OneOf for proto3 optional field
81593
+ $Object.defineProperty(NewsletterChatsMigration.prototype, "_effectiveMigrated", {
81594
+ get: $util.oneOfGetter($oneOfFields = ["effectiveMigrated"]),
81595
+ set: $util.oneOfSetter($oneOfFields)
81596
+ });
81597
+
81598
+ // Virtual OneOf for proto3 optional field
81599
+ $Object.defineProperty(NewsletterChatsMigration.prototype, "_countdownEndsAt", {
81600
+ get: $util.oneOfGetter($oneOfFields = ["countdownEndsAt"]),
81601
+ set: $util.oneOfSetter($oneOfFields)
81602
+ });
81603
+
81604
+ // Virtual OneOf for proto3 optional field
81605
+ $Object.defineProperty(NewsletterChatsMigration.prototype, "_rolledBack", {
81606
+ get: $util.oneOfGetter($oneOfFields = ["rolledBack"]),
81607
+ set: $util.oneOfSetter($oneOfFields)
81608
+ });
81609
+
81610
+ /**
81611
+ * Creates a new NewsletterChatsMigration instance using the specified properties.
81612
+ * @function create
81613
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81614
+ * @static
81615
+ * @param {waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties=} [properties] Properties to set
81616
+ * @returns {waproto.DeviceCapabilities.NewsletterChatsMigration} NewsletterChatsMigration instance
81617
+ * @type {{
81618
+ * (properties: waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape): waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape;
81619
+ * (properties?: waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties): waproto.DeviceCapabilities.NewsletterChatsMigration;
81620
+ * }}
81621
+ */
81622
+ NewsletterChatsMigration.create = function(properties) {
81623
+ return new NewsletterChatsMigration(properties);
81624
+ };
81625
+
81626
+ /**
81627
+ * Encodes the specified NewsletterChatsMigration message. Does not implicitly {@link waproto.DeviceCapabilities.NewsletterChatsMigration.verify|verify} messages.
81628
+ * @function encode
81629
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81630
+ * @static
81631
+ * @param {waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties} message NewsletterChatsMigration message or plain object to encode
81632
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81633
+ * @returns {$protobuf.Writer} Writer
81634
+ */
81635
+ NewsletterChatsMigration.encode = function (message, writer, _depth) {
81636
+ if (!writer)
81637
+ writer = $Writer.create();
81638
+ if (_depth === $undefined)
81639
+ _depth = 0;
81640
+ if (_depth > $util.recursionLimit)
81641
+ throw $Error("max depth exceeded");
81642
+ if (message.effectiveMigrated != null && $Object.hasOwnProperty.call(message, "effectiveMigrated"))
81643
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.effectiveMigrated);
81644
+ if (message.countdownEndsAt != null && $Object.hasOwnProperty.call(message, "countdownEndsAt"))
81645
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.countdownEndsAt);
81646
+ if (message.rolledBack != null && $Object.hasOwnProperty.call(message, "rolledBack"))
81647
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.rolledBack);
81648
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
81649
+ for (var i = 0; i < message.$unknowns.length; ++i)
81650
+ writer.raw(message.$unknowns[i]);
81651
+ return writer;
81652
+ };
81653
+
81654
+ /**
81655
+ * Encodes the specified NewsletterChatsMigration message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.NewsletterChatsMigration.verify|verify} messages.
81656
+ * @function encodeDelimited
81657
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81658
+ * @static
81659
+ * @param {waproto.DeviceCapabilities.NewsletterChatsMigration.$Properties} message NewsletterChatsMigration message or plain object to encode
81660
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81661
+ * @returns {$protobuf.Writer} Writer
81662
+ */
81663
+ NewsletterChatsMigration.encodeDelimited = function(message, writer) {
81664
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
81665
+ };
81666
+
81667
+ /**
81668
+ * Decodes a NewsletterChatsMigration message from the specified reader or buffer.
81669
+ * @function decode
81670
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81671
+ * @static
81672
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81673
+ * @param {number} [length] Message length if known beforehand
81674
+ * @returns {waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape} NewsletterChatsMigration
81675
+ * @throws {Error} If the payload is not a reader or valid buffer
81676
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81677
+ */
81678
+ NewsletterChatsMigration.decode = function (reader, length, _end, _depth, _target) {
81679
+ if (!(reader instanceof $Reader))
81680
+ reader = $Reader.create(reader);
81681
+ if (_depth === $undefined)
81682
+ _depth = 0;
81683
+ if (_depth > $Reader.recursionLimit)
81684
+ throw $Error("max depth exceeded");
81685
+ var end, message;
81686
+ if (length === $undefined)
81687
+ end = reader.len;
81688
+ else {
81689
+ end = reader.pos + length;
81690
+ if (end > reader.len)
81691
+ throw $RangeError("index out of range");
81692
+ length = reader.len;
81693
+ reader.len = end;
81694
+ }
81695
+ message = _target || new $root.waproto.DeviceCapabilities.NewsletterChatsMigration();
81696
+ while (reader.pos < end) {
81697
+ var start = reader.pos;
81698
+ var tag = reader.tag();
81699
+ if (tag === _end) {
81700
+ _end = $undefined;
81701
+ break;
81702
+ }
81703
+ var wireType = tag & 7;
81704
+ switch (tag >>>= 3) {
81705
+ case 1: {
81706
+ if (wireType !== 0)
81707
+ break;
81708
+ message.effectiveMigrated = reader.bool();
81709
+ message._effectiveMigrated = "effectiveMigrated";
81710
+ continue;
81711
+ }
81712
+ case 2: {
81713
+ if (wireType !== 0)
81714
+ break;
81715
+ message.countdownEndsAt = reader.int64();
81716
+ message._countdownEndsAt = "countdownEndsAt";
81717
+ continue;
81718
+ }
81719
+ case 3: {
81720
+ if (wireType !== 0)
81721
+ break;
81722
+ message.rolledBack = reader.bool();
81723
+ message._rolledBack = "rolledBack";
81724
+ continue;
81725
+ }
81726
+ }
81727
+ reader.skipType(wireType, _depth, tag);
81728
+ if (!reader.discardUnknown) {
81729
+ $util.makeProp(message, "$unknowns", false);
81730
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
81731
+ }
81732
+ }
81733
+ if (length !== $undefined) {
81734
+ if (reader.pos !== end)
81735
+ throw $RangeError("index out of range");
81736
+ reader.len = length;
81737
+ }
81738
+ if (_end !== $undefined)
81739
+ throw $Error("missing end group");
81740
+ return message;
81741
+ };
81742
+
81743
+ /**
81744
+ * Decodes a NewsletterChatsMigration message from the specified reader or buffer, length delimited.
81745
+ * @function decodeDelimited
81746
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81747
+ * @static
81748
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81749
+ * @returns {waproto.DeviceCapabilities.NewsletterChatsMigration & waproto.DeviceCapabilities.NewsletterChatsMigration.$Shape} NewsletterChatsMigration
81750
+ * @throws {Error} If the payload is not a reader or valid buffer
81751
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81752
+ */
81753
+ NewsletterChatsMigration.decodeDelimited = function(reader) {
81754
+ if (!(reader instanceof $Reader))
81755
+ reader = new $Reader(reader);
81756
+ return this.decode(reader, reader.uint32());
81757
+ };
81758
+
81759
+ /**
81760
+ * Verifies a NewsletterChatsMigration message.
81761
+ * @function verify
81762
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81763
+ * @static
81764
+ * @param {Object.<string,*>} message Plain object to verify
81765
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81766
+ */
81767
+ NewsletterChatsMigration.verify = function (message, _depth) {
81768
+ if (typeof message !== "object" || message === null)
81769
+ return "object expected";
81770
+ if (_depth === $undefined)
81771
+ _depth = 0;
81772
+ if (_depth > $util.recursionLimit)
81773
+ return "max depth exceeded";
81774
+ var properties = {};
81775
+ if (message.effectiveMigrated != null && $Object.hasOwnProperty.call(message, "effectiveMigrated")) {
81776
+ properties._effectiveMigrated = 1;
81777
+ if (typeof message.effectiveMigrated !== "boolean")
81778
+ return "effectiveMigrated: boolean expected";
81779
+ }
81780
+ if (message.countdownEndsAt != null && $Object.hasOwnProperty.call(message, "countdownEndsAt")) {
81781
+ properties._countdownEndsAt = 1;
81782
+ if (!$util.isInteger(message.countdownEndsAt) && !(message.countdownEndsAt && $util.isInteger(message.countdownEndsAt.low) && $util.isInteger(message.countdownEndsAt.high)))
81783
+ return "countdownEndsAt: integer|Long expected";
81784
+ }
81785
+ if (message.rolledBack != null && $Object.hasOwnProperty.call(message, "rolledBack")) {
81786
+ properties._rolledBack = 1;
81787
+ if (typeof message.rolledBack !== "boolean")
81788
+ return "rolledBack: boolean expected";
81789
+ }
81790
+ return null;
81791
+ };
81792
+
81793
+ /**
81794
+ * Creates a NewsletterChatsMigration message from a plain object. Also converts values to their respective internal types.
81795
+ * @function fromObject
81796
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81797
+ * @static
81798
+ * @param {Object.<string,*>} object Plain object
81799
+ * @returns {waproto.DeviceCapabilities.NewsletterChatsMigration} NewsletterChatsMigration
81800
+ */
81801
+ NewsletterChatsMigration.fromObject = function (object, _depth) {
81802
+ if (object instanceof $root.waproto.DeviceCapabilities.NewsletterChatsMigration)
81803
+ return object;
81804
+ if (!$util.isObject(object))
81805
+ throw $TypeError(".waproto.DeviceCapabilities.NewsletterChatsMigration: object expected");
81806
+ if (_depth === $undefined)
81807
+ _depth = 0;
81808
+ if (_depth > $util.recursionLimit)
81809
+ throw $Error("max depth exceeded");
81810
+ var message = new $root.waproto.DeviceCapabilities.NewsletterChatsMigration();
81811
+ if (object.effectiveMigrated != null)
81812
+ message.effectiveMigrated = $Boolean(object.effectiveMigrated);
81813
+ if (object.countdownEndsAt != null)
81814
+ if ($util.Long)
81815
+ message.countdownEndsAt = $util.Long.fromValue(object.countdownEndsAt, false);
81816
+ else if (typeof object.countdownEndsAt === "string")
81817
+ message.countdownEndsAt = $parseInt(object.countdownEndsAt, 10);
81818
+ else if (typeof object.countdownEndsAt === "number")
81819
+ message.countdownEndsAt = object.countdownEndsAt;
81820
+ else if (typeof object.countdownEndsAt === "object")
81821
+ message.countdownEndsAt = new $util.LongBits(object.countdownEndsAt.low >>> 0, object.countdownEndsAt.high >>> 0).toNumber();
81822
+ if (object.rolledBack != null)
81823
+ message.rolledBack = $Boolean(object.rolledBack);
81824
+ return message;
81825
+ };
81826
+
81827
+ /**
81828
+ * Creates a plain object from a NewsletterChatsMigration message. Also converts values to other types if specified.
81829
+ * @function toObject
81830
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81831
+ * @static
81832
+ * @param {waproto.DeviceCapabilities.NewsletterChatsMigration} message NewsletterChatsMigration
81833
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81834
+ * @returns {Object.<string,*>} Plain object
81835
+ */
81836
+ NewsletterChatsMigration.toObject = function (message, options, _depth) {
81837
+ if (!options)
81838
+ options = {};
81839
+ if (_depth === $undefined)
81840
+ _depth = 0;
81841
+ if (_depth > $util.recursionLimit)
81842
+ throw $Error("max depth exceeded");
81843
+ var object = {};
81844
+ if (message.effectiveMigrated != null && $Object.hasOwnProperty.call(message, "effectiveMigrated"))
81845
+ object.effectiveMigrated = message.effectiveMigrated;
81846
+ if (message.countdownEndsAt != null && $Object.hasOwnProperty.call(message, "countdownEndsAt"))
81847
+ if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
81848
+ object.countdownEndsAt = typeof message.countdownEndsAt === "number" ? $BigInt(message.countdownEndsAt) : $util.Long.fromBits(message.countdownEndsAt.low >>> 0, message.countdownEndsAt.high >>> 0, false).toBigInt();
81849
+ else if (typeof message.countdownEndsAt === "number")
81850
+ object.countdownEndsAt = options.longs === $String ? $String(message.countdownEndsAt) : message.countdownEndsAt;
81851
+ else
81852
+ object.countdownEndsAt = options.longs === $String ? $util.Long.prototype.toString.call(message.countdownEndsAt) : options.longs === $Number ? new $util.LongBits(message.countdownEndsAt.low >>> 0, message.countdownEndsAt.high >>> 0).toNumber() : message.countdownEndsAt;
81853
+ if (message.rolledBack != null && $Object.hasOwnProperty.call(message, "rolledBack"))
81854
+ object.rolledBack = message.rolledBack;
81855
+ return object;
81856
+ };
81857
+
81858
+ /**
81859
+ * Converts this NewsletterChatsMigration to JSON.
81860
+ * @function toJSON
81861
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81862
+ * @instance
81863
+ * @returns {Object.<string,*>} JSON object
81864
+ */
81865
+ NewsletterChatsMigration.prototype.toJSON = function() {
81866
+ return NewsletterChatsMigration.toObject(this, $protobuf.util.toJSONOptions);
81867
+ };
81868
+
81869
+ /**
81870
+ * Gets the type url for NewsletterChatsMigration
81871
+ * @function getTypeUrl
81872
+ * @memberof waproto.DeviceCapabilities.NewsletterChatsMigration
81873
+ * @static
81874
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
81875
+ * @returns {string} The type url
81876
+ */
81877
+ NewsletterChatsMigration.getTypeUrl = function(prefix) {
81878
+ if (prefix === $undefined)
81879
+ prefix = "type.googleapis.com";
81880
+ return prefix + "/waproto.DeviceCapabilities.NewsletterChatsMigration";
81881
+ };
81882
+
81883
+ return NewsletterChatsMigration;
81884
+ })();
81885
+
81886
+ DeviceCapabilities.ReverseHistorySync = (function() {
81887
+
81888
+ /**
81889
+ * Properties of a ReverseHistorySync.
81890
+ * @typedef {Object} waproto.DeviceCapabilities.ReverseHistorySync.$Properties
81891
+ * @property {Array.<waproto.DeviceCapabilities.ReverseHistorySync.Product>|null} [enabledProducts] ReverseHistorySync enabledProducts
81892
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
81893
+ */
81894
+
81895
+ /**
81896
+ * Properties of a ReverseHistorySync.
81897
+ * @memberof waproto.DeviceCapabilities
81898
+ * @interface IReverseHistorySync
81899
+ * @augments waproto.DeviceCapabilities.ReverseHistorySync.$Properties
81900
+ * @deprecated Use waproto.DeviceCapabilities.ReverseHistorySync.$Properties instead.
81901
+ */
81902
+
81903
+ /**
81904
+ * Shape of a ReverseHistorySync.
81905
+ * @typedef {waproto.DeviceCapabilities.ReverseHistorySync.$Properties} waproto.DeviceCapabilities.ReverseHistorySync.$Shape
81906
+ */
81907
+
81908
+ /**
81909
+ * Constructs a new ReverseHistorySync.
81910
+ * @memberof waproto.DeviceCapabilities
81911
+ * @classdesc Represents a ReverseHistorySync.
81912
+ * @constructor
81913
+ * @param {waproto.DeviceCapabilities.ReverseHistorySync.$Properties=} [properties] Properties to set
81914
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
81915
+ */
81916
+ var ReverseHistorySync = function (properties) {
81917
+ this.enabledProducts = [];
81918
+ if (properties)
81919
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
81920
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
81921
+ this[keys[i]] = properties[keys[i]];
81922
+ };
81923
+
81924
+ /**
81925
+ * ReverseHistorySync enabledProducts.
81926
+ * @member {Array.<waproto.DeviceCapabilities.ReverseHistorySync.Product>} enabledProducts
81927
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
81928
+ * @instance
81929
+ */
81930
+ ReverseHistorySync.prototype.enabledProducts = $util.emptyArray;
81931
+
81932
+ /**
81933
+ * Creates a new ReverseHistorySync instance using the specified properties.
81934
+ * @function create
81935
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
81936
+ * @static
81937
+ * @param {waproto.DeviceCapabilities.ReverseHistorySync.$Properties=} [properties] Properties to set
81938
+ * @returns {waproto.DeviceCapabilities.ReverseHistorySync} ReverseHistorySync instance
81939
+ * @type {{
81940
+ * (properties: waproto.DeviceCapabilities.ReverseHistorySync.$Shape): waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape;
81941
+ * (properties?: waproto.DeviceCapabilities.ReverseHistorySync.$Properties): waproto.DeviceCapabilities.ReverseHistorySync;
81942
+ * }}
81943
+ */
81944
+ ReverseHistorySync.create = function(properties) {
81945
+ return new ReverseHistorySync(properties);
81946
+ };
81947
+
81948
+ /**
81949
+ * Encodes the specified ReverseHistorySync message. Does not implicitly {@link waproto.DeviceCapabilities.ReverseHistorySync.verify|verify} messages.
81950
+ * @function encode
81951
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
81952
+ * @static
81953
+ * @param {waproto.DeviceCapabilities.ReverseHistorySync.$Properties} message ReverseHistorySync message or plain object to encode
81954
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81955
+ * @returns {$protobuf.Writer} Writer
81956
+ */
81957
+ ReverseHistorySync.encode = function (message, writer, _depth) {
81958
+ if (!writer)
81959
+ writer = $Writer.create();
81960
+ if (_depth === $undefined)
81961
+ _depth = 0;
81962
+ if (_depth > $util.recursionLimit)
81963
+ throw $Error("max depth exceeded");
81964
+ if (message.enabledProducts != null && message.enabledProducts.length)
81965
+ writer.uint32(/* id 1, wireType 2 =*/10).int32s(message.enabledProducts);
81966
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
81967
+ for (var i = 0; i < message.$unknowns.length; ++i)
81968
+ writer.raw(message.$unknowns[i]);
81969
+ return writer;
81970
+ };
81971
+
81972
+ /**
81973
+ * Encodes the specified ReverseHistorySync message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.ReverseHistorySync.verify|verify} messages.
81974
+ * @function encodeDelimited
81975
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
81976
+ * @static
81977
+ * @param {waproto.DeviceCapabilities.ReverseHistorySync.$Properties} message ReverseHistorySync message or plain object to encode
81978
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81979
+ * @returns {$protobuf.Writer} Writer
81980
+ */
81981
+ ReverseHistorySync.encodeDelimited = function(message, writer) {
81982
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
81983
+ };
81984
+
81985
+ /**
81986
+ * Decodes a ReverseHistorySync message from the specified reader or buffer.
81987
+ * @function decode
81988
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
81989
+ * @static
81990
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81991
+ * @param {number} [length] Message length if known beforehand
81992
+ * @returns {waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape} ReverseHistorySync
81993
+ * @throws {Error} If the payload is not a reader or valid buffer
81994
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81995
+ */
81996
+ ReverseHistorySync.decode = function (reader, length, _end, _depth, _target) {
81997
+ if (!(reader instanceof $Reader))
81998
+ reader = $Reader.create(reader);
81999
+ if (_depth === $undefined)
82000
+ _depth = 0;
82001
+ if (_depth > $Reader.recursionLimit)
82002
+ throw $Error("max depth exceeded");
82003
+ var end, message, value;
82004
+ if (length === $undefined)
82005
+ end = reader.len;
82006
+ else {
82007
+ end = reader.pos + length;
82008
+ if (end > reader.len)
82009
+ throw $RangeError("index out of range");
82010
+ length = reader.len;
82011
+ reader.len = end;
82012
+ }
82013
+ message = _target || new $root.waproto.DeviceCapabilities.ReverseHistorySync();
82014
+ while (reader.pos < end) {
82015
+ var start = reader.pos;
82016
+ var tag = reader.tag();
82017
+ if (tag === _end) {
82018
+ _end = $undefined;
82019
+ break;
82020
+ }
82021
+ var wireType = tag & 7;
82022
+ switch (tag >>>= 3) {
82023
+ case 1: {
82024
+ if (wireType === 2) {
82025
+ if (!(message.enabledProducts && message.enabledProducts.length))
82026
+ message.enabledProducts = [];
82027
+ reader.int32s(message.enabledProducts);
82028
+ continue;
82029
+ }
82030
+ if (wireType !== 0)
82031
+ break;
82032
+ if (!(message.enabledProducts && message.enabledProducts.length))
82033
+ message.enabledProducts = [];
82034
+ message.enabledProducts.push(reader.int32());
82035
+ continue;
82036
+ }
82037
+ }
82038
+ reader.skipType(wireType, _depth, tag);
82039
+ if (!reader.discardUnknown) {
82040
+ $util.makeProp(message, "$unknowns", false);
82041
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
82042
+ }
82043
+ }
82044
+ if (length !== $undefined) {
82045
+ if (reader.pos !== end)
82046
+ throw $RangeError("index out of range");
82047
+ reader.len = length;
82048
+ }
82049
+ if (_end !== $undefined)
82050
+ throw $Error("missing end group");
82051
+ return message;
82052
+ };
82053
+
82054
+ /**
82055
+ * Decodes a ReverseHistorySync message from the specified reader or buffer, length delimited.
82056
+ * @function decodeDelimited
82057
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
82058
+ * @static
82059
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
82060
+ * @returns {waproto.DeviceCapabilities.ReverseHistorySync & waproto.DeviceCapabilities.ReverseHistorySync.$Shape} ReverseHistorySync
82061
+ * @throws {Error} If the payload is not a reader or valid buffer
82062
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
82063
+ */
82064
+ ReverseHistorySync.decodeDelimited = function(reader) {
82065
+ if (!(reader instanceof $Reader))
82066
+ reader = new $Reader(reader);
82067
+ return this.decode(reader, reader.uint32());
82068
+ };
82069
+
82070
+ /**
82071
+ * Verifies a ReverseHistorySync message.
82072
+ * @function verify
82073
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
82074
+ * @static
82075
+ * @param {Object.<string,*>} message Plain object to verify
82076
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
82077
+ */
82078
+ ReverseHistorySync.verify = function (message, _depth) {
82079
+ if (typeof message !== "object" || message === null)
82080
+ return "object expected";
82081
+ if (_depth === $undefined)
82082
+ _depth = 0;
82083
+ if (_depth > $util.recursionLimit)
82084
+ return "max depth exceeded";
82085
+ if (message.enabledProducts != null && $Object.hasOwnProperty.call(message, "enabledProducts")) {
82086
+ if (!$Array.isArray(message.enabledProducts))
82087
+ return "enabledProducts: array expected";
82088
+ for (var i = 0; i < message.enabledProducts.length; ++i)
82089
+ if (typeof message.enabledProducts[i] !== "number" || (message.enabledProducts[i] | 0) !== message.enabledProducts[i])
82090
+ return "enabledProducts: enum value[] expected";
82091
+ }
82092
+ return null;
82093
+ };
82094
+
82095
+ /**
82096
+ * Creates a ReverseHistorySync message from a plain object. Also converts values to their respective internal types.
82097
+ * @function fromObject
82098
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
82099
+ * @static
82100
+ * @param {Object.<string,*>} object Plain object
82101
+ * @returns {waproto.DeviceCapabilities.ReverseHistorySync} ReverseHistorySync
82102
+ */
82103
+ ReverseHistorySync.fromObject = function (object, _depth) {
82104
+ if (object instanceof $root.waproto.DeviceCapabilities.ReverseHistorySync)
82105
+ return object;
82106
+ if (!$util.isObject(object))
82107
+ throw $TypeError(".waproto.DeviceCapabilities.ReverseHistorySync: object expected");
82108
+ if (_depth === $undefined)
82109
+ _depth = 0;
82110
+ if (_depth > $util.recursionLimit)
82111
+ throw $Error("max depth exceeded");
82112
+ var message = new $root.waproto.DeviceCapabilities.ReverseHistorySync();
82113
+ if (object.enabledProducts) {
82114
+ if (!$Array.isArray(object.enabledProducts))
82115
+ throw $TypeError(".waproto.DeviceCapabilities.ReverseHistorySync.enabledProducts: array expected");
82116
+ message.enabledProducts = [];
82117
+ for (var i = 0; i < object.enabledProducts.length; ++i)
82118
+ switch (object.enabledProducts[i]) {
82119
+ case "PRODUCT_UNSPECIFIED":
82120
+ case 0:
82121
+ message.enabledProducts[message.enabledProducts.length] = 0;
82122
+ break;
82123
+ case "HATCH":
82124
+ case 1:
82125
+ message.enabledProducts[message.enabledProducts.length] = 1;
82126
+ break;
82127
+ default:
82128
+ if (typeof object.enabledProducts[i] === "number" && (object.enabledProducts[i] | 0) === object.enabledProducts[i])
82129
+ message.enabledProducts[message.enabledProducts.length] = object.enabledProducts[i];
82130
+ }
82131
+ }
82132
+ return message;
82133
+ };
82134
+
82135
+ /**
82136
+ * Creates a plain object from a ReverseHistorySync message. Also converts values to other types if specified.
82137
+ * @function toObject
82138
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
82139
+ * @static
82140
+ * @param {waproto.DeviceCapabilities.ReverseHistorySync} message ReverseHistorySync
82141
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
82142
+ * @returns {Object.<string,*>} Plain object
82143
+ */
82144
+ ReverseHistorySync.toObject = function (message, options, _depth) {
82145
+ if (!options)
82146
+ options = {};
82147
+ if (_depth === $undefined)
82148
+ _depth = 0;
82149
+ if (_depth > $util.recursionLimit)
82150
+ throw $Error("max depth exceeded");
82151
+ var object = {};
82152
+ if (options.arrays || options.defaults)
82153
+ object.enabledProducts = [];
82154
+ if (message.enabledProducts && message.enabledProducts.length) {
82155
+ object.enabledProducts = $Array(message.enabledProducts.length);
82156
+ for (var j = 0; j < message.enabledProducts.length; ++j)
82157
+ object.enabledProducts[j] = options.enums === $String ? $root.waproto.DeviceCapabilities.ReverseHistorySync.Product[message.enabledProducts[j]] === $undefined ? message.enabledProducts[j] : $root.waproto.DeviceCapabilities.ReverseHistorySync.Product[message.enabledProducts[j]] : message.enabledProducts[j];
82158
+ }
82159
+ return object;
82160
+ };
82161
+
82162
+ /**
82163
+ * Converts this ReverseHistorySync to JSON.
82164
+ * @function toJSON
82165
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
82166
+ * @instance
82167
+ * @returns {Object.<string,*>} JSON object
82168
+ */
82169
+ ReverseHistorySync.prototype.toJSON = function() {
82170
+ return ReverseHistorySync.toObject(this, $protobuf.util.toJSONOptions);
82171
+ };
82172
+
82173
+ /**
82174
+ * Gets the type url for ReverseHistorySync
82175
+ * @function getTypeUrl
82176
+ * @memberof waproto.DeviceCapabilities.ReverseHistorySync
82177
+ * @static
82178
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
82179
+ * @returns {string} The type url
82180
+ */
82181
+ ReverseHistorySync.getTypeUrl = function(prefix) {
82182
+ if (prefix === $undefined)
82183
+ prefix = "type.googleapis.com";
82184
+ return prefix + "/waproto.DeviceCapabilities.ReverseHistorySync";
82185
+ };
82186
+
82187
+ /**
82188
+ * Product enum.
82189
+ * @name waproto.DeviceCapabilities.ReverseHistorySync.Product
82190
+ * @enum {number}
82191
+ * @property {number} PRODUCT_UNSPECIFIED=0 PRODUCT_UNSPECIFIED value
82192
+ * @property {number} HATCH=1 HATCH value
82193
+ */
82194
+ ReverseHistorySync.Product = (function() {
82195
+ var valuesById = $Object.create(null), values = $Object.create(valuesById);
82196
+ values[valuesById[0] = "PRODUCT_UNSPECIFIED"] = 0;
82197
+ values[valuesById[1] = "HATCH"] = 1;
82198
+ return values;
82199
+ })();
82200
+
82201
+ return ReverseHistorySync;
82202
+ })();
82203
+
81448
82204
  DeviceCapabilities.UserHasAvatar = (function() {
81449
82205
 
81450
82206
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1049311260",
3
+ "version": "2.3000.1049405779",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "protobufjs": "^8.8.0"
27
27
  },
28
28
  "devDependencies": {
29
- "acorn": "^8.18.0",
29
+ "acorn": "^8.19.0",
30
30
  "acorn-walk": "^8.3.5",
31
31
  "protobufjs-cli": "^2.7.0",
32
32
  "puppeteer-real-browser": "^1.4.4"