@itsliaaa/baileys 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/WAProto/index.js CHANGED
@@ -6762,6 +6762,10 @@ export const proto = $root.proto = (() => {
6762
6762
  case 59:
6763
6763
  m.capabilities[i] = 59;
6764
6764
  break;
6765
+ case "UNIFIED_RESPONSE_EMBEDDED_SCREENS":
6766
+ case 60:
6767
+ m.capabilities[i] = 60;
6768
+ break;
6765
6769
  }
6766
6770
  }
6767
6771
  }
@@ -6857,6 +6861,7 @@ export const proto = $root.proto = (() => {
6857
6861
  values[valuesById[57] = "RICH_RESPONSE_UR_IMAGINE_VIDEO"] = 57;
6858
6862
  values[valuesById[58] = "JSON_PATCH_STREAMING"] = 58;
6859
6863
  values[valuesById[59] = "AI_TAB_FORCE_CLIPPY"] = 59;
6864
+ values[valuesById[60] = "UNIFIED_RESPONSE_EMBEDDED_SCREENS"] = 60;
6860
6865
  return values;
6861
6866
  })();
6862
6867
 
@@ -17534,32 +17539,10 @@ export const proto = $root.proto = (() => {
17534
17539
  this[ks[i]] = p[ks[i]];
17535
17540
  }
17536
17541
 
17537
- Citation.prototype.title = null;
17538
- Citation.prototype.subtitle = null;
17539
- Citation.prototype.cmsId = null;
17540
- Citation.prototype.imageUrl = null;
17541
-
17542
- let $oneOfFields;
17543
-
17544
- Object.defineProperty(Citation.prototype, "_title", {
17545
- get: $util.oneOfGetter($oneOfFields = ["title"]),
17546
- set: $util.oneOfSetter($oneOfFields)
17547
- });
17548
-
17549
- Object.defineProperty(Citation.prototype, "_subtitle", {
17550
- get: $util.oneOfGetter($oneOfFields = ["subtitle"]),
17551
- set: $util.oneOfSetter($oneOfFields)
17552
- });
17553
-
17554
- Object.defineProperty(Citation.prototype, "_cmsId", {
17555
- get: $util.oneOfGetter($oneOfFields = ["cmsId"]),
17556
- set: $util.oneOfSetter($oneOfFields)
17557
- });
17558
-
17559
- Object.defineProperty(Citation.prototype, "_imageUrl", {
17560
- get: $util.oneOfGetter($oneOfFields = ["imageUrl"]),
17561
- set: $util.oneOfSetter($oneOfFields)
17562
- });
17542
+ Citation.prototype.title = "";
17543
+ Citation.prototype.subtitle = "";
17544
+ Citation.prototype.cmsId = "";
17545
+ Citation.prototype.imageUrl = "";
17563
17546
 
17564
17547
  Citation.create = function create(properties) {
17565
17548
  return new Citation(properties);
@@ -17635,25 +17618,23 @@ export const proto = $root.proto = (() => {
17635
17618
  if (!o)
17636
17619
  o = {};
17637
17620
  var d = {};
17621
+ if (o.defaults) {
17622
+ d.title = "";
17623
+ d.subtitle = "";
17624
+ d.cmsId = "";
17625
+ d.imageUrl = "";
17626
+ }
17638
17627
  if (m.title != null && m.hasOwnProperty("title")) {
17639
17628
  d.title = m.title;
17640
- if (o.oneofs)
17641
- d._title = "title";
17642
17629
  }
17643
17630
  if (m.subtitle != null && m.hasOwnProperty("subtitle")) {
17644
17631
  d.subtitle = m.subtitle;
17645
- if (o.oneofs)
17646
- d._subtitle = "subtitle";
17647
17632
  }
17648
17633
  if (m.cmsId != null && m.hasOwnProperty("cmsId")) {
17649
17634
  d.cmsId = m.cmsId;
17650
- if (o.oneofs)
17651
- d._cmsId = "cmsId";
17652
17635
  }
17653
17636
  if (m.imageUrl != null && m.hasOwnProperty("imageUrl")) {
17654
17637
  d.imageUrl = m.imageUrl;
17655
- if (o.oneofs)
17656
- d._imageUrl = "imageUrl";
17657
17638
  }
17658
17639
  return d;
17659
17640
  };
@@ -23482,6 +23463,7 @@ export const proto = $root.proto = (() => {
23482
23463
  ExternalAdReplyInfo.prototype.adType = null;
23483
23464
  ExternalAdReplyInfo.prototype.wtwaWebsiteUrl = null;
23484
23465
  ExternalAdReplyInfo.prototype.adPreviewUrl = null;
23466
+ ExternalAdReplyInfo.prototype.containsCtwaFlowsAutoReply = null;
23485
23467
 
23486
23468
  let $oneOfFields;
23487
23469
 
@@ -23620,6 +23602,11 @@ export const proto = $root.proto = (() => {
23620
23602
  set: $util.oneOfSetter($oneOfFields)
23621
23603
  });
23622
23604
 
23605
+ Object.defineProperty(ExternalAdReplyInfo.prototype, "_containsCtwaFlowsAutoReply", {
23606
+ get: $util.oneOfGetter($oneOfFields = ["containsCtwaFlowsAutoReply"]),
23607
+ set: $util.oneOfSetter($oneOfFields)
23608
+ });
23609
+
23623
23610
  ExternalAdReplyInfo.create = function create(properties) {
23624
23611
  return new ExternalAdReplyInfo(properties);
23625
23612
  };
@@ -23681,6 +23668,8 @@ export const proto = $root.proto = (() => {
23681
23668
  w.uint32(210).string(m.wtwaWebsiteUrl);
23682
23669
  if (m.adPreviewUrl != null && Object.hasOwnProperty.call(m, "adPreviewUrl"))
23683
23670
  w.uint32(218).string(m.adPreviewUrl);
23671
+ if (m.containsCtwaFlowsAutoReply != null && Object.hasOwnProperty.call(m, "containsCtwaFlowsAutoReply"))
23672
+ w.uint32(224).bool(m.containsCtwaFlowsAutoReply);
23684
23673
  return w;
23685
23674
  };
23686
23675
 
@@ -23801,6 +23790,10 @@ export const proto = $root.proto = (() => {
23801
23790
  m.adPreviewUrl = r.string();
23802
23791
  break;
23803
23792
  }
23793
+ case 28: {
23794
+ m.containsCtwaFlowsAutoReply = r.bool();
23795
+ break;
23796
+ }
23804
23797
  default:
23805
23798
  r.skipType(t & 7);
23806
23799
  break;
@@ -23927,6 +23920,9 @@ export const proto = $root.proto = (() => {
23927
23920
  if (d.adPreviewUrl != null) {
23928
23921
  m.adPreviewUrl = String(d.adPreviewUrl);
23929
23922
  }
23923
+ if (d.containsCtwaFlowsAutoReply != null) {
23924
+ m.containsCtwaFlowsAutoReply = Boolean(d.containsCtwaFlowsAutoReply);
23925
+ }
23930
23926
  return m;
23931
23927
  };
23932
23928
 
@@ -24069,6 +24065,11 @@ export const proto = $root.proto = (() => {
24069
24065
  if (o.oneofs)
24070
24066
  d._adPreviewUrl = "adPreviewUrl";
24071
24067
  }
24068
+ if (m.containsCtwaFlowsAutoReply != null && m.hasOwnProperty("containsCtwaFlowsAutoReply")) {
24069
+ d.containsCtwaFlowsAutoReply = m.containsCtwaFlowsAutoReply;
24070
+ if (o.oneofs)
24071
+ d._containsCtwaFlowsAutoReply = "containsCtwaFlowsAutoReply";
24072
+ }
24072
24073
  return d;
24073
24074
  };
24074
24075
 
@@ -25019,7 +25020,7 @@ export const proto = $root.proto = (() => {
25019
25020
  this[ks[i]] = p[ks[i]];
25020
25021
  }
25021
25022
 
25022
- Conversation.prototype.id = null;
25023
+ Conversation.prototype.id = "";
25023
25024
  Conversation.prototype.messages = $util.emptyArray;
25024
25025
  Conversation.prototype.newJid = null;
25025
25026
  Conversation.prototype.oldJid = null;
@@ -25075,14 +25076,10 @@ export const proto = $root.proto = (() => {
25075
25076
  Conversation.prototype.maibaAiThreadEnabled = null;
25076
25077
  Conversation.prototype.isMarketingMessageThread = null;
25077
25078
  Conversation.prototype.isSenderNewAccount = null;
25079
+ Conversation.prototype.afterReadDuration = null;
25078
25080
 
25079
25081
  let $oneOfFields;
25080
25082
 
25081
- Object.defineProperty(Conversation.prototype, "_id", {
25082
- get: $util.oneOfGetter($oneOfFields = ["id"]),
25083
- set: $util.oneOfSetter($oneOfFields)
25084
- });
25085
-
25086
25083
  Object.defineProperty(Conversation.prototype, "_newJid", {
25087
25084
  get: $util.oneOfGetter($oneOfFields = ["newJid"]),
25088
25085
  set: $util.oneOfSetter($oneOfFields)
@@ -25348,6 +25345,11 @@ export const proto = $root.proto = (() => {
25348
25345
  set: $util.oneOfSetter($oneOfFields)
25349
25346
  });
25350
25347
 
25348
+ Object.defineProperty(Conversation.prototype, "_afterReadDuration", {
25349
+ get: $util.oneOfGetter($oneOfFields = ["afterReadDuration"]),
25350
+ set: $util.oneOfSetter($oneOfFields)
25351
+ });
25352
+
25351
25353
  Conversation.create = function create(properties) {
25352
25354
  return new Conversation(properties);
25353
25355
  };
@@ -25471,6 +25473,8 @@ export const proto = $root.proto = (() => {
25471
25473
  w.uint32(440).bool(m.isMarketingMessageThread);
25472
25474
  if (m.isSenderNewAccount != null && Object.hasOwnProperty.call(m, "isSenderNewAccount"))
25473
25475
  w.uint32(448).bool(m.isSenderNewAccount);
25476
+ if (m.afterReadDuration != null && Object.hasOwnProperty.call(m, "afterReadDuration"))
25477
+ w.uint32(456).uint32(m.afterReadDuration);
25474
25478
  return w;
25475
25479
  };
25476
25480
 
@@ -25711,6 +25715,10 @@ export const proto = $root.proto = (() => {
25711
25715
  m.isSenderNewAccount = r.bool();
25712
25716
  break;
25713
25717
  }
25718
+ case 57: {
25719
+ m.afterReadDuration = r.uint32();
25720
+ break;
25721
+ }
25714
25722
  default:
25715
25723
  r.skipType(t & 7);
25716
25724
  break;
@@ -26051,6 +26059,9 @@ export const proto = $root.proto = (() => {
26051
26059
  if (d.isSenderNewAccount != null) {
26052
26060
  m.isSenderNewAccount = Boolean(d.isSenderNewAccount);
26053
26061
  }
26062
+ if (d.afterReadDuration != null) {
26063
+ m.afterReadDuration = d.afterReadDuration >>> 0;
26064
+ }
26054
26065
  return m;
26055
26066
  };
26056
26067
 
@@ -26062,10 +26073,11 @@ export const proto = $root.proto = (() => {
26062
26073
  d.messages = [];
26063
26074
  d.participant = [];
26064
26075
  }
26076
+ if (o.defaults) {
26077
+ d.id = "";
26078
+ }
26065
26079
  if (m.id != null && m.hasOwnProperty("id")) {
26066
26080
  d.id = m.id;
26067
- if (o.oneofs)
26068
- d._id = "id";
26069
26081
  }
26070
26082
  if (m.messages && m.messages.length) {
26071
26083
  d.messages = [];
@@ -26368,6 +26380,11 @@ export const proto = $root.proto = (() => {
26368
26380
  if (o.oneofs)
26369
26381
  d._isSenderNewAccount = "isSenderNewAccount";
26370
26382
  }
26383
+ if (m.afterReadDuration != null && m.hasOwnProperty("afterReadDuration")) {
26384
+ d.afterReadDuration = m.afterReadDuration;
26385
+ if (o.oneofs)
26386
+ d._afterReadDuration = "afterReadDuration";
26387
+ }
26371
26388
  return d;
26372
26389
  };
26373
26390
 
@@ -31319,17 +31336,12 @@ export const proto = $root.proto = (() => {
31319
31336
  this[ks[i]] = p[ks[i]];
31320
31337
  }
31321
31338
 
31322
- GroupParticipant.prototype.userJid = null;
31339
+ GroupParticipant.prototype.userJid = "";
31323
31340
  GroupParticipant.prototype.rank = null;
31324
31341
  GroupParticipant.prototype.memberLabel = null;
31325
31342
 
31326
31343
  let $oneOfFields;
31327
31344
 
31328
- Object.defineProperty(GroupParticipant.prototype, "_userJid", {
31329
- get: $util.oneOfGetter($oneOfFields = ["userJid"]),
31330
- set: $util.oneOfSetter($oneOfFields)
31331
- });
31332
-
31333
31345
  Object.defineProperty(GroupParticipant.prototype, "_rank", {
31334
31346
  get: $util.oneOfGetter($oneOfFields = ["rank"]),
31335
31347
  set: $util.oneOfSetter($oneOfFields)
@@ -31424,10 +31436,11 @@ export const proto = $root.proto = (() => {
31424
31436
  if (!o)
31425
31437
  o = {};
31426
31438
  var d = {};
31439
+ if (o.defaults) {
31440
+ d.userJid = "";
31441
+ }
31427
31442
  if (m.userJid != null && m.hasOwnProperty("userJid")) {
31428
31443
  d.userJid = m.userJid;
31429
- if (o.oneofs)
31430
- d._userJid = "userJid";
31431
31444
  }
31432
31445
  if (m.rank != null && m.hasOwnProperty("rank")) {
31433
31446
  d.rank = o.enums === String ? $root.proto.GroupParticipant.Rank[m.rank] === undefined ? m.rank : $root.proto.GroupParticipant.Rank[m.rank] : m.rank;
@@ -63145,6 +63158,10 @@ export const proto = $root.proto = (() => {
63145
63158
  case 32:
63146
63159
  m.type = 32;
63147
63160
  break;
63161
+ case "BOT_UNLINK_MESSAGE":
63162
+ case 33:
63163
+ m.type = 33;
63164
+ break;
63148
63165
  }
63149
63166
  if (d.ephemeralExpiration != null) {
63150
63167
  m.ephemeralExpiration = d.ephemeralExpiration >>> 0;
@@ -63458,6 +63475,7 @@ export const proto = $root.proto = (() => {
63458
63475
  values[valuesById[30] = "GROUP_MEMBER_LABEL_CHANGE"] = 30;
63459
63476
  values[valuesById[31] = "AI_MEDIA_COLLECTION_MESSAGE"] = 31;
63460
63477
  values[valuesById[32] = "MESSAGE_UNSCHEDULE"] = 32;
63478
+ values[valuesById[33] = "BOT_UNLINK_MESSAGE"] = 33;
63461
63479
  return values;
63462
63480
  })();
63463
63481
 
@@ -68014,32 +68032,10 @@ export const proto = $root.proto = (() => {
68014
68032
  this[ks[i]] = p[ks[i]];
68015
68033
  }
68016
68034
 
68017
- VideoEndCard.prototype.username = null;
68018
- VideoEndCard.prototype.caption = null;
68019
- VideoEndCard.prototype.thumbnailImageUrl = null;
68020
- VideoEndCard.prototype.profilePictureUrl = null;
68021
-
68022
- let $oneOfFields;
68023
-
68024
- Object.defineProperty(VideoEndCard.prototype, "_username", {
68025
- get: $util.oneOfGetter($oneOfFields = ["username"]),
68026
- set: $util.oneOfSetter($oneOfFields)
68027
- });
68028
-
68029
- Object.defineProperty(VideoEndCard.prototype, "_caption", {
68030
- get: $util.oneOfGetter($oneOfFields = ["caption"]),
68031
- set: $util.oneOfSetter($oneOfFields)
68032
- });
68033
-
68034
- Object.defineProperty(VideoEndCard.prototype, "_thumbnailImageUrl", {
68035
- get: $util.oneOfGetter($oneOfFields = ["thumbnailImageUrl"]),
68036
- set: $util.oneOfSetter($oneOfFields)
68037
- });
68038
-
68039
- Object.defineProperty(VideoEndCard.prototype, "_profilePictureUrl", {
68040
- get: $util.oneOfGetter($oneOfFields = ["profilePictureUrl"]),
68041
- set: $util.oneOfSetter($oneOfFields)
68042
- });
68035
+ VideoEndCard.prototype.username = "";
68036
+ VideoEndCard.prototype.caption = "";
68037
+ VideoEndCard.prototype.thumbnailImageUrl = "";
68038
+ VideoEndCard.prototype.profilePictureUrl = "";
68043
68039
 
68044
68040
  VideoEndCard.create = function create(properties) {
68045
68041
  return new VideoEndCard(properties);
@@ -68115,25 +68111,23 @@ export const proto = $root.proto = (() => {
68115
68111
  if (!o)
68116
68112
  o = {};
68117
68113
  var d = {};
68114
+ if (o.defaults) {
68115
+ d.username = "";
68116
+ d.caption = "";
68117
+ d.thumbnailImageUrl = "";
68118
+ d.profilePictureUrl = "";
68119
+ }
68118
68120
  if (m.username != null && m.hasOwnProperty("username")) {
68119
68121
  d.username = m.username;
68120
- if (o.oneofs)
68121
- d._username = "username";
68122
68122
  }
68123
68123
  if (m.caption != null && m.hasOwnProperty("caption")) {
68124
68124
  d.caption = m.caption;
68125
- if (o.oneofs)
68126
- d._caption = "caption";
68127
68125
  }
68128
68126
  if (m.thumbnailImageUrl != null && m.hasOwnProperty("thumbnailImageUrl")) {
68129
68127
  d.thumbnailImageUrl = m.thumbnailImageUrl;
68130
- if (o.oneofs)
68131
- d._thumbnailImageUrl = "thumbnailImageUrl";
68132
68128
  }
68133
68129
  if (m.profilePictureUrl != null && m.hasOwnProperty("profilePictureUrl")) {
68134
68130
  d.profilePictureUrl = m.profilePictureUrl;
68135
- if (o.oneofs)
68136
- d._profilePictureUrl = "profilePictureUrl";
68137
68131
  }
68138
68132
  return d;
68139
68133
  };
@@ -86120,28 +86114,11 @@ export const proto = $root.proto = (() => {
86120
86114
  this[ks[i]] = p[ks[i]];
86121
86115
  }
86122
86116
 
86123
- CustomPaymentMethod.prototype.credentialId = null;
86124
- CustomPaymentMethod.prototype.country = null;
86125
- CustomPaymentMethod.prototype.type = null;
86117
+ CustomPaymentMethod.prototype.credentialId = "";
86118
+ CustomPaymentMethod.prototype.country = "";
86119
+ CustomPaymentMethod.prototype.type = "";
86126
86120
  CustomPaymentMethod.prototype.metadata = $util.emptyArray;
86127
86121
 
86128
- let $oneOfFields;
86129
-
86130
- Object.defineProperty(CustomPaymentMethod.prototype, "_credentialId", {
86131
- get: $util.oneOfGetter($oneOfFields = ["credentialId"]),
86132
- set: $util.oneOfSetter($oneOfFields)
86133
- });
86134
-
86135
- Object.defineProperty(CustomPaymentMethod.prototype, "_country", {
86136
- get: $util.oneOfGetter($oneOfFields = ["country"]),
86137
- set: $util.oneOfSetter($oneOfFields)
86138
- });
86139
-
86140
- Object.defineProperty(CustomPaymentMethod.prototype, "_type", {
86141
- get: $util.oneOfGetter($oneOfFields = ["type"]),
86142
- set: $util.oneOfSetter($oneOfFields)
86143
- });
86144
-
86145
86122
  CustomPaymentMethod.create = function create(properties) {
86146
86123
  return new CustomPaymentMethod(properties);
86147
86124
  };
@@ -86230,20 +86207,19 @@ export const proto = $root.proto = (() => {
86230
86207
  if (o.arrays || o.defaults) {
86231
86208
  d.metadata = [];
86232
86209
  }
86210
+ if (o.defaults) {
86211
+ d.credentialId = "";
86212
+ d.country = "";
86213
+ d.type = "";
86214
+ }
86233
86215
  if (m.credentialId != null && m.hasOwnProperty("credentialId")) {
86234
86216
  d.credentialId = m.credentialId;
86235
- if (o.oneofs)
86236
- d._credentialId = "credentialId";
86237
86217
  }
86238
86218
  if (m.country != null && m.hasOwnProperty("country")) {
86239
86219
  d.country = m.country;
86240
- if (o.oneofs)
86241
- d._country = "country";
86242
86220
  }
86243
86221
  if (m.type != null && m.hasOwnProperty("type")) {
86244
86222
  d.type = m.type;
86245
- if (o.oneofs)
86246
- d._type = "type";
86247
86223
  }
86248
86224
  if (m.metadata && m.metadata.length) {
86249
86225
  d.metadata = [];
@@ -86277,20 +86253,8 @@ export const proto = $root.proto = (() => {
86277
86253
  this[ks[i]] = p[ks[i]];
86278
86254
  }
86279
86255
 
86280
- CustomPaymentMethodMetadata.prototype.key = null;
86281
- CustomPaymentMethodMetadata.prototype.value = null;
86282
-
86283
- let $oneOfFields;
86284
-
86285
- Object.defineProperty(CustomPaymentMethodMetadata.prototype, "_key", {
86286
- get: $util.oneOfGetter($oneOfFields = ["key"]),
86287
- set: $util.oneOfSetter($oneOfFields)
86288
- });
86289
-
86290
- Object.defineProperty(CustomPaymentMethodMetadata.prototype, "_value", {
86291
- get: $util.oneOfGetter($oneOfFields = ["value"]),
86292
- set: $util.oneOfSetter($oneOfFields)
86293
- });
86256
+ CustomPaymentMethodMetadata.prototype.key = "";
86257
+ CustomPaymentMethodMetadata.prototype.value = "";
86294
86258
 
86295
86259
  CustomPaymentMethodMetadata.create = function create(properties) {
86296
86260
  return new CustomPaymentMethodMetadata(properties);
@@ -86348,15 +86312,15 @@ export const proto = $root.proto = (() => {
86348
86312
  if (!o)
86349
86313
  o = {};
86350
86314
  var d = {};
86315
+ if (o.defaults) {
86316
+ d.key = "";
86317
+ d.value = "";
86318
+ }
86351
86319
  if (m.key != null && m.hasOwnProperty("key")) {
86352
86320
  d.key = m.key;
86353
- if (o.oneofs)
86354
- d._key = "key";
86355
86321
  }
86356
86322
  if (m.value != null && m.hasOwnProperty("value")) {
86357
86323
  d.value = m.value;
86358
- if (o.oneofs)
86359
- d._value = "value";
86360
86324
  }
86361
86325
  return d;
86362
86326
  };
@@ -87477,16 +87441,11 @@ export const proto = $root.proto = (() => {
87477
87441
  this[ks[i]] = p[ks[i]];
87478
87442
  }
87479
87443
 
87480
- InteractiveMessageAction.prototype.type = null;
87444
+ InteractiveMessageAction.prototype.type = 1;
87481
87445
  InteractiveMessageAction.prototype.agmId = null;
87482
87446
 
87483
87447
  let $oneOfFields;
87484
87448
 
87485
- Object.defineProperty(InteractiveMessageAction.prototype, "_type", {
87486
- get: $util.oneOfGetter($oneOfFields = ["type"]),
87487
- set: $util.oneOfSetter($oneOfFields)
87488
- });
87489
-
87490
87449
  Object.defineProperty(InteractiveMessageAction.prototype, "_agmId", {
87491
87450
  get: $util.oneOfGetter($oneOfFields = ["agmId"]),
87492
87451
  set: $util.oneOfSetter($oneOfFields)
@@ -87557,10 +87516,11 @@ export const proto = $root.proto = (() => {
87557
87516
  if (!o)
87558
87517
  o = {};
87559
87518
  var d = {};
87519
+ if (o.defaults) {
87520
+ d.type = o.enums === String ? "DISABLE_CTA" : 1;
87521
+ }
87560
87522
  if (m.type != null && m.hasOwnProperty("type")) {
87561
87523
  d.type = o.enums === String ? $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] === undefined ? m.type : $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] : m.type;
87562
- if (o.oneofs)
87563
- d._type = "type";
87564
87524
  }
87565
87525
  if (m.agmId != null && m.hasOwnProperty("agmId")) {
87566
87526
  d.agmId = m.agmId;
@@ -89047,23 +89007,13 @@ export const proto = $root.proto = (() => {
89047
89007
  this[ks[i]] = p[ks[i]];
89048
89008
  }
89049
89009
 
89050
- MerchantPaymentPartnerAction.prototype.status = null;
89051
- MerchantPaymentPartnerAction.prototype.country = null;
89010
+ MerchantPaymentPartnerAction.prototype.status = 0;
89011
+ MerchantPaymentPartnerAction.prototype.country = "";
89052
89012
  MerchantPaymentPartnerAction.prototype.gatewayName = null;
89053
89013
  MerchantPaymentPartnerAction.prototype.credentialId = null;
89054
89014
 
89055
89015
  let $oneOfFields;
89056
89016
 
89057
- Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_status", {
89058
- get: $util.oneOfGetter($oneOfFields = ["status"]),
89059
- set: $util.oneOfSetter($oneOfFields)
89060
- });
89061
-
89062
- Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_country", {
89063
- get: $util.oneOfGetter($oneOfFields = ["country"]),
89064
- set: $util.oneOfSetter($oneOfFields)
89065
- });
89066
-
89067
89017
  Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_gatewayName", {
89068
89018
  get: $util.oneOfGetter($oneOfFields = ["gatewayName"]),
89069
89019
  set: $util.oneOfSetter($oneOfFields)
@@ -89161,15 +89111,15 @@ export const proto = $root.proto = (() => {
89161
89111
  if (!o)
89162
89112
  o = {};
89163
89113
  var d = {};
89114
+ if (o.defaults) {
89115
+ d.status = o.enums === String ? "ACTIVE" : 0;
89116
+ d.country = "";
89117
+ }
89164
89118
  if (m.status != null && m.hasOwnProperty("status")) {
89165
89119
  d.status = o.enums === String ? $root.proto.SyncActionValue.MerchantPaymentPartnerAction.Status[m.status] === undefined ? m.status : $root.proto.SyncActionValue.MerchantPaymentPartnerAction.Status[m.status] : m.status;
89166
- if (o.oneofs)
89167
- d._status = "status";
89168
89120
  }
89169
89121
  if (m.country != null && m.hasOwnProperty("country")) {
89170
89122
  d.country = m.country;
89171
- if (o.oneofs)
89172
- d._country = "country";
89173
89123
  }
89174
89124
  if (m.gatewayName != null && m.hasOwnProperty("gatewayName")) {
89175
89125
  d.gatewayName = m.gatewayName;
@@ -90288,20 +90238,8 @@ export const proto = $root.proto = (() => {
90288
90238
  this[ks[i]] = p[ks[i]];
90289
90239
  }
90290
90240
 
90291
- PaymentTosAction.prototype.paymentNotice = null;
90292
- PaymentTosAction.prototype.accepted = null;
90293
-
90294
- let $oneOfFields;
90295
-
90296
- Object.defineProperty(PaymentTosAction.prototype, "_paymentNotice", {
90297
- get: $util.oneOfGetter($oneOfFields = ["paymentNotice"]),
90298
- set: $util.oneOfSetter($oneOfFields)
90299
- });
90300
-
90301
- Object.defineProperty(PaymentTosAction.prototype, "_accepted", {
90302
- get: $util.oneOfGetter($oneOfFields = ["accepted"]),
90303
- set: $util.oneOfSetter($oneOfFields)
90304
- });
90241
+ PaymentTosAction.prototype.paymentNotice = 0;
90242
+ PaymentTosAction.prototype.accepted = false;
90305
90243
 
90306
90244
  PaymentTosAction.create = function create(properties) {
90307
90245
  return new PaymentTosAction(properties);
@@ -90368,15 +90306,15 @@ export const proto = $root.proto = (() => {
90368
90306
  if (!o)
90369
90307
  o = {};
90370
90308
  var d = {};
90309
+ if (o.defaults) {
90310
+ d.paymentNotice = o.enums === String ? "BR_PAY_PRIVACY_POLICY" : 0;
90311
+ d.accepted = false;
90312
+ }
90371
90313
  if (m.paymentNotice != null && m.hasOwnProperty("paymentNotice")) {
90372
90314
  d.paymentNotice = o.enums === String ? $root.proto.SyncActionValue.PaymentTosAction.PaymentNotice[m.paymentNotice] === undefined ? m.paymentNotice : $root.proto.SyncActionValue.PaymentTosAction.PaymentNotice[m.paymentNotice] : m.paymentNotice;
90373
- if (o.oneofs)
90374
- d._paymentNotice = "paymentNotice";
90375
90315
  }
90376
90316
  if (m.accepted != null && m.hasOwnProperty("accepted")) {
90377
90317
  d.accepted = m.accepted;
90378
- if (o.oneofs)
90379
- d._accepted = "accepted";
90380
90318
  }
90381
90319
  return d;
90382
90320
  };
@@ -2,7 +2,7 @@ import { proto } from '../../WAProto/index.js';
2
2
  import { makeLibSignalRepository } from '../Signal/libsignal.js';
3
3
  import { Browsers } from '../Utils/browser-utils.js';
4
4
  import logger from '../Utils/logger.js';
5
- const version = [2, 3000, 1033846690];
5
+ const version = [2, 3000, 1035194821];
6
6
  export const UNAUTHORIZED_CODES = [401, 403, 419];
7
7
  export const BIZ_BOT_SUPPORT_PAYLOAD = '{"version":1,"is_ai_message":true,"should_show_system_message":false,"ticket_id":"7004947587700716","citation_items":[],"ticket_locale":"us"}';
8
8
  export const DEFAULT_ORIGIN = 'https://web.whatsapp.com';
@@ -1,7 +1,7 @@
1
1
  import { Boom } from '@hapi/boom';
2
2
  import { createHash, randomBytes } from 'crypto';
3
3
  import { proto } from '../../WAProto/index.js';
4
- const baileysVersion = [2, 3000, 1033846690];
4
+ const baileysVersion = [2, 3000, 1035194821];
5
5
  import { DisconnectReason } from '../Types/index.js';
6
6
  import { getAllBinaryNodeChildren, jidDecode } from '../WABinary/index.js';
7
7
  import { sha256 } from './crypto.js';
@@ -1449,7 +1449,7 @@ export const generateWAMessageFromContent = (jid, message, options) => {
1449
1449
  const timestamp = unixTimestampSeconds(options.timestamp);
1450
1450
  const isNewsletter = isJidNewsletter(jid);
1451
1451
  const { quoted, userJid } = options;
1452
- if (quoted && !isNewsletter) {
1452
+ if (quoted) {
1453
1453
  const participant = quoted.key.fromMe
1454
1454
  ? userJid // TODO: Add support for LIDs
1455
1455
  : quoted.participant || quoted.key.participant || quoted.key.remoteJid;
@@ -1492,7 +1492,7 @@ export const generateWAMessageFromContent = (jid, message, options) => {
1492
1492
  };
1493
1493
  }
1494
1494
  // Lia@Changes 30-01-26 --- Add deviceListMetadata inside messageContextInfo for private chat
1495
- else if (messageContextInfo?.messageSecret && (isPnUser(jid) || isLidUser(jid))) {
1495
+ if (messageContextInfo?.messageSecret && (isPnUser(jid) || isLidUser(jid))) {
1496
1496
  messageContextInfo.deviceListMetadata = {
1497
1497
  recipientKeyHash: randomBytes(10),
1498
1498
  recipientTimestamp: unixTimestampSeconds()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsliaaa/baileys",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A simple fork of Baileys for WhatsApp automation",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",