chore: update proto/version to v2.3000.1034095029 (#226)
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
979ef19228
commit
fa417f2a6d
+18
-1
@@ -1,7 +1,7 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package proto;
|
package proto;
|
||||||
|
|
||||||
/// WhatsApp Version: 2.3000.1034008163
|
/// WhatsApp Version: 2.3000.1034095029
|
||||||
|
|
||||||
message ADVDeviceIdentity {
|
message ADVDeviceIdentity {
|
||||||
optional uint32 rawId = 1;
|
optional uint32 rawId = 1;
|
||||||
@@ -909,6 +909,7 @@ message BotSignatureVerificationUseCaseProof {
|
|||||||
enum BotSignatureUseCase {
|
enum BotSignatureUseCase {
|
||||||
UNSPECIFIED = 0;
|
UNSPECIFIED = 0;
|
||||||
WA_BOT_MSG = 1;
|
WA_BOT_MSG = 1;
|
||||||
|
WA_TEE_BOT_MSG = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1940,6 +1941,7 @@ message HistorySync {
|
|||||||
optional string companionMetaNonce = 16;
|
optional string companionMetaNonce = 16;
|
||||||
optional bytes shareableChatIdentifierEncryptionKey = 17;
|
optional bytes shareableChatIdentifierEncryptionKey = 17;
|
||||||
repeated Account accounts = 18;
|
repeated Account accounts = 18;
|
||||||
|
optional bytes nctSalt = 19;
|
||||||
enum BotAIWaitListState {
|
enum BotAIWaitListState {
|
||||||
IN_WAITLIST = 0;
|
IN_WAITLIST = 0;
|
||||||
AI_AVAILABLE = 1;
|
AI_AVAILABLE = 1;
|
||||||
@@ -2112,6 +2114,7 @@ message LimitSharing {
|
|||||||
CHAT_SETTING = 1;
|
CHAT_SETTING = 1;
|
||||||
BIZ_SUPPORTS_FB_HOSTING = 2;
|
BIZ_SUPPORTS_FB_HOSTING = 2;
|
||||||
UNKNOWN_GROUP = 3;
|
UNKNOWN_GROUP = 3;
|
||||||
|
DEPRECATION = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2270,6 +2273,7 @@ message Message {
|
|||||||
optional FutureProofMessage newsletterAdminProfileMessageV2 = 117;
|
optional FutureProofMessage newsletterAdminProfileMessageV2 = 117;
|
||||||
optional FutureProofMessage spoilerMessage = 118;
|
optional FutureProofMessage spoilerMessage = 118;
|
||||||
optional PollCreationMessage pollCreationMessageV6 = 119;
|
optional PollCreationMessage pollCreationMessageV6 = 119;
|
||||||
|
optional ConditionalRevealMessage conditionalRevealMessage = 120;
|
||||||
message AlbumMessage {
|
message AlbumMessage {
|
||||||
optional uint32 expectedImageCount = 2;
|
optional uint32 expectedImageCount = 2;
|
||||||
optional uint32 expectedVideoCount = 3;
|
optional uint32 expectedVideoCount = 3;
|
||||||
@@ -2474,6 +2478,17 @@ message Message {
|
|||||||
optional MessageKey targetMessageKey = 2;
|
optional MessageKey targetMessageKey = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ConditionalRevealMessage {
|
||||||
|
optional bytes encPayload = 1;
|
||||||
|
optional bytes encIv = 2;
|
||||||
|
optional ConditionalRevealMessageType conditionalRevealMessageType = 3;
|
||||||
|
optional string revealKeyId = 4;
|
||||||
|
enum ConditionalRevealMessageType {
|
||||||
|
UNKNOWN = 0;
|
||||||
|
SCHEDULED_MESSAGE = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
message ContactMessage {
|
message ContactMessage {
|
||||||
optional string displayName = 1;
|
optional string displayName = 1;
|
||||||
optional string vcard = 16;
|
optional string vcard = 16;
|
||||||
@@ -5164,6 +5179,8 @@ message SyncActionValue {
|
|||||||
message StatusPrivacyAction {
|
message StatusPrivacyAction {
|
||||||
optional StatusDistributionMode mode = 1;
|
optional StatusDistributionMode mode = 1;
|
||||||
repeated string userJid = 2;
|
repeated string userJid = 2;
|
||||||
|
optional bool shareToFB = 3;
|
||||||
|
optional bool shareToIG = 4;
|
||||||
enum StatusDistributionMode {
|
enum StatusDistributionMode {
|
||||||
ALLOW_LIST = 0;
|
ALLOW_LIST = 0;
|
||||||
DENY_LIST = 1;
|
DENY_LIST = 1;
|
||||||
|
|||||||
Vendored
+42
-2
@@ -2326,7 +2326,8 @@ export namespace proto {
|
|||||||
|
|
||||||
enum BotSignatureUseCase {
|
enum BotSignatureUseCase {
|
||||||
UNSPECIFIED = 0,
|
UNSPECIFIED = 0,
|
||||||
WA_BOT_MSG = 1
|
WA_BOT_MSG = 1,
|
||||||
|
WA_TEE_BOT_MSG = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4775,6 +4776,7 @@ export namespace proto {
|
|||||||
companionMetaNonce?: (string|null);
|
companionMetaNonce?: (string|null);
|
||||||
shareableChatIdentifierEncryptionKey?: (Uint8Array|null);
|
shareableChatIdentifierEncryptionKey?: (Uint8Array|null);
|
||||||
accounts?: (proto.IAccount[]|null);
|
accounts?: (proto.IAccount[]|null);
|
||||||
|
nctSalt?: (Uint8Array|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class HistorySync implements IHistorySync {
|
class HistorySync implements IHistorySync {
|
||||||
@@ -4796,6 +4798,7 @@ export namespace proto {
|
|||||||
public companionMetaNonce?: (string|null);
|
public companionMetaNonce?: (string|null);
|
||||||
public shareableChatIdentifierEncryptionKey?: (Uint8Array|null);
|
public shareableChatIdentifierEncryptionKey?: (Uint8Array|null);
|
||||||
public accounts: proto.IAccount[];
|
public accounts: proto.IAccount[];
|
||||||
|
public nctSalt?: (Uint8Array|null);
|
||||||
public static create(properties?: proto.IHistorySync): proto.HistorySync;
|
public static create(properties?: proto.IHistorySync): proto.HistorySync;
|
||||||
public static encode(m: proto.IHistorySync, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.IHistorySync, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HistorySync;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HistorySync;
|
||||||
@@ -5291,7 +5294,8 @@ export namespace proto {
|
|||||||
UNKNOWN = 0,
|
UNKNOWN = 0,
|
||||||
CHAT_SETTING = 1,
|
CHAT_SETTING = 1,
|
||||||
BIZ_SUPPORTS_FB_HOSTING = 2,
|
BIZ_SUPPORTS_FB_HOSTING = 2,
|
||||||
UNKNOWN_GROUP = 3
|
UNKNOWN_GROUP = 3,
|
||||||
|
DEPRECATION = 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5551,6 +5555,7 @@ export namespace proto {
|
|||||||
newsletterAdminProfileMessageV2?: (proto.Message.IFutureProofMessage|null);
|
newsletterAdminProfileMessageV2?: (proto.Message.IFutureProofMessage|null);
|
||||||
spoilerMessage?: (proto.Message.IFutureProofMessage|null);
|
spoilerMessage?: (proto.Message.IFutureProofMessage|null);
|
||||||
pollCreationMessageV6?: (proto.Message.IPollCreationMessage|null);
|
pollCreationMessageV6?: (proto.Message.IPollCreationMessage|null);
|
||||||
|
conditionalRevealMessage?: (proto.Message.IConditionalRevealMessage|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class Message implements IMessage {
|
class Message implements IMessage {
|
||||||
@@ -5654,6 +5659,7 @@ export namespace proto {
|
|||||||
public newsletterAdminProfileMessageV2?: (proto.Message.IFutureProofMessage|null);
|
public newsletterAdminProfileMessageV2?: (proto.Message.IFutureProofMessage|null);
|
||||||
public spoilerMessage?: (proto.Message.IFutureProofMessage|null);
|
public spoilerMessage?: (proto.Message.IFutureProofMessage|null);
|
||||||
public pollCreationMessageV6?: (proto.Message.IPollCreationMessage|null);
|
public pollCreationMessageV6?: (proto.Message.IPollCreationMessage|null);
|
||||||
|
public conditionalRevealMessage?: (proto.Message.IConditionalRevealMessage|null);
|
||||||
public static create(properties?: proto.IMessage): proto.Message;
|
public static create(properties?: proto.IMessage): proto.Message;
|
||||||
public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message;
|
||||||
@@ -6233,6 +6239,36 @@ export namespace proto {
|
|||||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface IConditionalRevealMessage {
|
||||||
|
encPayload?: (Uint8Array|null);
|
||||||
|
encIv?: (Uint8Array|null);
|
||||||
|
conditionalRevealMessageType?: (proto.Message.ConditionalRevealMessage.ConditionalRevealMessageType|null);
|
||||||
|
revealKeyId?: (string|null);
|
||||||
|
}
|
||||||
|
|
||||||
|
class ConditionalRevealMessage implements IConditionalRevealMessage {
|
||||||
|
constructor(p?: proto.Message.IConditionalRevealMessage);
|
||||||
|
public encPayload?: (Uint8Array|null);
|
||||||
|
public encIv?: (Uint8Array|null);
|
||||||
|
public conditionalRevealMessageType?: (proto.Message.ConditionalRevealMessage.ConditionalRevealMessageType|null);
|
||||||
|
public revealKeyId?: (string|null);
|
||||||
|
public static create(properties?: proto.Message.IConditionalRevealMessage): proto.Message.ConditionalRevealMessage;
|
||||||
|
public static encode(m: proto.Message.IConditionalRevealMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ConditionalRevealMessage;
|
||||||
|
public static fromObject(d: { [k: string]: any }): proto.Message.ConditionalRevealMessage;
|
||||||
|
public static toObject(m: proto.Message.ConditionalRevealMessage, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||||
|
public toJSON(): { [k: string]: any };
|
||||||
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace ConditionalRevealMessage {
|
||||||
|
|
||||||
|
enum ConditionalRevealMessageType {
|
||||||
|
UNKNOWN = 0,
|
||||||
|
SCHEDULED_MESSAGE = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
interface IContactMessage {
|
interface IContactMessage {
|
||||||
displayName?: (string|null);
|
displayName?: (string|null);
|
||||||
vcard?: (string|null);
|
vcard?: (string|null);
|
||||||
@@ -13381,12 +13417,16 @@ export namespace proto {
|
|||||||
interface IStatusPrivacyAction {
|
interface IStatusPrivacyAction {
|
||||||
mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
|
mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
|
||||||
userJid?: (string[]|null);
|
userJid?: (string[]|null);
|
||||||
|
shareToFB?: (boolean|null);
|
||||||
|
shareToIG?: (boolean|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class StatusPrivacyAction implements IStatusPrivacyAction {
|
class StatusPrivacyAction implements IStatusPrivacyAction {
|
||||||
constructor(p?: proto.SyncActionValue.IStatusPrivacyAction);
|
constructor(p?: proto.SyncActionValue.IStatusPrivacyAction);
|
||||||
public mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
|
public mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
|
||||||
public userJid: string[];
|
public userJid: string[];
|
||||||
|
public shareToFB?: (boolean|null);
|
||||||
|
public shareToIG?: (boolean|null);
|
||||||
public static create(properties?: proto.SyncActionValue.IStatusPrivacyAction): proto.SyncActionValue.StatusPrivacyAction;
|
public static create(properties?: proto.SyncActionValue.IStatusPrivacyAction): proto.SyncActionValue.StatusPrivacyAction;
|
||||||
public static encode(m: proto.SyncActionValue.IStatusPrivacyAction, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.SyncActionValue.IStatusPrivacyAction, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.StatusPrivacyAction;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.StatusPrivacyAction;
|
||||||
|
|||||||
@@ -14874,6 +14874,10 @@ export const proto = $root.proto = (() => {
|
|||||||
case 1:
|
case 1:
|
||||||
m.useCase = 1;
|
m.useCase = 1;
|
||||||
break;
|
break;
|
||||||
|
case "WA_TEE_BOT_MSG":
|
||||||
|
case 2:
|
||||||
|
m.useCase = 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (d.signature != null) {
|
if (d.signature != null) {
|
||||||
if (typeof d.signature === "string")
|
if (typeof d.signature === "string")
|
||||||
@@ -14941,6 +14945,7 @@ export const proto = $root.proto = (() => {
|
|||||||
const valuesById = {}, values = Object.create(valuesById);
|
const valuesById = {}, values = Object.create(valuesById);
|
||||||
values[valuesById[0] = "UNSPECIFIED"] = 0;
|
values[valuesById[0] = "UNSPECIFIED"] = 0;
|
||||||
values[valuesById[1] = "WA_BOT_MSG"] = 1;
|
values[valuesById[1] = "WA_BOT_MSG"] = 1;
|
||||||
|
values[valuesById[2] = "WA_TEE_BOT_MSG"] = 2;
|
||||||
return values;
|
return values;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
@@ -26517,6 +26522,10 @@ export const proto = $root.proto = (() => {
|
|||||||
case 3:
|
case 3:
|
||||||
m.limitSharingTrigger = 3;
|
m.limitSharingTrigger = 3;
|
||||||
break;
|
break;
|
||||||
|
case "DEPRECATION":
|
||||||
|
case 4:
|
||||||
|
m.limitSharingTrigger = 4;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (d.limitSharingInitiatedByMe != null) {
|
if (d.limitSharingInitiatedByMe != null) {
|
||||||
m.limitSharingInitiatedByMe = Boolean(d.limitSharingInitiatedByMe);
|
m.limitSharingInitiatedByMe = Boolean(d.limitSharingInitiatedByMe);
|
||||||
@@ -32625,6 +32634,7 @@ export const proto = $root.proto = (() => {
|
|||||||
HistorySync.prototype.companionMetaNonce = null;
|
HistorySync.prototype.companionMetaNonce = null;
|
||||||
HistorySync.prototype.shareableChatIdentifierEncryptionKey = null;
|
HistorySync.prototype.shareableChatIdentifierEncryptionKey = null;
|
||||||
HistorySync.prototype.accounts = $util.emptyArray;
|
HistorySync.prototype.accounts = $util.emptyArray;
|
||||||
|
HistorySync.prototype.nctSalt = null;
|
||||||
|
|
||||||
let $oneOfFields;
|
let $oneOfFields;
|
||||||
|
|
||||||
@@ -32682,6 +32692,12 @@ export const proto = $root.proto = (() => {
|
|||||||
set: $util.oneOfSetter($oneOfFields)
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(HistorySync.prototype, "_nctSalt", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["nctSalt"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
HistorySync.create = function create(properties) {
|
HistorySync.create = function create(properties) {
|
||||||
return new HistorySync(properties);
|
return new HistorySync(properties);
|
||||||
};
|
};
|
||||||
@@ -32739,6 +32755,8 @@ export const proto = $root.proto = (() => {
|
|||||||
for (var i = 0; i < m.accounts.length; ++i)
|
for (var i = 0; i < m.accounts.length; ++i)
|
||||||
$root.proto.Account.encode(m.accounts[i], w.uint32(146).fork()).ldelim();
|
$root.proto.Account.encode(m.accounts[i], w.uint32(146).fork()).ldelim();
|
||||||
}
|
}
|
||||||
|
if (m.nctSalt != null && Object.hasOwnProperty.call(m, "nctSalt"))
|
||||||
|
w.uint32(154).bytes(m.nctSalt);
|
||||||
return w;
|
return w;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -32835,6 +32853,10 @@ export const proto = $root.proto = (() => {
|
|||||||
m.accounts.push($root.proto.Account.decode(r, r.uint32()));
|
m.accounts.push($root.proto.Account.decode(r, r.uint32()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 19: {
|
||||||
|
m.nctSalt = r.bytes();
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
r.skipType(t & 7);
|
r.skipType(t & 7);
|
||||||
break;
|
break;
|
||||||
@@ -33008,6 +33030,12 @@ export const proto = $root.proto = (() => {
|
|||||||
m.accounts[i] = $root.proto.Account.fromObject(d.accounts[i]);
|
m.accounts[i] = $root.proto.Account.fromObject(d.accounts[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (d.nctSalt != null) {
|
||||||
|
if (typeof d.nctSalt === "string")
|
||||||
|
$util.base64.decode(d.nctSalt, m.nctSalt = $util.newBuffer($util.base64.length(d.nctSalt)), 0);
|
||||||
|
else if (d.nctSalt.length >= 0)
|
||||||
|
m.nctSalt = d.nctSalt;
|
||||||
|
}
|
||||||
return m;
|
return m;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -33118,6 +33146,11 @@ export const proto = $root.proto = (() => {
|
|||||||
d.accounts[j] = $root.proto.Account.toObject(m.accounts[j], o);
|
d.accounts[j] = $root.proto.Account.toObject(m.accounts[j], o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (m.nctSalt != null && m.hasOwnProperty("nctSalt")) {
|
||||||
|
d.nctSalt = o.bytes === String ? $util.base64.encode(m.nctSalt, 0, m.nctSalt.length) : o.bytes === Array ? Array.prototype.slice.call(m.nctSalt) : m.nctSalt;
|
||||||
|
if (o.oneofs)
|
||||||
|
d._nctSalt = "nctSalt";
|
||||||
|
}
|
||||||
return d;
|
return d;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -36256,6 +36289,10 @@ export const proto = $root.proto = (() => {
|
|||||||
case 3:
|
case 3:
|
||||||
m.trigger = 3;
|
m.trigger = 3;
|
||||||
break;
|
break;
|
||||||
|
case "DEPRECATION":
|
||||||
|
case 4:
|
||||||
|
m.trigger = 4;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (d.limitSharingSettingTimestamp != null) {
|
if (d.limitSharingSettingTimestamp != null) {
|
||||||
if ($util.Long)
|
if ($util.Long)
|
||||||
@@ -36320,6 +36357,7 @@ export const proto = $root.proto = (() => {
|
|||||||
values[valuesById[1] = "CHAT_SETTING"] = 1;
|
values[valuesById[1] = "CHAT_SETTING"] = 1;
|
||||||
values[valuesById[2] = "BIZ_SUPPORTS_FB_HOSTING"] = 2;
|
values[valuesById[2] = "BIZ_SUPPORTS_FB_HOSTING"] = 2;
|
||||||
values[valuesById[3] = "UNKNOWN_GROUP"] = 3;
|
values[valuesById[3] = "UNKNOWN_GROUP"] = 3;
|
||||||
|
values[valuesById[4] = "DEPRECATION"] = 4;
|
||||||
return values;
|
return values;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
@@ -37373,6 +37411,7 @@ export const proto = $root.proto = (() => {
|
|||||||
Message.prototype.newsletterAdminProfileMessageV2 = null;
|
Message.prototype.newsletterAdminProfileMessageV2 = null;
|
||||||
Message.prototype.spoilerMessage = null;
|
Message.prototype.spoilerMessage = null;
|
||||||
Message.prototype.pollCreationMessageV6 = null;
|
Message.prototype.pollCreationMessageV6 = null;
|
||||||
|
Message.prototype.conditionalRevealMessage = null;
|
||||||
|
|
||||||
let $oneOfFields;
|
let $oneOfFields;
|
||||||
|
|
||||||
@@ -37970,6 +38009,12 @@ export const proto = $root.proto = (() => {
|
|||||||
set: $util.oneOfSetter($oneOfFields)
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(Message.prototype, "_conditionalRevealMessage", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["conditionalRevealMessage"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
Message.create = function create(properties) {
|
Message.create = function create(properties) {
|
||||||
return new Message(properties);
|
return new Message(properties);
|
||||||
};
|
};
|
||||||
@@ -38175,6 +38220,8 @@ export const proto = $root.proto = (() => {
|
|||||||
$root.proto.Message.FutureProofMessage.encode(m.spoilerMessage, w.uint32(946).fork()).ldelim();
|
$root.proto.Message.FutureProofMessage.encode(m.spoilerMessage, w.uint32(946).fork()).ldelim();
|
||||||
if (m.pollCreationMessageV6 != null && Object.hasOwnProperty.call(m, "pollCreationMessageV6"))
|
if (m.pollCreationMessageV6 != null && Object.hasOwnProperty.call(m, "pollCreationMessageV6"))
|
||||||
$root.proto.Message.PollCreationMessage.encode(m.pollCreationMessageV6, w.uint32(954).fork()).ldelim();
|
$root.proto.Message.PollCreationMessage.encode(m.pollCreationMessageV6, w.uint32(954).fork()).ldelim();
|
||||||
|
if (m.conditionalRevealMessage != null && Object.hasOwnProperty.call(m, "conditionalRevealMessage"))
|
||||||
|
$root.proto.Message.ConditionalRevealMessage.encode(m.conditionalRevealMessage, w.uint32(962).fork()).ldelim();
|
||||||
return w;
|
return w;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -38583,6 +38630,10 @@ export const proto = $root.proto = (() => {
|
|||||||
m.pollCreationMessageV6 = $root.proto.Message.PollCreationMessage.decode(r, r.uint32());
|
m.pollCreationMessageV6 = $root.proto.Message.PollCreationMessage.decode(r, r.uint32());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 120: {
|
||||||
|
m.conditionalRevealMessage = $root.proto.Message.ConditionalRevealMessage.decode(r, r.uint32());
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
r.skipType(t & 7);
|
r.skipType(t & 7);
|
||||||
break;
|
break;
|
||||||
@@ -39088,6 +39139,11 @@ export const proto = $root.proto = (() => {
|
|||||||
throw TypeError(".proto.Message.pollCreationMessageV6: object expected");
|
throw TypeError(".proto.Message.pollCreationMessageV6: object expected");
|
||||||
m.pollCreationMessageV6 = $root.proto.Message.PollCreationMessage.fromObject(d.pollCreationMessageV6);
|
m.pollCreationMessageV6 = $root.proto.Message.PollCreationMessage.fromObject(d.pollCreationMessageV6);
|
||||||
}
|
}
|
||||||
|
if (d.conditionalRevealMessage != null) {
|
||||||
|
if (typeof d.conditionalRevealMessage !== "object")
|
||||||
|
throw TypeError(".proto.Message.conditionalRevealMessage: object expected");
|
||||||
|
m.conditionalRevealMessage = $root.proto.Message.ConditionalRevealMessage.fromObject(d.conditionalRevealMessage);
|
||||||
|
}
|
||||||
return m;
|
return m;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -39590,6 +39646,11 @@ export const proto = $root.proto = (() => {
|
|||||||
if (o.oneofs)
|
if (o.oneofs)
|
||||||
d._pollCreationMessageV6 = "pollCreationMessageV6";
|
d._pollCreationMessageV6 = "pollCreationMessageV6";
|
||||||
}
|
}
|
||||||
|
if (m.conditionalRevealMessage != null && m.hasOwnProperty("conditionalRevealMessage")) {
|
||||||
|
d.conditionalRevealMessage = $root.proto.Message.ConditionalRevealMessage.toObject(m.conditionalRevealMessage, o);
|
||||||
|
if (o.oneofs)
|
||||||
|
d._conditionalRevealMessage = "conditionalRevealMessage";
|
||||||
|
}
|
||||||
return d;
|
return d;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -43409,6 +43470,183 @@ export const proto = $root.proto = (() => {
|
|||||||
return CommentMessage;
|
return CommentMessage;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Message.ConditionalRevealMessage = (function() {
|
||||||
|
|
||||||
|
function ConditionalRevealMessage(p) {
|
||||||
|
if (p)
|
||||||
|
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
||||||
|
if (p[ks[i]] != null)
|
||||||
|
this[ks[i]] = p[ks[i]];
|
||||||
|
}
|
||||||
|
|
||||||
|
ConditionalRevealMessage.prototype.encPayload = null;
|
||||||
|
ConditionalRevealMessage.prototype.encIv = null;
|
||||||
|
ConditionalRevealMessage.prototype.conditionalRevealMessageType = null;
|
||||||
|
ConditionalRevealMessage.prototype.revealKeyId = null;
|
||||||
|
|
||||||
|
let $oneOfFields;
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(ConditionalRevealMessage.prototype, "_encPayload", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["encPayload"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(ConditionalRevealMessage.prototype, "_encIv", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["encIv"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(ConditionalRevealMessage.prototype, "_conditionalRevealMessageType", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["conditionalRevealMessageType"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(ConditionalRevealMessage.prototype, "_revealKeyId", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["revealKeyId"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
|
ConditionalRevealMessage.create = function create(properties) {
|
||||||
|
return new ConditionalRevealMessage(properties);
|
||||||
|
};
|
||||||
|
|
||||||
|
ConditionalRevealMessage.encode = function encode(m, w) {
|
||||||
|
if (!w)
|
||||||
|
w = $Writer.create();
|
||||||
|
if (m.encPayload != null && Object.hasOwnProperty.call(m, "encPayload"))
|
||||||
|
w.uint32(10).bytes(m.encPayload);
|
||||||
|
if (m.encIv != null && Object.hasOwnProperty.call(m, "encIv"))
|
||||||
|
w.uint32(18).bytes(m.encIv);
|
||||||
|
if (m.conditionalRevealMessageType != null && Object.hasOwnProperty.call(m, "conditionalRevealMessageType"))
|
||||||
|
w.uint32(24).int32(m.conditionalRevealMessageType);
|
||||||
|
if (m.revealKeyId != null && Object.hasOwnProperty.call(m, "revealKeyId"))
|
||||||
|
w.uint32(34).string(m.revealKeyId);
|
||||||
|
return w;
|
||||||
|
};
|
||||||
|
|
||||||
|
ConditionalRevealMessage.decode = function decode(r, l, e) {
|
||||||
|
if (!(r instanceof $Reader))
|
||||||
|
r = $Reader.create(r);
|
||||||
|
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.ConditionalRevealMessage();
|
||||||
|
while (r.pos < c) {
|
||||||
|
var t = r.uint32();
|
||||||
|
if (t === e)
|
||||||
|
break;
|
||||||
|
switch (t >>> 3) {
|
||||||
|
case 1: {
|
||||||
|
m.encPayload = r.bytes();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 2: {
|
||||||
|
m.encIv = r.bytes();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 3: {
|
||||||
|
m.conditionalRevealMessageType = r.int32();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 4: {
|
||||||
|
m.revealKeyId = r.string();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
r.skipType(t & 7);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return m;
|
||||||
|
};
|
||||||
|
|
||||||
|
ConditionalRevealMessage.fromObject = function fromObject(d) {
|
||||||
|
if (d instanceof $root.proto.Message.ConditionalRevealMessage)
|
||||||
|
return d;
|
||||||
|
var m = new $root.proto.Message.ConditionalRevealMessage();
|
||||||
|
if (d.encPayload != null) {
|
||||||
|
if (typeof d.encPayload === "string")
|
||||||
|
$util.base64.decode(d.encPayload, m.encPayload = $util.newBuffer($util.base64.length(d.encPayload)), 0);
|
||||||
|
else if (d.encPayload.length >= 0)
|
||||||
|
m.encPayload = d.encPayload;
|
||||||
|
}
|
||||||
|
if (d.encIv != null) {
|
||||||
|
if (typeof d.encIv === "string")
|
||||||
|
$util.base64.decode(d.encIv, m.encIv = $util.newBuffer($util.base64.length(d.encIv)), 0);
|
||||||
|
else if (d.encIv.length >= 0)
|
||||||
|
m.encIv = d.encIv;
|
||||||
|
}
|
||||||
|
switch (d.conditionalRevealMessageType) {
|
||||||
|
default:
|
||||||
|
if (typeof d.conditionalRevealMessageType === "number") {
|
||||||
|
m.conditionalRevealMessageType = d.conditionalRevealMessageType;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "UNKNOWN":
|
||||||
|
case 0:
|
||||||
|
m.conditionalRevealMessageType = 0;
|
||||||
|
break;
|
||||||
|
case "SCHEDULED_MESSAGE":
|
||||||
|
case 1:
|
||||||
|
m.conditionalRevealMessageType = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (d.revealKeyId != null) {
|
||||||
|
m.revealKeyId = String(d.revealKeyId);
|
||||||
|
}
|
||||||
|
return m;
|
||||||
|
};
|
||||||
|
|
||||||
|
ConditionalRevealMessage.toObject = function toObject(m, o) {
|
||||||
|
if (!o)
|
||||||
|
o = {};
|
||||||
|
var d = {};
|
||||||
|
if (m.encPayload != null && m.hasOwnProperty("encPayload")) {
|
||||||
|
d.encPayload = o.bytes === String ? $util.base64.encode(m.encPayload, 0, m.encPayload.length) : o.bytes === Array ? Array.prototype.slice.call(m.encPayload) : m.encPayload;
|
||||||
|
if (o.oneofs)
|
||||||
|
d._encPayload = "encPayload";
|
||||||
|
}
|
||||||
|
if (m.encIv != null && m.hasOwnProperty("encIv")) {
|
||||||
|
d.encIv = o.bytes === String ? $util.base64.encode(m.encIv, 0, m.encIv.length) : o.bytes === Array ? Array.prototype.slice.call(m.encIv) : m.encIv;
|
||||||
|
if (o.oneofs)
|
||||||
|
d._encIv = "encIv";
|
||||||
|
}
|
||||||
|
if (m.conditionalRevealMessageType != null && m.hasOwnProperty("conditionalRevealMessageType")) {
|
||||||
|
d.conditionalRevealMessageType = o.enums === String ? $root.proto.Message.ConditionalRevealMessage.ConditionalRevealMessageType[m.conditionalRevealMessageType] === undefined ? m.conditionalRevealMessageType : $root.proto.Message.ConditionalRevealMessage.ConditionalRevealMessageType[m.conditionalRevealMessageType] : m.conditionalRevealMessageType;
|
||||||
|
if (o.oneofs)
|
||||||
|
d._conditionalRevealMessageType = "conditionalRevealMessageType";
|
||||||
|
}
|
||||||
|
if (m.revealKeyId != null && m.hasOwnProperty("revealKeyId")) {
|
||||||
|
d.revealKeyId = m.revealKeyId;
|
||||||
|
if (o.oneofs)
|
||||||
|
d._revealKeyId = "revealKeyId";
|
||||||
|
}
|
||||||
|
return d;
|
||||||
|
};
|
||||||
|
|
||||||
|
ConditionalRevealMessage.prototype.toJSON = function toJSON() {
|
||||||
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
||||||
|
};
|
||||||
|
|
||||||
|
ConditionalRevealMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
||||||
|
if (typeUrlPrefix === undefined) {
|
||||||
|
typeUrlPrefix = "type.googleapis.com";
|
||||||
|
}
|
||||||
|
return typeUrlPrefix + "/proto.Message.ConditionalRevealMessage";
|
||||||
|
};
|
||||||
|
|
||||||
|
ConditionalRevealMessage.ConditionalRevealMessageType = (function() {
|
||||||
|
const valuesById = {}, values = Object.create(valuesById);
|
||||||
|
values[valuesById[0] = "UNKNOWN"] = 0;
|
||||||
|
values[valuesById[1] = "SCHEDULED_MESSAGE"] = 1;
|
||||||
|
return values;
|
||||||
|
})();
|
||||||
|
|
||||||
|
return ConditionalRevealMessage;
|
||||||
|
})();
|
||||||
|
|
||||||
Message.ContactMessage = (function() {
|
Message.ContactMessage = (function() {
|
||||||
|
|
||||||
function ContactMessage(p) {
|
function ContactMessage(p) {
|
||||||
@@ -92610,6 +92848,8 @@ export const proto = $root.proto = (() => {
|
|||||||
|
|
||||||
StatusPrivacyAction.prototype.mode = null;
|
StatusPrivacyAction.prototype.mode = null;
|
||||||
StatusPrivacyAction.prototype.userJid = $util.emptyArray;
|
StatusPrivacyAction.prototype.userJid = $util.emptyArray;
|
||||||
|
StatusPrivacyAction.prototype.shareToFB = null;
|
||||||
|
StatusPrivacyAction.prototype.shareToIG = null;
|
||||||
|
|
||||||
let $oneOfFields;
|
let $oneOfFields;
|
||||||
|
|
||||||
@@ -92619,6 +92859,18 @@ export const proto = $root.proto = (() => {
|
|||||||
set: $util.oneOfSetter($oneOfFields)
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(StatusPrivacyAction.prototype, "_shareToFB", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["shareToFB"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
|
// Virtual OneOf for proto3 optional field
|
||||||
|
Object.defineProperty(StatusPrivacyAction.prototype, "_shareToIG", {
|
||||||
|
get: $util.oneOfGetter($oneOfFields = ["shareToIG"]),
|
||||||
|
set: $util.oneOfSetter($oneOfFields)
|
||||||
|
});
|
||||||
|
|
||||||
StatusPrivacyAction.create = function create(properties) {
|
StatusPrivacyAction.create = function create(properties) {
|
||||||
return new StatusPrivacyAction(properties);
|
return new StatusPrivacyAction(properties);
|
||||||
};
|
};
|
||||||
@@ -92632,6 +92884,10 @@ export const proto = $root.proto = (() => {
|
|||||||
for (var i = 0; i < m.userJid.length; ++i)
|
for (var i = 0; i < m.userJid.length; ++i)
|
||||||
w.uint32(18).string(m.userJid[i]);
|
w.uint32(18).string(m.userJid[i]);
|
||||||
}
|
}
|
||||||
|
if (m.shareToFB != null && Object.hasOwnProperty.call(m, "shareToFB"))
|
||||||
|
w.uint32(24).bool(m.shareToFB);
|
||||||
|
if (m.shareToIG != null && Object.hasOwnProperty.call(m, "shareToIG"))
|
||||||
|
w.uint32(32).bool(m.shareToIG);
|
||||||
return w;
|
return w;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -92654,6 +92910,14 @@ export const proto = $root.proto = (() => {
|
|||||||
m.userJid.push(r.string());
|
m.userJid.push(r.string());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 3: {
|
||||||
|
m.shareToFB = r.bool();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 4: {
|
||||||
|
m.shareToIG = r.bool();
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
r.skipType(t & 7);
|
r.skipType(t & 7);
|
||||||
break;
|
break;
|
||||||
@@ -92698,6 +92962,12 @@ export const proto = $root.proto = (() => {
|
|||||||
m.userJid[i] = String(d.userJid[i]);
|
m.userJid[i] = String(d.userJid[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (d.shareToFB != null) {
|
||||||
|
m.shareToFB = Boolean(d.shareToFB);
|
||||||
|
}
|
||||||
|
if (d.shareToIG != null) {
|
||||||
|
m.shareToIG = Boolean(d.shareToIG);
|
||||||
|
}
|
||||||
return m;
|
return m;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -92719,6 +92989,16 @@ export const proto = $root.proto = (() => {
|
|||||||
d.userJid[j] = m.userJid[j];
|
d.userJid[j] = m.userJid[j];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (m.shareToFB != null && m.hasOwnProperty("shareToFB")) {
|
||||||
|
d.shareToFB = m.shareToFB;
|
||||||
|
if (o.oneofs)
|
||||||
|
d._shareToFB = "shareToFB";
|
||||||
|
}
|
||||||
|
if (m.shareToIG != null && m.hasOwnProperty("shareToIG")) {
|
||||||
|
d.shareToIG = m.shareToIG;
|
||||||
|
if (o.oneofs)
|
||||||
|
d._shareToIG = "shareToIG";
|
||||||
|
}
|
||||||
return d;
|
return d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":[2,3000,1034014848]}
|
{"version": [2, 3000, 1034095029]}
|
||||||
|
|||||||
Reference in New Issue
Block a user