@itsliaaa/baileys 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/WAProto/index.js +39 -10
  2. package/package.json +1 -1
package/WAProto/index.js CHANGED
@@ -6766,6 +6766,10 @@ export const proto = $root.proto = (() => {
6766
6766
  case 60:
6767
6767
  m.capabilities[i] = 60;
6768
6768
  break;
6769
+ case "AI_SUBSCRIPTION_ENABLED":
6770
+ case 61:
6771
+ m.capabilities[i] = 61;
6772
+ break;
6769
6773
  }
6770
6774
  }
6771
6775
  }
@@ -6862,6 +6866,7 @@ export const proto = $root.proto = (() => {
6862
6866
  values[valuesById[58] = "JSON_PATCH_STREAMING"] = 58;
6863
6867
  values[valuesById[59] = "AI_TAB_FORCE_CLIPPY"] = 59;
6864
6868
  values[valuesById[60] = "UNIFIED_RESPONSE_EMBEDDED_SCREENS"] = 60;
6869
+ values[valuesById[61] = "AI_SUBSCRIPTION_ENABLED"] = 61;
6865
6870
  return values;
6866
6871
  })();
6867
6872
 
@@ -68131,10 +68136,32 @@ export const proto = $root.proto = (() => {
68131
68136
  this[ks[i]] = p[ks[i]];
68132
68137
  }
68133
68138
 
68134
- VideoEndCard.prototype.username = "";
68135
- VideoEndCard.prototype.caption = "";
68136
- VideoEndCard.prototype.thumbnailImageUrl = "";
68137
- VideoEndCard.prototype.profilePictureUrl = "";
68139
+ VideoEndCard.prototype.username = null;
68140
+ VideoEndCard.prototype.caption = null;
68141
+ VideoEndCard.prototype.thumbnailImageUrl = null;
68142
+ VideoEndCard.prototype.profilePictureUrl = null;
68143
+
68144
+ let $oneOfFields;
68145
+
68146
+ Object.defineProperty(VideoEndCard.prototype, "_username", {
68147
+ get: $util.oneOfGetter($oneOfFields = ["username"]),
68148
+ set: $util.oneOfSetter($oneOfFields)
68149
+ });
68150
+
68151
+ Object.defineProperty(VideoEndCard.prototype, "_caption", {
68152
+ get: $util.oneOfGetter($oneOfFields = ["caption"]),
68153
+ set: $util.oneOfSetter($oneOfFields)
68154
+ });
68155
+
68156
+ Object.defineProperty(VideoEndCard.prototype, "_thumbnailImageUrl", {
68157
+ get: $util.oneOfGetter($oneOfFields = ["thumbnailImageUrl"]),
68158
+ set: $util.oneOfSetter($oneOfFields)
68159
+ });
68160
+
68161
+ Object.defineProperty(VideoEndCard.prototype, "_profilePictureUrl", {
68162
+ get: $util.oneOfGetter($oneOfFields = ["profilePictureUrl"]),
68163
+ set: $util.oneOfSetter($oneOfFields)
68164
+ });
68138
68165
 
68139
68166
  VideoEndCard.create = function create(properties) {
68140
68167
  return new VideoEndCard(properties);
@@ -68210,23 +68237,25 @@ export const proto = $root.proto = (() => {
68210
68237
  if (!o)
68211
68238
  o = {};
68212
68239
  var d = {};
68213
- if (o.defaults) {
68214
- d.username = "";
68215
- d.caption = "";
68216
- d.thumbnailImageUrl = "";
68217
- d.profilePictureUrl = "";
68218
- }
68219
68240
  if (m.username != null && m.hasOwnProperty("username")) {
68220
68241
  d.username = m.username;
68242
+ if (o.oneofs)
68243
+ d._username = "username";
68221
68244
  }
68222
68245
  if (m.caption != null && m.hasOwnProperty("caption")) {
68223
68246
  d.caption = m.caption;
68247
+ if (o.oneofs)
68248
+ d._caption = "caption";
68224
68249
  }
68225
68250
  if (m.thumbnailImageUrl != null && m.hasOwnProperty("thumbnailImageUrl")) {
68226
68251
  d.thumbnailImageUrl = m.thumbnailImageUrl;
68252
+ if (o.oneofs)
68253
+ d._thumbnailImageUrl = "thumbnailImageUrl";
68227
68254
  }
68228
68255
  if (m.profilePictureUrl != null && m.hasOwnProperty("profilePictureUrl")) {
68229
68256
  d.profilePictureUrl = m.profilePictureUrl;
68257
+ if (o.oneofs)
68258
+ d._profilePictureUrl = "profilePictureUrl";
68230
68259
  }
68231
68260
  return d;
68232
68261
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsliaaa/baileys",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "A simple fork of Baileys for WhatsApp automation",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",