@wppconnect/wa-proto 2.3000.1024551647 → 2.3000.1024617758

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [2.3000.1024617758](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1024570263...v2.3000.1024617758) (2025-07-10)
2
+
3
+
4
+
5
+ ## [2.3000.1024570263](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1024551647...v2.3000.1024570263) (2025-07-09)
6
+
7
+
8
+
1
9
  ## [2.3000.1024551647](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1024478481...v2.3000.1024551647) (2025-07-09)
2
10
 
3
11
 
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1024551647
4
+ /// WhatsApp Version: 2.3000.1024617758
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -447,6 +447,8 @@ enum BotMetricsEntryPoint {
447
447
  ASK_META_AI_CONTEXT_MENU = 26;
448
448
  ASK_META_AI_CONTEXT_MENU_1ON1 = 27;
449
449
  ASK_META_AI_CONTEXT_MENU_GROUP = 28;
450
+ INVOKE_META_AI_1ON1 = 29;
451
+ INVOKE_META_AI_GROUP = 30;
450
452
  }
451
453
  message BotMetricsMetadata {
452
454
  optional string destinationId = 1;
@@ -1866,6 +1868,7 @@ message Message {
1866
1868
  optional fixed32 backgroundArgb = 20;
1867
1869
  optional bool viewOnce = 21;
1868
1870
  optional string accessibilityLabel = 22;
1871
+ optional Message.MediaKeyDomain mediaKeyDomain = 23;
1869
1872
  }
1870
1873
 
1871
1874
  message BCallMessage {
@@ -2097,6 +2100,7 @@ message Message {
2097
2100
  optional uint32 thumbnailWidth = 19;
2098
2101
  optional string caption = 20;
2099
2102
  optional string accessibilityLabel = 21;
2103
+ optional Message.MediaKeyDomain mediaKeyDomain = 22;
2100
2104
  }
2101
2105
 
2102
2106
  message EncCommentMessage {
@@ -2172,6 +2176,7 @@ message Message {
2172
2176
  optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
2173
2177
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
2174
2178
  repeated Message.VideoEndCard endCardTiles = 36;
2179
+ optional Message.MediaKeyDomain mediaKeyDomain = 37;
2175
2180
  enum FontType {
2176
2181
  SYSTEM = 0;
2177
2182
  SYSTEM_TEXT = 1;
@@ -2337,6 +2342,7 @@ message Message {
2337
2342
  repeated InteractiveAnnotation annotations = 30;
2338
2343
  optional ImageSourceType imageSourceType = 31;
2339
2344
  optional string accessibilityLabel = 32;
2345
+ optional Message.MediaKeyDomain mediaKeyDomain = 33;
2340
2346
  enum ImageSourceType {
2341
2347
  USER_IMAGE = 0;
2342
2348
  AI_GENERATED = 1;
@@ -2580,8 +2586,16 @@ message Message {
2580
2586
  optional int64 mediaKeyTimestamp = 5;
2581
2587
  optional uint32 thumbnailHeight = 6;
2582
2588
  optional uint32 thumbnailWidth = 7;
2589
+ optional Message.MediaKeyDomain mediaKeyDomain = 8;
2583
2590
  }
2584
2591
 
2592
+ enum MediaKeyDomain {
2593
+ UNSET = 0;
2594
+ E2EE_CHAT = 1;
2595
+ STATUS = 2;
2596
+ CAPI = 3;
2597
+ BOT = 4;
2598
+ }
2585
2599
  message MessageHistoryBundle {
2586
2600
  optional string mimetype = 1;
2587
2601
  optional bytes fileSha256 = 2;
@@ -3084,6 +3098,7 @@ message Message {
3084
3098
  optional bool isAiSticker = 20;
3085
3099
  optional bool isLottie = 21;
3086
3100
  optional string accessibilityLabel = 22;
3101
+ optional Message.MediaKeyDomain mediaKeyDomain = 23;
3087
3102
  }
3088
3103
 
3089
3104
  message StickerPackMessage {
@@ -3220,6 +3235,7 @@ message Message {
3220
3235
  optional uint64 motionPhotoPresentationOffsetMs = 29;
3221
3236
  optional string metadataUrl = 30;
3222
3237
  optional VideoSourceType videoSourceType = 31;
3238
+ optional Message.MediaKeyDomain mediaKeyDomain = 32;
3223
3239
  enum Attribution {
3224
3240
  NONE = 0;
3225
3241
  GIPHY = 1;
@@ -3830,6 +3846,7 @@ message StatusAttribution {
3830
3846
  SPOTIFY = 4;
3831
3847
  YOUTUBE = 5;
3832
3848
  PINTEREST = 6;
3849
+ THREADS = 7;
3833
3850
  }
3834
3851
  }
3835
3852
 
package/dist/index.d.ts CHANGED
@@ -5063,7 +5063,9 @@ export namespace waproto {
5063
5063
  AIVOICE_FAVICON_CALL_HISTORY = 25,
5064
5064
  ASK_META_AI_CONTEXT_MENU = 26,
5065
5065
  ASK_META_AI_CONTEXT_MENU_1ON1 = 27,
5066
- ASK_META_AI_CONTEXT_MENU_GROUP = 28
5066
+ ASK_META_AI_CONTEXT_MENU_GROUP = 28,
5067
+ INVOKE_META_AI_1ON1 = 29,
5068
+ INVOKE_META_AI_GROUP = 30
5067
5069
  }
5068
5070
 
5069
5071
  /** Properties of a BotMetricsMetadata. */
@@ -20327,6 +20329,9 @@ export namespace waproto {
20327
20329
 
20328
20330
  /** AudioMessage accessibilityLabel */
20329
20331
  accessibilityLabel?: (string|null);
20332
+
20333
+ /** AudioMessage mediaKeyDomain */
20334
+ mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
20330
20335
  }
20331
20336
 
20332
20337
  /** Represents an AudioMessage. */
@@ -20386,6 +20391,9 @@ export namespace waproto {
20386
20391
  /** AudioMessage accessibilityLabel. */
20387
20392
  public accessibilityLabel?: (string|null);
20388
20393
 
20394
+ /** AudioMessage mediaKeyDomain. */
20395
+ public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
20396
+
20389
20397
  /**
20390
20398
  * Creates a new AudioMessage instance using the specified properties.
20391
20399
  * @param [properties] Properties to set
@@ -22793,6 +22801,9 @@ export namespace waproto {
22793
22801
 
22794
22802
  /** DocumentMessage accessibilityLabel */
22795
22803
  accessibilityLabel?: (string|null);
22804
+
22805
+ /** DocumentMessage mediaKeyDomain */
22806
+ mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
22796
22807
  }
22797
22808
 
22798
22809
  /** Represents a DocumentMessage. */
@@ -22867,6 +22878,9 @@ export namespace waproto {
22867
22878
  /** DocumentMessage accessibilityLabel. */
22868
22879
  public accessibilityLabel?: (string|null);
22869
22880
 
22881
+ /** DocumentMessage mediaKeyDomain. */
22882
+ public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
22883
+
22870
22884
  /**
22871
22885
  * Creates a new DocumentMessage instance using the specified properties.
22872
22886
  * @param [properties] Properties to set
@@ -23632,6 +23646,9 @@ export namespace waproto {
23632
23646
 
23633
23647
  /** ExtendedTextMessage endCardTiles */
23634
23648
  endCardTiles?: (waproto.Message.IVideoEndCard[]|null);
23649
+
23650
+ /** ExtendedTextMessage mediaKeyDomain */
23651
+ mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
23635
23652
  }
23636
23653
 
23637
23654
  /** Represents an ExtendedTextMessage. */
@@ -23730,6 +23747,9 @@ export namespace waproto {
23730
23747
  /** ExtendedTextMessage endCardTiles. */
23731
23748
  public endCardTiles: waproto.Message.IVideoEndCard[];
23732
23749
 
23750
+ /** ExtendedTextMessage mediaKeyDomain. */
23751
+ public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
23752
+
23733
23753
  /**
23734
23754
  * Creates a new ExtendedTextMessage instance using the specified properties.
23735
23755
  * @param [properties] Properties to set
@@ -25187,6 +25207,9 @@ export namespace waproto {
25187
25207
 
25188
25208
  /** ImageMessage accessibilityLabel */
25189
25209
  accessibilityLabel?: (string|null);
25210
+
25211
+ /** ImageMessage mediaKeyDomain */
25212
+ mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
25190
25213
  }
25191
25214
 
25192
25215
  /** Represents an ImageMessage. */
@@ -25285,6 +25308,9 @@ export namespace waproto {
25285
25308
  /** ImageMessage accessibilityLabel. */
25286
25309
  public accessibilityLabel?: (string|null);
25287
25310
 
25311
+ /** ImageMessage mediaKeyDomain. */
25312
+ public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
25313
+
25288
25314
  /**
25289
25315
  * Creates a new ImageMessage instance using the specified properties.
25290
25316
  * @param [properties] Properties to set
@@ -28587,6 +28613,9 @@ export namespace waproto {
28587
28613
 
28588
28614
  /** MMSThumbnailMetadata thumbnailWidth */
28589
28615
  thumbnailWidth?: (number|null);
28616
+
28617
+ /** MMSThumbnailMetadata mediaKeyDomain */
28618
+ mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
28590
28619
  }
28591
28620
 
28592
28621
  /** Represents a MMSThumbnailMetadata. */
@@ -28619,6 +28648,9 @@ export namespace waproto {
28619
28648
  /** MMSThumbnailMetadata thumbnailWidth. */
28620
28649
  public thumbnailWidth?: (number|null);
28621
28650
 
28651
+ /** MMSThumbnailMetadata mediaKeyDomain. */
28652
+ public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
28653
+
28622
28654
  /**
28623
28655
  * Creates a new MMSThumbnailMetadata instance using the specified properties.
28624
28656
  * @param [properties] Properties to set
@@ -28697,6 +28729,15 @@ export namespace waproto {
28697
28729
  public static getTypeUrl(typeUrlPrefix?: string): string;
28698
28730
  }
28699
28731
 
28732
+ /** MediaKeyDomain enum. */
28733
+ enum MediaKeyDomain {
28734
+ UNSET = 0,
28735
+ E2EE_CHAT = 1,
28736
+ STATUS = 2,
28737
+ CAPI = 3,
28738
+ BOT = 4
28739
+ }
28740
+
28700
28741
  /** Properties of a MessageHistoryBundle. */
28701
28742
  interface IMessageHistoryBundle {
28702
28743
 
@@ -35217,6 +35258,9 @@ export namespace waproto {
35217
35258
 
35218
35259
  /** StickerMessage accessibilityLabel */
35219
35260
  accessibilityLabel?: (string|null);
35261
+
35262
+ /** StickerMessage mediaKeyDomain */
35263
+ mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
35220
35264
  }
35221
35265
 
35222
35266
  /** Represents a StickerMessage. */
@@ -35288,6 +35332,9 @@ export namespace waproto {
35288
35332
  /** StickerMessage accessibilityLabel. */
35289
35333
  public accessibilityLabel?: (string|null);
35290
35334
 
35335
+ /** StickerMessage mediaKeyDomain. */
35336
+ public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
35337
+
35291
35338
  /**
35292
35339
  * Creates a new StickerMessage instance using the specified properties.
35293
35340
  * @param [properties] Properties to set
@@ -36689,6 +36736,9 @@ export namespace waproto {
36689
36736
 
36690
36737
  /** VideoMessage videoSourceType */
36691
36738
  videoSourceType?: (waproto.Message.VideoMessage.VideoSourceType|null);
36739
+
36740
+ /** VideoMessage mediaKeyDomain */
36741
+ mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
36692
36742
  }
36693
36743
 
36694
36744
  /** Represents a VideoMessage. */
@@ -36790,6 +36840,9 @@ export namespace waproto {
36790
36840
  /** VideoMessage videoSourceType. */
36791
36841
  public videoSourceType?: (waproto.Message.VideoMessage.VideoSourceType|null);
36792
36842
 
36843
+ /** VideoMessage mediaKeyDomain. */
36844
+ public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
36845
+
36793
36846
  /**
36794
36847
  * Creates a new VideoMessage instance using the specified properties.
36795
36848
  * @param [properties] Properties to set
@@ -44357,7 +44410,8 @@ export namespace waproto {
44357
44410
  MESSENGER = 3,
44358
44411
  SPOTIFY = 4,
44359
44412
  YOUTUBE = 5,
44360
- PINTEREST = 6
44413
+ PINTEREST = 6,
44414
+ THREADS = 7
44361
44415
  }
44362
44416
  }
44363
44417
 
package/dist/index.js CHANGED
@@ -14799,6 +14799,8 @@ $root.waproto = (function() {
14799
14799
  * @property {number} ASK_META_AI_CONTEXT_MENU=26 ASK_META_AI_CONTEXT_MENU value
14800
14800
  * @property {number} ASK_META_AI_CONTEXT_MENU_1ON1=27 ASK_META_AI_CONTEXT_MENU_1ON1 value
14801
14801
  * @property {number} ASK_META_AI_CONTEXT_MENU_GROUP=28 ASK_META_AI_CONTEXT_MENU_GROUP value
14802
+ * @property {number} INVOKE_META_AI_1ON1=29 INVOKE_META_AI_1ON1 value
14803
+ * @property {number} INVOKE_META_AI_GROUP=30 INVOKE_META_AI_GROUP value
14802
14804
  */
14803
14805
  waproto.BotMetricsEntryPoint = (function() {
14804
14806
  var valuesById = {}, values = Object.create(valuesById);
@@ -14830,6 +14832,8 @@ $root.waproto = (function() {
14830
14832
  values[valuesById[26] = "ASK_META_AI_CONTEXT_MENU"] = 26;
14831
14833
  values[valuesById[27] = "ASK_META_AI_CONTEXT_MENU_1ON1"] = 27;
14832
14834
  values[valuesById[28] = "ASK_META_AI_CONTEXT_MENU_GROUP"] = 28;
14835
+ values[valuesById[29] = "INVOKE_META_AI_1ON1"] = 29;
14836
+ values[valuesById[30] = "INVOKE_META_AI_GROUP"] = 30;
14833
14837
  return values;
14834
14838
  })();
14835
14839
 
@@ -15054,6 +15058,8 @@ $root.waproto = (function() {
15054
15058
  case 26:
15055
15059
  case 27:
15056
15060
  case 28:
15061
+ case 29:
15062
+ case 30:
15057
15063
  break;
15058
15064
  }
15059
15065
  }
@@ -15206,6 +15212,14 @@ $root.waproto = (function() {
15206
15212
  case 28:
15207
15213
  message.destinationEntryPoint = 28;
15208
15214
  break;
15215
+ case "INVOKE_META_AI_1ON1":
15216
+ case 29:
15217
+ message.destinationEntryPoint = 29;
15218
+ break;
15219
+ case "INVOKE_META_AI_GROUP":
15220
+ case 30:
15221
+ message.destinationEntryPoint = 30;
15222
+ break;
15209
15223
  }
15210
15224
  switch (object.threadOrigin) {
15211
15225
  default:
@@ -63634,6 +63648,7 @@ $root.waproto = (function() {
63634
63648
  * @property {number|null} [backgroundArgb] AudioMessage backgroundArgb
63635
63649
  * @property {boolean|null} [viewOnce] AudioMessage viewOnce
63636
63650
  * @property {string|null} [accessibilityLabel] AudioMessage accessibilityLabel
63651
+ * @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] AudioMessage mediaKeyDomain
63637
63652
  */
63638
63653
 
63639
63654
  /**
@@ -63779,6 +63794,14 @@ $root.waproto = (function() {
63779
63794
  */
63780
63795
  AudioMessage.prototype.accessibilityLabel = null;
63781
63796
 
63797
+ /**
63798
+ * AudioMessage mediaKeyDomain.
63799
+ * @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
63800
+ * @memberof waproto.Message.AudioMessage
63801
+ * @instance
63802
+ */
63803
+ AudioMessage.prototype.mediaKeyDomain = null;
63804
+
63782
63805
  // OneOf field names bound to virtual getters and setters
63783
63806
  var $oneOfFields;
63784
63807
 
@@ -63878,6 +63901,12 @@ $root.waproto = (function() {
63878
63901
  set: $util.oneOfSetter($oneOfFields)
63879
63902
  });
63880
63903
 
63904
+ // Virtual OneOf for proto3 optional field
63905
+ Object.defineProperty(AudioMessage.prototype, "_mediaKeyDomain", {
63906
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
63907
+ set: $util.oneOfSetter($oneOfFields)
63908
+ });
63909
+
63881
63910
  /**
63882
63911
  * Creates a new AudioMessage instance using the specified properties.
63883
63912
  * @function create
@@ -63934,6 +63963,8 @@ $root.waproto = (function() {
63934
63963
  writer.uint32(/* id 21, wireType 0 =*/168).bool(message.viewOnce);
63935
63964
  if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
63936
63965
  writer.uint32(/* id 22, wireType 2 =*/178).string(message.accessibilityLabel);
63966
+ if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
63967
+ writer.uint32(/* id 23, wireType 0 =*/184).int32(message.mediaKeyDomain);
63937
63968
  return writer;
63938
63969
  };
63939
63970
 
@@ -64032,6 +64063,10 @@ $root.waproto = (function() {
64032
64063
  message.accessibilityLabel = reader.string();
64033
64064
  break;
64034
64065
  }
64066
+ case 23: {
64067
+ message.mediaKeyDomain = reader.int32();
64068
+ break;
64069
+ }
64035
64070
  default:
64036
64071
  reader.skipType(tag & 7);
64037
64072
  break;
@@ -64151,6 +64186,19 @@ $root.waproto = (function() {
64151
64186
  if (!$util.isString(message.accessibilityLabel))
64152
64187
  return "accessibilityLabel: string expected";
64153
64188
  }
64189
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
64190
+ properties._mediaKeyDomain = 1;
64191
+ switch (message.mediaKeyDomain) {
64192
+ default:
64193
+ return "mediaKeyDomain: enum value expected";
64194
+ case 0:
64195
+ case 1:
64196
+ case 2:
64197
+ case 3:
64198
+ case 4:
64199
+ break;
64200
+ }
64201
+ }
64154
64202
  return null;
64155
64203
  };
64156
64204
 
@@ -64230,6 +64278,34 @@ $root.waproto = (function() {
64230
64278
  message.viewOnce = Boolean(object.viewOnce);
64231
64279
  if (object.accessibilityLabel != null)
64232
64280
  message.accessibilityLabel = String(object.accessibilityLabel);
64281
+ switch (object.mediaKeyDomain) {
64282
+ default:
64283
+ if (typeof object.mediaKeyDomain === "number") {
64284
+ message.mediaKeyDomain = object.mediaKeyDomain;
64285
+ break;
64286
+ }
64287
+ break;
64288
+ case "UNSET":
64289
+ case 0:
64290
+ message.mediaKeyDomain = 0;
64291
+ break;
64292
+ case "E2EE_CHAT":
64293
+ case 1:
64294
+ message.mediaKeyDomain = 1;
64295
+ break;
64296
+ case "STATUS":
64297
+ case 2:
64298
+ message.mediaKeyDomain = 2;
64299
+ break;
64300
+ case "CAPI":
64301
+ case 3:
64302
+ message.mediaKeyDomain = 3;
64303
+ break;
64304
+ case "BOT":
64305
+ case 4:
64306
+ message.mediaKeyDomain = 4;
64307
+ break;
64308
+ }
64233
64309
  return message;
64234
64310
  };
64235
64311
 
@@ -64332,6 +64408,11 @@ $root.waproto = (function() {
64332
64408
  if (options.oneofs)
64333
64409
  object._accessibilityLabel = "accessibilityLabel";
64334
64410
  }
64411
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
64412
+ object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
64413
+ if (options.oneofs)
64414
+ object._mediaKeyDomain = "mediaKeyDomain";
64415
+ }
64335
64416
  return object;
64336
64417
  };
64337
64418
 
@@ -70884,6 +70965,7 @@ $root.waproto = (function() {
70884
70965
  * @property {number|null} [thumbnailWidth] DocumentMessage thumbnailWidth
70885
70966
  * @property {string|null} [caption] DocumentMessage caption
70886
70967
  * @property {string|null} [accessibilityLabel] DocumentMessage accessibilityLabel
70968
+ * @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] DocumentMessage mediaKeyDomain
70887
70969
  */
70888
70970
 
70889
70971
  /**
@@ -71069,6 +71151,14 @@ $root.waproto = (function() {
71069
71151
  */
71070
71152
  DocumentMessage.prototype.accessibilityLabel = null;
71071
71153
 
71154
+ /**
71155
+ * DocumentMessage mediaKeyDomain.
71156
+ * @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
71157
+ * @memberof waproto.Message.DocumentMessage
71158
+ * @instance
71159
+ */
71160
+ DocumentMessage.prototype.mediaKeyDomain = null;
71161
+
71072
71162
  // OneOf field names bound to virtual getters and setters
71073
71163
  var $oneOfFields;
71074
71164
 
@@ -71198,6 +71288,12 @@ $root.waproto = (function() {
71198
71288
  set: $util.oneOfSetter($oneOfFields)
71199
71289
  });
71200
71290
 
71291
+ // Virtual OneOf for proto3 optional field
71292
+ Object.defineProperty(DocumentMessage.prototype, "_mediaKeyDomain", {
71293
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
71294
+ set: $util.oneOfSetter($oneOfFields)
71295
+ });
71296
+
71201
71297
  /**
71202
71298
  * Creates a new DocumentMessage instance using the specified properties.
71203
71299
  * @function create
@@ -71264,6 +71360,8 @@ $root.waproto = (function() {
71264
71360
  writer.uint32(/* id 20, wireType 2 =*/162).string(message.caption);
71265
71361
  if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
71266
71362
  writer.uint32(/* id 21, wireType 2 =*/170).string(message.accessibilityLabel);
71363
+ if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
71364
+ writer.uint32(/* id 22, wireType 0 =*/176).int32(message.mediaKeyDomain);
71267
71365
  return writer;
71268
71366
  };
71269
71367
 
@@ -71382,6 +71480,10 @@ $root.waproto = (function() {
71382
71480
  message.accessibilityLabel = reader.string();
71383
71481
  break;
71384
71482
  }
71483
+ case 22: {
71484
+ message.mediaKeyDomain = reader.int32();
71485
+ break;
71486
+ }
71385
71487
  default:
71386
71488
  reader.skipType(tag & 7);
71387
71489
  break;
@@ -71526,6 +71628,19 @@ $root.waproto = (function() {
71526
71628
  if (!$util.isString(message.accessibilityLabel))
71527
71629
  return "accessibilityLabel: string expected";
71528
71630
  }
71631
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
71632
+ properties._mediaKeyDomain = 1;
71633
+ switch (message.mediaKeyDomain) {
71634
+ default:
71635
+ return "mediaKeyDomain: enum value expected";
71636
+ case 0:
71637
+ case 1:
71638
+ case 2:
71639
+ case 3:
71640
+ case 4:
71641
+ break;
71642
+ }
71643
+ }
71529
71644
  return null;
71530
71645
  };
71531
71646
 
@@ -71618,6 +71733,34 @@ $root.waproto = (function() {
71618
71733
  message.caption = String(object.caption);
71619
71734
  if (object.accessibilityLabel != null)
71620
71735
  message.accessibilityLabel = String(object.accessibilityLabel);
71736
+ switch (object.mediaKeyDomain) {
71737
+ default:
71738
+ if (typeof object.mediaKeyDomain === "number") {
71739
+ message.mediaKeyDomain = object.mediaKeyDomain;
71740
+ break;
71741
+ }
71742
+ break;
71743
+ case "UNSET":
71744
+ case 0:
71745
+ message.mediaKeyDomain = 0;
71746
+ break;
71747
+ case "E2EE_CHAT":
71748
+ case 1:
71749
+ message.mediaKeyDomain = 1;
71750
+ break;
71751
+ case "STATUS":
71752
+ case 2:
71753
+ message.mediaKeyDomain = 2;
71754
+ break;
71755
+ case "CAPI":
71756
+ case 3:
71757
+ message.mediaKeyDomain = 3;
71758
+ break;
71759
+ case "BOT":
71760
+ case 4:
71761
+ message.mediaKeyDomain = 4;
71762
+ break;
71763
+ }
71621
71764
  return message;
71622
71765
  };
71623
71766
 
@@ -71745,6 +71888,11 @@ $root.waproto = (function() {
71745
71888
  if (options.oneofs)
71746
71889
  object._accessibilityLabel = "accessibilityLabel";
71747
71890
  }
71891
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
71892
+ object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
71893
+ if (options.oneofs)
71894
+ object._mediaKeyDomain = "mediaKeyDomain";
71895
+ }
71748
71896
  return object;
71749
71897
  };
71750
71898
 
@@ -73578,6 +73726,7 @@ $root.waproto = (function() {
73578
73726
  * @property {waproto.Message.ILinkPreviewMetadata|null} [linkPreviewMetadata] ExtendedTextMessage linkPreviewMetadata
73579
73727
  * @property {waproto.Message.IPaymentLinkMetadata|null} [paymentLinkMetadata] ExtendedTextMessage paymentLinkMetadata
73580
73728
  * @property {Array.<waproto.Message.IVideoEndCard>|null} [endCardTiles] ExtendedTextMessage endCardTiles
73729
+ * @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] ExtendedTextMessage mediaKeyDomain
73581
73730
  */
73582
73731
 
73583
73732
  /**
@@ -73828,6 +73977,14 @@ $root.waproto = (function() {
73828
73977
  */
73829
73978
  ExtendedTextMessage.prototype.endCardTiles = $util.emptyArray;
73830
73979
 
73980
+ /**
73981
+ * ExtendedTextMessage mediaKeyDomain.
73982
+ * @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
73983
+ * @memberof waproto.Message.ExtendedTextMessage
73984
+ * @instance
73985
+ */
73986
+ ExtendedTextMessage.prototype.mediaKeyDomain = null;
73987
+
73831
73988
  // OneOf field names bound to virtual getters and setters
73832
73989
  var $oneOfFields;
73833
73990
 
@@ -73999,6 +74156,12 @@ $root.waproto = (function() {
73999
74156
  set: $util.oneOfSetter($oneOfFields)
74000
74157
  });
74001
74158
 
74159
+ // Virtual OneOf for proto3 optional field
74160
+ Object.defineProperty(ExtendedTextMessage.prototype, "_mediaKeyDomain", {
74161
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
74162
+ set: $util.oneOfSetter($oneOfFields)
74163
+ });
74164
+
74002
74165
  /**
74003
74166
  * Creates a new ExtendedTextMessage instance using the specified properties.
74004
74167
  * @function create
@@ -74082,6 +74245,8 @@ $root.waproto = (function() {
74082
74245
  if (message.endCardTiles != null && message.endCardTiles.length)
74083
74246
  for (var i = 0; i < message.endCardTiles.length; ++i)
74084
74247
  $root.waproto.Message.VideoEndCard.encode(message.endCardTiles[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim();
74248
+ if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
74249
+ writer.uint32(/* id 37, wireType 0 =*/296).int32(message.mediaKeyDomain);
74085
74250
  return writer;
74086
74251
  };
74087
74252
 
@@ -74234,6 +74399,10 @@ $root.waproto = (function() {
74234
74399
  message.endCardTiles.push($root.waproto.Message.VideoEndCard.decode(reader, reader.uint32()));
74235
74400
  break;
74236
74401
  }
74402
+ case 37: {
74403
+ message.mediaKeyDomain = reader.int32();
74404
+ break;
74405
+ }
74237
74406
  default:
74238
74407
  reader.skipType(tag & 7);
74239
74408
  break;
@@ -74465,6 +74634,19 @@ $root.waproto = (function() {
74465
74634
  return "endCardTiles." + error;
74466
74635
  }
74467
74636
  }
74637
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
74638
+ properties._mediaKeyDomain = 1;
74639
+ switch (message.mediaKeyDomain) {
74640
+ default:
74641
+ return "mediaKeyDomain: enum value expected";
74642
+ case 0:
74643
+ case 1:
74644
+ case 2:
74645
+ case 3:
74646
+ case 4:
74647
+ break;
74648
+ }
74649
+ }
74468
74650
  return null;
74469
74651
  };
74470
74652
 
@@ -74692,6 +74874,34 @@ $root.waproto = (function() {
74692
74874
  message.endCardTiles[i] = $root.waproto.Message.VideoEndCard.fromObject(object.endCardTiles[i]);
74693
74875
  }
74694
74876
  }
74877
+ switch (object.mediaKeyDomain) {
74878
+ default:
74879
+ if (typeof object.mediaKeyDomain === "number") {
74880
+ message.mediaKeyDomain = object.mediaKeyDomain;
74881
+ break;
74882
+ }
74883
+ break;
74884
+ case "UNSET":
74885
+ case 0:
74886
+ message.mediaKeyDomain = 0;
74887
+ break;
74888
+ case "E2EE_CHAT":
74889
+ case 1:
74890
+ message.mediaKeyDomain = 1;
74891
+ break;
74892
+ case "STATUS":
74893
+ case 2:
74894
+ message.mediaKeyDomain = 2;
74895
+ break;
74896
+ case "CAPI":
74897
+ case 3:
74898
+ message.mediaKeyDomain = 3;
74899
+ break;
74900
+ case "BOT":
74901
+ case 4:
74902
+ message.mediaKeyDomain = 4;
74903
+ break;
74904
+ }
74695
74905
  return message;
74696
74906
  };
74697
74907
 
@@ -74858,6 +75068,11 @@ $root.waproto = (function() {
74858
75068
  for (var j = 0; j < message.endCardTiles.length; ++j)
74859
75069
  object.endCardTiles[j] = $root.waproto.Message.VideoEndCard.toObject(message.endCardTiles[j], options);
74860
75070
  }
75071
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
75072
+ object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
75073
+ if (options.oneofs)
75074
+ object._mediaKeyDomain = "mediaKeyDomain";
75075
+ }
74861
75076
  return object;
74862
75077
  };
74863
75078
 
@@ -78748,6 +78963,7 @@ $root.waproto = (function() {
78748
78963
  * @property {Array.<waproto.IInteractiveAnnotation>|null} [annotations] ImageMessage annotations
78749
78964
  * @property {waproto.Message.ImageMessage.ImageSourceType|null} [imageSourceType] ImageMessage imageSourceType
78750
78965
  * @property {string|null} [accessibilityLabel] ImageMessage accessibilityLabel
78966
+ * @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] ImageMessage mediaKeyDomain
78751
78967
  */
78752
78968
 
78753
78969
  /**
@@ -79000,6 +79216,14 @@ $root.waproto = (function() {
79000
79216
  */
79001
79217
  ImageMessage.prototype.accessibilityLabel = null;
79002
79218
 
79219
+ /**
79220
+ * ImageMessage mediaKeyDomain.
79221
+ * @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
79222
+ * @memberof waproto.Message.ImageMessage
79223
+ * @instance
79224
+ */
79225
+ ImageMessage.prototype.mediaKeyDomain = null;
79226
+
79003
79227
  // OneOf field names bound to virtual getters and setters
79004
79228
  var $oneOfFields;
79005
79229
 
@@ -79159,6 +79383,12 @@ $root.waproto = (function() {
79159
79383
  set: $util.oneOfSetter($oneOfFields)
79160
79384
  });
79161
79385
 
79386
+ // Virtual OneOf for proto3 optional field
79387
+ Object.defineProperty(ImageMessage.prototype, "_mediaKeyDomain", {
79388
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
79389
+ set: $util.oneOfSetter($oneOfFields)
79390
+ });
79391
+
79162
79392
  /**
79163
79393
  * Creates a new ImageMessage instance using the specified properties.
79164
79394
  * @function create
@@ -79247,6 +79477,8 @@ $root.waproto = (function() {
79247
79477
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.imageSourceType);
79248
79478
  if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
79249
79479
  writer.uint32(/* id 32, wireType 2 =*/258).string(message.accessibilityLabel);
79480
+ if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
79481
+ writer.uint32(/* id 33, wireType 0 =*/264).int32(message.mediaKeyDomain);
79250
79482
  return writer;
79251
79483
  };
79252
79484
 
@@ -79408,6 +79640,10 @@ $root.waproto = (function() {
79408
79640
  message.accessibilityLabel = reader.string();
79409
79641
  break;
79410
79642
  }
79643
+ case 33: {
79644
+ message.mediaKeyDomain = reader.int32();
79645
+ break;
79646
+ }
79411
79647
  default:
79412
79648
  reader.skipType(tag & 7);
79413
79649
  break;
@@ -79609,6 +79845,19 @@ $root.waproto = (function() {
79609
79845
  if (!$util.isString(message.accessibilityLabel))
79610
79846
  return "accessibilityLabel: string expected";
79611
79847
  }
79848
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
79849
+ properties._mediaKeyDomain = 1;
79850
+ switch (message.mediaKeyDomain) {
79851
+ default:
79852
+ return "mediaKeyDomain: enum value expected";
79853
+ case 0:
79854
+ case 1:
79855
+ case 2:
79856
+ case 3:
79857
+ case 4:
79858
+ break;
79859
+ }
79860
+ }
79612
79861
  return null;
79613
79862
  };
79614
79863
 
@@ -79772,6 +80021,34 @@ $root.waproto = (function() {
79772
80021
  }
79773
80022
  if (object.accessibilityLabel != null)
79774
80023
  message.accessibilityLabel = String(object.accessibilityLabel);
80024
+ switch (object.mediaKeyDomain) {
80025
+ default:
80026
+ if (typeof object.mediaKeyDomain === "number") {
80027
+ message.mediaKeyDomain = object.mediaKeyDomain;
80028
+ break;
80029
+ }
80030
+ break;
80031
+ case "UNSET":
80032
+ case 0:
80033
+ message.mediaKeyDomain = 0;
80034
+ break;
80035
+ case "E2EE_CHAT":
80036
+ case 1:
80037
+ message.mediaKeyDomain = 1;
80038
+ break;
80039
+ case "STATUS":
80040
+ case 2:
80041
+ message.mediaKeyDomain = 2;
80042
+ break;
80043
+ case "CAPI":
80044
+ case 3:
80045
+ message.mediaKeyDomain = 3;
80046
+ break;
80047
+ case "BOT":
80048
+ case 4:
80049
+ message.mediaKeyDomain = 4;
80050
+ break;
80051
+ }
79775
80052
  return message;
79776
80053
  };
79777
80054
 
@@ -79944,6 +80221,11 @@ $root.waproto = (function() {
79944
80221
  if (options.oneofs)
79945
80222
  object._accessibilityLabel = "accessibilityLabel";
79946
80223
  }
80224
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
80225
+ object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
80226
+ if (options.oneofs)
80227
+ object._mediaKeyDomain = "mediaKeyDomain";
80228
+ }
79947
80229
  return object;
79948
80230
  };
79949
80231
 
@@ -89087,6 +89369,7 @@ $root.waproto = (function() {
89087
89369
  * @property {number|Long|null} [mediaKeyTimestamp] MMSThumbnailMetadata mediaKeyTimestamp
89088
89370
  * @property {number|null} [thumbnailHeight] MMSThumbnailMetadata thumbnailHeight
89089
89371
  * @property {number|null} [thumbnailWidth] MMSThumbnailMetadata thumbnailWidth
89372
+ * @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] MMSThumbnailMetadata mediaKeyDomain
89090
89373
  */
89091
89374
 
89092
89375
  /**
@@ -89160,6 +89443,14 @@ $root.waproto = (function() {
89160
89443
  */
89161
89444
  MMSThumbnailMetadata.prototype.thumbnailWidth = null;
89162
89445
 
89446
+ /**
89447
+ * MMSThumbnailMetadata mediaKeyDomain.
89448
+ * @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
89449
+ * @memberof waproto.Message.MMSThumbnailMetadata
89450
+ * @instance
89451
+ */
89452
+ MMSThumbnailMetadata.prototype.mediaKeyDomain = null;
89453
+
89163
89454
  // OneOf field names bound to virtual getters and setters
89164
89455
  var $oneOfFields;
89165
89456
 
@@ -89205,6 +89496,12 @@ $root.waproto = (function() {
89205
89496
  set: $util.oneOfSetter($oneOfFields)
89206
89497
  });
89207
89498
 
89499
+ // Virtual OneOf for proto3 optional field
89500
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_mediaKeyDomain", {
89501
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
89502
+ set: $util.oneOfSetter($oneOfFields)
89503
+ });
89504
+
89208
89505
  /**
89209
89506
  * Creates a new MMSThumbnailMetadata instance using the specified properties.
89210
89507
  * @function create
@@ -89243,6 +89540,8 @@ $root.waproto = (function() {
89243
89540
  writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.thumbnailHeight);
89244
89541
  if (message.thumbnailWidth != null && Object.hasOwnProperty.call(message, "thumbnailWidth"))
89245
89542
  writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.thumbnailWidth);
89543
+ if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
89544
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.mediaKeyDomain);
89246
89545
  return writer;
89247
89546
  };
89248
89547
 
@@ -89305,6 +89604,10 @@ $root.waproto = (function() {
89305
89604
  message.thumbnailWidth = reader.uint32();
89306
89605
  break;
89307
89606
  }
89607
+ case 8: {
89608
+ message.mediaKeyDomain = reader.int32();
89609
+ break;
89610
+ }
89308
89611
  default:
89309
89612
  reader.skipType(tag & 7);
89310
89613
  break;
@@ -89376,6 +89679,19 @@ $root.waproto = (function() {
89376
89679
  if (!$util.isInteger(message.thumbnailWidth))
89377
89680
  return "thumbnailWidth: integer expected";
89378
89681
  }
89682
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
89683
+ properties._mediaKeyDomain = 1;
89684
+ switch (message.mediaKeyDomain) {
89685
+ default:
89686
+ return "mediaKeyDomain: enum value expected";
89687
+ case 0:
89688
+ case 1:
89689
+ case 2:
89690
+ case 3:
89691
+ case 4:
89692
+ break;
89693
+ }
89694
+ }
89379
89695
  return null;
89380
89696
  };
89381
89697
 
@@ -89421,6 +89737,34 @@ $root.waproto = (function() {
89421
89737
  message.thumbnailHeight = object.thumbnailHeight >>> 0;
89422
89738
  if (object.thumbnailWidth != null)
89423
89739
  message.thumbnailWidth = object.thumbnailWidth >>> 0;
89740
+ switch (object.mediaKeyDomain) {
89741
+ default:
89742
+ if (typeof object.mediaKeyDomain === "number") {
89743
+ message.mediaKeyDomain = object.mediaKeyDomain;
89744
+ break;
89745
+ }
89746
+ break;
89747
+ case "UNSET":
89748
+ case 0:
89749
+ message.mediaKeyDomain = 0;
89750
+ break;
89751
+ case "E2EE_CHAT":
89752
+ case 1:
89753
+ message.mediaKeyDomain = 1;
89754
+ break;
89755
+ case "STATUS":
89756
+ case 2:
89757
+ message.mediaKeyDomain = 2;
89758
+ break;
89759
+ case "CAPI":
89760
+ case 3:
89761
+ message.mediaKeyDomain = 3;
89762
+ break;
89763
+ case "BOT":
89764
+ case 4:
89765
+ message.mediaKeyDomain = 4;
89766
+ break;
89767
+ }
89424
89768
  return message;
89425
89769
  };
89426
89770
 
@@ -89475,6 +89819,11 @@ $root.waproto = (function() {
89475
89819
  if (options.oneofs)
89476
89820
  object._thumbnailWidth = "thumbnailWidth";
89477
89821
  }
89822
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
89823
+ object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
89824
+ if (options.oneofs)
89825
+ object._mediaKeyDomain = "mediaKeyDomain";
89826
+ }
89478
89827
  return object;
89479
89828
  };
89480
89829
 
@@ -89507,6 +89856,26 @@ $root.waproto = (function() {
89507
89856
  return MMSThumbnailMetadata;
89508
89857
  })();
89509
89858
 
89859
+ /**
89860
+ * MediaKeyDomain enum.
89861
+ * @name waproto.Message.MediaKeyDomain
89862
+ * @enum {number}
89863
+ * @property {number} UNSET=0 UNSET value
89864
+ * @property {number} E2EE_CHAT=1 E2EE_CHAT value
89865
+ * @property {number} STATUS=2 STATUS value
89866
+ * @property {number} CAPI=3 CAPI value
89867
+ * @property {number} BOT=4 BOT value
89868
+ */
89869
+ Message.MediaKeyDomain = (function() {
89870
+ var valuesById = {}, values = Object.create(valuesById);
89871
+ values[valuesById[0] = "UNSET"] = 0;
89872
+ values[valuesById[1] = "E2EE_CHAT"] = 1;
89873
+ values[valuesById[2] = "STATUS"] = 2;
89874
+ values[valuesById[3] = "CAPI"] = 3;
89875
+ values[valuesById[4] = "BOT"] = 4;
89876
+ return values;
89877
+ })();
89878
+
89510
89879
  Message.MessageHistoryBundle = (function() {
89511
89880
 
89512
89881
  /**
@@ -108180,6 +108549,7 @@ $root.waproto = (function() {
108180
108549
  * @property {boolean|null} [isAiSticker] StickerMessage isAiSticker
108181
108550
  * @property {boolean|null} [isLottie] StickerMessage isLottie
108182
108551
  * @property {string|null} [accessibilityLabel] StickerMessage accessibilityLabel
108552
+ * @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] StickerMessage mediaKeyDomain
108183
108553
  */
108184
108554
 
108185
108555
  /**
@@ -108357,6 +108727,14 @@ $root.waproto = (function() {
108357
108727
  */
108358
108728
  StickerMessage.prototype.accessibilityLabel = null;
108359
108729
 
108730
+ /**
108731
+ * StickerMessage mediaKeyDomain.
108732
+ * @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
108733
+ * @memberof waproto.Message.StickerMessage
108734
+ * @instance
108735
+ */
108736
+ StickerMessage.prototype.mediaKeyDomain = null;
108737
+
108360
108738
  // OneOf field names bound to virtual getters and setters
108361
108739
  var $oneOfFields;
108362
108740
 
@@ -108480,6 +108858,12 @@ $root.waproto = (function() {
108480
108858
  set: $util.oneOfSetter($oneOfFields)
108481
108859
  });
108482
108860
 
108861
+ // Virtual OneOf for proto3 optional field
108862
+ Object.defineProperty(StickerMessage.prototype, "_mediaKeyDomain", {
108863
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
108864
+ set: $util.oneOfSetter($oneOfFields)
108865
+ });
108866
+
108483
108867
  /**
108484
108868
  * Creates a new StickerMessage instance using the specified properties.
108485
108869
  * @function create
@@ -108544,6 +108928,8 @@ $root.waproto = (function() {
108544
108928
  writer.uint32(/* id 21, wireType 0 =*/168).bool(message.isLottie);
108545
108929
  if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
108546
108930
  writer.uint32(/* id 22, wireType 2 =*/178).string(message.accessibilityLabel);
108931
+ if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
108932
+ writer.uint32(/* id 23, wireType 0 =*/184).int32(message.mediaKeyDomain);
108547
108933
  return writer;
108548
108934
  };
108549
108935
 
@@ -108658,6 +109044,10 @@ $root.waproto = (function() {
108658
109044
  message.accessibilityLabel = reader.string();
108659
109045
  break;
108660
109046
  }
109047
+ case 23: {
109048
+ message.mediaKeyDomain = reader.int32();
109049
+ break;
109050
+ }
108661
109051
  default:
108662
109052
  reader.skipType(tag & 7);
108663
109053
  break;
@@ -108797,6 +109187,19 @@ $root.waproto = (function() {
108797
109187
  if (!$util.isString(message.accessibilityLabel))
108798
109188
  return "accessibilityLabel: string expected";
108799
109189
  }
109190
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
109191
+ properties._mediaKeyDomain = 1;
109192
+ switch (message.mediaKeyDomain) {
109193
+ default:
109194
+ return "mediaKeyDomain: enum value expected";
109195
+ case 0:
109196
+ case 1:
109197
+ case 2:
109198
+ case 3:
109199
+ case 4:
109200
+ break;
109201
+ }
109202
+ }
108800
109203
  return null;
108801
109204
  };
108802
109205
 
@@ -108891,6 +109294,34 @@ $root.waproto = (function() {
108891
109294
  message.isLottie = Boolean(object.isLottie);
108892
109295
  if (object.accessibilityLabel != null)
108893
109296
  message.accessibilityLabel = String(object.accessibilityLabel);
109297
+ switch (object.mediaKeyDomain) {
109298
+ default:
109299
+ if (typeof object.mediaKeyDomain === "number") {
109300
+ message.mediaKeyDomain = object.mediaKeyDomain;
109301
+ break;
109302
+ }
109303
+ break;
109304
+ case "UNSET":
109305
+ case 0:
109306
+ message.mediaKeyDomain = 0;
109307
+ break;
109308
+ case "E2EE_CHAT":
109309
+ case 1:
109310
+ message.mediaKeyDomain = 1;
109311
+ break;
109312
+ case "STATUS":
109313
+ case 2:
109314
+ message.mediaKeyDomain = 2;
109315
+ break;
109316
+ case "CAPI":
109317
+ case 3:
109318
+ message.mediaKeyDomain = 3;
109319
+ break;
109320
+ case "BOT":
109321
+ case 4:
109322
+ message.mediaKeyDomain = 4;
109323
+ break;
109324
+ }
108894
109325
  return message;
108895
109326
  };
108896
109327
 
@@ -109016,6 +109447,11 @@ $root.waproto = (function() {
109016
109447
  if (options.oneofs)
109017
109448
  object._accessibilityLabel = "accessibilityLabel";
109018
109449
  }
109450
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
109451
+ object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
109452
+ if (options.oneofs)
109453
+ object._mediaKeyDomain = "mediaKeyDomain";
109454
+ }
109019
109455
  return object;
109020
109456
  };
109021
109457
 
@@ -113062,6 +113498,7 @@ $root.waproto = (function() {
113062
113498
  * @property {number|Long|null} [motionPhotoPresentationOffsetMs] VideoMessage motionPhotoPresentationOffsetMs
113063
113499
  * @property {string|null} [metadataUrl] VideoMessage metadataUrl
113064
113500
  * @property {waproto.Message.VideoMessage.VideoSourceType|null} [videoSourceType] VideoMessage videoSourceType
113501
+ * @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] VideoMessage mediaKeyDomain
113065
113502
  */
113066
113503
 
113067
113504
  /**
@@ -113322,6 +113759,14 @@ $root.waproto = (function() {
113322
113759
  */
113323
113760
  VideoMessage.prototype.videoSourceType = null;
113324
113761
 
113762
+ /**
113763
+ * VideoMessage mediaKeyDomain.
113764
+ * @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
113765
+ * @memberof waproto.Message.VideoMessage
113766
+ * @instance
113767
+ */
113768
+ VideoMessage.prototype.mediaKeyDomain = null;
113769
+
113325
113770
  // OneOf field names bound to virtual getters and setters
113326
113771
  var $oneOfFields;
113327
113772
 
@@ -113487,6 +113932,12 @@ $root.waproto = (function() {
113487
113932
  set: $util.oneOfSetter($oneOfFields)
113488
113933
  });
113489
113934
 
113935
+ // Virtual OneOf for proto3 optional field
113936
+ Object.defineProperty(VideoMessage.prototype, "_mediaKeyDomain", {
113937
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
113938
+ set: $util.oneOfSetter($oneOfFields)
113939
+ });
113940
+
113490
113941
  /**
113491
113942
  * Creates a new VideoMessage instance using the specified properties.
113492
113943
  * @function create
@@ -113574,6 +114025,8 @@ $root.waproto = (function() {
113574
114025
  writer.uint32(/* id 30, wireType 2 =*/242).string(message.metadataUrl);
113575
114026
  if (message.videoSourceType != null && Object.hasOwnProperty.call(message, "videoSourceType"))
113576
114027
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.videoSourceType);
114028
+ if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
114029
+ writer.uint32(/* id 32, wireType 0 =*/256).int32(message.mediaKeyDomain);
113577
114030
  return writer;
113578
114031
  };
113579
114032
 
@@ -113734,6 +114187,10 @@ $root.waproto = (function() {
113734
114187
  message.videoSourceType = reader.int32();
113735
114188
  break;
113736
114189
  }
114190
+ case 32: {
114191
+ message.mediaKeyDomain = reader.int32();
114192
+ break;
114193
+ }
113737
114194
  default:
113738
114195
  reader.skipType(tag & 7);
113739
114196
  break;
@@ -113946,6 +114403,19 @@ $root.waproto = (function() {
113946
114403
  break;
113947
114404
  }
113948
114405
  }
114406
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
114407
+ properties._mediaKeyDomain = 1;
114408
+ switch (message.mediaKeyDomain) {
114409
+ default:
114410
+ return "mediaKeyDomain: enum value expected";
114411
+ case 0:
114412
+ case 1:
114413
+ case 2:
114414
+ case 3:
114415
+ case 4:
114416
+ break;
114417
+ }
114418
+ }
113949
114419
  return null;
113950
114420
  };
113951
114421
 
@@ -114122,6 +114592,34 @@ $root.waproto = (function() {
114122
114592
  message.videoSourceType = 1;
114123
114593
  break;
114124
114594
  }
114595
+ switch (object.mediaKeyDomain) {
114596
+ default:
114597
+ if (typeof object.mediaKeyDomain === "number") {
114598
+ message.mediaKeyDomain = object.mediaKeyDomain;
114599
+ break;
114600
+ }
114601
+ break;
114602
+ case "UNSET":
114603
+ case 0:
114604
+ message.mediaKeyDomain = 0;
114605
+ break;
114606
+ case "E2EE_CHAT":
114607
+ case 1:
114608
+ message.mediaKeyDomain = 1;
114609
+ break;
114610
+ case "STATUS":
114611
+ case 2:
114612
+ message.mediaKeyDomain = 2;
114613
+ break;
114614
+ case "CAPI":
114615
+ case 3:
114616
+ message.mediaKeyDomain = 3;
114617
+ break;
114618
+ case "BOT":
114619
+ case 4:
114620
+ message.mediaKeyDomain = 4;
114621
+ break;
114622
+ }
114125
114623
  return message;
114126
114624
  };
114127
114625
 
@@ -114302,6 +114800,11 @@ $root.waproto = (function() {
114302
114800
  if (options.oneofs)
114303
114801
  object._videoSourceType = "videoSourceType";
114304
114802
  }
114803
+ if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
114804
+ object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
114805
+ if (options.oneofs)
114806
+ object._mediaKeyDomain = "mediaKeyDomain";
114807
+ }
114305
114808
  return object;
114306
114809
  };
114307
114810
 
@@ -136630,6 +137133,7 @@ $root.waproto = (function() {
136630
137133
  case 4:
136631
137134
  case 5:
136632
137135
  case 6:
137136
+ case 7:
136633
137137
  break;
136634
137138
  }
136635
137139
  }
@@ -136695,6 +137199,10 @@ $root.waproto = (function() {
136695
137199
  case 6:
136696
137200
  message.source = 6;
136697
137201
  break;
137202
+ case "THREADS":
137203
+ case 7:
137204
+ message.source = 7;
137205
+ break;
136698
137206
  }
136699
137207
  if (object.duration != null)
136700
137208
  message.duration = object.duration | 0;
@@ -136776,6 +137284,7 @@ $root.waproto = (function() {
136776
137284
  * @property {number} SPOTIFY=4 SPOTIFY value
136777
137285
  * @property {number} YOUTUBE=5 YOUTUBE value
136778
137286
  * @property {number} PINTEREST=6 PINTEREST value
137287
+ * @property {number} THREADS=7 THREADS value
136779
137288
  */
136780
137289
  ExternalShare.Source = (function() {
136781
137290
  var valuesById = {}, values = Object.create(valuesById);
@@ -136786,6 +137295,7 @@ $root.waproto = (function() {
136786
137295
  values[valuesById[4] = "SPOTIFY"] = 4;
136787
137296
  values[valuesById[5] = "YOUTUBE"] = 5;
136788
137297
  values[valuesById[6] = "PINTEREST"] = 6;
137298
+ values[valuesById[7] = "THREADS"] = 7;
136789
137299
  return values;
136790
137300
  })();
136791
137301
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1024551647",
3
+ "version": "2.3000.1024617758",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "author": {