@wppconnect/wa-proto 2.3000.1028028707 → 2.3000.1028088934

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.1028088934](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1028056377...v2.3000.1028088934) (2025-10-07)
2
+
3
+
4
+
5
+ ## [2.3000.1028056377](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1028028707...v2.3000.1028056377) (2025-10-07)
6
+
7
+
8
+
1
9
  ## [2.3000.1028028707](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1027966938...v2.3000.1028028707) (2025-10-06)
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.1028028707
4
+ /// WhatsApp Version: 2.3000.1028088934
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -360,6 +360,7 @@ message BotCapabilityMetadata {
360
360
  RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
361
361
  RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
362
362
  RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
363
+ RICH_RESPONSE_IN_APP_SURVEY = 46;
363
364
  }
364
365
  }
365
366
 
@@ -1681,9 +1682,10 @@ message GroupHistoryBundleInfo {
1681
1682
  optional Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
1682
1683
  optional ProcessState processState = 2;
1683
1684
  enum ProcessState {
1684
- NOT_DOWNLOADED = 0;
1685
- DOWNLOADED = 1;
1686
- DOWNLOAD_FAILED = 2;
1685
+ NOT_INJECTED = 0;
1686
+ INJECTED = 1;
1687
+ INJECTED_PARTIAL = 2;
1688
+ INJECTION_FAILED = 3;
1687
1689
  }
1688
1690
  }
1689
1691
 
@@ -2394,6 +2396,7 @@ message Message {
2394
2396
  repeated Message.VideoEndCard endCardTiles = 36;
2395
2397
  optional string videoContentUrl = 37;
2396
2398
  optional EmbeddedMusic musicMetadata = 38;
2399
+ optional Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;
2397
2400
  enum FontType {
2398
2401
  SYSTEM = 0;
2399
2402
  SYSTEM_TEXT = 1;
@@ -2706,6 +2709,9 @@ message Message {
2706
2709
  optional uint32 linkMediaDuration = 4;
2707
2710
  optional SocialMediaPostType socialMediaPostType = 5;
2708
2711
  optional bool linkInlineVideoMuted = 6;
2712
+ optional string videoContentUrl = 7;
2713
+ optional EmbeddedMusic musicMetadata = 8;
2714
+ optional string videoContentCaption = 9;
2709
2715
  enum SocialMediaPostType {
2710
2716
  NONE = 0;
2711
2717
  REEL = 1;
@@ -2890,6 +2896,12 @@ message Message {
2890
2896
  }
2891
2897
  }
2892
2898
 
2899
+ message PaymentExtendedMetadata {
2900
+ optional uint32 type = 1;
2901
+ optional string platform = 2;
2902
+ optional string messageParamsJson = 3;
2903
+ }
2904
+
2893
2905
  message PaymentInviteMessage {
2894
2906
  optional ServiceType serviceType = 1;
2895
2907
  optional int64 expiryTimestamp = 2;
package/dist/index.d.ts CHANGED
@@ -4325,7 +4325,8 @@ export namespace waproto {
4325
4325
  RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42,
4326
4326
  RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43,
4327
4327
  RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44,
4328
- RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45
4328
+ RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45,
4329
+ RICH_RESPONSE_IN_APP_SURVEY = 46
4329
4330
  }
4330
4331
  }
4331
4332
 
@@ -17485,9 +17486,10 @@ export namespace waproto {
17485
17486
 
17486
17487
  /** ProcessState enum. */
17487
17488
  enum ProcessState {
17488
- NOT_DOWNLOADED = 0,
17489
- DOWNLOADED = 1,
17490
- DOWNLOAD_FAILED = 2
17489
+ NOT_INJECTED = 0,
17490
+ INJECTED = 1,
17491
+ INJECTED_PARTIAL = 2,
17492
+ INJECTION_FAILED = 3
17491
17493
  }
17492
17494
  }
17493
17495
 
@@ -26165,6 +26167,9 @@ export namespace waproto {
26165
26167
 
26166
26168
  /** ExtendedTextMessage musicMetadata */
26167
26169
  musicMetadata?: (waproto.IEmbeddedMusic|null);
26170
+
26171
+ /** ExtendedTextMessage paymentExtendedMetadata */
26172
+ paymentExtendedMetadata?: (waproto.Message.IPaymentExtendedMetadata|null);
26168
26173
  }
26169
26174
 
26170
26175
  /** Represents an ExtendedTextMessage. */
@@ -26269,6 +26274,9 @@ export namespace waproto {
26269
26274
  /** ExtendedTextMessage musicMetadata. */
26270
26275
  public musicMetadata?: (waproto.IEmbeddedMusic|null);
26271
26276
 
26277
+ /** ExtendedTextMessage paymentExtendedMetadata. */
26278
+ public paymentExtendedMetadata?: (waproto.Message.IPaymentExtendedMetadata|null);
26279
+
26272
26280
  /**
26273
26281
  * Creates a new ExtendedTextMessage instance using the specified properties.
26274
26282
  * @param [properties] Properties to set
@@ -29715,6 +29723,15 @@ export namespace waproto {
29715
29723
 
29716
29724
  /** LinkPreviewMetadata linkInlineVideoMuted */
29717
29725
  linkInlineVideoMuted?: (boolean|null);
29726
+
29727
+ /** LinkPreviewMetadata videoContentUrl */
29728
+ videoContentUrl?: (string|null);
29729
+
29730
+ /** LinkPreviewMetadata musicMetadata */
29731
+ musicMetadata?: (waproto.IEmbeddedMusic|null);
29732
+
29733
+ /** LinkPreviewMetadata videoContentCaption */
29734
+ videoContentCaption?: (string|null);
29718
29735
  }
29719
29736
 
29720
29737
  /** Represents a LinkPreviewMetadata. */
@@ -29744,6 +29761,15 @@ export namespace waproto {
29744
29761
  /** LinkPreviewMetadata linkInlineVideoMuted. */
29745
29762
  public linkInlineVideoMuted?: (boolean|null);
29746
29763
 
29764
+ /** LinkPreviewMetadata videoContentUrl. */
29765
+ public videoContentUrl?: (string|null);
29766
+
29767
+ /** LinkPreviewMetadata musicMetadata. */
29768
+ public musicMetadata?: (waproto.IEmbeddedMusic|null);
29769
+
29770
+ /** LinkPreviewMetadata videoContentCaption. */
29771
+ public videoContentCaption?: (string|null);
29772
+
29747
29773
  /**
29748
29774
  * Creates a new LinkPreviewMetadata instance using the specified properties.
29749
29775
  * @param [properties] Properties to set
@@ -32092,6 +32118,115 @@ export namespace waproto {
32092
32118
  }
32093
32119
  }
32094
32120
 
32121
+ /** Properties of a PaymentExtendedMetadata. */
32122
+ interface IPaymentExtendedMetadata {
32123
+
32124
+ /** PaymentExtendedMetadata type */
32125
+ type?: (number|null);
32126
+
32127
+ /** PaymentExtendedMetadata platform */
32128
+ platform?: (string|null);
32129
+
32130
+ /** PaymentExtendedMetadata messageParamsJson */
32131
+ messageParamsJson?: (string|null);
32132
+ }
32133
+
32134
+ /** Represents a PaymentExtendedMetadata. */
32135
+ class PaymentExtendedMetadata implements IPaymentExtendedMetadata {
32136
+
32137
+ /**
32138
+ * Constructs a new PaymentExtendedMetadata.
32139
+ * @param [properties] Properties to set
32140
+ */
32141
+ constructor(properties?: waproto.Message.IPaymentExtendedMetadata);
32142
+
32143
+ /** PaymentExtendedMetadata type. */
32144
+ public type?: (number|null);
32145
+
32146
+ /** PaymentExtendedMetadata platform. */
32147
+ public platform?: (string|null);
32148
+
32149
+ /** PaymentExtendedMetadata messageParamsJson. */
32150
+ public messageParamsJson?: (string|null);
32151
+
32152
+ /**
32153
+ * Creates a new PaymentExtendedMetadata instance using the specified properties.
32154
+ * @param [properties] Properties to set
32155
+ * @returns PaymentExtendedMetadata instance
32156
+ */
32157
+ public static create(properties?: waproto.Message.IPaymentExtendedMetadata): waproto.Message.PaymentExtendedMetadata;
32158
+
32159
+ /**
32160
+ * Encodes the specified PaymentExtendedMetadata message. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
32161
+ * @param message PaymentExtendedMetadata message or plain object to encode
32162
+ * @param [writer] Writer to encode to
32163
+ * @returns Writer
32164
+ */
32165
+ public static encode(message: waproto.Message.IPaymentExtendedMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
32166
+
32167
+ /**
32168
+ * Encodes the specified PaymentExtendedMetadata message, length delimited. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
32169
+ * @param message PaymentExtendedMetadata message or plain object to encode
32170
+ * @param [writer] Writer to encode to
32171
+ * @returns Writer
32172
+ */
32173
+ public static encodeDelimited(message: waproto.Message.IPaymentExtendedMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
32174
+
32175
+ /**
32176
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer.
32177
+ * @param reader Reader or buffer to decode from
32178
+ * @param [length] Message length if known beforehand
32179
+ * @returns PaymentExtendedMetadata
32180
+ * @throws {Error} If the payload is not a reader or valid buffer
32181
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32182
+ */
32183
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.PaymentExtendedMetadata;
32184
+
32185
+ /**
32186
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer, length delimited.
32187
+ * @param reader Reader or buffer to decode from
32188
+ * @returns PaymentExtendedMetadata
32189
+ * @throws {Error} If the payload is not a reader or valid buffer
32190
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32191
+ */
32192
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.PaymentExtendedMetadata;
32193
+
32194
+ /**
32195
+ * Verifies a PaymentExtendedMetadata message.
32196
+ * @param message Plain object to verify
32197
+ * @returns `null` if valid, otherwise the reason why it is not
32198
+ */
32199
+ public static verify(message: { [k: string]: any }): (string|null);
32200
+
32201
+ /**
32202
+ * Creates a PaymentExtendedMetadata message from a plain object. Also converts values to their respective internal types.
32203
+ * @param object Plain object
32204
+ * @returns PaymentExtendedMetadata
32205
+ */
32206
+ public static fromObject(object: { [k: string]: any }): waproto.Message.PaymentExtendedMetadata;
32207
+
32208
+ /**
32209
+ * Creates a plain object from a PaymentExtendedMetadata message. Also converts values to other types if specified.
32210
+ * @param message PaymentExtendedMetadata
32211
+ * @param [options] Conversion options
32212
+ * @returns Plain object
32213
+ */
32214
+ public static toObject(message: waproto.Message.PaymentExtendedMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
32215
+
32216
+ /**
32217
+ * Converts this PaymentExtendedMetadata to JSON.
32218
+ * @returns JSON object
32219
+ */
32220
+ public toJSON(): { [k: string]: any };
32221
+
32222
+ /**
32223
+ * Gets the default type url for PaymentExtendedMetadata
32224
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
32225
+ * @returns The default type url
32226
+ */
32227
+ public static getTypeUrl(typeUrlPrefix?: string): string;
32228
+ }
32229
+
32095
32230
  /** Properties of a PaymentInviteMessage. */
32096
32231
  interface IPaymentInviteMessage {
32097
32232
 
package/dist/index.js CHANGED
@@ -11955,6 +11955,7 @@ $root.waproto = (function() {
11955
11955
  case 43:
11956
11956
  case 44:
11957
11957
  case 45:
11958
+ case 46:
11958
11959
  break;
11959
11960
  }
11960
11961
  }
@@ -12168,6 +12169,10 @@ $root.waproto = (function() {
12168
12169
  case 45:
12169
12170
  message.capabilities[i] = 45;
12170
12171
  break;
12172
+ case "RICH_RESPONSE_IN_APP_SURVEY":
12173
+ case 46:
12174
+ message.capabilities[i] = 46;
12175
+ break;
12171
12176
  }
12172
12177
  }
12173
12178
  return message;
@@ -12272,6 +12277,7 @@ $root.waproto = (function() {
12272
12277
  * @property {number} RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43 RICH_RESPONSE_UR_INLINE_REELS_ENABLED value
12273
12278
  * @property {number} RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44 RICH_RESPONSE_UR_MEDIA_GRID_ENABLED value
12274
12279
  * @property {number} RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45 RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER value
12280
+ * @property {number} RICH_RESPONSE_IN_APP_SURVEY=46 RICH_RESPONSE_IN_APP_SURVEY value
12275
12281
  */
12276
12282
  BotCapabilityMetadata.BotCapabilityType = (function() {
12277
12283
  var valuesById = {}, values = Object.create(valuesById);
@@ -12321,6 +12327,7 @@ $root.waproto = (function() {
12321
12327
  values[valuesById[43] = "RICH_RESPONSE_UR_INLINE_REELS_ENABLED"] = 43;
12322
12328
  values[valuesById[44] = "RICH_RESPONSE_UR_MEDIA_GRID_ENABLED"] = 44;
12323
12329
  values[valuesById[45] = "RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER"] = 45;
12330
+ values[valuesById[46] = "RICH_RESPONSE_IN_APP_SURVEY"] = 46;
12324
12331
  return values;
12325
12332
  })();
12326
12333
 
@@ -54628,6 +54635,7 @@ $root.waproto = (function() {
54628
54635
  case 0:
54629
54636
  case 1:
54630
54637
  case 2:
54638
+ case 3:
54631
54639
  break;
54632
54640
  }
54633
54641
  }
@@ -54658,18 +54666,22 @@ $root.waproto = (function() {
54658
54666
  break;
54659
54667
  }
54660
54668
  break;
54661
- case "NOT_DOWNLOADED":
54669
+ case "NOT_INJECTED":
54662
54670
  case 0:
54663
54671
  message.processState = 0;
54664
54672
  break;
54665
- case "DOWNLOADED":
54673
+ case "INJECTED":
54666
54674
  case 1:
54667
54675
  message.processState = 1;
54668
54676
  break;
54669
- case "DOWNLOAD_FAILED":
54677
+ case "INJECTED_PARTIAL":
54670
54678
  case 2:
54671
54679
  message.processState = 2;
54672
54680
  break;
54681
+ case "INJECTION_FAILED":
54682
+ case 3:
54683
+ message.processState = 3;
54684
+ break;
54673
54685
  }
54674
54686
  return message;
54675
54687
  };
@@ -54730,15 +54742,17 @@ $root.waproto = (function() {
54730
54742
  * ProcessState enum.
54731
54743
  * @name waproto.GroupHistoryBundleInfo.ProcessState
54732
54744
  * @enum {number}
54733
- * @property {number} NOT_DOWNLOADED=0 NOT_DOWNLOADED value
54734
- * @property {number} DOWNLOADED=1 DOWNLOADED value
54735
- * @property {number} DOWNLOAD_FAILED=2 DOWNLOAD_FAILED value
54745
+ * @property {number} NOT_INJECTED=0 NOT_INJECTED value
54746
+ * @property {number} INJECTED=1 INJECTED value
54747
+ * @property {number} INJECTED_PARTIAL=2 INJECTED_PARTIAL value
54748
+ * @property {number} INJECTION_FAILED=3 INJECTION_FAILED value
54736
54749
  */
54737
54750
  GroupHistoryBundleInfo.ProcessState = (function() {
54738
54751
  var valuesById = {}, values = Object.create(valuesById);
54739
- values[valuesById[0] = "NOT_DOWNLOADED"] = 0;
54740
- values[valuesById[1] = "DOWNLOADED"] = 1;
54741
- values[valuesById[2] = "DOWNLOAD_FAILED"] = 2;
54752
+ values[valuesById[0] = "NOT_INJECTED"] = 0;
54753
+ values[valuesById[1] = "INJECTED"] = 1;
54754
+ values[valuesById[2] = "INJECTED_PARTIAL"] = 2;
54755
+ values[valuesById[3] = "INJECTION_FAILED"] = 3;
54742
54756
  return values;
54743
54757
  })();
54744
54758
 
@@ -81556,6 +81570,7 @@ $root.waproto = (function() {
81556
81570
  * @property {Array.<waproto.Message.IVideoEndCard>|null} [endCardTiles] ExtendedTextMessage endCardTiles
81557
81571
  * @property {string|null} [videoContentUrl] ExtendedTextMessage videoContentUrl
81558
81572
  * @property {waproto.IEmbeddedMusic|null} [musicMetadata] ExtendedTextMessage musicMetadata
81573
+ * @property {waproto.Message.IPaymentExtendedMetadata|null} [paymentExtendedMetadata] ExtendedTextMessage paymentExtendedMetadata
81559
81574
  */
81560
81575
 
81561
81576
  /**
@@ -81822,6 +81837,14 @@ $root.waproto = (function() {
81822
81837
  */
81823
81838
  ExtendedTextMessage.prototype.musicMetadata = null;
81824
81839
 
81840
+ /**
81841
+ * ExtendedTextMessage paymentExtendedMetadata.
81842
+ * @member {waproto.Message.IPaymentExtendedMetadata|null|undefined} paymentExtendedMetadata
81843
+ * @memberof waproto.Message.ExtendedTextMessage
81844
+ * @instance
81845
+ */
81846
+ ExtendedTextMessage.prototype.paymentExtendedMetadata = null;
81847
+
81825
81848
  // OneOf field names bound to virtual getters and setters
81826
81849
  var $oneOfFields;
81827
81850
 
@@ -82005,6 +82028,12 @@ $root.waproto = (function() {
82005
82028
  set: $util.oneOfSetter($oneOfFields)
82006
82029
  });
82007
82030
 
82031
+ // Virtual OneOf for proto3 optional field
82032
+ Object.defineProperty(ExtendedTextMessage.prototype, "_paymentExtendedMetadata", {
82033
+ get: $util.oneOfGetter($oneOfFields = ["paymentExtendedMetadata"]),
82034
+ set: $util.oneOfSetter($oneOfFields)
82035
+ });
82036
+
82008
82037
  /**
82009
82038
  * Creates a new ExtendedTextMessage instance using the specified properties.
82010
82039
  * @function create
@@ -82092,6 +82121,8 @@ $root.waproto = (function() {
82092
82121
  writer.uint32(/* id 37, wireType 2 =*/298).string(message.videoContentUrl);
82093
82122
  if (message.musicMetadata != null && Object.hasOwnProperty.call(message, "musicMetadata"))
82094
82123
  $root.waproto.EmbeddedMusic.encode(message.musicMetadata, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim();
82124
+ if (message.paymentExtendedMetadata != null && Object.hasOwnProperty.call(message, "paymentExtendedMetadata"))
82125
+ $root.waproto.Message.PaymentExtendedMetadata.encode(message.paymentExtendedMetadata, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
82095
82126
  return writer;
82096
82127
  };
82097
82128
 
@@ -82252,6 +82283,10 @@ $root.waproto = (function() {
82252
82283
  message.musicMetadata = $root.waproto.EmbeddedMusic.decode(reader, reader.uint32());
82253
82284
  break;
82254
82285
  }
82286
+ case 39: {
82287
+ message.paymentExtendedMetadata = $root.waproto.Message.PaymentExtendedMetadata.decode(reader, reader.uint32());
82288
+ break;
82289
+ }
82255
82290
  default:
82256
82291
  reader.skipType(tag & 7);
82257
82292
  break;
@@ -82496,6 +82531,14 @@ $root.waproto = (function() {
82496
82531
  return "musicMetadata." + error;
82497
82532
  }
82498
82533
  }
82534
+ if (message.paymentExtendedMetadata != null && message.hasOwnProperty("paymentExtendedMetadata")) {
82535
+ properties._paymentExtendedMetadata = 1;
82536
+ {
82537
+ var error = $root.waproto.Message.PaymentExtendedMetadata.verify(message.paymentExtendedMetadata);
82538
+ if (error)
82539
+ return "paymentExtendedMetadata." + error;
82540
+ }
82541
+ }
82499
82542
  return null;
82500
82543
  };
82501
82544
 
@@ -82730,6 +82773,11 @@ $root.waproto = (function() {
82730
82773
  throw TypeError(".waproto.Message.ExtendedTextMessage.musicMetadata: object expected");
82731
82774
  message.musicMetadata = $root.waproto.EmbeddedMusic.fromObject(object.musicMetadata);
82732
82775
  }
82776
+ if (object.paymentExtendedMetadata != null) {
82777
+ if (typeof object.paymentExtendedMetadata !== "object")
82778
+ throw TypeError(".waproto.Message.ExtendedTextMessage.paymentExtendedMetadata: object expected");
82779
+ message.paymentExtendedMetadata = $root.waproto.Message.PaymentExtendedMetadata.fromObject(object.paymentExtendedMetadata);
82780
+ }
82733
82781
  return message;
82734
82782
  };
82735
82783
 
@@ -82906,6 +82954,11 @@ $root.waproto = (function() {
82906
82954
  if (options.oneofs)
82907
82955
  object._musicMetadata = "musicMetadata";
82908
82956
  }
82957
+ if (message.paymentExtendedMetadata != null && message.hasOwnProperty("paymentExtendedMetadata")) {
82958
+ object.paymentExtendedMetadata = $root.waproto.Message.PaymentExtendedMetadata.toObject(message.paymentExtendedMetadata, options);
82959
+ if (options.oneofs)
82960
+ object._paymentExtendedMetadata = "paymentExtendedMetadata";
82961
+ }
82909
82962
  return object;
82910
82963
  };
82911
82964
 
@@ -93151,6 +93204,9 @@ $root.waproto = (function() {
93151
93204
  * @property {number|null} [linkMediaDuration] LinkPreviewMetadata linkMediaDuration
93152
93205
  * @property {waproto.Message.LinkPreviewMetadata.SocialMediaPostType|null} [socialMediaPostType] LinkPreviewMetadata socialMediaPostType
93153
93206
  * @property {boolean|null} [linkInlineVideoMuted] LinkPreviewMetadata linkInlineVideoMuted
93207
+ * @property {string|null} [videoContentUrl] LinkPreviewMetadata videoContentUrl
93208
+ * @property {waproto.IEmbeddedMusic|null} [musicMetadata] LinkPreviewMetadata musicMetadata
93209
+ * @property {string|null} [videoContentCaption] LinkPreviewMetadata videoContentCaption
93154
93210
  */
93155
93211
 
93156
93212
  /**
@@ -93216,6 +93272,30 @@ $root.waproto = (function() {
93216
93272
  */
93217
93273
  LinkPreviewMetadata.prototype.linkInlineVideoMuted = null;
93218
93274
 
93275
+ /**
93276
+ * LinkPreviewMetadata videoContentUrl.
93277
+ * @member {string|null|undefined} videoContentUrl
93278
+ * @memberof waproto.Message.LinkPreviewMetadata
93279
+ * @instance
93280
+ */
93281
+ LinkPreviewMetadata.prototype.videoContentUrl = null;
93282
+
93283
+ /**
93284
+ * LinkPreviewMetadata musicMetadata.
93285
+ * @member {waproto.IEmbeddedMusic|null|undefined} musicMetadata
93286
+ * @memberof waproto.Message.LinkPreviewMetadata
93287
+ * @instance
93288
+ */
93289
+ LinkPreviewMetadata.prototype.musicMetadata = null;
93290
+
93291
+ /**
93292
+ * LinkPreviewMetadata videoContentCaption.
93293
+ * @member {string|null|undefined} videoContentCaption
93294
+ * @memberof waproto.Message.LinkPreviewMetadata
93295
+ * @instance
93296
+ */
93297
+ LinkPreviewMetadata.prototype.videoContentCaption = null;
93298
+
93219
93299
  // OneOf field names bound to virtual getters and setters
93220
93300
  var $oneOfFields;
93221
93301
 
@@ -93255,6 +93335,24 @@ $root.waproto = (function() {
93255
93335
  set: $util.oneOfSetter($oneOfFields)
93256
93336
  });
93257
93337
 
93338
+ // Virtual OneOf for proto3 optional field
93339
+ Object.defineProperty(LinkPreviewMetadata.prototype, "_videoContentUrl", {
93340
+ get: $util.oneOfGetter($oneOfFields = ["videoContentUrl"]),
93341
+ set: $util.oneOfSetter($oneOfFields)
93342
+ });
93343
+
93344
+ // Virtual OneOf for proto3 optional field
93345
+ Object.defineProperty(LinkPreviewMetadata.prototype, "_musicMetadata", {
93346
+ get: $util.oneOfGetter($oneOfFields = ["musicMetadata"]),
93347
+ set: $util.oneOfSetter($oneOfFields)
93348
+ });
93349
+
93350
+ // Virtual OneOf for proto3 optional field
93351
+ Object.defineProperty(LinkPreviewMetadata.prototype, "_videoContentCaption", {
93352
+ get: $util.oneOfGetter($oneOfFields = ["videoContentCaption"]),
93353
+ set: $util.oneOfSetter($oneOfFields)
93354
+ });
93355
+
93258
93356
  /**
93259
93357
  * Creates a new LinkPreviewMetadata instance using the specified properties.
93260
93358
  * @function create
@@ -93291,6 +93389,12 @@ $root.waproto = (function() {
93291
93389
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.socialMediaPostType);
93292
93390
  if (message.linkInlineVideoMuted != null && Object.hasOwnProperty.call(message, "linkInlineVideoMuted"))
93293
93391
  writer.uint32(/* id 6, wireType 0 =*/48).bool(message.linkInlineVideoMuted);
93392
+ if (message.videoContentUrl != null && Object.hasOwnProperty.call(message, "videoContentUrl"))
93393
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.videoContentUrl);
93394
+ if (message.musicMetadata != null && Object.hasOwnProperty.call(message, "musicMetadata"))
93395
+ $root.waproto.EmbeddedMusic.encode(message.musicMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
93396
+ if (message.videoContentCaption != null && Object.hasOwnProperty.call(message, "videoContentCaption"))
93397
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.videoContentCaption);
93294
93398
  return writer;
93295
93399
  };
93296
93400
 
@@ -93349,6 +93453,18 @@ $root.waproto = (function() {
93349
93453
  message.linkInlineVideoMuted = reader.bool();
93350
93454
  break;
93351
93455
  }
93456
+ case 7: {
93457
+ message.videoContentUrl = reader.string();
93458
+ break;
93459
+ }
93460
+ case 8: {
93461
+ message.musicMetadata = $root.waproto.EmbeddedMusic.decode(reader, reader.uint32());
93462
+ break;
93463
+ }
93464
+ case 9: {
93465
+ message.videoContentCaption = reader.string();
93466
+ break;
93467
+ }
93352
93468
  default:
93353
93469
  reader.skipType(tag & 7);
93354
93470
  break;
@@ -93430,6 +93546,24 @@ $root.waproto = (function() {
93430
93546
  if (typeof message.linkInlineVideoMuted !== "boolean")
93431
93547
  return "linkInlineVideoMuted: boolean expected";
93432
93548
  }
93549
+ if (message.videoContentUrl != null && message.hasOwnProperty("videoContentUrl")) {
93550
+ properties._videoContentUrl = 1;
93551
+ if (!$util.isString(message.videoContentUrl))
93552
+ return "videoContentUrl: string expected";
93553
+ }
93554
+ if (message.musicMetadata != null && message.hasOwnProperty("musicMetadata")) {
93555
+ properties._musicMetadata = 1;
93556
+ {
93557
+ var error = $root.waproto.EmbeddedMusic.verify(message.musicMetadata);
93558
+ if (error)
93559
+ return "musicMetadata." + error;
93560
+ }
93561
+ }
93562
+ if (message.videoContentCaption != null && message.hasOwnProperty("videoContentCaption")) {
93563
+ properties._videoContentCaption = 1;
93564
+ if (!$util.isString(message.videoContentCaption))
93565
+ return "videoContentCaption: string expected";
93566
+ }
93433
93567
  return null;
93434
93568
  };
93435
93569
 
@@ -93493,6 +93627,15 @@ $root.waproto = (function() {
93493
93627
  }
93494
93628
  if (object.linkInlineVideoMuted != null)
93495
93629
  message.linkInlineVideoMuted = Boolean(object.linkInlineVideoMuted);
93630
+ if (object.videoContentUrl != null)
93631
+ message.videoContentUrl = String(object.videoContentUrl);
93632
+ if (object.musicMetadata != null) {
93633
+ if (typeof object.musicMetadata !== "object")
93634
+ throw TypeError(".waproto.Message.LinkPreviewMetadata.musicMetadata: object expected");
93635
+ message.musicMetadata = $root.waproto.EmbeddedMusic.fromObject(object.musicMetadata);
93636
+ }
93637
+ if (object.videoContentCaption != null)
93638
+ message.videoContentCaption = String(object.videoContentCaption);
93496
93639
  return message;
93497
93640
  };
93498
93641
 
@@ -93539,6 +93682,21 @@ $root.waproto = (function() {
93539
93682
  if (options.oneofs)
93540
93683
  object._linkInlineVideoMuted = "linkInlineVideoMuted";
93541
93684
  }
93685
+ if (message.videoContentUrl != null && message.hasOwnProperty("videoContentUrl")) {
93686
+ object.videoContentUrl = message.videoContentUrl;
93687
+ if (options.oneofs)
93688
+ object._videoContentUrl = "videoContentUrl";
93689
+ }
93690
+ if (message.musicMetadata != null && message.hasOwnProperty("musicMetadata")) {
93691
+ object.musicMetadata = $root.waproto.EmbeddedMusic.toObject(message.musicMetadata, options);
93692
+ if (options.oneofs)
93693
+ object._musicMetadata = "musicMetadata";
93694
+ }
93695
+ if (message.videoContentCaption != null && message.hasOwnProperty("videoContentCaption")) {
93696
+ object.videoContentCaption = message.videoContentCaption;
93697
+ if (options.oneofs)
93698
+ object._videoContentCaption = "videoContentCaption";
93699
+ }
93542
93700
  return object;
93543
93701
  };
93544
93702
 
@@ -100499,6 +100657,288 @@ $root.waproto = (function() {
100499
100657
  return OrderMessage;
100500
100658
  })();
100501
100659
 
100660
+ Message.PaymentExtendedMetadata = (function() {
100661
+
100662
+ /**
100663
+ * Properties of a PaymentExtendedMetadata.
100664
+ * @memberof waproto.Message
100665
+ * @interface IPaymentExtendedMetadata
100666
+ * @property {number|null} [type] PaymentExtendedMetadata type
100667
+ * @property {string|null} [platform] PaymentExtendedMetadata platform
100668
+ * @property {string|null} [messageParamsJson] PaymentExtendedMetadata messageParamsJson
100669
+ */
100670
+
100671
+ /**
100672
+ * Constructs a new PaymentExtendedMetadata.
100673
+ * @memberof waproto.Message
100674
+ * @classdesc Represents a PaymentExtendedMetadata.
100675
+ * @implements IPaymentExtendedMetadata
100676
+ * @constructor
100677
+ * @param {waproto.Message.IPaymentExtendedMetadata=} [properties] Properties to set
100678
+ */
100679
+ function PaymentExtendedMetadata(properties) {
100680
+ if (properties)
100681
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
100682
+ if (properties[keys[i]] != null)
100683
+ this[keys[i]] = properties[keys[i]];
100684
+ }
100685
+
100686
+ /**
100687
+ * PaymentExtendedMetadata type.
100688
+ * @member {number|null|undefined} type
100689
+ * @memberof waproto.Message.PaymentExtendedMetadata
100690
+ * @instance
100691
+ */
100692
+ PaymentExtendedMetadata.prototype.type = null;
100693
+
100694
+ /**
100695
+ * PaymentExtendedMetadata platform.
100696
+ * @member {string|null|undefined} platform
100697
+ * @memberof waproto.Message.PaymentExtendedMetadata
100698
+ * @instance
100699
+ */
100700
+ PaymentExtendedMetadata.prototype.platform = null;
100701
+
100702
+ /**
100703
+ * PaymentExtendedMetadata messageParamsJson.
100704
+ * @member {string|null|undefined} messageParamsJson
100705
+ * @memberof waproto.Message.PaymentExtendedMetadata
100706
+ * @instance
100707
+ */
100708
+ PaymentExtendedMetadata.prototype.messageParamsJson = null;
100709
+
100710
+ // OneOf field names bound to virtual getters and setters
100711
+ var $oneOfFields;
100712
+
100713
+ // Virtual OneOf for proto3 optional field
100714
+ Object.defineProperty(PaymentExtendedMetadata.prototype, "_type", {
100715
+ get: $util.oneOfGetter($oneOfFields = ["type"]),
100716
+ set: $util.oneOfSetter($oneOfFields)
100717
+ });
100718
+
100719
+ // Virtual OneOf for proto3 optional field
100720
+ Object.defineProperty(PaymentExtendedMetadata.prototype, "_platform", {
100721
+ get: $util.oneOfGetter($oneOfFields = ["platform"]),
100722
+ set: $util.oneOfSetter($oneOfFields)
100723
+ });
100724
+
100725
+ // Virtual OneOf for proto3 optional field
100726
+ Object.defineProperty(PaymentExtendedMetadata.prototype, "_messageParamsJson", {
100727
+ get: $util.oneOfGetter($oneOfFields = ["messageParamsJson"]),
100728
+ set: $util.oneOfSetter($oneOfFields)
100729
+ });
100730
+
100731
+ /**
100732
+ * Creates a new PaymentExtendedMetadata instance using the specified properties.
100733
+ * @function create
100734
+ * @memberof waproto.Message.PaymentExtendedMetadata
100735
+ * @static
100736
+ * @param {waproto.Message.IPaymentExtendedMetadata=} [properties] Properties to set
100737
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata instance
100738
+ */
100739
+ PaymentExtendedMetadata.create = function create(properties) {
100740
+ return new PaymentExtendedMetadata(properties);
100741
+ };
100742
+
100743
+ /**
100744
+ * Encodes the specified PaymentExtendedMetadata message. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
100745
+ * @function encode
100746
+ * @memberof waproto.Message.PaymentExtendedMetadata
100747
+ * @static
100748
+ * @param {waproto.Message.IPaymentExtendedMetadata} message PaymentExtendedMetadata message or plain object to encode
100749
+ * @param {$protobuf.Writer} [writer] Writer to encode to
100750
+ * @returns {$protobuf.Writer} Writer
100751
+ */
100752
+ PaymentExtendedMetadata.encode = function encode(message, writer) {
100753
+ if (!writer)
100754
+ writer = $Writer.create();
100755
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
100756
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.type);
100757
+ if (message.platform != null && Object.hasOwnProperty.call(message, "platform"))
100758
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.platform);
100759
+ if (message.messageParamsJson != null && Object.hasOwnProperty.call(message, "messageParamsJson"))
100760
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.messageParamsJson);
100761
+ return writer;
100762
+ };
100763
+
100764
+ /**
100765
+ * Encodes the specified PaymentExtendedMetadata message, length delimited. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
100766
+ * @function encodeDelimited
100767
+ * @memberof waproto.Message.PaymentExtendedMetadata
100768
+ * @static
100769
+ * @param {waproto.Message.IPaymentExtendedMetadata} message PaymentExtendedMetadata message or plain object to encode
100770
+ * @param {$protobuf.Writer} [writer] Writer to encode to
100771
+ * @returns {$protobuf.Writer} Writer
100772
+ */
100773
+ PaymentExtendedMetadata.encodeDelimited = function encodeDelimited(message, writer) {
100774
+ return this.encode(message, writer).ldelim();
100775
+ };
100776
+
100777
+ /**
100778
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer.
100779
+ * @function decode
100780
+ * @memberof waproto.Message.PaymentExtendedMetadata
100781
+ * @static
100782
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
100783
+ * @param {number} [length] Message length if known beforehand
100784
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
100785
+ * @throws {Error} If the payload is not a reader or valid buffer
100786
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
100787
+ */
100788
+ PaymentExtendedMetadata.decode = function decode(reader, length) {
100789
+ if (!(reader instanceof $Reader))
100790
+ reader = $Reader.create(reader);
100791
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.PaymentExtendedMetadata();
100792
+ while (reader.pos < end) {
100793
+ var tag = reader.uint32();
100794
+ switch (tag >>> 3) {
100795
+ case 1: {
100796
+ message.type = reader.uint32();
100797
+ break;
100798
+ }
100799
+ case 2: {
100800
+ message.platform = reader.string();
100801
+ break;
100802
+ }
100803
+ case 3: {
100804
+ message.messageParamsJson = reader.string();
100805
+ break;
100806
+ }
100807
+ default:
100808
+ reader.skipType(tag & 7);
100809
+ break;
100810
+ }
100811
+ }
100812
+ return message;
100813
+ };
100814
+
100815
+ /**
100816
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer, length delimited.
100817
+ * @function decodeDelimited
100818
+ * @memberof waproto.Message.PaymentExtendedMetadata
100819
+ * @static
100820
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
100821
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
100822
+ * @throws {Error} If the payload is not a reader or valid buffer
100823
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
100824
+ */
100825
+ PaymentExtendedMetadata.decodeDelimited = function decodeDelimited(reader) {
100826
+ if (!(reader instanceof $Reader))
100827
+ reader = new $Reader(reader);
100828
+ return this.decode(reader, reader.uint32());
100829
+ };
100830
+
100831
+ /**
100832
+ * Verifies a PaymentExtendedMetadata message.
100833
+ * @function verify
100834
+ * @memberof waproto.Message.PaymentExtendedMetadata
100835
+ * @static
100836
+ * @param {Object.<string,*>} message Plain object to verify
100837
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
100838
+ */
100839
+ PaymentExtendedMetadata.verify = function verify(message) {
100840
+ if (typeof message !== "object" || message === null)
100841
+ return "object expected";
100842
+ var properties = {};
100843
+ if (message.type != null && message.hasOwnProperty("type")) {
100844
+ properties._type = 1;
100845
+ if (!$util.isInteger(message.type))
100846
+ return "type: integer expected";
100847
+ }
100848
+ if (message.platform != null && message.hasOwnProperty("platform")) {
100849
+ properties._platform = 1;
100850
+ if (!$util.isString(message.platform))
100851
+ return "platform: string expected";
100852
+ }
100853
+ if (message.messageParamsJson != null && message.hasOwnProperty("messageParamsJson")) {
100854
+ properties._messageParamsJson = 1;
100855
+ if (!$util.isString(message.messageParamsJson))
100856
+ return "messageParamsJson: string expected";
100857
+ }
100858
+ return null;
100859
+ };
100860
+
100861
+ /**
100862
+ * Creates a PaymentExtendedMetadata message from a plain object. Also converts values to their respective internal types.
100863
+ * @function fromObject
100864
+ * @memberof waproto.Message.PaymentExtendedMetadata
100865
+ * @static
100866
+ * @param {Object.<string,*>} object Plain object
100867
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
100868
+ */
100869
+ PaymentExtendedMetadata.fromObject = function fromObject(object) {
100870
+ if (object instanceof $root.waproto.Message.PaymentExtendedMetadata)
100871
+ return object;
100872
+ var message = new $root.waproto.Message.PaymentExtendedMetadata();
100873
+ if (object.type != null)
100874
+ message.type = object.type >>> 0;
100875
+ if (object.platform != null)
100876
+ message.platform = String(object.platform);
100877
+ if (object.messageParamsJson != null)
100878
+ message.messageParamsJson = String(object.messageParamsJson);
100879
+ return message;
100880
+ };
100881
+
100882
+ /**
100883
+ * Creates a plain object from a PaymentExtendedMetadata message. Also converts values to other types if specified.
100884
+ * @function toObject
100885
+ * @memberof waproto.Message.PaymentExtendedMetadata
100886
+ * @static
100887
+ * @param {waproto.Message.PaymentExtendedMetadata} message PaymentExtendedMetadata
100888
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
100889
+ * @returns {Object.<string,*>} Plain object
100890
+ */
100891
+ PaymentExtendedMetadata.toObject = function toObject(message, options) {
100892
+ if (!options)
100893
+ options = {};
100894
+ var object = {};
100895
+ if (message.type != null && message.hasOwnProperty("type")) {
100896
+ object.type = message.type;
100897
+ if (options.oneofs)
100898
+ object._type = "type";
100899
+ }
100900
+ if (message.platform != null && message.hasOwnProperty("platform")) {
100901
+ object.platform = message.platform;
100902
+ if (options.oneofs)
100903
+ object._platform = "platform";
100904
+ }
100905
+ if (message.messageParamsJson != null && message.hasOwnProperty("messageParamsJson")) {
100906
+ object.messageParamsJson = message.messageParamsJson;
100907
+ if (options.oneofs)
100908
+ object._messageParamsJson = "messageParamsJson";
100909
+ }
100910
+ return object;
100911
+ };
100912
+
100913
+ /**
100914
+ * Converts this PaymentExtendedMetadata to JSON.
100915
+ * @function toJSON
100916
+ * @memberof waproto.Message.PaymentExtendedMetadata
100917
+ * @instance
100918
+ * @returns {Object.<string,*>} JSON object
100919
+ */
100920
+ PaymentExtendedMetadata.prototype.toJSON = function toJSON() {
100921
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
100922
+ };
100923
+
100924
+ /**
100925
+ * Gets the default type url for PaymentExtendedMetadata
100926
+ * @function getTypeUrl
100927
+ * @memberof waproto.Message.PaymentExtendedMetadata
100928
+ * @static
100929
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
100930
+ * @returns {string} The default type url
100931
+ */
100932
+ PaymentExtendedMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
100933
+ if (typeUrlPrefix === undefined) {
100934
+ typeUrlPrefix = "type.googleapis.com";
100935
+ }
100936
+ return typeUrlPrefix + "/waproto.Message.PaymentExtendedMetadata";
100937
+ };
100938
+
100939
+ return PaymentExtendedMetadata;
100940
+ })();
100941
+
100502
100942
  Message.PaymentInviteMessage = (function() {
100503
100943
 
100504
100944
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1028028707",
3
+ "version": "2.3000.1028088934",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "author": {