@wppconnect/wa-proto 1.1.7 → 1.1.9

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
+ ## 1.1.9 (2025-01-28)
2
+
3
+
4
+
5
+ ## 1.1.8 (2025-01-11)
6
+
7
+
8
+
1
9
  ## 1.1.7 (2025-01-10)
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.1019229338
4
+ /// WhatsApp Version: 2.3000.1019640807
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -83,6 +83,7 @@ message AIRichResponseMessage {
83
83
  message AIRichResponseImageURL {
84
84
  optional string imagePreviewUrl = 1;
85
85
  optional string imageHighResUrl = 2;
86
+ optional string sourceUrl = 3;
86
87
  }
87
88
 
88
89
  message AIRichResponseInlineImageMetadata {
@@ -224,6 +225,8 @@ message BotCapabilityMetadata {
224
225
  WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
225
226
  WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
226
227
  WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
228
+ RICH_RESPONSE_SUB_HEADING = 21;
229
+ RICH_RESPONSE_GRID_IMAGE = 22;
227
230
  }
228
231
  }
229
232
 
@@ -718,6 +721,7 @@ message ClientPayload {
718
721
  WIN_STORE = 2;
719
722
  DARWIN = 3;
720
723
  WIN32 = 4;
724
+ WIN_HYBRID = 5;
721
725
  }
722
726
  message WebdPayload {
723
727
  optional bool usesParticipantInKey = 1;
@@ -864,6 +868,7 @@ message ContextInfo {
864
868
  optional bool cannotBeReactedTo = 1;
865
869
  optional bool cannotBeRanked = 2;
866
870
  optional bool canRequestFeedback = 3;
871
+ optional bool canBeReshared = 4;
867
872
  }
868
873
 
869
874
  message ForwardedAIBotMessageInfo {
@@ -888,6 +893,7 @@ message ContextInfo {
888
893
  enum StatusAttributionType {
889
894
  NONE = 0;
890
895
  RESHARED_FROM_MENTION = 1;
896
+ RESHARED_FROM_POST = 2;
891
897
  }
892
898
  message UTMInfo {
893
899
  optional string utmSource = 1;
@@ -1529,6 +1535,9 @@ message Message {
1529
1535
  BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
1530
1536
  BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
1531
1537
  BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
1538
+ BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
1539
+ BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
1540
+ BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
1532
1541
  }
1533
1542
  enum BotFeedbackKindMultipleNegative {
1534
1543
  BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
@@ -1761,7 +1770,6 @@ message Message {
1761
1770
  message ExtendedTextMessage {
1762
1771
  optional string text = 1;
1763
1772
  optional string matchedText = 2;
1764
- optional string canonicalUrl = 4;
1765
1773
  optional string description = 5;
1766
1774
  optional string title = 6;
1767
1775
  optional fixed32 textArgb = 7;
@@ -2306,7 +2314,6 @@ message Message {
2306
2314
  optional string title = 2;
2307
2315
  optional string description = 3;
2308
2316
  optional bytes thumbData = 4;
2309
- optional string canonicalUrl = 5;
2310
2317
  optional string matchText = 6;
2311
2318
  optional string previewType = 7;
2312
2319
  optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
package/dist/index.d.ts CHANGED
@@ -1144,6 +1144,9 @@ export namespace waproto {
1144
1144
 
1145
1145
  /** AIRichResponseImageURL imageHighResUrl */
1146
1146
  imageHighResUrl?: (string|null);
1147
+
1148
+ /** AIRichResponseImageURL sourceUrl */
1149
+ sourceUrl?: (string|null);
1147
1150
  }
1148
1151
 
1149
1152
  /** Represents a AIRichResponseImageURL. */
@@ -1161,6 +1164,9 @@ export namespace waproto {
1161
1164
  /** AIRichResponseImageURL imageHighResUrl. */
1162
1165
  public imageHighResUrl?: (string|null);
1163
1166
 
1167
+ /** AIRichResponseImageURL sourceUrl. */
1168
+ public sourceUrl?: (string|null);
1169
+
1164
1170
  /**
1165
1171
  * Creates a new AIRichResponseImageURL instance using the specified properties.
1166
1172
  * @param [properties] Properties to set
@@ -2680,7 +2686,9 @@ export namespace waproto {
2680
2686
  WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17,
2681
2687
  WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18,
2682
2688
  WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19,
2683
- WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20
2689
+ WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20,
2690
+ RICH_RESPONSE_SUB_HEADING = 21,
2691
+ RICH_RESPONSE_GRID_IMAGE = 22
2684
2692
  }
2685
2693
  }
2686
2694
 
@@ -7266,7 +7274,8 @@ export namespace waproto {
7266
7274
  APP_STORE = 1,
7267
7275
  WIN_STORE = 2,
7268
7276
  DARWIN = 3,
7269
- WIN32 = 4
7277
+ WIN32 = 4,
7278
+ WIN_HYBRID = 5
7270
7279
  }
7271
7280
 
7272
7281
  /** Properties of a WebdPayload. */
@@ -8884,6 +8893,9 @@ export namespace waproto {
8884
8893
 
8885
8894
  /** FeatureEligibilities canRequestFeedback */
8886
8895
  canRequestFeedback?: (boolean|null);
8896
+
8897
+ /** FeatureEligibilities canBeReshared */
8898
+ canBeReshared?: (boolean|null);
8887
8899
  }
8888
8900
 
8889
8901
  /** Represents a FeatureEligibilities. */
@@ -8904,6 +8916,9 @@ export namespace waproto {
8904
8916
  /** FeatureEligibilities canRequestFeedback. */
8905
8917
  public canRequestFeedback?: (boolean|null);
8906
8918
 
8919
+ /** FeatureEligibilities canBeReshared. */
8920
+ public canBeReshared?: (boolean|null);
8921
+
8907
8922
  /**
8908
8923
  * Creates a new FeatureEligibilities instance using the specified properties.
8909
8924
  * @param [properties] Properties to set
@@ -9225,7 +9240,8 @@ export namespace waproto {
9225
9240
  /** StatusAttributionType enum. */
9226
9241
  enum StatusAttributionType {
9227
9242
  NONE = 0,
9228
- RESHARED_FROM_MENTION = 1
9243
+ RESHARED_FROM_MENTION = 1,
9244
+ RESHARED_FROM_POST = 2
9229
9245
  }
9230
9246
 
9231
9247
  /** Properties of a UTMInfo. */
@@ -16821,7 +16837,10 @@ export namespace waproto {
16821
16837
  BOT_FEEDBACK_NEGATIVE_OTHER = 6,
16822
16838
  BOT_FEEDBACK_NEGATIVE_REFUSED = 7,
16823
16839
  BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8,
16824
- BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9
16840
+ BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9,
16841
+ BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10,
16842
+ BOT_FEEDBACK_NEGATIVE_CLARITY = 11,
16843
+ BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12
16825
16844
  }
16826
16845
 
16827
16846
  /** BotFeedbackKindMultipleNegative enum. */
@@ -19511,9 +19530,6 @@ export namespace waproto {
19511
19530
  /** ExtendedTextMessage matchedText */
19512
19531
  matchedText?: (string|null);
19513
19532
 
19514
- /** ExtendedTextMessage canonicalUrl */
19515
- canonicalUrl?: (string|null);
19516
-
19517
19533
  /** ExtendedTextMessage description */
19518
19534
  description?: (string|null);
19519
19535
 
@@ -19602,9 +19618,6 @@ export namespace waproto {
19602
19618
  /** ExtendedTextMessage matchedText. */
19603
19619
  public matchedText?: (string|null);
19604
19620
 
19605
- /** ExtendedTextMessage canonicalUrl. */
19606
- public canonicalUrl?: (string|null);
19607
-
19608
19621
  /** ExtendedTextMessage description. */
19609
19622
  public description?: (string|null);
19610
19623
 
@@ -26208,9 +26221,6 @@ export namespace waproto {
26208
26221
  /** LinkPreviewResponse thumbData */
26209
26222
  thumbData?: (Uint8Array|null);
26210
26223
 
26211
- /** LinkPreviewResponse canonicalUrl */
26212
- canonicalUrl?: (string|null);
26213
-
26214
26224
  /** LinkPreviewResponse matchText */
26215
26225
  matchText?: (string|null);
26216
26226
 
@@ -26242,9 +26252,6 @@ export namespace waproto {
26242
26252
  /** LinkPreviewResponse thumbData. */
26243
26253
  public thumbData?: (Uint8Array|null);
26244
26254
 
26245
- /** LinkPreviewResponse canonicalUrl. */
26246
- public canonicalUrl?: (string|null);
26247
-
26248
26255
  /** LinkPreviewResponse matchText. */
26249
26256
  public matchText?: (string|null);
26250
26257
 
package/dist/index.js CHANGED
@@ -3238,6 +3238,7 @@ $root.waproto = (function() {
3238
3238
  * @interface IAIRichResponseImageURL
3239
3239
  * @property {string|null} [imagePreviewUrl] AIRichResponseImageURL imagePreviewUrl
3240
3240
  * @property {string|null} [imageHighResUrl] AIRichResponseImageURL imageHighResUrl
3241
+ * @property {string|null} [sourceUrl] AIRichResponseImageURL sourceUrl
3241
3242
  */
3242
3243
 
3243
3244
  /**
@@ -3271,6 +3272,14 @@ $root.waproto = (function() {
3271
3272
  */
3272
3273
  AIRichResponseImageURL.prototype.imageHighResUrl = null;
3273
3274
 
3275
+ /**
3276
+ * AIRichResponseImageURL sourceUrl.
3277
+ * @member {string|null|undefined} sourceUrl
3278
+ * @memberof waproto.AIRichResponseMessage.AIRichResponseImageURL
3279
+ * @instance
3280
+ */
3281
+ AIRichResponseImageURL.prototype.sourceUrl = null;
3282
+
3274
3283
  // OneOf field names bound to virtual getters and setters
3275
3284
  var $oneOfFields;
3276
3285
 
@@ -3286,6 +3295,12 @@ $root.waproto = (function() {
3286
3295
  set: $util.oneOfSetter($oneOfFields)
3287
3296
  });
3288
3297
 
3298
+ // Virtual OneOf for proto3 optional field
3299
+ Object.defineProperty(AIRichResponseImageURL.prototype, "_sourceUrl", {
3300
+ get: $util.oneOfGetter($oneOfFields = ["sourceUrl"]),
3301
+ set: $util.oneOfSetter($oneOfFields)
3302
+ });
3303
+
3289
3304
  /**
3290
3305
  * Creates a new AIRichResponseImageURL instance using the specified properties.
3291
3306
  * @function create
@@ -3314,6 +3329,8 @@ $root.waproto = (function() {
3314
3329
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.imagePreviewUrl);
3315
3330
  if (message.imageHighResUrl != null && Object.hasOwnProperty.call(message, "imageHighResUrl"))
3316
3331
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.imageHighResUrl);
3332
+ if (message.sourceUrl != null && Object.hasOwnProperty.call(message, "sourceUrl"))
3333
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceUrl);
3317
3334
  return writer;
3318
3335
  };
3319
3336
 
@@ -3356,6 +3373,10 @@ $root.waproto = (function() {
3356
3373
  message.imageHighResUrl = reader.string();
3357
3374
  break;
3358
3375
  }
3376
+ case 3: {
3377
+ message.sourceUrl = reader.string();
3378
+ break;
3379
+ }
3359
3380
  default:
3360
3381
  reader.skipType(tag & 7);
3361
3382
  break;
@@ -3402,6 +3423,11 @@ $root.waproto = (function() {
3402
3423
  if (!$util.isString(message.imageHighResUrl))
3403
3424
  return "imageHighResUrl: string expected";
3404
3425
  }
3426
+ if (message.sourceUrl != null && message.hasOwnProperty("sourceUrl")) {
3427
+ properties._sourceUrl = 1;
3428
+ if (!$util.isString(message.sourceUrl))
3429
+ return "sourceUrl: string expected";
3430
+ }
3405
3431
  return null;
3406
3432
  };
3407
3433
 
@@ -3421,6 +3447,8 @@ $root.waproto = (function() {
3421
3447
  message.imagePreviewUrl = String(object.imagePreviewUrl);
3422
3448
  if (object.imageHighResUrl != null)
3423
3449
  message.imageHighResUrl = String(object.imageHighResUrl);
3450
+ if (object.sourceUrl != null)
3451
+ message.sourceUrl = String(object.sourceUrl);
3424
3452
  return message;
3425
3453
  };
3426
3454
 
@@ -3447,6 +3475,11 @@ $root.waproto = (function() {
3447
3475
  if (options.oneofs)
3448
3476
  object._imageHighResUrl = "imageHighResUrl";
3449
3477
  }
3478
+ if (message.sourceUrl != null && message.hasOwnProperty("sourceUrl")) {
3479
+ object.sourceUrl = message.sourceUrl;
3480
+ if (options.oneofs)
3481
+ object._sourceUrl = "sourceUrl";
3482
+ }
3450
3483
  return object;
3451
3484
  };
3452
3485
 
@@ -7446,6 +7479,8 @@ $root.waproto = (function() {
7446
7479
  case 18:
7447
7480
  case 19:
7448
7481
  case 20:
7482
+ case 21:
7483
+ case 22:
7449
7484
  break;
7450
7485
  }
7451
7486
  }
@@ -7555,6 +7590,14 @@ $root.waproto = (function() {
7555
7590
  case 20:
7556
7591
  message.capabilities[i] = 20;
7557
7592
  break;
7593
+ case "RICH_RESPONSE_SUB_HEADING":
7594
+ case 21:
7595
+ message.capabilities[i] = 21;
7596
+ break;
7597
+ case "RICH_RESPONSE_GRID_IMAGE":
7598
+ case 22:
7599
+ message.capabilities[i] = 22;
7600
+ break;
7558
7601
  }
7559
7602
  }
7560
7603
  return message;
@@ -7633,6 +7676,8 @@ $root.waproto = (function() {
7633
7676
  * @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18 WA_IG_1P_PLUGIN_RANKING_UPDATE_8 value
7634
7677
  * @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19 WA_IG_1P_PLUGIN_RANKING_UPDATE_9 value
7635
7678
  * @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20 WA_IG_1P_PLUGIN_RANKING_UPDATE_10 value
7679
+ * @property {number} RICH_RESPONSE_SUB_HEADING=21 RICH_RESPONSE_SUB_HEADING value
7680
+ * @property {number} RICH_RESPONSE_GRID_IMAGE=22 RICH_RESPONSE_GRID_IMAGE value
7636
7681
  */
7637
7682
  BotCapabilityMetadata.BotCapabilityType = (function() {
7638
7683
  var valuesById = {}, values = Object.create(valuesById);
@@ -7656,6 +7701,8 @@ $root.waproto = (function() {
7656
7701
  values[valuesById[18] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_8"] = 18;
7657
7702
  values[valuesById[19] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_9"] = 19;
7658
7703
  values[valuesById[20] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_10"] = 20;
7704
+ values[valuesById[21] = "RICH_RESPONSE_SUB_HEADING"] = 21;
7705
+ values[valuesById[22] = "RICH_RESPONSE_GRID_IMAGE"] = 22;
7659
7706
  return values;
7660
7707
  })();
7661
7708
 
@@ -22062,6 +22109,7 @@ $root.waproto = (function() {
22062
22109
  case 2:
22063
22110
  case 3:
22064
22111
  case 4:
22112
+ case 5:
22065
22113
  break;
22066
22114
  }
22067
22115
  }
@@ -22116,6 +22164,10 @@ $root.waproto = (function() {
22116
22164
  case 4:
22117
22165
  message.webSubPlatform = 4;
22118
22166
  break;
22167
+ case "WIN_HYBRID":
22168
+ case 5:
22169
+ message.webSubPlatform = 5;
22170
+ break;
22119
22171
  }
22120
22172
  return message;
22121
22173
  };
@@ -22191,6 +22243,7 @@ $root.waproto = (function() {
22191
22243
  * @property {number} WIN_STORE=2 WIN_STORE value
22192
22244
  * @property {number} DARWIN=3 DARWIN value
22193
22245
  * @property {number} WIN32=4 WIN32 value
22246
+ * @property {number} WIN_HYBRID=5 WIN_HYBRID value
22194
22247
  */
22195
22248
  WebInfo.WebSubPlatform = (function() {
22196
22249
  var valuesById = {}, values = Object.create(valuesById);
@@ -22199,6 +22252,7 @@ $root.waproto = (function() {
22199
22252
  values[valuesById[2] = "WIN_STORE"] = 2;
22200
22253
  values[valuesById[3] = "DARWIN"] = 3;
22201
22254
  values[valuesById[4] = "WIN32"] = 4;
22255
+ values[valuesById[5] = "WIN_HYBRID"] = 5;
22202
22256
  return values;
22203
22257
  })();
22204
22258
 
@@ -25183,6 +25237,7 @@ $root.waproto = (function() {
25183
25237
  return "statusAttributionType: enum value expected";
25184
25238
  case 0:
25185
25239
  case 1:
25240
+ case 2:
25186
25241
  break;
25187
25242
  }
25188
25243
  }
@@ -25369,6 +25424,10 @@ $root.waproto = (function() {
25369
25424
  case 1:
25370
25425
  message.statusAttributionType = 1;
25371
25426
  break;
25427
+ case "RESHARED_FROM_POST":
25428
+ case 2:
25429
+ message.statusAttributionType = 2;
25430
+ break;
25372
25431
  }
25373
25432
  if (object.urlTrackingMap != null) {
25374
25433
  if (typeof object.urlTrackingMap !== "object")
@@ -27830,6 +27889,7 @@ $root.waproto = (function() {
27830
27889
  * @property {boolean|null} [cannotBeReactedTo] FeatureEligibilities cannotBeReactedTo
27831
27890
  * @property {boolean|null} [cannotBeRanked] FeatureEligibilities cannotBeRanked
27832
27891
  * @property {boolean|null} [canRequestFeedback] FeatureEligibilities canRequestFeedback
27892
+ * @property {boolean|null} [canBeReshared] FeatureEligibilities canBeReshared
27833
27893
  */
27834
27894
 
27835
27895
  /**
@@ -27871,6 +27931,14 @@ $root.waproto = (function() {
27871
27931
  */
27872
27932
  FeatureEligibilities.prototype.canRequestFeedback = null;
27873
27933
 
27934
+ /**
27935
+ * FeatureEligibilities canBeReshared.
27936
+ * @member {boolean|null|undefined} canBeReshared
27937
+ * @memberof waproto.ContextInfo.FeatureEligibilities
27938
+ * @instance
27939
+ */
27940
+ FeatureEligibilities.prototype.canBeReshared = null;
27941
+
27874
27942
  // OneOf field names bound to virtual getters and setters
27875
27943
  var $oneOfFields;
27876
27944
 
@@ -27892,6 +27960,12 @@ $root.waproto = (function() {
27892
27960
  set: $util.oneOfSetter($oneOfFields)
27893
27961
  });
27894
27962
 
27963
+ // Virtual OneOf for proto3 optional field
27964
+ Object.defineProperty(FeatureEligibilities.prototype, "_canBeReshared", {
27965
+ get: $util.oneOfGetter($oneOfFields = ["canBeReshared"]),
27966
+ set: $util.oneOfSetter($oneOfFields)
27967
+ });
27968
+
27895
27969
  /**
27896
27970
  * Creates a new FeatureEligibilities instance using the specified properties.
27897
27971
  * @function create
@@ -27922,6 +27996,8 @@ $root.waproto = (function() {
27922
27996
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.cannotBeRanked);
27923
27997
  if (message.canRequestFeedback != null && Object.hasOwnProperty.call(message, "canRequestFeedback"))
27924
27998
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.canRequestFeedback);
27999
+ if (message.canBeReshared != null && Object.hasOwnProperty.call(message, "canBeReshared"))
28000
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canBeReshared);
27925
28001
  return writer;
27926
28002
  };
27927
28003
 
@@ -27968,6 +28044,10 @@ $root.waproto = (function() {
27968
28044
  message.canRequestFeedback = reader.bool();
27969
28045
  break;
27970
28046
  }
28047
+ case 4: {
28048
+ message.canBeReshared = reader.bool();
28049
+ break;
28050
+ }
27971
28051
  default:
27972
28052
  reader.skipType(tag & 7);
27973
28053
  break;
@@ -28019,6 +28099,11 @@ $root.waproto = (function() {
28019
28099
  if (typeof message.canRequestFeedback !== "boolean")
28020
28100
  return "canRequestFeedback: boolean expected";
28021
28101
  }
28102
+ if (message.canBeReshared != null && message.hasOwnProperty("canBeReshared")) {
28103
+ properties._canBeReshared = 1;
28104
+ if (typeof message.canBeReshared !== "boolean")
28105
+ return "canBeReshared: boolean expected";
28106
+ }
28022
28107
  return null;
28023
28108
  };
28024
28109
 
@@ -28040,6 +28125,8 @@ $root.waproto = (function() {
28040
28125
  message.cannotBeRanked = Boolean(object.cannotBeRanked);
28041
28126
  if (object.canRequestFeedback != null)
28042
28127
  message.canRequestFeedback = Boolean(object.canRequestFeedback);
28128
+ if (object.canBeReshared != null)
28129
+ message.canBeReshared = Boolean(object.canBeReshared);
28043
28130
  return message;
28044
28131
  };
28045
28132
 
@@ -28071,6 +28158,11 @@ $root.waproto = (function() {
28071
28158
  if (options.oneofs)
28072
28159
  object._canRequestFeedback = "canRequestFeedback";
28073
28160
  }
28161
+ if (message.canBeReshared != null && message.hasOwnProperty("canBeReshared")) {
28162
+ object.canBeReshared = message.canBeReshared;
28163
+ if (options.oneofs)
28164
+ object._canBeReshared = "canBeReshared";
28165
+ }
28074
28166
  return object;
28075
28167
  };
28076
28168
 
@@ -28779,11 +28871,13 @@ $root.waproto = (function() {
28779
28871
  * @enum {number}
28780
28872
  * @property {number} NONE=0 NONE value
28781
28873
  * @property {number} RESHARED_FROM_MENTION=1 RESHARED_FROM_MENTION value
28874
+ * @property {number} RESHARED_FROM_POST=2 RESHARED_FROM_POST value
28782
28875
  */
28783
28876
  ContextInfo.StatusAttributionType = (function() {
28784
28877
  var valuesById = {}, values = Object.create(valuesById);
28785
28878
  values[valuesById[0] = "NONE"] = 0;
28786
28879
  values[valuesById[1] = "RESHARED_FROM_MENTION"] = 1;
28880
+ values[valuesById[2] = "RESHARED_FROM_POST"] = 2;
28787
28881
  return values;
28788
28882
  })();
28789
28883
 
@@ -53129,6 +53223,9 @@ $root.waproto = (function() {
53129
53223
  case 7:
53130
53224
  case 8:
53131
53225
  case 9:
53226
+ case 10:
53227
+ case 11:
53228
+ case 12:
53132
53229
  break;
53133
53230
  }
53134
53231
  }
@@ -53223,6 +53320,18 @@ $root.waproto = (function() {
53223
53320
  case 9:
53224
53321
  message.kind = 9;
53225
53322
  break;
53323
+ case "BOT_FEEDBACK_NEGATIVE_PERSONALIZED":
53324
+ case 10:
53325
+ message.kind = 10;
53326
+ break;
53327
+ case "BOT_FEEDBACK_NEGATIVE_CLARITY":
53328
+ case 11:
53329
+ message.kind = 11;
53330
+ break;
53331
+ case "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON":
53332
+ case 12:
53333
+ message.kind = 12;
53334
+ break;
53226
53335
  }
53227
53336
  if (object.text != null)
53228
53337
  message.text = String(object.text);
@@ -53351,6 +53460,9 @@ $root.waproto = (function() {
53351
53460
  * @property {number} BOT_FEEDBACK_NEGATIVE_REFUSED=7 BOT_FEEDBACK_NEGATIVE_REFUSED value
53352
53461
  * @property {number} BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8 BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING value
53353
53462
  * @property {number} BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9 BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT value
53463
+ * @property {number} BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10 BOT_FEEDBACK_NEGATIVE_PERSONALIZED value
53464
+ * @property {number} BOT_FEEDBACK_NEGATIVE_CLARITY=11 BOT_FEEDBACK_NEGATIVE_CLARITY value
53465
+ * @property {number} BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12 BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON value
53354
53466
  */
53355
53467
  BotFeedbackMessage.BotFeedbackKind = (function() {
53356
53468
  var valuesById = {}, values = Object.create(valuesById);
@@ -53364,6 +53476,9 @@ $root.waproto = (function() {
53364
53476
  values[valuesById[7] = "BOT_FEEDBACK_NEGATIVE_REFUSED"] = 7;
53365
53477
  values[valuesById[8] = "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING"] = 8;
53366
53478
  values[valuesById[9] = "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 9;
53479
+ values[valuesById[10] = "BOT_FEEDBACK_NEGATIVE_PERSONALIZED"] = 10;
53480
+ values[valuesById[11] = "BOT_FEEDBACK_NEGATIVE_CLARITY"] = 11;
53481
+ values[valuesById[12] = "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON"] = 12;
53367
53482
  return values;
53368
53483
  })();
53369
53484
 
@@ -61254,7 +61369,6 @@ $root.waproto = (function() {
61254
61369
  * @interface IExtendedTextMessage
61255
61370
  * @property {string|null} [text] ExtendedTextMessage text
61256
61371
  * @property {string|null} [matchedText] ExtendedTextMessage matchedText
61257
- * @property {string|null} [canonicalUrl] ExtendedTextMessage canonicalUrl
61258
61372
  * @property {string|null} [description] ExtendedTextMessage description
61259
61373
  * @property {string|null} [title] ExtendedTextMessage title
61260
61374
  * @property {number|null} [textArgb] ExtendedTextMessage textArgb
@@ -61312,14 +61426,6 @@ $root.waproto = (function() {
61312
61426
  */
61313
61427
  ExtendedTextMessage.prototype.matchedText = null;
61314
61428
 
61315
- /**
61316
- * ExtendedTextMessage canonicalUrl.
61317
- * @member {string|null|undefined} canonicalUrl
61318
- * @memberof waproto.Message.ExtendedTextMessage
61319
- * @instance
61320
- */
61321
- ExtendedTextMessage.prototype.canonicalUrl = null;
61322
-
61323
61429
  /**
61324
61430
  * ExtendedTextMessage description.
61325
61431
  * @member {string|null|undefined} description
@@ -61527,12 +61633,6 @@ $root.waproto = (function() {
61527
61633
  set: $util.oneOfSetter($oneOfFields)
61528
61634
  });
61529
61635
 
61530
- // Virtual OneOf for proto3 optional field
61531
- Object.defineProperty(ExtendedTextMessage.prototype, "_canonicalUrl", {
61532
- get: $util.oneOfGetter($oneOfFields = ["canonicalUrl"]),
61533
- set: $util.oneOfSetter($oneOfFields)
61534
- });
61535
-
61536
61636
  // Virtual OneOf for proto3 optional field
61537
61637
  Object.defineProperty(ExtendedTextMessage.prototype, "_description", {
61538
61638
  get: $util.oneOfGetter($oneOfFields = ["description"]),
@@ -61705,8 +61805,6 @@ $root.waproto = (function() {
61705
61805
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
61706
61806
  if (message.matchedText != null && Object.hasOwnProperty.call(message, "matchedText"))
61707
61807
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.matchedText);
61708
- if (message.canonicalUrl != null && Object.hasOwnProperty.call(message, "canonicalUrl"))
61709
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.canonicalUrl);
61710
61808
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
61711
61809
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.description);
61712
61810
  if (message.title != null && Object.hasOwnProperty.call(message, "title"))
@@ -61797,10 +61895,6 @@ $root.waproto = (function() {
61797
61895
  message.matchedText = reader.string();
61798
61896
  break;
61799
61897
  }
61800
- case 4: {
61801
- message.canonicalUrl = reader.string();
61802
- break;
61803
- }
61804
61898
  case 5: {
61805
61899
  message.description = reader.string();
61806
61900
  break;
@@ -61943,11 +62037,6 @@ $root.waproto = (function() {
61943
62037
  if (!$util.isString(message.matchedText))
61944
62038
  return "matchedText: string expected";
61945
62039
  }
61946
- if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
61947
- properties._canonicalUrl = 1;
61948
- if (!$util.isString(message.canonicalUrl))
61949
- return "canonicalUrl: string expected";
61950
- }
61951
62040
  if (message.description != null && message.hasOwnProperty("description")) {
61952
62041
  properties._description = 1;
61953
62042
  if (!$util.isString(message.description))
@@ -62127,8 +62216,6 @@ $root.waproto = (function() {
62127
62216
  message.text = String(object.text);
62128
62217
  if (object.matchedText != null)
62129
62218
  message.matchedText = String(object.matchedText);
62130
- if (object.canonicalUrl != null)
62131
- message.canonicalUrl = String(object.canonicalUrl);
62132
62219
  if (object.description != null)
62133
62220
  message.description = String(object.description);
62134
62221
  if (object.title != null)
@@ -62343,11 +62430,6 @@ $root.waproto = (function() {
62343
62430
  if (options.oneofs)
62344
62431
  object._matchedText = "matchedText";
62345
62432
  }
62346
- if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
62347
- object.canonicalUrl = message.canonicalUrl;
62348
- if (options.oneofs)
62349
- object._canonicalUrl = "canonicalUrl";
62350
- }
62351
62433
  if (message.description != null && message.hasOwnProperty("description")) {
62352
62434
  object.description = message.description;
62353
62435
  if (options.oneofs)
@@ -81794,7 +81876,6 @@ $root.waproto = (function() {
81794
81876
  * @property {string|null} [title] LinkPreviewResponse title
81795
81877
  * @property {string|null} [description] LinkPreviewResponse description
81796
81878
  * @property {Uint8Array|null} [thumbData] LinkPreviewResponse thumbData
81797
- * @property {string|null} [canonicalUrl] LinkPreviewResponse canonicalUrl
81798
81879
  * @property {string|null} [matchText] LinkPreviewResponse matchText
81799
81880
  * @property {string|null} [previewType] LinkPreviewResponse previewType
81800
81881
  * @property {waproto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.ILinkPreviewHighQualityThumbnail|null} [hqThumbnail] LinkPreviewResponse hqThumbnail
@@ -81847,14 +81928,6 @@ $root.waproto = (function() {
81847
81928
  */
81848
81929
  LinkPreviewResponse.prototype.thumbData = null;
81849
81930
 
81850
- /**
81851
- * LinkPreviewResponse canonicalUrl.
81852
- * @member {string|null|undefined} canonicalUrl
81853
- * @memberof waproto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse
81854
- * @instance
81855
- */
81856
- LinkPreviewResponse.prototype.canonicalUrl = null;
81857
-
81858
81931
  /**
81859
81932
  * LinkPreviewResponse matchText.
81860
81933
  * @member {string|null|undefined} matchText
@@ -81906,12 +81979,6 @@ $root.waproto = (function() {
81906
81979
  set: $util.oneOfSetter($oneOfFields)
81907
81980
  });
81908
81981
 
81909
- // Virtual OneOf for proto3 optional field
81910
- Object.defineProperty(LinkPreviewResponse.prototype, "_canonicalUrl", {
81911
- get: $util.oneOfGetter($oneOfFields = ["canonicalUrl"]),
81912
- set: $util.oneOfSetter($oneOfFields)
81913
- });
81914
-
81915
81982
  // Virtual OneOf for proto3 optional field
81916
81983
  Object.defineProperty(LinkPreviewResponse.prototype, "_matchText", {
81917
81984
  get: $util.oneOfGetter($oneOfFields = ["matchText"]),
@@ -81962,8 +82029,6 @@ $root.waproto = (function() {
81962
82029
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
81963
82030
  if (message.thumbData != null && Object.hasOwnProperty.call(message, "thumbData"))
81964
82031
  writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.thumbData);
81965
- if (message.canonicalUrl != null && Object.hasOwnProperty.call(message, "canonicalUrl"))
81966
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.canonicalUrl);
81967
82032
  if (message.matchText != null && Object.hasOwnProperty.call(message, "matchText"))
81968
82033
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.matchText);
81969
82034
  if (message.previewType != null && Object.hasOwnProperty.call(message, "previewType"))
@@ -82020,10 +82085,6 @@ $root.waproto = (function() {
82020
82085
  message.thumbData = reader.bytes();
82021
82086
  break;
82022
82087
  }
82023
- case 5: {
82024
- message.canonicalUrl = reader.string();
82025
- break;
82026
- }
82027
82088
  case 6: {
82028
82089
  message.matchText = reader.string();
82029
82090
  break;
@@ -82092,11 +82153,6 @@ $root.waproto = (function() {
82092
82153
  if (!(message.thumbData && typeof message.thumbData.length === "number" || $util.isString(message.thumbData)))
82093
82154
  return "thumbData: buffer expected";
82094
82155
  }
82095
- if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
82096
- properties._canonicalUrl = 1;
82097
- if (!$util.isString(message.canonicalUrl))
82098
- return "canonicalUrl: string expected";
82099
- }
82100
82156
  if (message.matchText != null && message.hasOwnProperty("matchText")) {
82101
82157
  properties._matchText = 1;
82102
82158
  if (!$util.isString(message.matchText))
@@ -82141,8 +82197,6 @@ $root.waproto = (function() {
82141
82197
  $util.base64.decode(object.thumbData, message.thumbData = $util.newBuffer($util.base64.length(object.thumbData)), 0);
82142
82198
  else if (object.thumbData.length >= 0)
82143
82199
  message.thumbData = object.thumbData;
82144
- if (object.canonicalUrl != null)
82145
- message.canonicalUrl = String(object.canonicalUrl);
82146
82200
  if (object.matchText != null)
82147
82201
  message.matchText = String(object.matchText);
82148
82202
  if (object.previewType != null)
@@ -82188,11 +82242,6 @@ $root.waproto = (function() {
82188
82242
  if (options.oneofs)
82189
82243
  object._thumbData = "thumbData";
82190
82244
  }
82191
- if (message.canonicalUrl != null && message.hasOwnProperty("canonicalUrl")) {
82192
- object.canonicalUrl = message.canonicalUrl;
82193
- if (options.oneofs)
82194
- object._canonicalUrl = "canonicalUrl";
82195
- }
82196
82245
  if (message.matchText != null && message.hasOwnProperty("matchText")) {
82197
82246
  object.matchText = message.matchText;
82198
82247
  if (options.oneofs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -29,7 +29,7 @@
29
29
  "acorn-walk": "^8.3.4",
30
30
  "conventional-changelog-cli": "^4.1.0",
31
31
  "protobufjs-cli": "^1.1.3",
32
- "release-it": "^17.10.0",
32
+ "release-it": "^17.11.0",
33
33
  "request": "^2.88.2",
34
34
  "request-promise-core": "^1.1.4",
35
35
  "request-promise-native": "^1.0.9"