Skip to content

Commit

Permalink
Update WAProto.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 16, 2024
1 parent 6238a81 commit 007cc11
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
4 changes: 3 additions & 1 deletion WAProto.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package waproto;

/// WhatsApp Version: 2.3000.1017264179
/// WhatsApp Version: 2.3000.1017399100

message ADVDeviceIdentity {
optional uint32 rawId = 1;
Expand Down Expand Up @@ -1254,6 +1254,7 @@ message Message {
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
optional FutureProofMessage pollCreationMessageV4 = 89;
optional FutureProofMessage pollCreationOptionImageMessage = 90;
optional FutureProofMessage associatedChildMessage = 91;
message AlbumMessage {
optional uint32 expectedImageCount = 2;
optional uint32 expectedVideoCount = 3;
Expand Down Expand Up @@ -3917,6 +3918,7 @@ message WebMessageInfo {
COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208;
CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209;
STATUS_MENTION = 210;
USER_CONTROLS_SYSTEM_MESSAGE = 211;
}
}

Expand Down
9 changes: 8 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13147,6 +13147,9 @@ export namespace waproto {

/** Message pollCreationOptionImageMessage */
pollCreationOptionImageMessage?: (waproto.Message.IFutureProofMessage|null);

/** Message associatedChildMessage */
associatedChildMessage?: (waproto.Message.IFutureProofMessage|null);
}

/** Represents a Message. */
Expand Down Expand Up @@ -13383,6 +13386,9 @@ export namespace waproto {
/** Message pollCreationOptionImageMessage. */
public pollCreationOptionImageMessage?: (waproto.Message.IFutureProofMessage|null);

/** Message associatedChildMessage. */
public associatedChildMessage?: (waproto.Message.IFutureProofMessage|null);

/**
* Creates a new Message instance using the specified properties.
* @param [properties] Properties to set
Expand Down Expand Up @@ -45492,7 +45498,8 @@ export namespace waproto {
COMMUNITY_OWNER_UPDATED = 207,
COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208,
CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209,
STATUS_MENTION = 210
STATUS_MENTION = 210,
USER_CONTROLS_SYSTEM_MESSAGE = 211
}
}

Expand Down
46 changes: 46 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40716,6 +40716,7 @@ $root.waproto = (function() {
* @property {waproto.Message.IPollResultSnapshotMessage|null} [pollResultSnapshotMessage] Message pollResultSnapshotMessage
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationOptionImageMessage] Message pollCreationOptionImageMessage
* @property {waproto.Message.IFutureProofMessage|null} [associatedChildMessage] Message associatedChildMessage
*/

/**
Expand Down Expand Up @@ -41333,6 +41334,14 @@ $root.waproto = (function() {
*/
Message.prototype.pollCreationOptionImageMessage = null;

/**
* Message associatedChildMessage.
* @member {waproto.Message.IFutureProofMessage|null|undefined} associatedChildMessage
* @memberof waproto.Message
* @instance
*/
Message.prototype.associatedChildMessage = null;

// OneOf field names bound to virtual getters and setters
var $oneOfFields;

Expand Down Expand Up @@ -41786,6 +41795,12 @@ $root.waproto = (function() {
set: $util.oneOfSetter($oneOfFields)
});

// Virtual OneOf for proto3 optional field
Object.defineProperty(Message.prototype, "_associatedChildMessage", {
get: $util.oneOfGetter($oneOfFields = ["associatedChildMessage"]),
set: $util.oneOfSetter($oneOfFields)
});

/**
* Creates a new Message instance using the specified properties.
* @function create
Expand Down Expand Up @@ -41960,6 +41975,8 @@ $root.waproto = (function() {
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV4, writer.uint32(/* id 89, wireType 2 =*/714).fork()).ldelim();
if (message.pollCreationOptionImageMessage != null && Object.hasOwnProperty.call(message, "pollCreationOptionImageMessage"))
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationOptionImageMessage, writer.uint32(/* id 90, wireType 2 =*/722).fork()).ldelim();
if (message.associatedChildMessage != null && Object.hasOwnProperty.call(message, "associatedChildMessage"))
$root.waproto.Message.FutureProofMessage.encode(message.associatedChildMessage, writer.uint32(/* id 91, wireType 2 =*/730).fork()).ldelim();
return writer;
};

Expand Down Expand Up @@ -42294,6 +42311,10 @@ $root.waproto = (function() {
message.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
break;
}
case 91: {
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
break;
}
default:
reader.skipType(tag & 7);
break;
Expand Down Expand Up @@ -42927,6 +42948,14 @@ $root.waproto = (function() {
return "pollCreationOptionImageMessage." + error;
}
}
if (message.associatedChildMessage != null && message.hasOwnProperty("associatedChildMessage")) {
properties._associatedChildMessage = 1;
{
var error = $root.waproto.Message.FutureProofMessage.verify(message.associatedChildMessage);
if (error)
return "associatedChildMessage." + error;
}
}
return null;
};

Expand Down Expand Up @@ -43314,6 +43343,11 @@ $root.waproto = (function() {
throw TypeError(".waproto.Message.pollCreationOptionImageMessage: object expected");
message.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.pollCreationOptionImageMessage);
}
if (object.associatedChildMessage != null) {
if (typeof object.associatedChildMessage !== "object")
throw TypeError(".waproto.Message.associatedChildMessage: object expected");
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.associatedChildMessage);
}
return message;
};

Expand Down Expand Up @@ -43705,6 +43739,11 @@ $root.waproto = (function() {
if (options.oneofs)
object._pollCreationOptionImageMessage = "pollCreationOptionImageMessage";
}
if (message.associatedChildMessage != null && message.hasOwnProperty("associatedChildMessage")) {
object.associatedChildMessage = $root.waproto.Message.FutureProofMessage.toObject(message.associatedChildMessage, options);
if (options.oneofs)
object._associatedChildMessage = "associatedChildMessage";
}
return object;
};

Expand Down Expand Up @@ -139210,6 +139249,7 @@ $root.waproto = (function() {
case 208:
case 209:
case 210:
case 211:
break;
}
}
Expand Down Expand Up @@ -140461,6 +140501,10 @@ $root.waproto = (function() {
case 210:
message.messageStubType = 210;
break;
case "USER_CONTROLS_SYSTEM_MESSAGE":
case 211:
message.messageStubType = 211;
break;
}
if (object.clearMedia != null)
message.clearMedia = Boolean(object.clearMedia);
Expand Down Expand Up @@ -141321,6 +141365,7 @@ $root.waproto = (function() {
* @property {number} COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208 COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN value
* @property {number} CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209 CAPI_GROUP_NE2EE_SYSTEM_MESSAGE value
* @property {number} STATUS_MENTION=210 STATUS_MENTION value
* @property {number} USER_CONTROLS_SYSTEM_MESSAGE=211 USER_CONTROLS_SYSTEM_MESSAGE value
*/
WebMessageInfo.StubType = (function() {
var valuesById = {}, values = Object.create(valuesById);
Expand Down Expand Up @@ -141535,6 +141580,7 @@ $root.waproto = (function() {
values[valuesById[208] = "COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN"] = 208;
values[valuesById[209] = "CAPI_GROUP_NE2EE_SYSTEM_MESSAGE"] = 209;
values[valuesById[210] = "STATUS_MENTION"] = 210;
values[valuesById[211] = "USER_CONTROLS_SYSTEM_MESSAGE"] = 211;
return values;
})();

Expand Down

0 comments on commit 007cc11

Please sign in to comment.