From 3050c329c5d82f3c1fd69065f3602acbc500324c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 01:59:23 -0300 Subject: [PATCH] chore: update proto/version to v2.3000.1036000318 (#319) Co-authored-by: rsalcara --- WAProto/WAProto.proto | 4 ++-- WAProto/index.d.ts | 4 ++-- WAProto/index.js | 32 +++++++++++-------------------- src/Defaults/baileys-version.json | 2 +- 4 files changed, 16 insertions(+), 26 deletions(-) diff --git a/WAProto/WAProto.proto b/WAProto/WAProto.proto index b61db9fe..c5d4d9a2 100644 --- a/WAProto/WAProto.proto +++ b/WAProto/WAProto.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package proto; -/// WhatsApp Version: 2.3000.1035715252 +/// WhatsApp Version: 2.3000.1036000318 message ADVDeviceIdentity { optional uint32 rawId = 1; @@ -5306,7 +5306,7 @@ message SyncActionValue { optional bool shareToIG = 4; repeated CustomList customLists = 5; message CustomList { - optional int64 id = 1; + optional string listId = 1; optional string name = 2; optional string emoji = 3; optional bool isSelected = 4; diff --git a/WAProto/index.d.ts b/WAProto/index.d.ts index 04ac6ec7..67342b0c 100644 --- a/WAProto/index.d.ts +++ b/WAProto/index.d.ts @@ -13724,7 +13724,7 @@ export namespace proto { namespace StatusPrivacyAction { interface ICustomList { - id?: (number|Long|null); + listId?: (string|null); name?: (string|null); emoji?: (string|null); isSelected?: (boolean|null); @@ -13733,7 +13733,7 @@ export namespace proto { class CustomList implements ICustomList { constructor(p?: proto.SyncActionValue.StatusPrivacyAction.ICustomList); - public id?: (number|Long|null); + public listId?: (string|null); public name?: (string|null); public emoji?: (string|null); public isSelected?: (boolean|null); diff --git a/WAProto/index.js b/WAProto/index.js index af13dd6d..d8c7e68b 100644 --- a/WAProto/index.js +++ b/WAProto/index.js @@ -95183,7 +95183,7 @@ export const proto = $root.proto = (() => { this[ks[i]] = p[ks[i]]; } - CustomList.prototype.id = null; + CustomList.prototype.listId = null; CustomList.prototype.name = null; CustomList.prototype.emoji = null; CustomList.prototype.isSelected = null; @@ -95192,8 +95192,8 @@ export const proto = $root.proto = (() => { let $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(CustomList.prototype, "_id", { - get: $util.oneOfGetter($oneOfFields = ["id"]), + Object.defineProperty(CustomList.prototype, "_listId", { + get: $util.oneOfGetter($oneOfFields = ["listId"]), set: $util.oneOfSetter($oneOfFields) }); @@ -95222,8 +95222,8 @@ export const proto = $root.proto = (() => { CustomList.encode = function encode(m, w) { if (!w) w = $Writer.create(); - if (m.id != null && Object.hasOwnProperty.call(m, "id")) - w.uint32(8).int64(m.id); + if (m.listId != null && Object.hasOwnProperty.call(m, "listId")) + w.uint32(10).string(m.listId); if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(18).string(m.name); if (m.emoji != null && Object.hasOwnProperty.call(m, "emoji")) @@ -95247,7 +95247,7 @@ export const proto = $root.proto = (() => { break; switch (t >>> 3) { case 1: { - m.id = r.int64(); + m.listId = r.string(); break; } case 2: { @@ -95280,15 +95280,8 @@ export const proto = $root.proto = (() => { if (d instanceof $root.proto.SyncActionValue.StatusPrivacyAction.CustomList) return d; var m = new $root.proto.SyncActionValue.StatusPrivacyAction.CustomList(); - if (d.id != null) { - if ($util.Long) - (m.id = $util.Long.fromValue(d.id)).unsigned = false; - else if (typeof d.id === "string") - m.id = parseInt(d.id, 10); - else if (typeof d.id === "number") - m.id = d.id; - else if (typeof d.id === "object") - m.id = new $util.LongBits(d.id.low >>> 0, d.id.high >>> 0).toNumber(); + if (d.listId != null) { + m.listId = String(d.listId); } if (d.name != null) { m.name = String(d.name); @@ -95317,13 +95310,10 @@ export const proto = $root.proto = (() => { if (o.arrays || o.defaults) { d.userJid = []; } - if (m.id != null && m.hasOwnProperty("id")) { - if (typeof m.id === "number") - d.id = o.longs === String ? String(m.id) : m.id; - else - d.id = o.longs === String ? longToString(m.id) : o.longs === Number ? longToNumber(m.id) : m.id; + if (m.listId != null && m.hasOwnProperty("listId")) { + d.listId = m.listId; if (o.oneofs) - d._id = "id"; + d._listId = "listId"; } if (m.name != null && m.hasOwnProperty("name")) { d.name = m.name; diff --git a/src/Defaults/baileys-version.json b/src/Defaults/baileys-version.json index 886ebe35..966bb8c1 100644 --- a/src/Defaults/baileys-version.json +++ b/src/Defaults/baileys-version.json @@ -1 +1 @@ -{"version":[2,3000,1035913242]} +{"version": [2, 3000, 1036000318]}