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 Dec 4, 2024
1 parent 8408285 commit 979a308
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
3 changes: 2 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.1018487797
/// WhatsApp Version: 2.3000.1018605684

message ADVDeviceIdentity {
optional uint32 rawId = 1;
Expand Down Expand Up @@ -1333,6 +1333,7 @@ message Message {
optional FutureProofMessage pollCreationMessageV4 = 93;
optional FutureProofMessage pollCreationMessageV5 = 94;
optional FutureProofMessage statusAddYours = 95;
optional FutureProofMessage groupStatusMessage = 96;
message AlbumMessage {
optional uint32 expectedImageCount = 2;
optional uint32 expectedVideoCount = 3;
Expand Down
6 changes: 6 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13849,6 +13849,9 @@ export namespace waproto {

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

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

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

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

/**
* Creates a new Message instance using the specified properties.
* @param [properties] Properties to set
Expand Down
39 changes: 39 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42697,6 +42697,7 @@ $root.waproto = (function() {
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV5] Message pollCreationMessageV5
* @property {waproto.Message.IFutureProofMessage|null} [statusAddYours] Message statusAddYours
* @property {waproto.Message.IFutureProofMessage|null} [groupStatusMessage] Message groupStatusMessage
*/

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

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

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

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

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

/**
* Creates a new Message instance using the specified properties.
* @function create
Expand Down Expand Up @@ -44005,6 +44020,8 @@ $root.waproto = (function() {
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV5, writer.uint32(/* id 94, wireType 2 =*/754).fork()).ldelim();
if (message.statusAddYours != null && Object.hasOwnProperty.call(message, "statusAddYours"))
$root.waproto.Message.FutureProofMessage.encode(message.statusAddYours, writer.uint32(/* id 95, wireType 2 =*/762).fork()).ldelim();
if (message.groupStatusMessage != null && Object.hasOwnProperty.call(message, "groupStatusMessage"))
$root.waproto.Message.FutureProofMessage.encode(message.groupStatusMessage, writer.uint32(/* id 96, wireType 2 =*/770).fork()).ldelim();
return writer;
};

Expand Down Expand Up @@ -44355,6 +44372,10 @@ $root.waproto = (function() {
message.statusAddYours = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
break;
}
case 96: {
message.groupStatusMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
break;
}
default:
reader.skipType(tag & 7);
break;
Expand Down Expand Up @@ -45020,6 +45041,14 @@ $root.waproto = (function() {
return "statusAddYours." + error;
}
}
if (message.groupStatusMessage != null && message.hasOwnProperty("groupStatusMessage")) {
properties._groupStatusMessage = 1;
{
var error = $root.waproto.Message.FutureProofMessage.verify(message.groupStatusMessage);
if (error)
return "groupStatusMessage." + error;
}
}
return null;
};

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

Expand Down Expand Up @@ -45838,6 +45872,11 @@ $root.waproto = (function() {
if (options.oneofs)
object._statusAddYours = "statusAddYours";
}
if (message.groupStatusMessage != null && message.hasOwnProperty("groupStatusMessage")) {
object.groupStatusMessage = $root.waproto.Message.FutureProofMessage.toObject(message.groupStatusMessage, options);
if (options.oneofs)
object._groupStatusMessage = "groupStatusMessage";
}
return object;
};

Expand Down

0 comments on commit 979a308

Please sign in to comment.