chore: update proto

This commit is contained in:
Adhiraj Singh
2022-11-06 15:35:29 +05:30
parent 5e28d23460
commit 115073e9e2
3 changed files with 614 additions and 4 deletions

View File

@@ -43,6 +43,11 @@ message AutoDownloadSettings {
optional bool downloadDocuments = 4; optional bool downloadDocuments = 4;
} }
message AvatarUserSettings {
optional string fbid = 1;
optional string password = 2;
}
message BizAccountLinkInfo { message BizAccountLinkInfo {
optional uint64 whatsappBizAcctFbid = 1; optional uint64 whatsappBizAcctFbid = 1;
optional string whatsappAcctNumber = 2; optional string whatsappAcctNumber = 2;
@@ -403,6 +408,7 @@ message Conversation {
optional string pnJid = 39; optional string pnJid = 39;
optional bool shareOwnPn = 40; optional bool shareOwnPn = 40;
optional bool pnhDuplicateLidThread = 41; optional bool pnhDuplicateLidThread = 41;
optional string lidJid = 42;
enum EndOfHistoryTransferType { enum EndOfHistoryTransferType {
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0; COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1; COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
@@ -435,6 +441,7 @@ message DeviceProps {
message HistorySyncConfig { message HistorySyncConfig {
optional uint32 fullSyncDaysLimit = 1; optional uint32 fullSyncDaysLimit = 1;
optional uint32 fullSyncSizeMbLimit = 2; optional uint32 fullSyncSizeMbLimit = 2;
optional uint32 storageQuotaMb = 3;
} }
enum PlatformType { enum PlatformType {
@@ -494,6 +501,7 @@ message GlobalSettings {
optional bool showGroupNotificationsPreview = 8; optional bool showGroupNotificationsPreview = 8;
optional int32 disappearingModeDuration = 9; optional int32 disappearingModeDuration = 9;
optional int64 disappearingModeTimestamp = 10; optional int64 disappearingModeTimestamp = 10;
optional AvatarUserSettings avatarUserSettings = 11;
} }
message GroupParticipant { message GroupParticipant {
@@ -1000,6 +1008,7 @@ message Message {
optional uint32 chunkOrder = 7; optional uint32 chunkOrder = 7;
optional string originalMessageId = 8; optional string originalMessageId = 8;
optional uint32 progress = 9; optional uint32 progress = 9;
optional int64 oldestMsgInChunkTimestampSec = 10;
enum HistorySyncType { enum HistorySyncType {
INITIAL_BOOTSTRAP = 0; INITIAL_BOOTSTRAP = 0;
INITIAL_STATUS_V3 = 1; INITIAL_STATUS_V3 = 1;
@@ -1469,9 +1478,11 @@ message Message {
message TemplateMessage { message TemplateMessage {
optional ContextInfo contextInfo = 3; optional ContextInfo contextInfo = 3;
optional HydratedFourRowTemplate hydratedTemplate = 4; optional HydratedFourRowTemplate hydratedTemplate = 4;
optional string templateId = 9;
oneof format { oneof format {
Message.TemplateMessage.FourRowTemplate fourRowTemplate = 1; Message.TemplateMessage.FourRowTemplate fourRowTemplate = 1;
Message.TemplateMessage.HydratedFourRowTemplate hydratedFourRowTemplate = 2; Message.TemplateMessage.HydratedFourRowTemplate hydratedFourRowTemplate = 2;
Message.InteractiveMessage interactiveMessageTemplate = 5;
} }
message FourRowTemplate { message FourRowTemplate {
optional Message.HighlyStructuredMessage content = 6; optional Message.HighlyStructuredMessage content = 6;
@@ -1932,6 +1943,7 @@ message SyncActionValue {
message ContactAction { message ContactAction {
optional string fullName = 1; optional string fullName = 1;
optional string firstName = 2; optional string firstName = 2;
optional string lidJid = 3;
} }
message DeleteChatAction { message DeleteChatAction {
@@ -1970,6 +1982,7 @@ message SyncActionValue {
message MuteAction { message MuteAction {
optional bool muted = 1; optional bool muted = 1;
optional int64 muteEndTimestamp = 2; optional int64 muteEndTimestamp = 2;
optional bool autoMuted = 3;
} }
message NuxAction { message NuxAction {
@@ -2432,6 +2445,10 @@ message WebMessageInfo {
CHAT_PSA = 155; CHAT_PSA = 155;
CHAT_POLL_CREATION_MESSAGE = 156; CHAT_POLL_CREATION_MESSAGE = 156;
CAG_MASKED_THREAD_CREATED = 157; CAG_MASKED_THREAD_CREATED = 157;
COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED = 158;
CAG_INVITE_AUTO_ADD = 159;
BIZ_CHAT_ASSIGNMENT_UNASSIGN = 160;
CAG_INVITE_AUTO_JOINED = 161;
} }
} }

152
WAProto/index.d.ts vendored
View File

@@ -716,6 +716,102 @@ export namespace proto {
public toJSON(): { [k: string]: any }; public toJSON(): { [k: string]: any };
} }
/** Properties of an AvatarUserSettings. */
interface IAvatarUserSettings {
/** AvatarUserSettings fbid */
fbid?: (string|null);
/** AvatarUserSettings password */
password?: (string|null);
}
/** Represents an AvatarUserSettings. */
class AvatarUserSettings implements IAvatarUserSettings {
/**
* Constructs a new AvatarUserSettings.
* @param [properties] Properties to set
*/
constructor(properties?: proto.IAvatarUserSettings);
/** AvatarUserSettings fbid. */
public fbid: string;
/** AvatarUserSettings password. */
public password: string;
/**
* Creates a new AvatarUserSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns AvatarUserSettings instance
*/
public static create(properties?: proto.IAvatarUserSettings): proto.AvatarUserSettings;
/**
* Encodes the specified AvatarUserSettings message. Does not implicitly {@link proto.AvatarUserSettings.verify|verify} messages.
* @param message AvatarUserSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.IAvatarUserSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AvatarUserSettings message, length delimited. Does not implicitly {@link proto.AvatarUserSettings.verify|verify} messages.
* @param message AvatarUserSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.IAvatarUserSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an AvatarUserSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AvatarUserSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proto.AvatarUserSettings;
/**
* Decodes an AvatarUserSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AvatarUserSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proto.AvatarUserSettings;
/**
* Verifies an AvatarUserSettings message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates an AvatarUserSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AvatarUserSettings
*/
public static fromObject(object: { [k: string]: any }): proto.AvatarUserSettings;
/**
* Creates a plain object from an AvatarUserSettings message. Also converts values to other types if specified.
* @param message AvatarUserSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.AvatarUserSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AvatarUserSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a BizAccountLinkInfo. */ /** Properties of a BizAccountLinkInfo. */
interface IBizAccountLinkInfo { interface IBizAccountLinkInfo {
@@ -3387,6 +3483,9 @@ export namespace proto {
/** Conversation pnhDuplicateLidThread */ /** Conversation pnhDuplicateLidThread */
pnhDuplicateLidThread?: (boolean|null); pnhDuplicateLidThread?: (boolean|null);
/** Conversation lidJid */
lidJid?: (string|null);
} }
/** Represents a Conversation. */ /** Represents a Conversation. */
@@ -3521,6 +3620,9 @@ export namespace proto {
/** Conversation pnhDuplicateLidThread. */ /** Conversation pnhDuplicateLidThread. */
public pnhDuplicateLidThread: boolean; public pnhDuplicateLidThread: boolean;
/** Conversation lidJid. */
public lidJid: string;
/** /**
* Creates a new Conversation instance using the specified properties. * Creates a new Conversation instance using the specified properties.
* @param [properties] Properties to set * @param [properties] Properties to set
@@ -3959,6 +4061,9 @@ export namespace proto {
/** HistorySyncConfig fullSyncSizeMbLimit */ /** HistorySyncConfig fullSyncSizeMbLimit */
fullSyncSizeMbLimit?: (number|null); fullSyncSizeMbLimit?: (number|null);
/** HistorySyncConfig storageQuotaMb */
storageQuotaMb?: (number|null);
} }
/** Represents a HistorySyncConfig. */ /** Represents a HistorySyncConfig. */
@@ -3976,6 +4081,9 @@ export namespace proto {
/** HistorySyncConfig fullSyncSizeMbLimit. */ /** HistorySyncConfig fullSyncSizeMbLimit. */
public fullSyncSizeMbLimit: number; public fullSyncSizeMbLimit: number;
/** HistorySyncConfig storageQuotaMb. */
public storageQuotaMb: number;
/** /**
* Creates a new HistorySyncConfig instance using the specified properties. * Creates a new HistorySyncConfig instance using the specified properties.
* @param [properties] Properties to set * @param [properties] Properties to set
@@ -4510,6 +4618,9 @@ export namespace proto {
/** GlobalSettings disappearingModeTimestamp */ /** GlobalSettings disappearingModeTimestamp */
disappearingModeTimestamp?: (number|Long|null); disappearingModeTimestamp?: (number|Long|null);
/** GlobalSettings avatarUserSettings */
avatarUserSettings?: (proto.IAvatarUserSettings|null);
} }
/** Represents a GlobalSettings. */ /** Represents a GlobalSettings. */
@@ -4551,6 +4662,9 @@ export namespace proto {
/** GlobalSettings disappearingModeTimestamp. */ /** GlobalSettings disappearingModeTimestamp. */
public disappearingModeTimestamp: (number|Long); public disappearingModeTimestamp: (number|Long);
/** GlobalSettings avatarUserSettings. */
public avatarUserSettings?: (proto.IAvatarUserSettings|null);
/** /**
* Creates a new GlobalSettings instance using the specified properties. * Creates a new GlobalSettings instance using the specified properties.
* @param [properties] Properties to set * @param [properties] Properties to set
@@ -10601,6 +10715,9 @@ export namespace proto {
/** HistorySyncNotification progress */ /** HistorySyncNotification progress */
progress?: (number|null); progress?: (number|null);
/** HistorySyncNotification oldestMsgInChunkTimestampSec */
oldestMsgInChunkTimestampSec?: (number|Long|null);
} }
/** Represents a HistorySyncNotification. */ /** Represents a HistorySyncNotification. */
@@ -10639,6 +10756,9 @@ export namespace proto {
/** HistorySyncNotification progress. */ /** HistorySyncNotification progress. */
public progress: number; public progress: number;
/** HistorySyncNotification oldestMsgInChunkTimestampSec. */
public oldestMsgInChunkTimestampSec: (number|Long);
/** /**
* Creates a new HistorySyncNotification instance using the specified properties. * Creates a new HistorySyncNotification instance using the specified properties.
* @param [properties] Properties to set * @param [properties] Properties to set
@@ -16681,11 +16801,17 @@ export namespace proto {
/** TemplateMessage hydratedTemplate */ /** TemplateMessage hydratedTemplate */
hydratedTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null); hydratedTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage templateId */
templateId?: (string|null);
/** TemplateMessage fourRowTemplate */ /** TemplateMessage fourRowTemplate */
fourRowTemplate?: (proto.Message.TemplateMessage.IFourRowTemplate|null); fourRowTemplate?: (proto.Message.TemplateMessage.IFourRowTemplate|null);
/** TemplateMessage hydratedFourRowTemplate */ /** TemplateMessage hydratedFourRowTemplate */
hydratedFourRowTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null); hydratedFourRowTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage interactiveMessageTemplate */
interactiveMessageTemplate?: (proto.Message.IInteractiveMessage|null);
} }
/** Represents a TemplateMessage. */ /** Represents a TemplateMessage. */
@@ -16703,14 +16829,20 @@ export namespace proto {
/** TemplateMessage hydratedTemplate. */ /** TemplateMessage hydratedTemplate. */
public hydratedTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null); public hydratedTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage templateId. */
public templateId: string;
/** TemplateMessage fourRowTemplate. */ /** TemplateMessage fourRowTemplate. */
public fourRowTemplate?: (proto.Message.TemplateMessage.IFourRowTemplate|null); public fourRowTemplate?: (proto.Message.TemplateMessage.IFourRowTemplate|null);
/** TemplateMessage hydratedFourRowTemplate. */ /** TemplateMessage hydratedFourRowTemplate. */
public hydratedFourRowTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null); public hydratedFourRowTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage interactiveMessageTemplate. */
public interactiveMessageTemplate?: (proto.Message.IInteractiveMessage|null);
/** TemplateMessage format. */ /** TemplateMessage format. */
public format?: ("fourRowTemplate"|"hydratedFourRowTemplate"); public format?: ("fourRowTemplate"|"hydratedFourRowTemplate"|"interactiveMessageTemplate");
/** /**
* Creates a new TemplateMessage instance using the specified properties. * Creates a new TemplateMessage instance using the specified properties.
@@ -22310,6 +22442,9 @@ export namespace proto {
/** ContactAction firstName */ /** ContactAction firstName */
firstName?: (string|null); firstName?: (string|null);
/** ContactAction lidJid */
lidJid?: (string|null);
} }
/** Represents a ContactAction. */ /** Represents a ContactAction. */
@@ -22327,6 +22462,9 @@ export namespace proto {
/** ContactAction firstName. */ /** ContactAction firstName. */
public firstName: string; public firstName: string;
/** ContactAction lidJid. */
public lidJid: string;
/** /**
* Creates a new ContactAction instance using the specified properties. * Creates a new ContactAction instance using the specified properties.
* @param [properties] Properties to set * @param [properties] Properties to set
@@ -23066,6 +23204,9 @@ export namespace proto {
/** MuteAction muteEndTimestamp */ /** MuteAction muteEndTimestamp */
muteEndTimestamp?: (number|Long|null); muteEndTimestamp?: (number|Long|null);
/** MuteAction autoMuted */
autoMuted?: (boolean|null);
} }
/** Represents a MuteAction. */ /** Represents a MuteAction. */
@@ -23083,6 +23224,9 @@ export namespace proto {
/** MuteAction muteEndTimestamp. */ /** MuteAction muteEndTimestamp. */
public muteEndTimestamp: (number|Long); public muteEndTimestamp: (number|Long);
/** MuteAction autoMuted. */
public autoMuted: boolean;
/** /**
* Creates a new MuteAction instance using the specified properties. * Creates a new MuteAction instance using the specified properties.
* @param [properties] Properties to set * @param [properties] Properties to set
@@ -27323,7 +27467,11 @@ export namespace proto {
BIZ_CHAT_ASSIGNMENT = 154, BIZ_CHAT_ASSIGNMENT = 154,
CHAT_PSA = 155, CHAT_PSA = 155,
CHAT_POLL_CREATION_MESSAGE = 156, CHAT_POLL_CREATION_MESSAGE = 156,
CAG_MASKED_THREAD_CREATED = 157 CAG_MASKED_THREAD_CREATED = 157,
COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED = 158,
CAG_INVITE_AUTO_ADD = 159,
BIZ_CHAT_ASSIGNMENT_UNASSIGN = 160,
CAG_INVITE_AUTO_JOINED = 161
} }
} }

View File

@@ -1767,6 +1767,216 @@ $root.proto = (function() {
return AutoDownloadSettings; return AutoDownloadSettings;
})(); })();
proto.AvatarUserSettings = (function() {
/**
* Properties of an AvatarUserSettings.
* @memberof proto
* @interface IAvatarUserSettings
* @property {string|null} [fbid] AvatarUserSettings fbid
* @property {string|null} [password] AvatarUserSettings password
*/
/**
* Constructs a new AvatarUserSettings.
* @memberof proto
* @classdesc Represents an AvatarUserSettings.
* @implements IAvatarUserSettings
* @constructor
* @param {proto.IAvatarUserSettings=} [properties] Properties to set
*/
function AvatarUserSettings(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
this[keys[i]] = properties[keys[i]];
}
/**
* AvatarUserSettings fbid.
* @member {string} fbid
* @memberof proto.AvatarUserSettings
* @instance
*/
AvatarUserSettings.prototype.fbid = "";
/**
* AvatarUserSettings password.
* @member {string} password
* @memberof proto.AvatarUserSettings
* @instance
*/
AvatarUserSettings.prototype.password = "";
/**
* Creates a new AvatarUserSettings instance using the specified properties.
* @function create
* @memberof proto.AvatarUserSettings
* @static
* @param {proto.IAvatarUserSettings=} [properties] Properties to set
* @returns {proto.AvatarUserSettings} AvatarUserSettings instance
*/
AvatarUserSettings.create = function create(properties) {
return new AvatarUserSettings(properties);
};
/**
* Encodes the specified AvatarUserSettings message. Does not implicitly {@link proto.AvatarUserSettings.verify|verify} messages.
* @function encode
* @memberof proto.AvatarUserSettings
* @static
* @param {proto.IAvatarUserSettings} message AvatarUserSettings message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
AvatarUserSettings.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.fbid != null && Object.hasOwnProperty.call(message, "fbid"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fbid);
if (message.password != null && Object.hasOwnProperty.call(message, "password"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.password);
return writer;
};
/**
* Encodes the specified AvatarUserSettings message, length delimited. Does not implicitly {@link proto.AvatarUserSettings.verify|verify} messages.
* @function encodeDelimited
* @memberof proto.AvatarUserSettings
* @static
* @param {proto.IAvatarUserSettings} message AvatarUserSettings message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
AvatarUserSettings.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
* Decodes an AvatarUserSettings message from the specified reader or buffer.
* @function decode
* @memberof proto.AvatarUserSettings
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
* @returns {proto.AvatarUserSettings} AvatarUserSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
AvatarUserSettings.decode = function decode(reader, length) {
if (!(reader instanceof $Reader))
reader = $Reader.create(reader);
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.AvatarUserSettings();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.fbid = reader.string();
break;
case 2:
message.password = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
};
/**
* Decodes an AvatarUserSettings message from the specified reader or buffer, length delimited.
* @function decodeDelimited
* @memberof proto.AvatarUserSettings
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @returns {proto.AvatarUserSettings} AvatarUserSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
AvatarUserSettings.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
* Verifies an AvatarUserSettings message.
* @function verify
* @memberof proto.AvatarUserSettings
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
AvatarUserSettings.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.fbid != null && message.hasOwnProperty("fbid"))
if (!$util.isString(message.fbid))
return "fbid: string expected";
if (message.password != null && message.hasOwnProperty("password"))
if (!$util.isString(message.password))
return "password: string expected";
return null;
};
/**
* Creates an AvatarUserSettings message from a plain object. Also converts values to their respective internal types.
* @function fromObject
* @memberof proto.AvatarUserSettings
* @static
* @param {Object.<string,*>} object Plain object
* @returns {proto.AvatarUserSettings} AvatarUserSettings
*/
AvatarUserSettings.fromObject = function fromObject(object) {
if (object instanceof $root.proto.AvatarUserSettings)
return object;
var message = new $root.proto.AvatarUserSettings();
if (object.fbid != null)
message.fbid = String(object.fbid);
if (object.password != null)
message.password = String(object.password);
return message;
};
/**
* Creates a plain object from an AvatarUserSettings message. Also converts values to other types if specified.
* @function toObject
* @memberof proto.AvatarUserSettings
* @static
* @param {proto.AvatarUserSettings} message AvatarUserSettings
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.<string,*>} Plain object
*/
AvatarUserSettings.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.fbid = "";
object.password = "";
}
if (message.fbid != null && message.hasOwnProperty("fbid"))
object.fbid = message.fbid;
if (message.password != null && message.hasOwnProperty("password"))
object.password = message.password;
return object;
};
/**
* Converts this AvatarUserSettings to JSON.
* @function toJSON
* @memberof proto.AvatarUserSettings
* @instance
* @returns {Object.<string,*>} JSON object
*/
AvatarUserSettings.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
return AvatarUserSettings;
})();
proto.BizAccountLinkInfo = (function() { proto.BizAccountLinkInfo = (function() {
/** /**
@@ -9237,6 +9447,7 @@ $root.proto = (function() {
* @property {string|null} [pnJid] Conversation pnJid * @property {string|null} [pnJid] Conversation pnJid
* @property {boolean|null} [shareOwnPn] Conversation shareOwnPn * @property {boolean|null} [shareOwnPn] Conversation shareOwnPn
* @property {boolean|null} [pnhDuplicateLidThread] Conversation pnhDuplicateLidThread * @property {boolean|null} [pnhDuplicateLidThread] Conversation pnhDuplicateLidThread
* @property {string|null} [lidJid] Conversation lidJid
*/ */
/** /**
@@ -9584,6 +9795,14 @@ $root.proto = (function() {
*/ */
Conversation.prototype.pnhDuplicateLidThread = false; Conversation.prototype.pnhDuplicateLidThread = false;
/**
* Conversation lidJid.
* @member {string} lidJid
* @memberof proto.Conversation
* @instance
*/
Conversation.prototype.lidJid = "";
/** /**
* Creates a new Conversation instance using the specified properties. * Creates a new Conversation instance using the specified properties.
* @function create * @function create
@@ -9691,6 +9910,8 @@ $root.proto = (function() {
writer.uint32(/* id 40, wireType 0 =*/320).bool(message.shareOwnPn); writer.uint32(/* id 40, wireType 0 =*/320).bool(message.shareOwnPn);
if (message.pnhDuplicateLidThread != null && Object.hasOwnProperty.call(message, "pnhDuplicateLidThread")) if (message.pnhDuplicateLidThread != null && Object.hasOwnProperty.call(message, "pnhDuplicateLidThread"))
writer.uint32(/* id 41, wireType 0 =*/328).bool(message.pnhDuplicateLidThread); writer.uint32(/* id 41, wireType 0 =*/328).bool(message.pnhDuplicateLidThread);
if (message.lidJid != null && Object.hasOwnProperty.call(message, "lidJid"))
writer.uint32(/* id 42, wireType 2 =*/338).string(message.lidJid);
return writer; return writer;
}; };
@@ -9852,6 +10073,9 @@ $root.proto = (function() {
case 41: case 41:
message.pnhDuplicateLidThread = reader.bool(); message.pnhDuplicateLidThread = reader.bool();
break; break;
case 42:
message.lidJid = reader.string();
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@@ -10038,6 +10262,9 @@ $root.proto = (function() {
if (message.pnhDuplicateLidThread != null && message.hasOwnProperty("pnhDuplicateLidThread")) if (message.pnhDuplicateLidThread != null && message.hasOwnProperty("pnhDuplicateLidThread"))
if (typeof message.pnhDuplicateLidThread !== "boolean") if (typeof message.pnhDuplicateLidThread !== "boolean")
return "pnhDuplicateLidThread: boolean expected"; return "pnhDuplicateLidThread: boolean expected";
if (message.lidJid != null && message.hasOwnProperty("lidJid"))
if (!$util.isString(message.lidJid))
return "lidJid: string expected";
return null; return null;
}; };
@@ -10232,6 +10459,8 @@ $root.proto = (function() {
message.shareOwnPn = Boolean(object.shareOwnPn); message.shareOwnPn = Boolean(object.shareOwnPn);
if (object.pnhDuplicateLidThread != null) if (object.pnhDuplicateLidThread != null)
message.pnhDuplicateLidThread = Boolean(object.pnhDuplicateLidThread); message.pnhDuplicateLidThread = Boolean(object.pnhDuplicateLidThread);
if (object.lidJid != null)
message.lidJid = String(object.lidJid);
return message; return message;
}; };
@@ -10332,6 +10561,7 @@ $root.proto = (function() {
object.pnJid = ""; object.pnJid = "";
object.shareOwnPn = false; object.shareOwnPn = false;
object.pnhDuplicateLidThread = false; object.pnhDuplicateLidThread = false;
object.lidJid = "";
} }
if (message.id != null && message.hasOwnProperty("id")) if (message.id != null && message.hasOwnProperty("id"))
object.id = message.id; object.id = message.id;
@@ -10442,6 +10672,8 @@ $root.proto = (function() {
object.shareOwnPn = message.shareOwnPn; object.shareOwnPn = message.shareOwnPn;
if (message.pnhDuplicateLidThread != null && message.hasOwnProperty("pnhDuplicateLidThread")) if (message.pnhDuplicateLidThread != null && message.hasOwnProperty("pnhDuplicateLidThread"))
object.pnhDuplicateLidThread = message.pnhDuplicateLidThread; object.pnhDuplicateLidThread = message.pnhDuplicateLidThread;
if (message.lidJid != null && message.hasOwnProperty("lidJid"))
object.lidJid = message.lidJid;
return object; return object;
}; };
@@ -11507,6 +11739,7 @@ $root.proto = (function() {
* @interface IHistorySyncConfig * @interface IHistorySyncConfig
* @property {number|null} [fullSyncDaysLimit] HistorySyncConfig fullSyncDaysLimit * @property {number|null} [fullSyncDaysLimit] HistorySyncConfig fullSyncDaysLimit
* @property {number|null} [fullSyncSizeMbLimit] HistorySyncConfig fullSyncSizeMbLimit * @property {number|null} [fullSyncSizeMbLimit] HistorySyncConfig fullSyncSizeMbLimit
* @property {number|null} [storageQuotaMb] HistorySyncConfig storageQuotaMb
*/ */
/** /**
@@ -11540,6 +11773,14 @@ $root.proto = (function() {
*/ */
HistorySyncConfig.prototype.fullSyncSizeMbLimit = 0; HistorySyncConfig.prototype.fullSyncSizeMbLimit = 0;
/**
* HistorySyncConfig storageQuotaMb.
* @member {number} storageQuotaMb
* @memberof proto.DeviceProps.HistorySyncConfig
* @instance
*/
HistorySyncConfig.prototype.storageQuotaMb = 0;
/** /**
* Creates a new HistorySyncConfig instance using the specified properties. * Creates a new HistorySyncConfig instance using the specified properties.
* @function create * @function create
@@ -11568,6 +11809,8 @@ $root.proto = (function() {
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.fullSyncDaysLimit); writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.fullSyncDaysLimit);
if (message.fullSyncSizeMbLimit != null && Object.hasOwnProperty.call(message, "fullSyncSizeMbLimit")) if (message.fullSyncSizeMbLimit != null && Object.hasOwnProperty.call(message, "fullSyncSizeMbLimit"))
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.fullSyncSizeMbLimit); writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.fullSyncSizeMbLimit);
if (message.storageQuotaMb != null && Object.hasOwnProperty.call(message, "storageQuotaMb"))
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.storageQuotaMb);
return writer; return writer;
}; };
@@ -11608,6 +11851,9 @@ $root.proto = (function() {
case 2: case 2:
message.fullSyncSizeMbLimit = reader.uint32(); message.fullSyncSizeMbLimit = reader.uint32();
break; break;
case 3:
message.storageQuotaMb = reader.uint32();
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@@ -11649,6 +11895,9 @@ $root.proto = (function() {
if (message.fullSyncSizeMbLimit != null && message.hasOwnProperty("fullSyncSizeMbLimit")) if (message.fullSyncSizeMbLimit != null && message.hasOwnProperty("fullSyncSizeMbLimit"))
if (!$util.isInteger(message.fullSyncSizeMbLimit)) if (!$util.isInteger(message.fullSyncSizeMbLimit))
return "fullSyncSizeMbLimit: integer expected"; return "fullSyncSizeMbLimit: integer expected";
if (message.storageQuotaMb != null && message.hasOwnProperty("storageQuotaMb"))
if (!$util.isInteger(message.storageQuotaMb))
return "storageQuotaMb: integer expected";
return null; return null;
}; };
@@ -11668,6 +11917,8 @@ $root.proto = (function() {
message.fullSyncDaysLimit = object.fullSyncDaysLimit >>> 0; message.fullSyncDaysLimit = object.fullSyncDaysLimit >>> 0;
if (object.fullSyncSizeMbLimit != null) if (object.fullSyncSizeMbLimit != null)
message.fullSyncSizeMbLimit = object.fullSyncSizeMbLimit >>> 0; message.fullSyncSizeMbLimit = object.fullSyncSizeMbLimit >>> 0;
if (object.storageQuotaMb != null)
message.storageQuotaMb = object.storageQuotaMb >>> 0;
return message; return message;
}; };
@@ -11687,11 +11938,14 @@ $root.proto = (function() {
if (options.defaults) { if (options.defaults) {
object.fullSyncDaysLimit = 0; object.fullSyncDaysLimit = 0;
object.fullSyncSizeMbLimit = 0; object.fullSyncSizeMbLimit = 0;
object.storageQuotaMb = 0;
} }
if (message.fullSyncDaysLimit != null && message.hasOwnProperty("fullSyncDaysLimit")) if (message.fullSyncDaysLimit != null && message.hasOwnProperty("fullSyncDaysLimit"))
object.fullSyncDaysLimit = message.fullSyncDaysLimit; object.fullSyncDaysLimit = message.fullSyncDaysLimit;
if (message.fullSyncSizeMbLimit != null && message.hasOwnProperty("fullSyncSizeMbLimit")) if (message.fullSyncSizeMbLimit != null && message.hasOwnProperty("fullSyncSizeMbLimit"))
object.fullSyncSizeMbLimit = message.fullSyncSizeMbLimit; object.fullSyncSizeMbLimit = message.fullSyncSizeMbLimit;
if (message.storageQuotaMb != null && message.hasOwnProperty("storageQuotaMb"))
object.storageQuotaMb = message.storageQuotaMb;
return object; return object;
}; };
@@ -12774,6 +13028,7 @@ $root.proto = (function() {
* @property {boolean|null} [showGroupNotificationsPreview] GlobalSettings showGroupNotificationsPreview * @property {boolean|null} [showGroupNotificationsPreview] GlobalSettings showGroupNotificationsPreview
* @property {number|null} [disappearingModeDuration] GlobalSettings disappearingModeDuration * @property {number|null} [disappearingModeDuration] GlobalSettings disappearingModeDuration
* @property {number|Long|null} [disappearingModeTimestamp] GlobalSettings disappearingModeTimestamp * @property {number|Long|null} [disappearingModeTimestamp] GlobalSettings disappearingModeTimestamp
* @property {proto.IAvatarUserSettings|null} [avatarUserSettings] GlobalSettings avatarUserSettings
*/ */
/** /**
@@ -12871,6 +13126,14 @@ $root.proto = (function() {
*/ */
GlobalSettings.prototype.disappearingModeTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; GlobalSettings.prototype.disappearingModeTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* GlobalSettings avatarUserSettings.
* @member {proto.IAvatarUserSettings|null|undefined} avatarUserSettings
* @memberof proto.GlobalSettings
* @instance
*/
GlobalSettings.prototype.avatarUserSettings = null;
/** /**
* Creates a new GlobalSettings instance using the specified properties. * Creates a new GlobalSettings instance using the specified properties.
* @function create * @function create
@@ -12915,6 +13178,8 @@ $root.proto = (function() {
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.disappearingModeDuration); writer.uint32(/* id 9, wireType 0 =*/72).int32(message.disappearingModeDuration);
if (message.disappearingModeTimestamp != null && Object.hasOwnProperty.call(message, "disappearingModeTimestamp")) if (message.disappearingModeTimestamp != null && Object.hasOwnProperty.call(message, "disappearingModeTimestamp"))
writer.uint32(/* id 10, wireType 0 =*/80).int64(message.disappearingModeTimestamp); writer.uint32(/* id 10, wireType 0 =*/80).int64(message.disappearingModeTimestamp);
if (message.avatarUserSettings != null && Object.hasOwnProperty.call(message, "avatarUserSettings"))
$root.proto.AvatarUserSettings.encode(message.avatarUserSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
return writer; return writer;
}; };
@@ -12979,6 +13244,9 @@ $root.proto = (function() {
case 10: case 10:
message.disappearingModeTimestamp = reader.int64(); message.disappearingModeTimestamp = reader.int64();
break; break;
case 11:
message.avatarUserSettings = $root.proto.AvatarUserSettings.decode(reader, reader.uint32());
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@@ -13060,6 +13328,11 @@ $root.proto = (function() {
if (message.disappearingModeTimestamp != null && message.hasOwnProperty("disappearingModeTimestamp")) if (message.disappearingModeTimestamp != null && message.hasOwnProperty("disappearingModeTimestamp"))
if (!$util.isInteger(message.disappearingModeTimestamp) && !(message.disappearingModeTimestamp && $util.isInteger(message.disappearingModeTimestamp.low) && $util.isInteger(message.disappearingModeTimestamp.high))) if (!$util.isInteger(message.disappearingModeTimestamp) && !(message.disappearingModeTimestamp && $util.isInteger(message.disappearingModeTimestamp.low) && $util.isInteger(message.disappearingModeTimestamp.high)))
return "disappearingModeTimestamp: integer|Long expected"; return "disappearingModeTimestamp: integer|Long expected";
if (message.avatarUserSettings != null && message.hasOwnProperty("avatarUserSettings")) {
var error = $root.proto.AvatarUserSettings.verify(message.avatarUserSettings);
if (error)
return "avatarUserSettings." + error;
}
return null; return null;
}; };
@@ -13129,6 +13402,11 @@ $root.proto = (function() {
message.disappearingModeTimestamp = object.disappearingModeTimestamp; message.disappearingModeTimestamp = object.disappearingModeTimestamp;
else if (typeof object.disappearingModeTimestamp === "object") else if (typeof object.disappearingModeTimestamp === "object")
message.disappearingModeTimestamp = new $util.LongBits(object.disappearingModeTimestamp.low >>> 0, object.disappearingModeTimestamp.high >>> 0).toNumber(); message.disappearingModeTimestamp = new $util.LongBits(object.disappearingModeTimestamp.low >>> 0, object.disappearingModeTimestamp.high >>> 0).toNumber();
if (object.avatarUserSettings != null) {
if (typeof object.avatarUserSettings !== "object")
throw TypeError(".proto.GlobalSettings.avatarUserSettings: object expected");
message.avatarUserSettings = $root.proto.AvatarUserSettings.fromObject(object.avatarUserSettings);
}
return message; return message;
}; };
@@ -13160,6 +13438,7 @@ $root.proto = (function() {
object.disappearingModeTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; object.disappearingModeTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else } else
object.disappearingModeTimestamp = options.longs === String ? "0" : 0; object.disappearingModeTimestamp = options.longs === String ? "0" : 0;
object.avatarUserSettings = null;
} }
if (message.lightThemeWallpaper != null && message.hasOwnProperty("lightThemeWallpaper")) if (message.lightThemeWallpaper != null && message.hasOwnProperty("lightThemeWallpaper"))
object.lightThemeWallpaper = $root.proto.WallpaperSettings.toObject(message.lightThemeWallpaper, options); object.lightThemeWallpaper = $root.proto.WallpaperSettings.toObject(message.lightThemeWallpaper, options);
@@ -13184,6 +13463,8 @@ $root.proto = (function() {
object.disappearingModeTimestamp = options.longs === String ? String(message.disappearingModeTimestamp) : message.disappearingModeTimestamp; object.disappearingModeTimestamp = options.longs === String ? String(message.disappearingModeTimestamp) : message.disappearingModeTimestamp;
else else
object.disappearingModeTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.disappearingModeTimestamp) : options.longs === Number ? new $util.LongBits(message.disappearingModeTimestamp.low >>> 0, message.disappearingModeTimestamp.high >>> 0).toNumber() : message.disappearingModeTimestamp; object.disappearingModeTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.disappearingModeTimestamp) : options.longs === Number ? new $util.LongBits(message.disappearingModeTimestamp.low >>> 0, message.disappearingModeTimestamp.high >>> 0).toNumber() : message.disappearingModeTimestamp;
if (message.avatarUserSettings != null && message.hasOwnProperty("avatarUserSettings"))
object.avatarUserSettings = $root.proto.AvatarUserSettings.toObject(message.avatarUserSettings, options);
return object; return object;
}; };
@@ -29106,6 +29387,7 @@ $root.proto = (function() {
* @property {number|null} [chunkOrder] HistorySyncNotification chunkOrder * @property {number|null} [chunkOrder] HistorySyncNotification chunkOrder
* @property {string|null} [originalMessageId] HistorySyncNotification originalMessageId * @property {string|null} [originalMessageId] HistorySyncNotification originalMessageId
* @property {number|null} [progress] HistorySyncNotification progress * @property {number|null} [progress] HistorySyncNotification progress
* @property {number|Long|null} [oldestMsgInChunkTimestampSec] HistorySyncNotification oldestMsgInChunkTimestampSec
*/ */
/** /**
@@ -29195,6 +29477,14 @@ $root.proto = (function() {
*/ */
HistorySyncNotification.prototype.progress = 0; HistorySyncNotification.prototype.progress = 0;
/**
* HistorySyncNotification oldestMsgInChunkTimestampSec.
* @member {number|Long} oldestMsgInChunkTimestampSec
* @memberof proto.Message.HistorySyncNotification
* @instance
*/
HistorySyncNotification.prototype.oldestMsgInChunkTimestampSec = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/** /**
* Creates a new HistorySyncNotification instance using the specified properties. * Creates a new HistorySyncNotification instance using the specified properties.
* @function create * @function create
@@ -29237,6 +29527,8 @@ $root.proto = (function() {
writer.uint32(/* id 8, wireType 2 =*/66).string(message.originalMessageId); writer.uint32(/* id 8, wireType 2 =*/66).string(message.originalMessageId);
if (message.progress != null && Object.hasOwnProperty.call(message, "progress")) if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.progress); writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.progress);
if (message.oldestMsgInChunkTimestampSec != null && Object.hasOwnProperty.call(message, "oldestMsgInChunkTimestampSec"))
writer.uint32(/* id 10, wireType 0 =*/80).int64(message.oldestMsgInChunkTimestampSec);
return writer; return writer;
}; };
@@ -29298,6 +29590,9 @@ $root.proto = (function() {
case 9: case 9:
message.progress = reader.uint32(); message.progress = reader.uint32();
break; break;
case 10:
message.oldestMsgInChunkTimestampSec = reader.int64();
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@@ -29369,6 +29664,9 @@ $root.proto = (function() {
if (message.progress != null && message.hasOwnProperty("progress")) if (message.progress != null && message.hasOwnProperty("progress"))
if (!$util.isInteger(message.progress)) if (!$util.isInteger(message.progress))
return "progress: integer expected"; return "progress: integer expected";
if (message.oldestMsgInChunkTimestampSec != null && message.hasOwnProperty("oldestMsgInChunkTimestampSec"))
if (!$util.isInteger(message.oldestMsgInChunkTimestampSec) && !(message.oldestMsgInChunkTimestampSec && $util.isInteger(message.oldestMsgInChunkTimestampSec.low) && $util.isInteger(message.oldestMsgInChunkTimestampSec.high)))
return "oldestMsgInChunkTimestampSec: integer|Long expected";
return null; return null;
}; };
@@ -29442,6 +29740,15 @@ $root.proto = (function() {
message.originalMessageId = String(object.originalMessageId); message.originalMessageId = String(object.originalMessageId);
if (object.progress != null) if (object.progress != null)
message.progress = object.progress >>> 0; message.progress = object.progress >>> 0;
if (object.oldestMsgInChunkTimestampSec != null)
if ($util.Long)
(message.oldestMsgInChunkTimestampSec = $util.Long.fromValue(object.oldestMsgInChunkTimestampSec)).unsigned = false;
else if (typeof object.oldestMsgInChunkTimestampSec === "string")
message.oldestMsgInChunkTimestampSec = parseInt(object.oldestMsgInChunkTimestampSec, 10);
else if (typeof object.oldestMsgInChunkTimestampSec === "number")
message.oldestMsgInChunkTimestampSec = object.oldestMsgInChunkTimestampSec;
else if (typeof object.oldestMsgInChunkTimestampSec === "object")
message.oldestMsgInChunkTimestampSec = new $util.LongBits(object.oldestMsgInChunkTimestampSec.low >>> 0, object.oldestMsgInChunkTimestampSec.high >>> 0).toNumber();
return message; return message;
}; };
@@ -29490,6 +29797,11 @@ $root.proto = (function() {
object.chunkOrder = 0; object.chunkOrder = 0;
object.originalMessageId = ""; object.originalMessageId = "";
object.progress = 0; object.progress = 0;
if ($util.Long) {
var long = new $util.Long(0, 0, false);
object.oldestMsgInChunkTimestampSec = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.oldestMsgInChunkTimestampSec = options.longs === String ? "0" : 0;
} }
if (message.fileSha256 != null && message.hasOwnProperty("fileSha256")) if (message.fileSha256 != null && message.hasOwnProperty("fileSha256"))
object.fileSha256 = options.bytes === String ? $util.base64.encode(message.fileSha256, 0, message.fileSha256.length) : options.bytes === Array ? Array.prototype.slice.call(message.fileSha256) : message.fileSha256; object.fileSha256 = options.bytes === String ? $util.base64.encode(message.fileSha256, 0, message.fileSha256.length) : options.bytes === Array ? Array.prototype.slice.call(message.fileSha256) : message.fileSha256;
@@ -29512,6 +29824,11 @@ $root.proto = (function() {
object.originalMessageId = message.originalMessageId; object.originalMessageId = message.originalMessageId;
if (message.progress != null && message.hasOwnProperty("progress")) if (message.progress != null && message.hasOwnProperty("progress"))
object.progress = message.progress; object.progress = message.progress;
if (message.oldestMsgInChunkTimestampSec != null && message.hasOwnProperty("oldestMsgInChunkTimestampSec"))
if (typeof message.oldestMsgInChunkTimestampSec === "number")
object.oldestMsgInChunkTimestampSec = options.longs === String ? String(message.oldestMsgInChunkTimestampSec) : message.oldestMsgInChunkTimestampSec;
else
object.oldestMsgInChunkTimestampSec = options.longs === String ? $util.Long.prototype.toString.call(message.oldestMsgInChunkTimestampSec) : options.longs === Number ? new $util.LongBits(message.oldestMsgInChunkTimestampSec.low >>> 0, message.oldestMsgInChunkTimestampSec.high >>> 0).toNumber() : message.oldestMsgInChunkTimestampSec;
return object; return object;
}; };
@@ -45087,8 +45404,10 @@ $root.proto = (function() {
* @interface ITemplateMessage * @interface ITemplateMessage
* @property {proto.IContextInfo|null} [contextInfo] TemplateMessage contextInfo * @property {proto.IContextInfo|null} [contextInfo] TemplateMessage contextInfo
* @property {proto.Message.TemplateMessage.IHydratedFourRowTemplate|null} [hydratedTemplate] TemplateMessage hydratedTemplate * @property {proto.Message.TemplateMessage.IHydratedFourRowTemplate|null} [hydratedTemplate] TemplateMessage hydratedTemplate
* @property {string|null} [templateId] TemplateMessage templateId
* @property {proto.Message.TemplateMessage.IFourRowTemplate|null} [fourRowTemplate] TemplateMessage fourRowTemplate * @property {proto.Message.TemplateMessage.IFourRowTemplate|null} [fourRowTemplate] TemplateMessage fourRowTemplate
* @property {proto.Message.TemplateMessage.IHydratedFourRowTemplate|null} [hydratedFourRowTemplate] TemplateMessage hydratedFourRowTemplate * @property {proto.Message.TemplateMessage.IHydratedFourRowTemplate|null} [hydratedFourRowTemplate] TemplateMessage hydratedFourRowTemplate
* @property {proto.Message.IInteractiveMessage|null} [interactiveMessageTemplate] TemplateMessage interactiveMessageTemplate
*/ */
/** /**
@@ -45122,6 +45441,14 @@ $root.proto = (function() {
*/ */
TemplateMessage.prototype.hydratedTemplate = null; TemplateMessage.prototype.hydratedTemplate = null;
/**
* TemplateMessage templateId.
* @member {string} templateId
* @memberof proto.Message.TemplateMessage
* @instance
*/
TemplateMessage.prototype.templateId = "";
/** /**
* TemplateMessage fourRowTemplate. * TemplateMessage fourRowTemplate.
* @member {proto.Message.TemplateMessage.IFourRowTemplate|null|undefined} fourRowTemplate * @member {proto.Message.TemplateMessage.IFourRowTemplate|null|undefined} fourRowTemplate
@@ -45138,17 +45465,25 @@ $root.proto = (function() {
*/ */
TemplateMessage.prototype.hydratedFourRowTemplate = null; TemplateMessage.prototype.hydratedFourRowTemplate = null;
/**
* TemplateMessage interactiveMessageTemplate.
* @member {proto.Message.IInteractiveMessage|null|undefined} interactiveMessageTemplate
* @memberof proto.Message.TemplateMessage
* @instance
*/
TemplateMessage.prototype.interactiveMessageTemplate = null;
// OneOf field names bound to virtual getters and setters // OneOf field names bound to virtual getters and setters
var $oneOfFields; var $oneOfFields;
/** /**
* TemplateMessage format. * TemplateMessage format.
* @member {"fourRowTemplate"|"hydratedFourRowTemplate"|undefined} format * @member {"fourRowTemplate"|"hydratedFourRowTemplate"|"interactiveMessageTemplate"|undefined} format
* @memberof proto.Message.TemplateMessage * @memberof proto.Message.TemplateMessage
* @instance * @instance
*/ */
Object.defineProperty(TemplateMessage.prototype, "format", { Object.defineProperty(TemplateMessage.prototype, "format", {
get: $util.oneOfGetter($oneOfFields = ["fourRowTemplate", "hydratedFourRowTemplate"]), get: $util.oneOfGetter($oneOfFields = ["fourRowTemplate", "hydratedFourRowTemplate", "interactiveMessageTemplate"]),
set: $util.oneOfSetter($oneOfFields) set: $util.oneOfSetter($oneOfFields)
}); });
@@ -45184,6 +45519,10 @@ $root.proto = (function() {
$root.proto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); $root.proto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
if (message.hydratedTemplate != null && Object.hasOwnProperty.call(message, "hydratedTemplate")) if (message.hydratedTemplate != null && Object.hasOwnProperty.call(message, "hydratedTemplate"))
$root.proto.Message.TemplateMessage.HydratedFourRowTemplate.encode(message.hydratedTemplate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.encode(message.hydratedTemplate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
if (message.interactiveMessageTemplate != null && Object.hasOwnProperty.call(message, "interactiveMessageTemplate"))
$root.proto.Message.InteractiveMessage.encode(message.interactiveMessageTemplate, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
if (message.templateId != null && Object.hasOwnProperty.call(message, "templateId"))
writer.uint32(/* id 9, wireType 2 =*/74).string(message.templateId);
return writer; return writer;
}; };
@@ -45224,12 +45563,18 @@ $root.proto = (function() {
case 4: case 4:
message.hydratedTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.decode(reader, reader.uint32()); message.hydratedTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.decode(reader, reader.uint32());
break; break;
case 9:
message.templateId = reader.string();
break;
case 1: case 1:
message.fourRowTemplate = $root.proto.Message.TemplateMessage.FourRowTemplate.decode(reader, reader.uint32()); message.fourRowTemplate = $root.proto.Message.TemplateMessage.FourRowTemplate.decode(reader, reader.uint32());
break; break;
case 2: case 2:
message.hydratedFourRowTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.decode(reader, reader.uint32()); message.hydratedFourRowTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.decode(reader, reader.uint32());
break; break;
case 5:
message.interactiveMessageTemplate = $root.proto.Message.InteractiveMessage.decode(reader, reader.uint32());
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@@ -45276,6 +45621,9 @@ $root.proto = (function() {
if (error) if (error)
return "hydratedTemplate." + error; return "hydratedTemplate." + error;
} }
if (message.templateId != null && message.hasOwnProperty("templateId"))
if (!$util.isString(message.templateId))
return "templateId: string expected";
if (message.fourRowTemplate != null && message.hasOwnProperty("fourRowTemplate")) { if (message.fourRowTemplate != null && message.hasOwnProperty("fourRowTemplate")) {
properties.format = 1; properties.format = 1;
{ {
@@ -45294,6 +45642,16 @@ $root.proto = (function() {
return "hydratedFourRowTemplate." + error; return "hydratedFourRowTemplate." + error;
} }
} }
if (message.interactiveMessageTemplate != null && message.hasOwnProperty("interactiveMessageTemplate")) {
if (properties.format === 1)
return "format: multiple values";
properties.format = 1;
{
var error = $root.proto.Message.InteractiveMessage.verify(message.interactiveMessageTemplate);
if (error)
return "interactiveMessageTemplate." + error;
}
}
return null; return null;
}; };
@@ -45319,6 +45677,8 @@ $root.proto = (function() {
throw TypeError(".proto.Message.TemplateMessage.hydratedTemplate: object expected"); throw TypeError(".proto.Message.TemplateMessage.hydratedTemplate: object expected");
message.hydratedTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.fromObject(object.hydratedTemplate); message.hydratedTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.fromObject(object.hydratedTemplate);
} }
if (object.templateId != null)
message.templateId = String(object.templateId);
if (object.fourRowTemplate != null) { if (object.fourRowTemplate != null) {
if (typeof object.fourRowTemplate !== "object") if (typeof object.fourRowTemplate !== "object")
throw TypeError(".proto.Message.TemplateMessage.fourRowTemplate: object expected"); throw TypeError(".proto.Message.TemplateMessage.fourRowTemplate: object expected");
@@ -45329,6 +45689,11 @@ $root.proto = (function() {
throw TypeError(".proto.Message.TemplateMessage.hydratedFourRowTemplate: object expected"); throw TypeError(".proto.Message.TemplateMessage.hydratedFourRowTemplate: object expected");
message.hydratedFourRowTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.fromObject(object.hydratedFourRowTemplate); message.hydratedFourRowTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.fromObject(object.hydratedFourRowTemplate);
} }
if (object.interactiveMessageTemplate != null) {
if (typeof object.interactiveMessageTemplate !== "object")
throw TypeError(".proto.Message.TemplateMessage.interactiveMessageTemplate: object expected");
message.interactiveMessageTemplate = $root.proto.Message.InteractiveMessage.fromObject(object.interactiveMessageTemplate);
}
return message; return message;
}; };
@@ -45348,6 +45713,7 @@ $root.proto = (function() {
if (options.defaults) { if (options.defaults) {
object.contextInfo = null; object.contextInfo = null;
object.hydratedTemplate = null; object.hydratedTemplate = null;
object.templateId = "";
} }
if (message.fourRowTemplate != null && message.hasOwnProperty("fourRowTemplate")) { if (message.fourRowTemplate != null && message.hasOwnProperty("fourRowTemplate")) {
object.fourRowTemplate = $root.proto.Message.TemplateMessage.FourRowTemplate.toObject(message.fourRowTemplate, options); object.fourRowTemplate = $root.proto.Message.TemplateMessage.FourRowTemplate.toObject(message.fourRowTemplate, options);
@@ -45363,6 +45729,13 @@ $root.proto = (function() {
object.contextInfo = $root.proto.ContextInfo.toObject(message.contextInfo, options); object.contextInfo = $root.proto.ContextInfo.toObject(message.contextInfo, options);
if (message.hydratedTemplate != null && message.hasOwnProperty("hydratedTemplate")) if (message.hydratedTemplate != null && message.hasOwnProperty("hydratedTemplate"))
object.hydratedTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.toObject(message.hydratedTemplate, options); object.hydratedTemplate = $root.proto.Message.TemplateMessage.HydratedFourRowTemplate.toObject(message.hydratedTemplate, options);
if (message.interactiveMessageTemplate != null && message.hasOwnProperty("interactiveMessageTemplate")) {
object.interactiveMessageTemplate = $root.proto.Message.InteractiveMessage.toObject(message.interactiveMessageTemplate, options);
if (options.oneofs)
object.format = "interactiveMessageTemplate";
}
if (message.templateId != null && message.hasOwnProperty("templateId"))
object.templateId = message.templateId;
return object; return object;
}; };
@@ -60303,6 +60676,7 @@ $root.proto = (function() {
* @interface IContactAction * @interface IContactAction
* @property {string|null} [fullName] ContactAction fullName * @property {string|null} [fullName] ContactAction fullName
* @property {string|null} [firstName] ContactAction firstName * @property {string|null} [firstName] ContactAction firstName
* @property {string|null} [lidJid] ContactAction lidJid
*/ */
/** /**
@@ -60336,6 +60710,14 @@ $root.proto = (function() {
*/ */
ContactAction.prototype.firstName = ""; ContactAction.prototype.firstName = "";
/**
* ContactAction lidJid.
* @member {string} lidJid
* @memberof proto.SyncActionValue.ContactAction
* @instance
*/
ContactAction.prototype.lidJid = "";
/** /**
* Creates a new ContactAction instance using the specified properties. * Creates a new ContactAction instance using the specified properties.
* @function create * @function create
@@ -60364,6 +60746,8 @@ $root.proto = (function() {
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fullName); writer.uint32(/* id 1, wireType 2 =*/10).string(message.fullName);
if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName")) if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.firstName); writer.uint32(/* id 2, wireType 2 =*/18).string(message.firstName);
if (message.lidJid != null && Object.hasOwnProperty.call(message, "lidJid"))
writer.uint32(/* id 3, wireType 2 =*/26).string(message.lidJid);
return writer; return writer;
}; };
@@ -60404,6 +60788,9 @@ $root.proto = (function() {
case 2: case 2:
message.firstName = reader.string(); message.firstName = reader.string();
break; break;
case 3:
message.lidJid = reader.string();
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@@ -60445,6 +60832,9 @@ $root.proto = (function() {
if (message.firstName != null && message.hasOwnProperty("firstName")) if (message.firstName != null && message.hasOwnProperty("firstName"))
if (!$util.isString(message.firstName)) if (!$util.isString(message.firstName))
return "firstName: string expected"; return "firstName: string expected";
if (message.lidJid != null && message.hasOwnProperty("lidJid"))
if (!$util.isString(message.lidJid))
return "lidJid: string expected";
return null; return null;
}; };
@@ -60464,6 +60854,8 @@ $root.proto = (function() {
message.fullName = String(object.fullName); message.fullName = String(object.fullName);
if (object.firstName != null) if (object.firstName != null)
message.firstName = String(object.firstName); message.firstName = String(object.firstName);
if (object.lidJid != null)
message.lidJid = String(object.lidJid);
return message; return message;
}; };
@@ -60483,11 +60875,14 @@ $root.proto = (function() {
if (options.defaults) { if (options.defaults) {
object.fullName = ""; object.fullName = "";
object.firstName = ""; object.firstName = "";
object.lidJid = "";
} }
if (message.fullName != null && message.hasOwnProperty("fullName")) if (message.fullName != null && message.hasOwnProperty("fullName"))
object.fullName = message.fullName; object.fullName = message.fullName;
if (message.firstName != null && message.hasOwnProperty("firstName")) if (message.firstName != null && message.hasOwnProperty("firstName"))
object.firstName = message.firstName; object.firstName = message.firstName;
if (message.lidJid != null && message.hasOwnProperty("lidJid"))
object.lidJid = message.lidJid;
return object; return object;
}; };
@@ -61959,6 +62354,7 @@ $root.proto = (function() {
* @interface IMuteAction * @interface IMuteAction
* @property {boolean|null} [muted] MuteAction muted * @property {boolean|null} [muted] MuteAction muted
* @property {number|Long|null} [muteEndTimestamp] MuteAction muteEndTimestamp * @property {number|Long|null} [muteEndTimestamp] MuteAction muteEndTimestamp
* @property {boolean|null} [autoMuted] MuteAction autoMuted
*/ */
/** /**
@@ -61992,6 +62388,14 @@ $root.proto = (function() {
*/ */
MuteAction.prototype.muteEndTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; MuteAction.prototype.muteEndTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* MuteAction autoMuted.
* @member {boolean} autoMuted
* @memberof proto.SyncActionValue.MuteAction
* @instance
*/
MuteAction.prototype.autoMuted = false;
/** /**
* Creates a new MuteAction instance using the specified properties. * Creates a new MuteAction instance using the specified properties.
* @function create * @function create
@@ -62020,6 +62424,8 @@ $root.proto = (function() {
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.muted); writer.uint32(/* id 1, wireType 0 =*/8).bool(message.muted);
if (message.muteEndTimestamp != null && Object.hasOwnProperty.call(message, "muteEndTimestamp")) if (message.muteEndTimestamp != null && Object.hasOwnProperty.call(message, "muteEndTimestamp"))
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.muteEndTimestamp); writer.uint32(/* id 2, wireType 0 =*/16).int64(message.muteEndTimestamp);
if (message.autoMuted != null && Object.hasOwnProperty.call(message, "autoMuted"))
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.autoMuted);
return writer; return writer;
}; };
@@ -62060,6 +62466,9 @@ $root.proto = (function() {
case 2: case 2:
message.muteEndTimestamp = reader.int64(); message.muteEndTimestamp = reader.int64();
break; break;
case 3:
message.autoMuted = reader.bool();
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@@ -62101,6 +62510,9 @@ $root.proto = (function() {
if (message.muteEndTimestamp != null && message.hasOwnProperty("muteEndTimestamp")) if (message.muteEndTimestamp != null && message.hasOwnProperty("muteEndTimestamp"))
if (!$util.isInteger(message.muteEndTimestamp) && !(message.muteEndTimestamp && $util.isInteger(message.muteEndTimestamp.low) && $util.isInteger(message.muteEndTimestamp.high))) if (!$util.isInteger(message.muteEndTimestamp) && !(message.muteEndTimestamp && $util.isInteger(message.muteEndTimestamp.low) && $util.isInteger(message.muteEndTimestamp.high)))
return "muteEndTimestamp: integer|Long expected"; return "muteEndTimestamp: integer|Long expected";
if (message.autoMuted != null && message.hasOwnProperty("autoMuted"))
if (typeof message.autoMuted !== "boolean")
return "autoMuted: boolean expected";
return null; return null;
}; };
@@ -62127,6 +62539,8 @@ $root.proto = (function() {
message.muteEndTimestamp = object.muteEndTimestamp; message.muteEndTimestamp = object.muteEndTimestamp;
else if (typeof object.muteEndTimestamp === "object") else if (typeof object.muteEndTimestamp === "object")
message.muteEndTimestamp = new $util.LongBits(object.muteEndTimestamp.low >>> 0, object.muteEndTimestamp.high >>> 0).toNumber(); message.muteEndTimestamp = new $util.LongBits(object.muteEndTimestamp.low >>> 0, object.muteEndTimestamp.high >>> 0).toNumber();
if (object.autoMuted != null)
message.autoMuted = Boolean(object.autoMuted);
return message; return message;
}; };
@@ -62150,6 +62564,7 @@ $root.proto = (function() {
object.muteEndTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; object.muteEndTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else } else
object.muteEndTimestamp = options.longs === String ? "0" : 0; object.muteEndTimestamp = options.longs === String ? "0" : 0;
object.autoMuted = false;
} }
if (message.muted != null && message.hasOwnProperty("muted")) if (message.muted != null && message.hasOwnProperty("muted"))
object.muted = message.muted; object.muted = message.muted;
@@ -62158,6 +62573,8 @@ $root.proto = (function() {
object.muteEndTimestamp = options.longs === String ? String(message.muteEndTimestamp) : message.muteEndTimestamp; object.muteEndTimestamp = options.longs === String ? String(message.muteEndTimestamp) : message.muteEndTimestamp;
else else
object.muteEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.muteEndTimestamp) : options.longs === Number ? new $util.LongBits(message.muteEndTimestamp.low >>> 0, message.muteEndTimestamp.high >>> 0).toNumber() : message.muteEndTimestamp; object.muteEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.muteEndTimestamp) : options.longs === Number ? new $util.LongBits(message.muteEndTimestamp.low >>> 0, message.muteEndTimestamp.high >>> 0).toNumber() : message.muteEndTimestamp;
if (message.autoMuted != null && message.hasOwnProperty("autoMuted"))
object.autoMuted = message.autoMuted;
return object; return object;
}; };
@@ -73219,6 +73636,10 @@ $root.proto = (function() {
case 155: case 155:
case 156: case 156:
case 157: case 157:
case 158:
case 159:
case 160:
case 161:
break; break;
} }
if (message.clearMedia != null && message.hasOwnProperty("clearMedia")) if (message.clearMedia != null && message.hasOwnProperty("clearMedia"))
@@ -74079,6 +74500,22 @@ $root.proto = (function() {
case 157: case 157:
message.messageStubType = 157; message.messageStubType = 157;
break; break;
case "COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED":
case 158:
message.messageStubType = 158;
break;
case "CAG_INVITE_AUTO_ADD":
case 159:
message.messageStubType = 159;
break;
case "BIZ_CHAT_ASSIGNMENT_UNASSIGN":
case 160:
message.messageStubType = 160;
break;
case "CAG_INVITE_AUTO_JOINED":
case 161:
message.messageStubType = 161;
break;
} }
if (object.clearMedia != null) if (object.clearMedia != null)
message.clearMedia = Boolean(object.clearMedia); message.clearMedia = Boolean(object.clearMedia);
@@ -74659,6 +75096,10 @@ $root.proto = (function() {
* @property {number} CHAT_PSA=155 CHAT_PSA value * @property {number} CHAT_PSA=155 CHAT_PSA value
* @property {number} CHAT_POLL_CREATION_MESSAGE=156 CHAT_POLL_CREATION_MESSAGE value * @property {number} CHAT_POLL_CREATION_MESSAGE=156 CHAT_POLL_CREATION_MESSAGE value
* @property {number} CAG_MASKED_THREAD_CREATED=157 CAG_MASKED_THREAD_CREATED value * @property {number} CAG_MASKED_THREAD_CREATED=157 CAG_MASKED_THREAD_CREATED value
* @property {number} COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED=158 COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED value
* @property {number} CAG_INVITE_AUTO_ADD=159 CAG_INVITE_AUTO_ADD value
* @property {number} BIZ_CHAT_ASSIGNMENT_UNASSIGN=160 BIZ_CHAT_ASSIGNMENT_UNASSIGN value
* @property {number} CAG_INVITE_AUTO_JOINED=161 CAG_INVITE_AUTO_JOINED value
*/ */
WebMessageInfo.StubType = (function() { WebMessageInfo.StubType = (function() {
var valuesById = {}, values = Object.create(valuesById); var valuesById = {}, values = Object.create(valuesById);
@@ -74820,6 +75261,10 @@ $root.proto = (function() {
values[valuesById[155] = "CHAT_PSA"] = 155; values[valuesById[155] = "CHAT_PSA"] = 155;
values[valuesById[156] = "CHAT_POLL_CREATION_MESSAGE"] = 156; values[valuesById[156] = "CHAT_POLL_CREATION_MESSAGE"] = 156;
values[valuesById[157] = "CAG_MASKED_THREAD_CREATED"] = 157; values[valuesById[157] = "CAG_MASKED_THREAD_CREATED"] = 157;
values[valuesById[158] = "COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED"] = 158;
values[valuesById[159] = "CAG_INVITE_AUTO_ADD"] = 159;
values[valuesById[160] = "BIZ_CHAT_ASSIGNMENT_UNASSIGN"] = 160;
values[valuesById[161] = "CAG_INVITE_AUTO_JOINED"] = 161;
return values; return values;
})(); })();