@wppconnect/wa-proto 2.3000.1047679681 → 2.3000.1047700797

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.1047679681
4
+ /// WhatsApp Version: 2.3000.1047700797
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -2146,6 +2146,7 @@ message GroupHistory {
2146
2146
  repeated UnCountedAssociatedMessageList uncountedAssociatedMessageLists = 2;
2147
2147
  repeated WebMessageInfo commentMessages = 3;
2148
2148
  repeated WebMessageInfo outOfWindowPinnedMessages = 4;
2149
+ optional WebMessageInfo themeMessage = 5;
2149
2150
  }
2150
2151
 
2151
2152
  message GroupHistoryBundleInfo {
@@ -2171,6 +2172,7 @@ message GroupHistoryWithMessageBytes {
2171
2172
  repeated UnCountedAssociatedMessageListWithMessageBytes uncountedAssociatedMessageLists = 2;
2172
2173
  repeated WebMessageInfoWithMessageBytes commentMessages = 3;
2173
2174
  repeated WebMessageInfoWithMessageBytes outOfWindowPinnedMessages = 4;
2175
+ optional WebMessageInfoWithMessageBytes themeMessage = 5;
2174
2176
  }
2175
2177
 
2176
2178
  message GroupMention {
@@ -3543,6 +3545,7 @@ message Message {
3543
3545
  optional int64 messageCount = 3;
3544
3546
  repeated string nonHistoryReceivers = 4;
3545
3547
  optional int64 oldestMessageTimestampInBundle = 5;
3548
+ optional bool includesChatTheme = 6;
3546
3549
  }
3547
3550
 
3548
3551
  message MessageHistoryNotice {
@@ -4450,6 +4453,7 @@ message Message {
4450
4453
  optional string metadataUrl = 30;
4451
4454
  optional VideoSourceType videoSourceType = 31;
4452
4455
  optional string dashManifestUrl = 33;
4456
+ optional int64 smartThumbnailTs = 34;
4453
4457
  enum Attribution {
4454
4458
  NONE = 0;
4455
4459
  GIPHY = 1;
@@ -6745,6 +6749,7 @@ message WebMessageInfo {
6745
6749
  ORDER_EPHEMERAL_EXEMPTION = 250;
6746
6750
  CAMEO_CHAT_CREATED = 254;
6747
6751
  CAMEO_TRANSITIONED = 256;
6752
+ SENDER_SIDE_CONTACT_INFO = 255;
6748
6753
  }
6749
6754
  }
6750
6755
 
package/dist/index.d.ts CHANGED
@@ -27621,6 +27621,9 @@ export namespace waproto {
27621
27621
  /** GroupHistory outOfWindowPinnedMessages. */
27622
27622
  outOfWindowPinnedMessages: waproto.WebMessageInfo.$Properties[];
27623
27623
 
27624
+ /** GroupHistory themeMessage. */
27625
+ themeMessage?: (waproto.WebMessageInfo.$Properties|null);
27626
+
27624
27627
  /**
27625
27628
  * Creates a new GroupHistory instance using the specified properties.
27626
27629
  * @param [properties] Properties to set
@@ -27717,6 +27720,9 @@ export namespace waproto {
27717
27720
  /** GroupHistory outOfWindowPinnedMessages */
27718
27721
  outOfWindowPinnedMessages?: (waproto.WebMessageInfo.$Properties[]|null);
27719
27722
 
27723
+ /** GroupHistory themeMessage */
27724
+ themeMessage?: (waproto.WebMessageInfo.$Properties|null);
27725
+
27720
27726
  /** Unknown fields preserved while decoding when enabled */
27721
27727
  $unknowns?: Uint8Array[];
27722
27728
  }
@@ -27727,6 +27733,7 @@ export namespace waproto {
27727
27733
  uncountedAssociatedMessageLists?: waproto.UnCountedAssociatedMessageList.$Shape[]|null;
27728
27734
  commentMessages?: waproto.WebMessageInfo.$Shape[]|null;
27729
27735
  outOfWindowPinnedMessages?: waproto.WebMessageInfo.$Shape[]|null;
27736
+ themeMessage?: waproto.WebMessageInfo.$Shape|null;
27730
27737
  $unknowns?: Uint8Array[];
27731
27738
  };
27732
27739
  }
@@ -28034,6 +28041,9 @@ export namespace waproto {
28034
28041
  /** GroupHistoryWithMessageBytes outOfWindowPinnedMessages. */
28035
28042
  outOfWindowPinnedMessages: waproto.WebMessageInfoWithMessageBytes.$Properties[];
28036
28043
 
28044
+ /** GroupHistoryWithMessageBytes themeMessage. */
28045
+ themeMessage?: (waproto.WebMessageInfoWithMessageBytes.$Properties|null);
28046
+
28037
28047
  /**
28038
28048
  * Creates a new GroupHistoryWithMessageBytes instance using the specified properties.
28039
28049
  * @param [properties] Properties to set
@@ -28130,6 +28140,9 @@ export namespace waproto {
28130
28140
  /** GroupHistoryWithMessageBytes outOfWindowPinnedMessages */
28131
28141
  outOfWindowPinnedMessages?: (waproto.WebMessageInfoWithMessageBytes.$Properties[]|null);
28132
28142
 
28143
+ /** GroupHistoryWithMessageBytes themeMessage */
28144
+ themeMessage?: (waproto.WebMessageInfoWithMessageBytes.$Properties|null);
28145
+
28133
28146
  /** Unknown fields preserved while decoding when enabled */
28134
28147
  $unknowns?: Uint8Array[];
28135
28148
  }
@@ -48049,6 +48062,9 @@ export namespace waproto {
48049
48062
  /** MessageHistoryMetadata oldestMessageTimestampInBundle. */
48050
48063
  oldestMessageTimestampInBundle?: (number|Long|null);
48051
48064
 
48065
+ /** MessageHistoryMetadata includesChatTheme. */
48066
+ includesChatTheme?: (boolean|null);
48067
+
48052
48068
  /**
48053
48069
  * Creates a new MessageHistoryMetadata instance using the specified properties.
48054
48070
  * @param [properties] Properties to set
@@ -48148,6 +48164,9 @@ export namespace waproto {
48148
48164
  /** MessageHistoryMetadata oldestMessageTimestampInBundle */
48149
48165
  oldestMessageTimestampInBundle?: (number|Long|null);
48150
48166
 
48167
+ /** MessageHistoryMetadata includesChatTheme */
48168
+ includesChatTheme?: (boolean|null);
48169
+
48151
48170
  /** Unknown fields preserved while decoding when enabled */
48152
48171
  $unknowns?: Uint8Array[];
48153
48172
  }
@@ -61199,6 +61218,9 @@ export namespace waproto {
61199
61218
  /** VideoMessage dashManifestUrl. */
61200
61219
  dashManifestUrl?: (string|null);
61201
61220
 
61221
+ /** VideoMessage smartThumbnailTs. */
61222
+ smartThumbnailTs?: (number|Long|null);
61223
+
61202
61224
  /**
61203
61225
  * Creates a new VideoMessage instance using the specified properties.
61204
61226
  * @param [properties] Properties to set
@@ -61376,6 +61398,9 @@ export namespace waproto {
61376
61398
  /** VideoMessage dashManifestUrl */
61377
61399
  dashManifestUrl?: (string|null);
61378
61400
 
61401
+ /** VideoMessage smartThumbnailTs */
61402
+ smartThumbnailTs?: (number|Long|null);
61403
+
61379
61404
  /** Unknown fields preserved while decoding when enabled */
61380
61405
  $unknowns?: Uint8Array[];
61381
61406
  }
@@ -61413,6 +61438,7 @@ export namespace waproto {
61413
61438
  metadataUrl?: string|null;
61414
61439
  videoSourceType?: waproto.Message.VideoMessage.VideoSourceType|null;
61415
61440
  dashManifestUrl?: string|null;
61441
+ smartThumbnailTs?: number|Long|null;
61416
61442
  $unknowns?: Uint8Array[];
61417
61443
  };
61418
61444
 
@@ -92087,7 +92113,10 @@ export namespace waproto {
92087
92113
  CAMEO_CHAT_CREATED = 254,
92088
92114
 
92089
92115
  /** CAMEO_TRANSITIONED value */
92090
- CAMEO_TRANSITIONED = 256
92116
+ CAMEO_TRANSITIONED = 256,
92117
+
92118
+ /** SENDER_SIDE_CONTACT_INFO value */
92119
+ SENDER_SIDE_CONTACT_INFO = 255
92091
92120
  }
92092
92121
  }
92093
92122
 
package/dist/index.js CHANGED
@@ -81796,6 +81796,7 @@ $root.waproto = (function() {
81796
81796
  * @property {Array.<waproto.UnCountedAssociatedMessageList.$Properties>|null} [uncountedAssociatedMessageLists] GroupHistory uncountedAssociatedMessageLists
81797
81797
  * @property {Array.<waproto.WebMessageInfo.$Properties>|null} [commentMessages] GroupHistory commentMessages
81798
81798
  * @property {Array.<waproto.WebMessageInfo.$Properties>|null} [outOfWindowPinnedMessages] GroupHistory outOfWindowPinnedMessages
81799
+ * @property {waproto.WebMessageInfo.$Properties|null} [themeMessage] GroupHistory themeMessage
81799
81800
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
81800
81801
  */
81801
81802
 
@@ -81814,6 +81815,7 @@ $root.waproto = (function() {
81814
81815
  * uncountedAssociatedMessageLists?: Array.<waproto.UnCountedAssociatedMessageList.$Shape>|null;
81815
81816
  * commentMessages?: Array.<waproto.WebMessageInfo.$Shape>|null;
81816
81817
  * outOfWindowPinnedMessages?: Array.<waproto.WebMessageInfo.$Shape>|null;
81818
+ * themeMessage?: waproto.WebMessageInfo.$Shape|null;
81817
81819
  * $unknowns?: Array.<Uint8Array>;
81818
81820
  * }} waproto.GroupHistory.$Shape
81819
81821
  */
@@ -81869,6 +81871,23 @@ $root.waproto = (function() {
81869
81871
  */
81870
81872
  GroupHistory.prototype.outOfWindowPinnedMessages = $util.emptyArray;
81871
81873
 
81874
+ /**
81875
+ * GroupHistory themeMessage.
81876
+ * @member {waproto.WebMessageInfo.$Properties|null|undefined} themeMessage
81877
+ * @memberof waproto.GroupHistory
81878
+ * @instance
81879
+ */
81880
+ GroupHistory.prototype.themeMessage = null;
81881
+
81882
+ // OneOf field names bound to virtual getters and setters
81883
+ var $oneOfFields;
81884
+
81885
+ // Virtual OneOf for proto3 optional field
81886
+ $Object.defineProperty(GroupHistory.prototype, "_themeMessage", {
81887
+ get: $util.oneOfGetter($oneOfFields = ["themeMessage"]),
81888
+ set: $util.oneOfSetter($oneOfFields)
81889
+ });
81890
+
81872
81891
  /**
81873
81892
  * Creates a new GroupHistory instance using the specified properties.
81874
81893
  * @function create
@@ -81913,6 +81932,8 @@ $root.waproto = (function() {
81913
81932
  if (message.outOfWindowPinnedMessages != null && message.outOfWindowPinnedMessages.length)
81914
81933
  for (var i = 0; i < message.outOfWindowPinnedMessages.length; ++i)
81915
81934
  $root.waproto.WebMessageInfo.encode(message.outOfWindowPinnedMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), _depth + 1).ldelim();
81935
+ if (message.themeMessage != null && $Object.hasOwnProperty.call(message, "themeMessage"))
81936
+ $root.waproto.WebMessageInfo.encode(message.themeMessage, writer.uint32(/* id 5, wireType 2 =*/42).fork(), _depth + 1).ldelim();
81916
81937
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
81917
81938
  for (var i = 0; i < message.$unknowns.length; ++i)
81918
81939
  writer.raw(message.$unknowns[i]);
@@ -82002,6 +82023,13 @@ $root.waproto = (function() {
82002
82023
  message.outOfWindowPinnedMessages.push($root.waproto.WebMessageInfo.decode(reader, reader.uint32(), $undefined, _depth + 1));
82003
82024
  continue;
82004
82025
  }
82026
+ case 5: {
82027
+ if (wireType !== 2)
82028
+ break;
82029
+ message.themeMessage = $root.waproto.WebMessageInfo.decode(reader, reader.uint32(), $undefined, _depth + 1, message.themeMessage);
82030
+ message._themeMessage = "themeMessage";
82031
+ continue;
82032
+ }
82005
82033
  }
82006
82034
  reader.skipType(wireType, _depth, tag);
82007
82035
  if (!reader.discardUnknown) {
@@ -82050,6 +82078,7 @@ $root.waproto = (function() {
82050
82078
  _depth = 0;
82051
82079
  if (_depth > $util.recursionLimit)
82052
82080
  return "max depth exceeded";
82081
+ var properties = {};
82053
82082
  if (message.messages != null && $Object.hasOwnProperty.call(message, "messages")) {
82054
82083
  if (!$Array.isArray(message.messages))
82055
82084
  return "messages: array expected";
@@ -82086,6 +82115,14 @@ $root.waproto = (function() {
82086
82115
  return "outOfWindowPinnedMessages." + error;
82087
82116
  }
82088
82117
  }
82118
+ if (message.themeMessage != null && $Object.hasOwnProperty.call(message, "themeMessage")) {
82119
+ properties._themeMessage = 1;
82120
+ {
82121
+ var error = $root.waproto.WebMessageInfo.verify(message.themeMessage, _depth + 1);
82122
+ if (error)
82123
+ return "themeMessage." + error;
82124
+ }
82125
+ }
82089
82126
  return null;
82090
82127
  };
82091
82128
 
@@ -82147,6 +82184,11 @@ $root.waproto = (function() {
82147
82184
  message.outOfWindowPinnedMessages[i] = $root.waproto.WebMessageInfo.fromObject(object.outOfWindowPinnedMessages[i], _depth + 1);
82148
82185
  }
82149
82186
  }
82187
+ if (object.themeMessage != null) {
82188
+ if (!$util.isObject(object.themeMessage))
82189
+ throw $TypeError(".waproto.GroupHistory.themeMessage: object expected");
82190
+ message.themeMessage = $root.waproto.WebMessageInfo.fromObject(object.themeMessage, _depth + 1);
82191
+ }
82150
82192
  return message;
82151
82193
  };
82152
82194
 
@@ -82193,6 +82235,8 @@ $root.waproto = (function() {
82193
82235
  for (var j = 0; j < message.outOfWindowPinnedMessages.length; ++j)
82194
82236
  object.outOfWindowPinnedMessages[j] = $root.waproto.WebMessageInfo.toObject(message.outOfWindowPinnedMessages[j], options, _depth + 1);
82195
82237
  }
82238
+ if (message.themeMessage != null && $Object.hasOwnProperty.call(message, "themeMessage"))
82239
+ object.themeMessage = $root.waproto.WebMessageInfo.toObject(message.themeMessage, options, _depth + 1);
82196
82240
  return object;
82197
82241
  };
82198
82242
 
@@ -82928,6 +82972,7 @@ $root.waproto = (function() {
82928
82972
  * @property {Array.<waproto.UnCountedAssociatedMessageListWithMessageBytes.$Properties>|null} [uncountedAssociatedMessageLists] GroupHistoryWithMessageBytes uncountedAssociatedMessageLists
82929
82973
  * @property {Array.<waproto.WebMessageInfoWithMessageBytes.$Properties>|null} [commentMessages] GroupHistoryWithMessageBytes commentMessages
82930
82974
  * @property {Array.<waproto.WebMessageInfoWithMessageBytes.$Properties>|null} [outOfWindowPinnedMessages] GroupHistoryWithMessageBytes outOfWindowPinnedMessages
82975
+ * @property {waproto.WebMessageInfoWithMessageBytes.$Properties|null} [themeMessage] GroupHistoryWithMessageBytes themeMessage
82931
82976
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
82932
82977
  */
82933
82978
 
@@ -82995,6 +83040,23 @@ $root.waproto = (function() {
82995
83040
  */
82996
83041
  GroupHistoryWithMessageBytes.prototype.outOfWindowPinnedMessages = $util.emptyArray;
82997
83042
 
83043
+ /**
83044
+ * GroupHistoryWithMessageBytes themeMessage.
83045
+ * @member {waproto.WebMessageInfoWithMessageBytes.$Properties|null|undefined} themeMessage
83046
+ * @memberof waproto.GroupHistoryWithMessageBytes
83047
+ * @instance
83048
+ */
83049
+ GroupHistoryWithMessageBytes.prototype.themeMessage = null;
83050
+
83051
+ // OneOf field names bound to virtual getters and setters
83052
+ var $oneOfFields;
83053
+
83054
+ // Virtual OneOf for proto3 optional field
83055
+ $Object.defineProperty(GroupHistoryWithMessageBytes.prototype, "_themeMessage", {
83056
+ get: $util.oneOfGetter($oneOfFields = ["themeMessage"]),
83057
+ set: $util.oneOfSetter($oneOfFields)
83058
+ });
83059
+
82998
83060
  /**
82999
83061
  * Creates a new GroupHistoryWithMessageBytes instance using the specified properties.
83000
83062
  * @function create
@@ -83039,6 +83101,8 @@ $root.waproto = (function() {
83039
83101
  if (message.outOfWindowPinnedMessages != null && message.outOfWindowPinnedMessages.length)
83040
83102
  for (var i = 0; i < message.outOfWindowPinnedMessages.length; ++i)
83041
83103
  $root.waproto.WebMessageInfoWithMessageBytes.encode(message.outOfWindowPinnedMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), _depth + 1).ldelim();
83104
+ if (message.themeMessage != null && $Object.hasOwnProperty.call(message, "themeMessage"))
83105
+ $root.waproto.WebMessageInfoWithMessageBytes.encode(message.themeMessage, writer.uint32(/* id 5, wireType 2 =*/42).fork(), _depth + 1).ldelim();
83042
83106
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
83043
83107
  for (var i = 0; i < message.$unknowns.length; ++i)
83044
83108
  writer.raw(message.$unknowns[i]);
@@ -83128,6 +83192,13 @@ $root.waproto = (function() {
83128
83192
  message.outOfWindowPinnedMessages.push($root.waproto.WebMessageInfoWithMessageBytes.decode(reader, reader.uint32(), $undefined, _depth + 1));
83129
83193
  continue;
83130
83194
  }
83195
+ case 5: {
83196
+ if (wireType !== 2)
83197
+ break;
83198
+ message.themeMessage = $root.waproto.WebMessageInfoWithMessageBytes.decode(reader, reader.uint32(), $undefined, _depth + 1, message.themeMessage);
83199
+ message._themeMessage = "themeMessage";
83200
+ continue;
83201
+ }
83131
83202
  }
83132
83203
  reader.skipType(wireType, _depth, tag);
83133
83204
  if (!reader.discardUnknown) {
@@ -83176,6 +83247,7 @@ $root.waproto = (function() {
83176
83247
  _depth = 0;
83177
83248
  if (_depth > $util.recursionLimit)
83178
83249
  return "max depth exceeded";
83250
+ var properties = {};
83179
83251
  if (message.messages != null && $Object.hasOwnProperty.call(message, "messages")) {
83180
83252
  if (!$Array.isArray(message.messages))
83181
83253
  return "messages: array expected";
@@ -83212,6 +83284,14 @@ $root.waproto = (function() {
83212
83284
  return "outOfWindowPinnedMessages." + error;
83213
83285
  }
83214
83286
  }
83287
+ if (message.themeMessage != null && $Object.hasOwnProperty.call(message, "themeMessage")) {
83288
+ properties._themeMessage = 1;
83289
+ {
83290
+ var error = $root.waproto.WebMessageInfoWithMessageBytes.verify(message.themeMessage, _depth + 1);
83291
+ if (error)
83292
+ return "themeMessage." + error;
83293
+ }
83294
+ }
83215
83295
  return null;
83216
83296
  };
83217
83297
 
@@ -83273,6 +83353,11 @@ $root.waproto = (function() {
83273
83353
  message.outOfWindowPinnedMessages[i] = $root.waproto.WebMessageInfoWithMessageBytes.fromObject(object.outOfWindowPinnedMessages[i], _depth + 1);
83274
83354
  }
83275
83355
  }
83356
+ if (object.themeMessage != null) {
83357
+ if (!$util.isObject(object.themeMessage))
83358
+ throw $TypeError(".waproto.GroupHistoryWithMessageBytes.themeMessage: object expected");
83359
+ message.themeMessage = $root.waproto.WebMessageInfoWithMessageBytes.fromObject(object.themeMessage, _depth + 1);
83360
+ }
83276
83361
  return message;
83277
83362
  };
83278
83363
 
@@ -83319,6 +83404,8 @@ $root.waproto = (function() {
83319
83404
  for (var j = 0; j < message.outOfWindowPinnedMessages.length; ++j)
83320
83405
  object.outOfWindowPinnedMessages[j] = $root.waproto.WebMessageInfoWithMessageBytes.toObject(message.outOfWindowPinnedMessages[j], options, _depth + 1);
83321
83406
  }
83407
+ if (message.themeMessage != null && $Object.hasOwnProperty.call(message, "themeMessage"))
83408
+ object.themeMessage = $root.waproto.WebMessageInfoWithMessageBytes.toObject(message.themeMessage, options, _depth + 1);
83322
83409
  return object;
83323
83410
  };
83324
83411
 
@@ -144199,6 +144286,7 @@ $root.waproto = (function() {
144199
144286
  * @property {number|Long|null} [messageCount] MessageHistoryMetadata messageCount
144200
144287
  * @property {Array.<string>|null} [nonHistoryReceivers] MessageHistoryMetadata nonHistoryReceivers
144201
144288
  * @property {number|Long|null} [oldestMessageTimestampInBundle] MessageHistoryMetadata oldestMessageTimestampInBundle
144289
+ * @property {boolean|null} [includesChatTheme] MessageHistoryMetadata includesChatTheme
144202
144290
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
144203
144291
  */
144204
144292
 
@@ -144272,6 +144360,14 @@ $root.waproto = (function() {
144272
144360
  */
144273
144361
  MessageHistoryMetadata.prototype.oldestMessageTimestampInBundle = null;
144274
144362
 
144363
+ /**
144364
+ * MessageHistoryMetadata includesChatTheme.
144365
+ * @member {boolean|null|undefined} includesChatTheme
144366
+ * @memberof waproto.Message.MessageHistoryMetadata
144367
+ * @instance
144368
+ */
144369
+ MessageHistoryMetadata.prototype.includesChatTheme = null;
144370
+
144275
144371
  // OneOf field names bound to virtual getters and setters
144276
144372
  var $oneOfFields;
144277
144373
 
@@ -144293,6 +144389,12 @@ $root.waproto = (function() {
144293
144389
  set: $util.oneOfSetter($oneOfFields)
144294
144390
  });
144295
144391
 
144392
+ // Virtual OneOf for proto3 optional field
144393
+ $Object.defineProperty(MessageHistoryMetadata.prototype, "_includesChatTheme", {
144394
+ get: $util.oneOfGetter($oneOfFields = ["includesChatTheme"]),
144395
+ set: $util.oneOfSetter($oneOfFields)
144396
+ });
144397
+
144296
144398
  /**
144297
144399
  * Creates a new MessageHistoryMetadata instance using the specified properties.
144298
144400
  * @function create
@@ -144337,6 +144439,8 @@ $root.waproto = (function() {
144337
144439
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.nonHistoryReceivers[i]);
144338
144440
  if (message.oldestMessageTimestampInBundle != null && $Object.hasOwnProperty.call(message, "oldestMessageTimestampInBundle"))
144339
144441
  writer.uint32(/* id 5, wireType 0 =*/40).int64(message.oldestMessageTimestampInBundle);
144442
+ if (message.includesChatTheme != null && $Object.hasOwnProperty.call(message, "includesChatTheme"))
144443
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.includesChatTheme);
144340
144444
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
144341
144445
  for (var i = 0; i < message.$unknowns.length; ++i)
144342
144446
  writer.raw(message.$unknowns[i]);
@@ -144431,6 +144535,13 @@ $root.waproto = (function() {
144431
144535
  message._oldestMessageTimestampInBundle = "oldestMessageTimestampInBundle";
144432
144536
  continue;
144433
144537
  }
144538
+ case 6: {
144539
+ if (wireType !== 0)
144540
+ break;
144541
+ message.includesChatTheme = reader.bool();
144542
+ message._includesChatTheme = "includesChatTheme";
144543
+ continue;
144544
+ }
144434
144545
  }
144435
144546
  reader.skipType(wireType, _depth, tag);
144436
144547
  if (!reader.discardUnknown) {
@@ -144509,6 +144620,11 @@ $root.waproto = (function() {
144509
144620
  if (!$util.isInteger(message.oldestMessageTimestampInBundle) && !(message.oldestMessageTimestampInBundle && $util.isInteger(message.oldestMessageTimestampInBundle.low) && $util.isInteger(message.oldestMessageTimestampInBundle.high)))
144510
144621
  return "oldestMessageTimestampInBundle: integer|Long expected";
144511
144622
  }
144623
+ if (message.includesChatTheme != null && $Object.hasOwnProperty.call(message, "includesChatTheme")) {
144624
+ properties._includesChatTheme = 1;
144625
+ if (typeof message.includesChatTheme !== "boolean")
144626
+ return "includesChatTheme: boolean expected";
144627
+ }
144512
144628
  return null;
144513
144629
  };
144514
144630
 
@@ -144571,6 +144687,8 @@ $root.waproto = (function() {
144571
144687
  message.oldestMessageTimestampInBundle = object.oldestMessageTimestampInBundle;
144572
144688
  else if (typeof object.oldestMessageTimestampInBundle === "object")
144573
144689
  message.oldestMessageTimestampInBundle = new $util.LongBits(object.oldestMessageTimestampInBundle.low >>> 0, object.oldestMessageTimestampInBundle.high >>> 0).toNumber();
144690
+ if (object.includesChatTheme != null)
144691
+ message.includesChatTheme = $Boolean(object.includesChatTheme);
144574
144692
  return message;
144575
144693
  };
144576
144694
 
@@ -144626,6 +144744,8 @@ $root.waproto = (function() {
144626
144744
  object.oldestMessageTimestampInBundle = options.longs === $String ? $String(message.oldestMessageTimestampInBundle) : message.oldestMessageTimestampInBundle;
144627
144745
  else
144628
144746
  object.oldestMessageTimestampInBundle = options.longs === $String ? $util.Long.prototype.toString.call(message.oldestMessageTimestampInBundle) : options.longs === $Number ? new $util.LongBits(message.oldestMessageTimestampInBundle.low >>> 0, message.oldestMessageTimestampInBundle.high >>> 0).toNumber() : message.oldestMessageTimestampInBundle;
144747
+ if (message.includesChatTheme != null && $Object.hasOwnProperty.call(message, "includesChatTheme"))
144748
+ object.includesChatTheme = message.includesChatTheme;
144629
144749
  return object;
144630
144750
  };
144631
144751
 
@@ -182906,6 +183026,7 @@ $root.waproto = (function() {
182906
183026
  * @property {string|null} [metadataUrl] VideoMessage metadataUrl
182907
183027
  * @property {waproto.Message.VideoMessage.VideoSourceType|null} [videoSourceType] VideoMessage videoSourceType
182908
183028
  * @property {string|null} [dashManifestUrl] VideoMessage dashManifestUrl
183029
+ * @property {number|Long|null} [smartThumbnailTs] VideoMessage smartThumbnailTs
182909
183030
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
182910
183031
  */
182911
183032
 
@@ -182951,6 +183072,7 @@ $root.waproto = (function() {
182951
183072
  * metadataUrl?: string|null;
182952
183073
  * videoSourceType?: waproto.Message.VideoMessage.VideoSourceType|null;
182953
183074
  * dashManifestUrl?: string|null;
183075
+ * smartThumbnailTs?: number|Long|null;
182954
183076
  * $unknowns?: Array.<Uint8Array>;
182955
183077
  * }} waproto.Message.VideoMessage.$Shape
182956
183078
  */
@@ -183221,6 +183343,14 @@ $root.waproto = (function() {
183221
183343
  */
183222
183344
  VideoMessage.prototype.dashManifestUrl = null;
183223
183345
 
183346
+ /**
183347
+ * VideoMessage smartThumbnailTs.
183348
+ * @member {number|Long|null|undefined} smartThumbnailTs
183349
+ * @memberof waproto.Message.VideoMessage
183350
+ * @instance
183351
+ */
183352
+ VideoMessage.prototype.smartThumbnailTs = null;
183353
+
183224
183354
  // OneOf field names bound to virtual getters and setters
183225
183355
  var $oneOfFields;
183226
183356
 
@@ -183392,6 +183522,12 @@ $root.waproto = (function() {
183392
183522
  set: $util.oneOfSetter($oneOfFields)
183393
183523
  });
183394
183524
 
183525
+ // Virtual OneOf for proto3 optional field
183526
+ $Object.defineProperty(VideoMessage.prototype, "_smartThumbnailTs", {
183527
+ get: $util.oneOfGetter($oneOfFields = ["smartThumbnailTs"]),
183528
+ set: $util.oneOfSetter($oneOfFields)
183529
+ });
183530
+
183395
183531
  /**
183396
183532
  * Creates a new VideoMessage instance using the specified properties.
183397
183533
  * @function create
@@ -183489,6 +183625,8 @@ $root.waproto = (function() {
183489
183625
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.videoSourceType);
183490
183626
  if (message.dashManifestUrl != null && $Object.hasOwnProperty.call(message, "dashManifestUrl"))
183491
183627
  writer.uint32(/* id 33, wireType 2 =*/266).string(message.dashManifestUrl);
183628
+ if (message.smartThumbnailTs != null && $Object.hasOwnProperty.call(message, "smartThumbnailTs"))
183629
+ writer.uint32(/* id 34, wireType 0 =*/272).int64(message.smartThumbnailTs);
183492
183630
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
183493
183631
  for (var i = 0; i < message.$unknowns.length; ++i)
183494
183632
  writer.raw(message.$unknowns[i]);
@@ -183766,6 +183904,13 @@ $root.waproto = (function() {
183766
183904
  message._dashManifestUrl = "dashManifestUrl";
183767
183905
  continue;
183768
183906
  }
183907
+ case 34: {
183908
+ if (wireType !== 0)
183909
+ break;
183910
+ message.smartThumbnailTs = reader.int64();
183911
+ message._smartThumbnailTs = "smartThumbnailTs";
183912
+ continue;
183913
+ }
183769
183914
  }
183770
183915
  reader.skipType(wireType, _depth, tag);
183771
183916
  if (!reader.discardUnknown) {
@@ -183985,6 +184130,11 @@ $root.waproto = (function() {
183985
184130
  if (!$util.isString(message.dashManifestUrl))
183986
184131
  return "dashManifestUrl: string expected";
183987
184132
  }
184133
+ if (message.smartThumbnailTs != null && $Object.hasOwnProperty.call(message, "smartThumbnailTs")) {
184134
+ properties._smartThumbnailTs = 1;
184135
+ if (!$util.isInteger(message.smartThumbnailTs) && !(message.smartThumbnailTs && $util.isInteger(message.smartThumbnailTs.low) && $util.isInteger(message.smartThumbnailTs.high)))
184136
+ return "smartThumbnailTs: integer|Long expected";
184137
+ }
183988
184138
  return null;
183989
184139
  };
183990
184140
 
@@ -184167,6 +184317,15 @@ $root.waproto = (function() {
184167
184317
  }
184168
184318
  if (object.dashManifestUrl != null)
184169
184319
  message.dashManifestUrl = $String(object.dashManifestUrl);
184320
+ if (object.smartThumbnailTs != null)
184321
+ if ($util.Long)
184322
+ message.smartThumbnailTs = $util.Long.fromValue(object.smartThumbnailTs, false);
184323
+ else if (typeof object.smartThumbnailTs === "string")
184324
+ message.smartThumbnailTs = $parseInt(object.smartThumbnailTs, 10);
184325
+ else if (typeof object.smartThumbnailTs === "number")
184326
+ message.smartThumbnailTs = object.smartThumbnailTs;
184327
+ else if (typeof object.smartThumbnailTs === "object")
184328
+ message.smartThumbnailTs = new $util.LongBits(object.smartThumbnailTs.low >>> 0, object.smartThumbnailTs.high >>> 0).toNumber();
184170
184329
  return message;
184171
184330
  };
184172
184331
 
@@ -184278,6 +184437,13 @@ $root.waproto = (function() {
184278
184437
  object.videoSourceType = options.enums === $String ? $root.waproto.Message.VideoMessage.VideoSourceType[message.videoSourceType] === $undefined ? message.videoSourceType : $root.waproto.Message.VideoMessage.VideoSourceType[message.videoSourceType] : message.videoSourceType;
184279
184438
  if (message.dashManifestUrl != null && $Object.hasOwnProperty.call(message, "dashManifestUrl"))
184280
184439
  object.dashManifestUrl = message.dashManifestUrl;
184440
+ if (message.smartThumbnailTs != null && $Object.hasOwnProperty.call(message, "smartThumbnailTs"))
184441
+ if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
184442
+ object.smartThumbnailTs = typeof message.smartThumbnailTs === "number" ? $BigInt(message.smartThumbnailTs) : $util.Long.fromBits(message.smartThumbnailTs.low >>> 0, message.smartThumbnailTs.high >>> 0, false).toBigInt();
184443
+ else if (typeof message.smartThumbnailTs === "number")
184444
+ object.smartThumbnailTs = options.longs === $String ? $String(message.smartThumbnailTs) : message.smartThumbnailTs;
184445
+ else
184446
+ object.smartThumbnailTs = options.longs === $String ? $util.Long.prototype.toString.call(message.smartThumbnailTs) : options.longs === $Number ? new $util.LongBits(message.smartThumbnailTs.low >>> 0, message.smartThumbnailTs.high >>> 0).toNumber() : message.smartThumbnailTs;
184281
184447
  return object;
184282
184448
  };
184283
184449
 
@@ -272592,6 +272758,10 @@ $root.waproto = (function() {
272592
272758
  case 256:
272593
272759
  message.messageStubType = 256;
272594
272760
  break;
272761
+ case "SENDER_SIDE_CONTACT_INFO":
272762
+ case 255:
272763
+ message.messageStubType = 255;
272764
+ break;
272595
272765
  default:
272596
272766
  if (typeof object.messageStubType === "number" && (object.messageStubType | 0) === object.messageStubType)
272597
272767
  message.messageStubType = object.messageStubType;
@@ -273450,6 +273620,7 @@ $root.waproto = (function() {
273450
273620
  * @property {number} ORDER_EPHEMERAL_EXEMPTION=250 ORDER_EPHEMERAL_EXEMPTION value
273451
273621
  * @property {number} CAMEO_CHAT_CREATED=254 CAMEO_CHAT_CREATED value
273452
273622
  * @property {number} CAMEO_TRANSITIONED=256 CAMEO_TRANSITIONED value
273623
+ * @property {number} SENDER_SIDE_CONTACT_INFO=255 SENDER_SIDE_CONTACT_INFO value
273453
273624
  */
273454
273625
  WebMessageInfo.StubType = (function() {
273455
273626
  var valuesById = $Object.create(null), values = $Object.create(valuesById);
@@ -273690,6 +273861,7 @@ $root.waproto = (function() {
273690
273861
  values[valuesById[250] = "ORDER_EPHEMERAL_EXEMPTION"] = 250;
273691
273862
  values[valuesById[254] = "CAMEO_CHAT_CREATED"] = 254;
273692
273863
  values[valuesById[256] = "CAMEO_TRANSITIONED"] = 256;
273864
+ values[valuesById[255] = "SENDER_SIDE_CONTACT_INFO"] = 255;
273693
273865
  return values;
273694
273866
  })();
273695
273867
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1047679681",
3
+ "version": "2.3000.1047700797",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {