@wppconnect/wa-proto 2.3000.1027966938 → 2.3000.1028056377

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.1028056377](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1028028707...v2.3000.1028056377) (2025-10-07)
2
+
3
+
4
+
5
+ ## [2.3000.1028028707](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1027966938...v2.3000.1028028707) (2025-10-06)
6
+
7
+
8
+
1
9
  ## 2.3000.1027966938 (2025-10-03)
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.1027966938
4
+ /// WhatsApp Version: 2.3000.1028056377
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -2068,6 +2068,7 @@ message Message {
2068
2068
  optional PollCreationMessage pollCreationMessageV5 = 111;
2069
2069
  optional PollResultSnapshotMessage pollResultSnapshotMessageV2 = 112;
2070
2070
  optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
2071
+ optional RequestContactInfoMessage requestContactInfoMessage = 114;
2071
2072
  message AlbumMessage {
2072
2073
  optional uint32 expectedImageCount = 2;
2073
2074
  optional uint32 expectedVideoCount = 3;
@@ -2393,6 +2394,7 @@ message Message {
2393
2394
  repeated Message.VideoEndCard endCardTiles = 36;
2394
2395
  optional string videoContentUrl = 37;
2395
2396
  optional EmbeddedMusic musicMetadata = 38;
2397
+ optional Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;
2396
2398
  enum FontType {
2397
2399
  SYSTEM = 0;
2398
2400
  SYSTEM_TEXT = 1;
@@ -2889,6 +2891,12 @@ message Message {
2889
2891
  }
2890
2892
  }
2891
2893
 
2894
+ message PaymentExtendedMetadata {
2895
+ optional uint32 type = 1;
2896
+ optional string platform = 2;
2897
+ optional string messageParamsJson = 3;
2898
+ }
2899
+
2892
2900
  message PaymentInviteMessage {
2893
2901
  optional ServiceType serviceType = 1;
2894
2902
  optional int64 expiryTimestamp = 2;
@@ -3266,6 +3274,12 @@ message Message {
3266
3274
  optional int64 senderTimestampMs = 4;
3267
3275
  }
3268
3276
 
3277
+ message RequestContactInfoMessage {
3278
+ optional string text = 1;
3279
+ optional string ctaButtonText = 2;
3280
+ optional ContextInfo contextInfo = 3;
3281
+ }
3282
+
3269
3283
  message RequestPaymentMessage {
3270
3284
  optional Message noteMessage = 4;
3271
3285
  optional string currencyCodeIso4217 = 1;
package/dist/index.d.ts CHANGED
@@ -21744,6 +21744,9 @@ export namespace waproto {
21744
21744
 
21745
21745
  /** Message newsletterFollowerInviteMessageV2 */
21746
21746
  newsletterFollowerInviteMessageV2?: (waproto.Message.INewsletterFollowerInviteMessage|null);
21747
+
21748
+ /** Message requestContactInfoMessage */
21749
+ requestContactInfoMessage?: (waproto.Message.IRequestContactInfoMessage|null);
21747
21750
  }
21748
21751
 
21749
21752
  /** Represents a Message. */
@@ -22043,6 +22046,9 @@ export namespace waproto {
22043
22046
  /** Message newsletterFollowerInviteMessageV2. */
22044
22047
  public newsletterFollowerInviteMessageV2?: (waproto.Message.INewsletterFollowerInviteMessage|null);
22045
22048
 
22049
+ /** Message requestContactInfoMessage. */
22050
+ public requestContactInfoMessage?: (waproto.Message.IRequestContactInfoMessage|null);
22051
+
22046
22052
  /**
22047
22053
  * Creates a new Message instance using the specified properties.
22048
22054
  * @param [properties] Properties to set
@@ -26159,6 +26165,9 @@ export namespace waproto {
26159
26165
 
26160
26166
  /** ExtendedTextMessage musicMetadata */
26161
26167
  musicMetadata?: (waproto.IEmbeddedMusic|null);
26168
+
26169
+ /** ExtendedTextMessage paymentExtendedMetadata */
26170
+ paymentExtendedMetadata?: (waproto.Message.IPaymentExtendedMetadata|null);
26162
26171
  }
26163
26172
 
26164
26173
  /** Represents an ExtendedTextMessage. */
@@ -26263,6 +26272,9 @@ export namespace waproto {
26263
26272
  /** ExtendedTextMessage musicMetadata. */
26264
26273
  public musicMetadata?: (waproto.IEmbeddedMusic|null);
26265
26274
 
26275
+ /** ExtendedTextMessage paymentExtendedMetadata. */
26276
+ public paymentExtendedMetadata?: (waproto.Message.IPaymentExtendedMetadata|null);
26277
+
26266
26278
  /**
26267
26279
  * Creates a new ExtendedTextMessage instance using the specified properties.
26268
26280
  * @param [properties] Properties to set
@@ -32086,6 +32098,115 @@ export namespace waproto {
32086
32098
  }
32087
32099
  }
32088
32100
 
32101
+ /** Properties of a PaymentExtendedMetadata. */
32102
+ interface IPaymentExtendedMetadata {
32103
+
32104
+ /** PaymentExtendedMetadata type */
32105
+ type?: (number|null);
32106
+
32107
+ /** PaymentExtendedMetadata platform */
32108
+ platform?: (string|null);
32109
+
32110
+ /** PaymentExtendedMetadata messageParamsJson */
32111
+ messageParamsJson?: (string|null);
32112
+ }
32113
+
32114
+ /** Represents a PaymentExtendedMetadata. */
32115
+ class PaymentExtendedMetadata implements IPaymentExtendedMetadata {
32116
+
32117
+ /**
32118
+ * Constructs a new PaymentExtendedMetadata.
32119
+ * @param [properties] Properties to set
32120
+ */
32121
+ constructor(properties?: waproto.Message.IPaymentExtendedMetadata);
32122
+
32123
+ /** PaymentExtendedMetadata type. */
32124
+ public type?: (number|null);
32125
+
32126
+ /** PaymentExtendedMetadata platform. */
32127
+ public platform?: (string|null);
32128
+
32129
+ /** PaymentExtendedMetadata messageParamsJson. */
32130
+ public messageParamsJson?: (string|null);
32131
+
32132
+ /**
32133
+ * Creates a new PaymentExtendedMetadata instance using the specified properties.
32134
+ * @param [properties] Properties to set
32135
+ * @returns PaymentExtendedMetadata instance
32136
+ */
32137
+ public static create(properties?: waproto.Message.IPaymentExtendedMetadata): waproto.Message.PaymentExtendedMetadata;
32138
+
32139
+ /**
32140
+ * Encodes the specified PaymentExtendedMetadata message. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
32141
+ * @param message PaymentExtendedMetadata message or plain object to encode
32142
+ * @param [writer] Writer to encode to
32143
+ * @returns Writer
32144
+ */
32145
+ public static encode(message: waproto.Message.IPaymentExtendedMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
32146
+
32147
+ /**
32148
+ * Encodes the specified PaymentExtendedMetadata message, length delimited. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
32149
+ * @param message PaymentExtendedMetadata message or plain object to encode
32150
+ * @param [writer] Writer to encode to
32151
+ * @returns Writer
32152
+ */
32153
+ public static encodeDelimited(message: waproto.Message.IPaymentExtendedMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
32154
+
32155
+ /**
32156
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer.
32157
+ * @param reader Reader or buffer to decode from
32158
+ * @param [length] Message length if known beforehand
32159
+ * @returns PaymentExtendedMetadata
32160
+ * @throws {Error} If the payload is not a reader or valid buffer
32161
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32162
+ */
32163
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.PaymentExtendedMetadata;
32164
+
32165
+ /**
32166
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer, length delimited.
32167
+ * @param reader Reader or buffer to decode from
32168
+ * @returns PaymentExtendedMetadata
32169
+ * @throws {Error} If the payload is not a reader or valid buffer
32170
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32171
+ */
32172
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.PaymentExtendedMetadata;
32173
+
32174
+ /**
32175
+ * Verifies a PaymentExtendedMetadata message.
32176
+ * @param message Plain object to verify
32177
+ * @returns `null` if valid, otherwise the reason why it is not
32178
+ */
32179
+ public static verify(message: { [k: string]: any }): (string|null);
32180
+
32181
+ /**
32182
+ * Creates a PaymentExtendedMetadata message from a plain object. Also converts values to their respective internal types.
32183
+ * @param object Plain object
32184
+ * @returns PaymentExtendedMetadata
32185
+ */
32186
+ public static fromObject(object: { [k: string]: any }): waproto.Message.PaymentExtendedMetadata;
32187
+
32188
+ /**
32189
+ * Creates a plain object from a PaymentExtendedMetadata message. Also converts values to other types if specified.
32190
+ * @param message PaymentExtendedMetadata
32191
+ * @param [options] Conversion options
32192
+ * @returns Plain object
32193
+ */
32194
+ public static toObject(message: waproto.Message.PaymentExtendedMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
32195
+
32196
+ /**
32197
+ * Converts this PaymentExtendedMetadata to JSON.
32198
+ * @returns JSON object
32199
+ */
32200
+ public toJSON(): { [k: string]: any };
32201
+
32202
+ /**
32203
+ * Gets the default type url for PaymentExtendedMetadata
32204
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
32205
+ * @returns The default type url
32206
+ */
32207
+ public static getTypeUrl(typeUrlPrefix?: string): string;
32208
+ }
32209
+
32089
32210
  /** Properties of a PaymentInviteMessage. */
32090
32211
  interface IPaymentInviteMessage {
32091
32212
 
@@ -37033,6 +37154,115 @@ export namespace waproto {
37033
37154
  public static getTypeUrl(typeUrlPrefix?: string): string;
37034
37155
  }
37035
37156
 
37157
+ /** Properties of a RequestContactInfoMessage. */
37158
+ interface IRequestContactInfoMessage {
37159
+
37160
+ /** RequestContactInfoMessage text */
37161
+ text?: (string|null);
37162
+
37163
+ /** RequestContactInfoMessage ctaButtonText */
37164
+ ctaButtonText?: (string|null);
37165
+
37166
+ /** RequestContactInfoMessage contextInfo */
37167
+ contextInfo?: (waproto.IContextInfo|null);
37168
+ }
37169
+
37170
+ /** Represents a RequestContactInfoMessage. */
37171
+ class RequestContactInfoMessage implements IRequestContactInfoMessage {
37172
+
37173
+ /**
37174
+ * Constructs a new RequestContactInfoMessage.
37175
+ * @param [properties] Properties to set
37176
+ */
37177
+ constructor(properties?: waproto.Message.IRequestContactInfoMessage);
37178
+
37179
+ /** RequestContactInfoMessage text. */
37180
+ public text?: (string|null);
37181
+
37182
+ /** RequestContactInfoMessage ctaButtonText. */
37183
+ public ctaButtonText?: (string|null);
37184
+
37185
+ /** RequestContactInfoMessage contextInfo. */
37186
+ public contextInfo?: (waproto.IContextInfo|null);
37187
+
37188
+ /**
37189
+ * Creates a new RequestContactInfoMessage instance using the specified properties.
37190
+ * @param [properties] Properties to set
37191
+ * @returns RequestContactInfoMessage instance
37192
+ */
37193
+ public static create(properties?: waproto.Message.IRequestContactInfoMessage): waproto.Message.RequestContactInfoMessage;
37194
+
37195
+ /**
37196
+ * Encodes the specified RequestContactInfoMessage message. Does not implicitly {@link waproto.Message.RequestContactInfoMessage.verify|verify} messages.
37197
+ * @param message RequestContactInfoMessage message or plain object to encode
37198
+ * @param [writer] Writer to encode to
37199
+ * @returns Writer
37200
+ */
37201
+ public static encode(message: waproto.Message.IRequestContactInfoMessage, writer?: $protobuf.Writer): $protobuf.Writer;
37202
+
37203
+ /**
37204
+ * Encodes the specified RequestContactInfoMessage message, length delimited. Does not implicitly {@link waproto.Message.RequestContactInfoMessage.verify|verify} messages.
37205
+ * @param message RequestContactInfoMessage message or plain object to encode
37206
+ * @param [writer] Writer to encode to
37207
+ * @returns Writer
37208
+ */
37209
+ public static encodeDelimited(message: waproto.Message.IRequestContactInfoMessage, writer?: $protobuf.Writer): $protobuf.Writer;
37210
+
37211
+ /**
37212
+ * Decodes a RequestContactInfoMessage message from the specified reader or buffer.
37213
+ * @param reader Reader or buffer to decode from
37214
+ * @param [length] Message length if known beforehand
37215
+ * @returns RequestContactInfoMessage
37216
+ * @throws {Error} If the payload is not a reader or valid buffer
37217
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37218
+ */
37219
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.RequestContactInfoMessage;
37220
+
37221
+ /**
37222
+ * Decodes a RequestContactInfoMessage message from the specified reader or buffer, length delimited.
37223
+ * @param reader Reader or buffer to decode from
37224
+ * @returns RequestContactInfoMessage
37225
+ * @throws {Error} If the payload is not a reader or valid buffer
37226
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37227
+ */
37228
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.RequestContactInfoMessage;
37229
+
37230
+ /**
37231
+ * Verifies a RequestContactInfoMessage message.
37232
+ * @param message Plain object to verify
37233
+ * @returns `null` if valid, otherwise the reason why it is not
37234
+ */
37235
+ public static verify(message: { [k: string]: any }): (string|null);
37236
+
37237
+ /**
37238
+ * Creates a RequestContactInfoMessage message from a plain object. Also converts values to their respective internal types.
37239
+ * @param object Plain object
37240
+ * @returns RequestContactInfoMessage
37241
+ */
37242
+ public static fromObject(object: { [k: string]: any }): waproto.Message.RequestContactInfoMessage;
37243
+
37244
+ /**
37245
+ * Creates a plain object from a RequestContactInfoMessage message. Also converts values to other types if specified.
37246
+ * @param message RequestContactInfoMessage
37247
+ * @param [options] Conversion options
37248
+ * @returns Plain object
37249
+ */
37250
+ public static toObject(message: waproto.Message.RequestContactInfoMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
37251
+
37252
+ /**
37253
+ * Converts this RequestContactInfoMessage to JSON.
37254
+ * @returns JSON object
37255
+ */
37256
+ public toJSON(): { [k: string]: any };
37257
+
37258
+ /**
37259
+ * Gets the default type url for RequestContactInfoMessage
37260
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
37261
+ * @returns The default type url
37262
+ */
37263
+ public static getTypeUrl(typeUrlPrefix?: string): string;
37264
+ }
37265
+
37036
37266
  /** Properties of a RequestPaymentMessage. */
37037
37267
  interface IRequestPaymentMessage {
37038
37268
 
package/dist/index.js CHANGED
@@ -66057,6 +66057,7 @@ $root.waproto = (function() {
66057
66057
  * @property {waproto.Message.IPollCreationMessage|null} [pollCreationMessageV5] Message pollCreationMessageV5
66058
66058
  * @property {waproto.Message.IPollResultSnapshotMessage|null} [pollResultSnapshotMessageV2] Message pollResultSnapshotMessageV2
66059
66059
  * @property {waproto.Message.INewsletterFollowerInviteMessage|null} [newsletterFollowerInviteMessageV2] Message newsletterFollowerInviteMessageV2
66060
+ * @property {waproto.Message.IRequestContactInfoMessage|null} [requestContactInfoMessage] Message requestContactInfoMessage
66060
66061
  */
66061
66062
 
66062
66063
  /**
@@ -66842,6 +66843,14 @@ $root.waproto = (function() {
66842
66843
  */
66843
66844
  Message.prototype.newsletterFollowerInviteMessageV2 = null;
66844
66845
 
66846
+ /**
66847
+ * Message requestContactInfoMessage.
66848
+ * @member {waproto.Message.IRequestContactInfoMessage|null|undefined} requestContactInfoMessage
66849
+ * @memberof waproto.Message
66850
+ * @instance
66851
+ */
66852
+ Message.prototype.requestContactInfoMessage = null;
66853
+
66845
66854
  // OneOf field names bound to virtual getters and setters
66846
66855
  var $oneOfFields;
66847
66856
 
@@ -67421,6 +67430,12 @@ $root.waproto = (function() {
67421
67430
  set: $util.oneOfSetter($oneOfFields)
67422
67431
  });
67423
67432
 
67433
+ // Virtual OneOf for proto3 optional field
67434
+ Object.defineProperty(Message.prototype, "_requestContactInfoMessage", {
67435
+ get: $util.oneOfGetter($oneOfFields = ["requestContactInfoMessage"]),
67436
+ set: $util.oneOfSetter($oneOfFields)
67437
+ });
67438
+
67424
67439
  /**
67425
67440
  * Creates a new Message instance using the specified properties.
67426
67441
  * @function create
@@ -67637,6 +67652,8 @@ $root.waproto = (function() {
67637
67652
  $root.waproto.Message.PollResultSnapshotMessage.encode(message.pollResultSnapshotMessageV2, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim();
67638
67653
  if (message.newsletterFollowerInviteMessageV2 != null && Object.hasOwnProperty.call(message, "newsletterFollowerInviteMessageV2"))
67639
67654
  $root.waproto.Message.NewsletterFollowerInviteMessage.encode(message.newsletterFollowerInviteMessageV2, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim();
67655
+ if (message.requestContactInfoMessage != null && Object.hasOwnProperty.call(message, "requestContactInfoMessage"))
67656
+ $root.waproto.Message.RequestContactInfoMessage.encode(message.requestContactInfoMessage, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim();
67640
67657
  return writer;
67641
67658
  };
67642
67659
 
@@ -68055,6 +68072,10 @@ $root.waproto = (function() {
68055
68072
  message.newsletterFollowerInviteMessageV2 = $root.waproto.Message.NewsletterFollowerInviteMessage.decode(reader, reader.uint32());
68056
68073
  break;
68057
68074
  }
68075
+ case 114: {
68076
+ message.requestContactInfoMessage = $root.waproto.Message.RequestContactInfoMessage.decode(reader, reader.uint32());
68077
+ break;
68078
+ }
68058
68079
  default:
68059
68080
  reader.skipType(tag & 7);
68060
68081
  break;
@@ -68856,6 +68877,14 @@ $root.waproto = (function() {
68856
68877
  return "newsletterFollowerInviteMessageV2." + error;
68857
68878
  }
68858
68879
  }
68880
+ if (message.requestContactInfoMessage != null && message.hasOwnProperty("requestContactInfoMessage")) {
68881
+ properties._requestContactInfoMessage = 1;
68882
+ {
68883
+ var error = $root.waproto.Message.RequestContactInfoMessage.verify(message.requestContactInfoMessage);
68884
+ if (error)
68885
+ return "requestContactInfoMessage." + error;
68886
+ }
68887
+ }
68859
68888
  return null;
68860
68889
  };
68861
68890
 
@@ -69348,6 +69377,11 @@ $root.waproto = (function() {
69348
69377
  throw TypeError(".waproto.Message.newsletterFollowerInviteMessageV2: object expected");
69349
69378
  message.newsletterFollowerInviteMessageV2 = $root.waproto.Message.NewsletterFollowerInviteMessage.fromObject(object.newsletterFollowerInviteMessageV2);
69350
69379
  }
69380
+ if (object.requestContactInfoMessage != null) {
69381
+ if (typeof object.requestContactInfoMessage !== "object")
69382
+ throw TypeError(".waproto.Message.requestContactInfoMessage: object expected");
69383
+ message.requestContactInfoMessage = $root.waproto.Message.RequestContactInfoMessage.fromObject(object.requestContactInfoMessage);
69384
+ }
69351
69385
  return message;
69352
69386
  };
69353
69387
 
@@ -69844,6 +69878,11 @@ $root.waproto = (function() {
69844
69878
  if (options.oneofs)
69845
69879
  object._newsletterFollowerInviteMessageV2 = "newsletterFollowerInviteMessageV2";
69846
69880
  }
69881
+ if (message.requestContactInfoMessage != null && message.hasOwnProperty("requestContactInfoMessage")) {
69882
+ object.requestContactInfoMessage = $root.waproto.Message.RequestContactInfoMessage.toObject(message.requestContactInfoMessage, options);
69883
+ if (options.oneofs)
69884
+ object._requestContactInfoMessage = "requestContactInfoMessage";
69885
+ }
69847
69886
  return object;
69848
69887
  };
69849
69888
 
@@ -81517,6 +81556,7 @@ $root.waproto = (function() {
81517
81556
  * @property {Array.<waproto.Message.IVideoEndCard>|null} [endCardTiles] ExtendedTextMessage endCardTiles
81518
81557
  * @property {string|null} [videoContentUrl] ExtendedTextMessage videoContentUrl
81519
81558
  * @property {waproto.IEmbeddedMusic|null} [musicMetadata] ExtendedTextMessage musicMetadata
81559
+ * @property {waproto.Message.IPaymentExtendedMetadata|null} [paymentExtendedMetadata] ExtendedTextMessage paymentExtendedMetadata
81520
81560
  */
81521
81561
 
81522
81562
  /**
@@ -81783,6 +81823,14 @@ $root.waproto = (function() {
81783
81823
  */
81784
81824
  ExtendedTextMessage.prototype.musicMetadata = null;
81785
81825
 
81826
+ /**
81827
+ * ExtendedTextMessage paymentExtendedMetadata.
81828
+ * @member {waproto.Message.IPaymentExtendedMetadata|null|undefined} paymentExtendedMetadata
81829
+ * @memberof waproto.Message.ExtendedTextMessage
81830
+ * @instance
81831
+ */
81832
+ ExtendedTextMessage.prototype.paymentExtendedMetadata = null;
81833
+
81786
81834
  // OneOf field names bound to virtual getters and setters
81787
81835
  var $oneOfFields;
81788
81836
 
@@ -81966,6 +82014,12 @@ $root.waproto = (function() {
81966
82014
  set: $util.oneOfSetter($oneOfFields)
81967
82015
  });
81968
82016
 
82017
+ // Virtual OneOf for proto3 optional field
82018
+ Object.defineProperty(ExtendedTextMessage.prototype, "_paymentExtendedMetadata", {
82019
+ get: $util.oneOfGetter($oneOfFields = ["paymentExtendedMetadata"]),
82020
+ set: $util.oneOfSetter($oneOfFields)
82021
+ });
82022
+
81969
82023
  /**
81970
82024
  * Creates a new ExtendedTextMessage instance using the specified properties.
81971
82025
  * @function create
@@ -82053,6 +82107,8 @@ $root.waproto = (function() {
82053
82107
  writer.uint32(/* id 37, wireType 2 =*/298).string(message.videoContentUrl);
82054
82108
  if (message.musicMetadata != null && Object.hasOwnProperty.call(message, "musicMetadata"))
82055
82109
  $root.waproto.EmbeddedMusic.encode(message.musicMetadata, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim();
82110
+ if (message.paymentExtendedMetadata != null && Object.hasOwnProperty.call(message, "paymentExtendedMetadata"))
82111
+ $root.waproto.Message.PaymentExtendedMetadata.encode(message.paymentExtendedMetadata, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
82056
82112
  return writer;
82057
82113
  };
82058
82114
 
@@ -82213,6 +82269,10 @@ $root.waproto = (function() {
82213
82269
  message.musicMetadata = $root.waproto.EmbeddedMusic.decode(reader, reader.uint32());
82214
82270
  break;
82215
82271
  }
82272
+ case 39: {
82273
+ message.paymentExtendedMetadata = $root.waproto.Message.PaymentExtendedMetadata.decode(reader, reader.uint32());
82274
+ break;
82275
+ }
82216
82276
  default:
82217
82277
  reader.skipType(tag & 7);
82218
82278
  break;
@@ -82457,6 +82517,14 @@ $root.waproto = (function() {
82457
82517
  return "musicMetadata." + error;
82458
82518
  }
82459
82519
  }
82520
+ if (message.paymentExtendedMetadata != null && message.hasOwnProperty("paymentExtendedMetadata")) {
82521
+ properties._paymentExtendedMetadata = 1;
82522
+ {
82523
+ var error = $root.waproto.Message.PaymentExtendedMetadata.verify(message.paymentExtendedMetadata);
82524
+ if (error)
82525
+ return "paymentExtendedMetadata." + error;
82526
+ }
82527
+ }
82460
82528
  return null;
82461
82529
  };
82462
82530
 
@@ -82691,6 +82759,11 @@ $root.waproto = (function() {
82691
82759
  throw TypeError(".waproto.Message.ExtendedTextMessage.musicMetadata: object expected");
82692
82760
  message.musicMetadata = $root.waproto.EmbeddedMusic.fromObject(object.musicMetadata);
82693
82761
  }
82762
+ if (object.paymentExtendedMetadata != null) {
82763
+ if (typeof object.paymentExtendedMetadata !== "object")
82764
+ throw TypeError(".waproto.Message.ExtendedTextMessage.paymentExtendedMetadata: object expected");
82765
+ message.paymentExtendedMetadata = $root.waproto.Message.PaymentExtendedMetadata.fromObject(object.paymentExtendedMetadata);
82766
+ }
82694
82767
  return message;
82695
82768
  };
82696
82769
 
@@ -82867,6 +82940,11 @@ $root.waproto = (function() {
82867
82940
  if (options.oneofs)
82868
82941
  object._musicMetadata = "musicMetadata";
82869
82942
  }
82943
+ if (message.paymentExtendedMetadata != null && message.hasOwnProperty("paymentExtendedMetadata")) {
82944
+ object.paymentExtendedMetadata = $root.waproto.Message.PaymentExtendedMetadata.toObject(message.paymentExtendedMetadata, options);
82945
+ if (options.oneofs)
82946
+ object._paymentExtendedMetadata = "paymentExtendedMetadata";
82947
+ }
82870
82948
  return object;
82871
82949
  };
82872
82950
 
@@ -100460,6 +100538,288 @@ $root.waproto = (function() {
100460
100538
  return OrderMessage;
100461
100539
  })();
100462
100540
 
100541
+ Message.PaymentExtendedMetadata = (function() {
100542
+
100543
+ /**
100544
+ * Properties of a PaymentExtendedMetadata.
100545
+ * @memberof waproto.Message
100546
+ * @interface IPaymentExtendedMetadata
100547
+ * @property {number|null} [type] PaymentExtendedMetadata type
100548
+ * @property {string|null} [platform] PaymentExtendedMetadata platform
100549
+ * @property {string|null} [messageParamsJson] PaymentExtendedMetadata messageParamsJson
100550
+ */
100551
+
100552
+ /**
100553
+ * Constructs a new PaymentExtendedMetadata.
100554
+ * @memberof waproto.Message
100555
+ * @classdesc Represents a PaymentExtendedMetadata.
100556
+ * @implements IPaymentExtendedMetadata
100557
+ * @constructor
100558
+ * @param {waproto.Message.IPaymentExtendedMetadata=} [properties] Properties to set
100559
+ */
100560
+ function PaymentExtendedMetadata(properties) {
100561
+ if (properties)
100562
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
100563
+ if (properties[keys[i]] != null)
100564
+ this[keys[i]] = properties[keys[i]];
100565
+ }
100566
+
100567
+ /**
100568
+ * PaymentExtendedMetadata type.
100569
+ * @member {number|null|undefined} type
100570
+ * @memberof waproto.Message.PaymentExtendedMetadata
100571
+ * @instance
100572
+ */
100573
+ PaymentExtendedMetadata.prototype.type = null;
100574
+
100575
+ /**
100576
+ * PaymentExtendedMetadata platform.
100577
+ * @member {string|null|undefined} platform
100578
+ * @memberof waproto.Message.PaymentExtendedMetadata
100579
+ * @instance
100580
+ */
100581
+ PaymentExtendedMetadata.prototype.platform = null;
100582
+
100583
+ /**
100584
+ * PaymentExtendedMetadata messageParamsJson.
100585
+ * @member {string|null|undefined} messageParamsJson
100586
+ * @memberof waproto.Message.PaymentExtendedMetadata
100587
+ * @instance
100588
+ */
100589
+ PaymentExtendedMetadata.prototype.messageParamsJson = null;
100590
+
100591
+ // OneOf field names bound to virtual getters and setters
100592
+ var $oneOfFields;
100593
+
100594
+ // Virtual OneOf for proto3 optional field
100595
+ Object.defineProperty(PaymentExtendedMetadata.prototype, "_type", {
100596
+ get: $util.oneOfGetter($oneOfFields = ["type"]),
100597
+ set: $util.oneOfSetter($oneOfFields)
100598
+ });
100599
+
100600
+ // Virtual OneOf for proto3 optional field
100601
+ Object.defineProperty(PaymentExtendedMetadata.prototype, "_platform", {
100602
+ get: $util.oneOfGetter($oneOfFields = ["platform"]),
100603
+ set: $util.oneOfSetter($oneOfFields)
100604
+ });
100605
+
100606
+ // Virtual OneOf for proto3 optional field
100607
+ Object.defineProperty(PaymentExtendedMetadata.prototype, "_messageParamsJson", {
100608
+ get: $util.oneOfGetter($oneOfFields = ["messageParamsJson"]),
100609
+ set: $util.oneOfSetter($oneOfFields)
100610
+ });
100611
+
100612
+ /**
100613
+ * Creates a new PaymentExtendedMetadata instance using the specified properties.
100614
+ * @function create
100615
+ * @memberof waproto.Message.PaymentExtendedMetadata
100616
+ * @static
100617
+ * @param {waproto.Message.IPaymentExtendedMetadata=} [properties] Properties to set
100618
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata instance
100619
+ */
100620
+ PaymentExtendedMetadata.create = function create(properties) {
100621
+ return new PaymentExtendedMetadata(properties);
100622
+ };
100623
+
100624
+ /**
100625
+ * Encodes the specified PaymentExtendedMetadata message. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
100626
+ * @function encode
100627
+ * @memberof waproto.Message.PaymentExtendedMetadata
100628
+ * @static
100629
+ * @param {waproto.Message.IPaymentExtendedMetadata} message PaymentExtendedMetadata message or plain object to encode
100630
+ * @param {$protobuf.Writer} [writer] Writer to encode to
100631
+ * @returns {$protobuf.Writer} Writer
100632
+ */
100633
+ PaymentExtendedMetadata.encode = function encode(message, writer) {
100634
+ if (!writer)
100635
+ writer = $Writer.create();
100636
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
100637
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.type);
100638
+ if (message.platform != null && Object.hasOwnProperty.call(message, "platform"))
100639
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.platform);
100640
+ if (message.messageParamsJson != null && Object.hasOwnProperty.call(message, "messageParamsJson"))
100641
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.messageParamsJson);
100642
+ return writer;
100643
+ };
100644
+
100645
+ /**
100646
+ * Encodes the specified PaymentExtendedMetadata message, length delimited. Does not implicitly {@link waproto.Message.PaymentExtendedMetadata.verify|verify} messages.
100647
+ * @function encodeDelimited
100648
+ * @memberof waproto.Message.PaymentExtendedMetadata
100649
+ * @static
100650
+ * @param {waproto.Message.IPaymentExtendedMetadata} message PaymentExtendedMetadata message or plain object to encode
100651
+ * @param {$protobuf.Writer} [writer] Writer to encode to
100652
+ * @returns {$protobuf.Writer} Writer
100653
+ */
100654
+ PaymentExtendedMetadata.encodeDelimited = function encodeDelimited(message, writer) {
100655
+ return this.encode(message, writer).ldelim();
100656
+ };
100657
+
100658
+ /**
100659
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer.
100660
+ * @function decode
100661
+ * @memberof waproto.Message.PaymentExtendedMetadata
100662
+ * @static
100663
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
100664
+ * @param {number} [length] Message length if known beforehand
100665
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
100666
+ * @throws {Error} If the payload is not a reader or valid buffer
100667
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
100668
+ */
100669
+ PaymentExtendedMetadata.decode = function decode(reader, length) {
100670
+ if (!(reader instanceof $Reader))
100671
+ reader = $Reader.create(reader);
100672
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.PaymentExtendedMetadata();
100673
+ while (reader.pos < end) {
100674
+ var tag = reader.uint32();
100675
+ switch (tag >>> 3) {
100676
+ case 1: {
100677
+ message.type = reader.uint32();
100678
+ break;
100679
+ }
100680
+ case 2: {
100681
+ message.platform = reader.string();
100682
+ break;
100683
+ }
100684
+ case 3: {
100685
+ message.messageParamsJson = reader.string();
100686
+ break;
100687
+ }
100688
+ default:
100689
+ reader.skipType(tag & 7);
100690
+ break;
100691
+ }
100692
+ }
100693
+ return message;
100694
+ };
100695
+
100696
+ /**
100697
+ * Decodes a PaymentExtendedMetadata message from the specified reader or buffer, length delimited.
100698
+ * @function decodeDelimited
100699
+ * @memberof waproto.Message.PaymentExtendedMetadata
100700
+ * @static
100701
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
100702
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
100703
+ * @throws {Error} If the payload is not a reader or valid buffer
100704
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
100705
+ */
100706
+ PaymentExtendedMetadata.decodeDelimited = function decodeDelimited(reader) {
100707
+ if (!(reader instanceof $Reader))
100708
+ reader = new $Reader(reader);
100709
+ return this.decode(reader, reader.uint32());
100710
+ };
100711
+
100712
+ /**
100713
+ * Verifies a PaymentExtendedMetadata message.
100714
+ * @function verify
100715
+ * @memberof waproto.Message.PaymentExtendedMetadata
100716
+ * @static
100717
+ * @param {Object.<string,*>} message Plain object to verify
100718
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
100719
+ */
100720
+ PaymentExtendedMetadata.verify = function verify(message) {
100721
+ if (typeof message !== "object" || message === null)
100722
+ return "object expected";
100723
+ var properties = {};
100724
+ if (message.type != null && message.hasOwnProperty("type")) {
100725
+ properties._type = 1;
100726
+ if (!$util.isInteger(message.type))
100727
+ return "type: integer expected";
100728
+ }
100729
+ if (message.platform != null && message.hasOwnProperty("platform")) {
100730
+ properties._platform = 1;
100731
+ if (!$util.isString(message.platform))
100732
+ return "platform: string expected";
100733
+ }
100734
+ if (message.messageParamsJson != null && message.hasOwnProperty("messageParamsJson")) {
100735
+ properties._messageParamsJson = 1;
100736
+ if (!$util.isString(message.messageParamsJson))
100737
+ return "messageParamsJson: string expected";
100738
+ }
100739
+ return null;
100740
+ };
100741
+
100742
+ /**
100743
+ * Creates a PaymentExtendedMetadata message from a plain object. Also converts values to their respective internal types.
100744
+ * @function fromObject
100745
+ * @memberof waproto.Message.PaymentExtendedMetadata
100746
+ * @static
100747
+ * @param {Object.<string,*>} object Plain object
100748
+ * @returns {waproto.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
100749
+ */
100750
+ PaymentExtendedMetadata.fromObject = function fromObject(object) {
100751
+ if (object instanceof $root.waproto.Message.PaymentExtendedMetadata)
100752
+ return object;
100753
+ var message = new $root.waproto.Message.PaymentExtendedMetadata();
100754
+ if (object.type != null)
100755
+ message.type = object.type >>> 0;
100756
+ if (object.platform != null)
100757
+ message.platform = String(object.platform);
100758
+ if (object.messageParamsJson != null)
100759
+ message.messageParamsJson = String(object.messageParamsJson);
100760
+ return message;
100761
+ };
100762
+
100763
+ /**
100764
+ * Creates a plain object from a PaymentExtendedMetadata message. Also converts values to other types if specified.
100765
+ * @function toObject
100766
+ * @memberof waproto.Message.PaymentExtendedMetadata
100767
+ * @static
100768
+ * @param {waproto.Message.PaymentExtendedMetadata} message PaymentExtendedMetadata
100769
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
100770
+ * @returns {Object.<string,*>} Plain object
100771
+ */
100772
+ PaymentExtendedMetadata.toObject = function toObject(message, options) {
100773
+ if (!options)
100774
+ options = {};
100775
+ var object = {};
100776
+ if (message.type != null && message.hasOwnProperty("type")) {
100777
+ object.type = message.type;
100778
+ if (options.oneofs)
100779
+ object._type = "type";
100780
+ }
100781
+ if (message.platform != null && message.hasOwnProperty("platform")) {
100782
+ object.platform = message.platform;
100783
+ if (options.oneofs)
100784
+ object._platform = "platform";
100785
+ }
100786
+ if (message.messageParamsJson != null && message.hasOwnProperty("messageParamsJson")) {
100787
+ object.messageParamsJson = message.messageParamsJson;
100788
+ if (options.oneofs)
100789
+ object._messageParamsJson = "messageParamsJson";
100790
+ }
100791
+ return object;
100792
+ };
100793
+
100794
+ /**
100795
+ * Converts this PaymentExtendedMetadata to JSON.
100796
+ * @function toJSON
100797
+ * @memberof waproto.Message.PaymentExtendedMetadata
100798
+ * @instance
100799
+ * @returns {Object.<string,*>} JSON object
100800
+ */
100801
+ PaymentExtendedMetadata.prototype.toJSON = function toJSON() {
100802
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
100803
+ };
100804
+
100805
+ /**
100806
+ * Gets the default type url for PaymentExtendedMetadata
100807
+ * @function getTypeUrl
100808
+ * @memberof waproto.Message.PaymentExtendedMetadata
100809
+ * @static
100810
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
100811
+ * @returns {string} The default type url
100812
+ */
100813
+ PaymentExtendedMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
100814
+ if (typeUrlPrefix === undefined) {
100815
+ typeUrlPrefix = "type.googleapis.com";
100816
+ }
100817
+ return typeUrlPrefix + "/waproto.Message.PaymentExtendedMetadata";
100818
+ };
100819
+
100820
+ return PaymentExtendedMetadata;
100821
+ })();
100822
+
100463
100823
  Message.PaymentInviteMessage = (function() {
100464
100824
 
100465
100825
  /**
@@ -114896,6 +115256,294 @@ $root.waproto = (function() {
114896
115256
  return ReactionMessage;
114897
115257
  })();
114898
115258
 
115259
+ Message.RequestContactInfoMessage = (function() {
115260
+
115261
+ /**
115262
+ * Properties of a RequestContactInfoMessage.
115263
+ * @memberof waproto.Message
115264
+ * @interface IRequestContactInfoMessage
115265
+ * @property {string|null} [text] RequestContactInfoMessage text
115266
+ * @property {string|null} [ctaButtonText] RequestContactInfoMessage ctaButtonText
115267
+ * @property {waproto.IContextInfo|null} [contextInfo] RequestContactInfoMessage contextInfo
115268
+ */
115269
+
115270
+ /**
115271
+ * Constructs a new RequestContactInfoMessage.
115272
+ * @memberof waproto.Message
115273
+ * @classdesc Represents a RequestContactInfoMessage.
115274
+ * @implements IRequestContactInfoMessage
115275
+ * @constructor
115276
+ * @param {waproto.Message.IRequestContactInfoMessage=} [properties] Properties to set
115277
+ */
115278
+ function RequestContactInfoMessage(properties) {
115279
+ if (properties)
115280
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
115281
+ if (properties[keys[i]] != null)
115282
+ this[keys[i]] = properties[keys[i]];
115283
+ }
115284
+
115285
+ /**
115286
+ * RequestContactInfoMessage text.
115287
+ * @member {string|null|undefined} text
115288
+ * @memberof waproto.Message.RequestContactInfoMessage
115289
+ * @instance
115290
+ */
115291
+ RequestContactInfoMessage.prototype.text = null;
115292
+
115293
+ /**
115294
+ * RequestContactInfoMessage ctaButtonText.
115295
+ * @member {string|null|undefined} ctaButtonText
115296
+ * @memberof waproto.Message.RequestContactInfoMessage
115297
+ * @instance
115298
+ */
115299
+ RequestContactInfoMessage.prototype.ctaButtonText = null;
115300
+
115301
+ /**
115302
+ * RequestContactInfoMessage contextInfo.
115303
+ * @member {waproto.IContextInfo|null|undefined} contextInfo
115304
+ * @memberof waproto.Message.RequestContactInfoMessage
115305
+ * @instance
115306
+ */
115307
+ RequestContactInfoMessage.prototype.contextInfo = null;
115308
+
115309
+ // OneOf field names bound to virtual getters and setters
115310
+ var $oneOfFields;
115311
+
115312
+ // Virtual OneOf for proto3 optional field
115313
+ Object.defineProperty(RequestContactInfoMessage.prototype, "_text", {
115314
+ get: $util.oneOfGetter($oneOfFields = ["text"]),
115315
+ set: $util.oneOfSetter($oneOfFields)
115316
+ });
115317
+
115318
+ // Virtual OneOf for proto3 optional field
115319
+ Object.defineProperty(RequestContactInfoMessage.prototype, "_ctaButtonText", {
115320
+ get: $util.oneOfGetter($oneOfFields = ["ctaButtonText"]),
115321
+ set: $util.oneOfSetter($oneOfFields)
115322
+ });
115323
+
115324
+ // Virtual OneOf for proto3 optional field
115325
+ Object.defineProperty(RequestContactInfoMessage.prototype, "_contextInfo", {
115326
+ get: $util.oneOfGetter($oneOfFields = ["contextInfo"]),
115327
+ set: $util.oneOfSetter($oneOfFields)
115328
+ });
115329
+
115330
+ /**
115331
+ * Creates a new RequestContactInfoMessage instance using the specified properties.
115332
+ * @function create
115333
+ * @memberof waproto.Message.RequestContactInfoMessage
115334
+ * @static
115335
+ * @param {waproto.Message.IRequestContactInfoMessage=} [properties] Properties to set
115336
+ * @returns {waproto.Message.RequestContactInfoMessage} RequestContactInfoMessage instance
115337
+ */
115338
+ RequestContactInfoMessage.create = function create(properties) {
115339
+ return new RequestContactInfoMessage(properties);
115340
+ };
115341
+
115342
+ /**
115343
+ * Encodes the specified RequestContactInfoMessage message. Does not implicitly {@link waproto.Message.RequestContactInfoMessage.verify|verify} messages.
115344
+ * @function encode
115345
+ * @memberof waproto.Message.RequestContactInfoMessage
115346
+ * @static
115347
+ * @param {waproto.Message.IRequestContactInfoMessage} message RequestContactInfoMessage message or plain object to encode
115348
+ * @param {$protobuf.Writer} [writer] Writer to encode to
115349
+ * @returns {$protobuf.Writer} Writer
115350
+ */
115351
+ RequestContactInfoMessage.encode = function encode(message, writer) {
115352
+ if (!writer)
115353
+ writer = $Writer.create();
115354
+ if (message.text != null && Object.hasOwnProperty.call(message, "text"))
115355
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
115356
+ if (message.ctaButtonText != null && Object.hasOwnProperty.call(message, "ctaButtonText"))
115357
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.ctaButtonText);
115358
+ if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
115359
+ $root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
115360
+ return writer;
115361
+ };
115362
+
115363
+ /**
115364
+ * Encodes the specified RequestContactInfoMessage message, length delimited. Does not implicitly {@link waproto.Message.RequestContactInfoMessage.verify|verify} messages.
115365
+ * @function encodeDelimited
115366
+ * @memberof waproto.Message.RequestContactInfoMessage
115367
+ * @static
115368
+ * @param {waproto.Message.IRequestContactInfoMessage} message RequestContactInfoMessage message or plain object to encode
115369
+ * @param {$protobuf.Writer} [writer] Writer to encode to
115370
+ * @returns {$protobuf.Writer} Writer
115371
+ */
115372
+ RequestContactInfoMessage.encodeDelimited = function encodeDelimited(message, writer) {
115373
+ return this.encode(message, writer).ldelim();
115374
+ };
115375
+
115376
+ /**
115377
+ * Decodes a RequestContactInfoMessage message from the specified reader or buffer.
115378
+ * @function decode
115379
+ * @memberof waproto.Message.RequestContactInfoMessage
115380
+ * @static
115381
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
115382
+ * @param {number} [length] Message length if known beforehand
115383
+ * @returns {waproto.Message.RequestContactInfoMessage} RequestContactInfoMessage
115384
+ * @throws {Error} If the payload is not a reader or valid buffer
115385
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
115386
+ */
115387
+ RequestContactInfoMessage.decode = function decode(reader, length) {
115388
+ if (!(reader instanceof $Reader))
115389
+ reader = $Reader.create(reader);
115390
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.RequestContactInfoMessage();
115391
+ while (reader.pos < end) {
115392
+ var tag = reader.uint32();
115393
+ switch (tag >>> 3) {
115394
+ case 1: {
115395
+ message.text = reader.string();
115396
+ break;
115397
+ }
115398
+ case 2: {
115399
+ message.ctaButtonText = reader.string();
115400
+ break;
115401
+ }
115402
+ case 3: {
115403
+ message.contextInfo = $root.waproto.ContextInfo.decode(reader, reader.uint32());
115404
+ break;
115405
+ }
115406
+ default:
115407
+ reader.skipType(tag & 7);
115408
+ break;
115409
+ }
115410
+ }
115411
+ return message;
115412
+ };
115413
+
115414
+ /**
115415
+ * Decodes a RequestContactInfoMessage message from the specified reader or buffer, length delimited.
115416
+ * @function decodeDelimited
115417
+ * @memberof waproto.Message.RequestContactInfoMessage
115418
+ * @static
115419
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
115420
+ * @returns {waproto.Message.RequestContactInfoMessage} RequestContactInfoMessage
115421
+ * @throws {Error} If the payload is not a reader or valid buffer
115422
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
115423
+ */
115424
+ RequestContactInfoMessage.decodeDelimited = function decodeDelimited(reader) {
115425
+ if (!(reader instanceof $Reader))
115426
+ reader = new $Reader(reader);
115427
+ return this.decode(reader, reader.uint32());
115428
+ };
115429
+
115430
+ /**
115431
+ * Verifies a RequestContactInfoMessage message.
115432
+ * @function verify
115433
+ * @memberof waproto.Message.RequestContactInfoMessage
115434
+ * @static
115435
+ * @param {Object.<string,*>} message Plain object to verify
115436
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
115437
+ */
115438
+ RequestContactInfoMessage.verify = function verify(message) {
115439
+ if (typeof message !== "object" || message === null)
115440
+ return "object expected";
115441
+ var properties = {};
115442
+ if (message.text != null && message.hasOwnProperty("text")) {
115443
+ properties._text = 1;
115444
+ if (!$util.isString(message.text))
115445
+ return "text: string expected";
115446
+ }
115447
+ if (message.ctaButtonText != null && message.hasOwnProperty("ctaButtonText")) {
115448
+ properties._ctaButtonText = 1;
115449
+ if (!$util.isString(message.ctaButtonText))
115450
+ return "ctaButtonText: string expected";
115451
+ }
115452
+ if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
115453
+ properties._contextInfo = 1;
115454
+ {
115455
+ var error = $root.waproto.ContextInfo.verify(message.contextInfo);
115456
+ if (error)
115457
+ return "contextInfo." + error;
115458
+ }
115459
+ }
115460
+ return null;
115461
+ };
115462
+
115463
+ /**
115464
+ * Creates a RequestContactInfoMessage message from a plain object. Also converts values to their respective internal types.
115465
+ * @function fromObject
115466
+ * @memberof waproto.Message.RequestContactInfoMessage
115467
+ * @static
115468
+ * @param {Object.<string,*>} object Plain object
115469
+ * @returns {waproto.Message.RequestContactInfoMessage} RequestContactInfoMessage
115470
+ */
115471
+ RequestContactInfoMessage.fromObject = function fromObject(object) {
115472
+ if (object instanceof $root.waproto.Message.RequestContactInfoMessage)
115473
+ return object;
115474
+ var message = new $root.waproto.Message.RequestContactInfoMessage();
115475
+ if (object.text != null)
115476
+ message.text = String(object.text);
115477
+ if (object.ctaButtonText != null)
115478
+ message.ctaButtonText = String(object.ctaButtonText);
115479
+ if (object.contextInfo != null) {
115480
+ if (typeof object.contextInfo !== "object")
115481
+ throw TypeError(".waproto.Message.RequestContactInfoMessage.contextInfo: object expected");
115482
+ message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo);
115483
+ }
115484
+ return message;
115485
+ };
115486
+
115487
+ /**
115488
+ * Creates a plain object from a RequestContactInfoMessage message. Also converts values to other types if specified.
115489
+ * @function toObject
115490
+ * @memberof waproto.Message.RequestContactInfoMessage
115491
+ * @static
115492
+ * @param {waproto.Message.RequestContactInfoMessage} message RequestContactInfoMessage
115493
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
115494
+ * @returns {Object.<string,*>} Plain object
115495
+ */
115496
+ RequestContactInfoMessage.toObject = function toObject(message, options) {
115497
+ if (!options)
115498
+ options = {};
115499
+ var object = {};
115500
+ if (message.text != null && message.hasOwnProperty("text")) {
115501
+ object.text = message.text;
115502
+ if (options.oneofs)
115503
+ object._text = "text";
115504
+ }
115505
+ if (message.ctaButtonText != null && message.hasOwnProperty("ctaButtonText")) {
115506
+ object.ctaButtonText = message.ctaButtonText;
115507
+ if (options.oneofs)
115508
+ object._ctaButtonText = "ctaButtonText";
115509
+ }
115510
+ if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
115511
+ object.contextInfo = $root.waproto.ContextInfo.toObject(message.contextInfo, options);
115512
+ if (options.oneofs)
115513
+ object._contextInfo = "contextInfo";
115514
+ }
115515
+ return object;
115516
+ };
115517
+
115518
+ /**
115519
+ * Converts this RequestContactInfoMessage to JSON.
115520
+ * @function toJSON
115521
+ * @memberof waproto.Message.RequestContactInfoMessage
115522
+ * @instance
115523
+ * @returns {Object.<string,*>} JSON object
115524
+ */
115525
+ RequestContactInfoMessage.prototype.toJSON = function toJSON() {
115526
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
115527
+ };
115528
+
115529
+ /**
115530
+ * Gets the default type url for RequestContactInfoMessage
115531
+ * @function getTypeUrl
115532
+ * @memberof waproto.Message.RequestContactInfoMessage
115533
+ * @static
115534
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
115535
+ * @returns {string} The default type url
115536
+ */
115537
+ RequestContactInfoMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
115538
+ if (typeUrlPrefix === undefined) {
115539
+ typeUrlPrefix = "type.googleapis.com";
115540
+ }
115541
+ return typeUrlPrefix + "/waproto.Message.RequestContactInfoMessage";
115542
+ };
115543
+
115544
+ return RequestContactInfoMessage;
115545
+ })();
115546
+
114899
115547
  Message.RequestPaymentMessage = (function() {
114900
115548
 
114901
115549
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1027966938",
3
+ "version": "2.3000.1028056377",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "author": {