@vreden/meta
Version:
Baileys is a lightweight JavaScript library for interacting with the WhatsApp Web API using WebSocket.
1,243 lines (997 loc) • 2.28 MB
TypeScript
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace HistorySync. */
export namespace HistorySync {
/** Properties of a NotificationSettings. */
interface INotificationSettings {
/** NotificationSettings messageVibrate */
messageVibrate?: (string|null);
/** NotificationSettings messagePopup */
messagePopup?: (string|null);
/** NotificationSettings messageLight */
messageLight?: (string|null);
/** NotificationSettings lowPriorityNotifications */
lowPriorityNotifications?: (boolean|null);
/** NotificationSettings reactionsMuted */
reactionsMuted?: (boolean|null);
/** NotificationSettings callVibrate */
callVibrate?: (string|null);
}
/** Represents a NotificationSettings. */
class NotificationSettings implements INotificationSettings {
/**
* Constructs a new NotificationSettings.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.INotificationSettings);
/** NotificationSettings messageVibrate. */
public messageVibrate: string;
/** NotificationSettings messagePopup. */
public messagePopup: string;
/** NotificationSettings messageLight. */
public messageLight: string;
/** NotificationSettings lowPriorityNotifications. */
public lowPriorityNotifications: boolean;
/** NotificationSettings reactionsMuted. */
public reactionsMuted: boolean;
/** NotificationSettings callVibrate. */
public callVibrate: string;
/**
* Creates a new NotificationSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns NotificationSettings instance
*/
public static create(properties?: HistorySync.INotificationSettings): HistorySync.NotificationSettings;
/**
* Encodes the specified NotificationSettings message. Does not implicitly {@link HistorySync.NotificationSettings.verify|verify} messages.
* @param message NotificationSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.INotificationSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified NotificationSettings message, length delimited. Does not implicitly {@link HistorySync.NotificationSettings.verify|verify} messages.
* @param message NotificationSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.INotificationSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a NotificationSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns NotificationSettings
* @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): HistorySync.NotificationSettings;
/**
* Decodes a NotificationSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns NotificationSettings
* @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)): HistorySync.NotificationSettings;
/**
* Verifies a NotificationSettings 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 a NotificationSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns NotificationSettings
*/
public static fromObject(object: { [k: string]: any }): HistorySync.NotificationSettings;
/**
* Creates a plain object from a NotificationSettings message. Also converts values to other types if specified.
* @param message NotificationSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.NotificationSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this NotificationSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for NotificationSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** 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?: HistorySync.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?: HistorySync.IAvatarUserSettings): HistorySync.AvatarUserSettings;
/**
* Encodes the specified AvatarUserSettings message. Does not implicitly {@link HistorySync.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: HistorySync.IAvatarUserSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AvatarUserSettings message, length delimited. Does not implicitly {@link HistorySync.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: HistorySync.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): HistorySync.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)): HistorySync.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 }): HistorySync.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: HistorySync.AvatarUserSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AvatarUserSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AvatarUserSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a PastParticipant. */
interface IPastParticipant {
/** PastParticipant userJid */
userJid?: (string|null);
/** PastParticipant leaveReason */
leaveReason?: (HistorySync.PastParticipant.LeaveReason|null);
/** PastParticipant leaveTs */
leaveTs?: (number|Long|null);
}
/** Represents a PastParticipant. */
class PastParticipant implements IPastParticipant {
/**
* Constructs a new PastParticipant.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IPastParticipant);
/** PastParticipant userJid. */
public userJid: string;
/** PastParticipant leaveReason. */
public leaveReason: HistorySync.PastParticipant.LeaveReason;
/** PastParticipant leaveTs. */
public leaveTs: (number|Long);
/**
* Creates a new PastParticipant instance using the specified properties.
* @param [properties] Properties to set
* @returns PastParticipant instance
*/
public static create(properties?: HistorySync.IPastParticipant): HistorySync.PastParticipant;
/**
* Encodes the specified PastParticipant message. Does not implicitly {@link HistorySync.PastParticipant.verify|verify} messages.
* @param message PastParticipant message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IPastParticipant, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PastParticipant message, length delimited. Does not implicitly {@link HistorySync.PastParticipant.verify|verify} messages.
* @param message PastParticipant message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IPastParticipant, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PastParticipant message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PastParticipant
* @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): HistorySync.PastParticipant;
/**
* Decodes a PastParticipant message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PastParticipant
* @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)): HistorySync.PastParticipant;
/**
* Verifies a PastParticipant 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 a PastParticipant message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PastParticipant
*/
public static fromObject(object: { [k: string]: any }): HistorySync.PastParticipant;
/**
* Creates a plain object from a PastParticipant message. Also converts values to other types if specified.
* @param message PastParticipant
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.PastParticipant, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PastParticipant to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PastParticipant
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace PastParticipant {
/** LeaveReason enum. */
enum LeaveReason {
LEFT = 0,
REMOVED = 1
}
}
/** Properties of a PastParticipants. */
interface IPastParticipants {
/** PastParticipants groupJid */
groupJid?: (string|null);
/** PastParticipants pastParticipants */
pastParticipants?: (HistorySync.IPastParticipant[]|null);
}
/** Represents a PastParticipants. */
class PastParticipants implements IPastParticipants {
/**
* Constructs a new PastParticipants.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IPastParticipants);
/** PastParticipants groupJid. */
public groupJid: string;
/** PastParticipants pastParticipants. */
public pastParticipants: HistorySync.IPastParticipant[];
/**
* Creates a new PastParticipants instance using the specified properties.
* @param [properties] Properties to set
* @returns PastParticipants instance
*/
public static create(properties?: HistorySync.IPastParticipants): HistorySync.PastParticipants;
/**
* Encodes the specified PastParticipants message. Does not implicitly {@link HistorySync.PastParticipants.verify|verify} messages.
* @param message PastParticipants message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IPastParticipants, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PastParticipants message, length delimited. Does not implicitly {@link HistorySync.PastParticipants.verify|verify} messages.
* @param message PastParticipants message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IPastParticipants, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PastParticipants message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PastParticipants
* @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): HistorySync.PastParticipants;
/**
* Decodes a PastParticipants message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PastParticipants
* @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)): HistorySync.PastParticipants;
/**
* Verifies a PastParticipants 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 a PastParticipants message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PastParticipants
*/
public static fromObject(object: { [k: string]: any }): HistorySync.PastParticipants;
/**
* Creates a plain object from a PastParticipants message. Also converts values to other types if specified.
* @param message PastParticipants
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.PastParticipants, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PastParticipants to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PastParticipants
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a StickerMetadata. */
interface IStickerMetadata {
/** StickerMetadata url */
url?: (string|null);
/** StickerMetadata fileSha256 */
fileSha256?: (Uint8Array|null);
/** StickerMetadata fileEncSha256 */
fileEncSha256?: (Uint8Array|null);
/** StickerMetadata mediaKey */
mediaKey?: (Uint8Array|null);
/** StickerMetadata mimetype */
mimetype?: (string|null);
/** StickerMetadata height */
height?: (number|null);
/** StickerMetadata width */
width?: (number|null);
/** StickerMetadata directPath */
directPath?: (string|null);
/** StickerMetadata fileLength */
fileLength?: (number|Long|null);
/** StickerMetadata weight */
weight?: (number|null);
/** StickerMetadata lastStickerSentTs */
lastStickerSentTs?: (number|Long|null);
/** StickerMetadata isLottie */
isLottie?: (boolean|null);
/** StickerMetadata imageHash */
imageHash?: (string|null);
/** StickerMetadata isAvatarSticker */
isAvatarSticker?: (boolean|null);
}
/** Represents a StickerMetadata. */
class StickerMetadata implements IStickerMetadata {
/**
* Constructs a new StickerMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IStickerMetadata);
/** StickerMetadata url. */
public url: string;
/** StickerMetadata fileSha256. */
public fileSha256: Uint8Array;
/** StickerMetadata fileEncSha256. */
public fileEncSha256: Uint8Array;
/** StickerMetadata mediaKey. */
public mediaKey: Uint8Array;
/** StickerMetadata mimetype. */
public mimetype: string;
/** StickerMetadata height. */
public height: number;
/** StickerMetadata width. */
public width: number;
/** StickerMetadata directPath. */
public directPath: string;
/** StickerMetadata fileLength. */
public fileLength: (number|Long);
/** StickerMetadata weight. */
public weight: number;
/** StickerMetadata lastStickerSentTs. */
public lastStickerSentTs: (number|Long);
/** StickerMetadata isLottie. */
public isLottie: boolean;
/** StickerMetadata imageHash. */
public imageHash: string;
/** StickerMetadata isAvatarSticker. */
public isAvatarSticker: boolean;
/**
* Creates a new StickerMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns StickerMetadata instance
*/
public static create(properties?: HistorySync.IStickerMetadata): HistorySync.StickerMetadata;
/**
* Encodes the specified StickerMetadata message. Does not implicitly {@link HistorySync.StickerMetadata.verify|verify} messages.
* @param message StickerMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IStickerMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified StickerMetadata message, length delimited. Does not implicitly {@link HistorySync.StickerMetadata.verify|verify} messages.
* @param message StickerMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IStickerMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a StickerMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns StickerMetadata
* @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): HistorySync.StickerMetadata;
/**
* Decodes a StickerMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns StickerMetadata
* @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)): HistorySync.StickerMetadata;
/**
* Verifies a StickerMetadata 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 a StickerMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns StickerMetadata
*/
public static fromObject(object: { [k: string]: any }): HistorySync.StickerMetadata;
/**
* Creates a plain object from a StickerMetadata message. Also converts values to other types if specified.
* @param message StickerMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.StickerMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this StickerMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for StickerMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an AutoDownloadSettings. */
interface IAutoDownloadSettings {
/** AutoDownloadSettings downloadImages */
downloadImages?: (boolean|null);
/** AutoDownloadSettings downloadAudio */
downloadAudio?: (boolean|null);
/** AutoDownloadSettings downloadVideo */
downloadVideo?: (boolean|null);
/** AutoDownloadSettings downloadDocuments */
downloadDocuments?: (boolean|null);
}
/** Represents an AutoDownloadSettings. */
class AutoDownloadSettings implements IAutoDownloadSettings {
/**
* Constructs a new AutoDownloadSettings.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IAutoDownloadSettings);
/** AutoDownloadSettings downloadImages. */
public downloadImages: boolean;
/** AutoDownloadSettings downloadAudio. */
public downloadAudio: boolean;
/** AutoDownloadSettings downloadVideo. */
public downloadVideo: boolean;
/** AutoDownloadSettings downloadDocuments. */
public downloadDocuments: boolean;
/**
* Creates a new AutoDownloadSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns AutoDownloadSettings instance
*/
public static create(properties?: HistorySync.IAutoDownloadSettings): HistorySync.AutoDownloadSettings;
/**
* Encodes the specified AutoDownloadSettings message. Does not implicitly {@link HistorySync.AutoDownloadSettings.verify|verify} messages.
* @param message AutoDownloadSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IAutoDownloadSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AutoDownloadSettings message, length delimited. Does not implicitly {@link HistorySync.AutoDownloadSettings.verify|verify} messages.
* @param message AutoDownloadSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IAutoDownloadSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an AutoDownloadSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AutoDownloadSettings
* @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): HistorySync.AutoDownloadSettings;
/**
* Decodes an AutoDownloadSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AutoDownloadSettings
* @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)): HistorySync.AutoDownloadSettings;
/**
* Verifies an AutoDownloadSettings 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 AutoDownloadSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AutoDownloadSettings
*/
public static fromObject(object: { [k: string]: any }): HistorySync.AutoDownloadSettings;
/**
* Creates a plain object from an AutoDownloadSettings message. Also converts values to other types if specified.
* @param message AutoDownloadSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.AutoDownloadSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AutoDownloadSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AutoDownloadSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a GlobalSettings. */
interface IGlobalSettings {
/** GlobalSettings lightThemeWallpaper */
lightThemeWallpaper?: (HistorySync.IWallpaperSettings|null);
/** GlobalSettings mediaVisibility */
mediaVisibility?: (HistorySync.MediaVisibility|null);
/** GlobalSettings darkThemeWallpaper */
darkThemeWallpaper?: (HistorySync.IWallpaperSettings|null);
/** GlobalSettings autoDownloadWiFi */
autoDownloadWiFi?: (HistorySync.IAutoDownloadSettings|null);
/** GlobalSettings autoDownloadCellular */
autoDownloadCellular?: (HistorySync.IAutoDownloadSettings|null);
/** GlobalSettings autoDownloadRoaming */
autoDownloadRoaming?: (HistorySync.IAutoDownloadSettings|null);
/** GlobalSettings showIndividualNotificationsPreview */
showIndividualNotificationsPreview?: (boolean|null);
/** GlobalSettings showGroupNotificationsPreview */
showGroupNotificationsPreview?: (boolean|null);
/** GlobalSettings disappearingModeDuration */
disappearingModeDuration?: (number|null);
/** GlobalSettings disappearingModeTimestamp */
disappearingModeTimestamp?: (number|Long|null);
/** GlobalSettings avatarUserSettings */
avatarUserSettings?: (HistorySync.IAvatarUserSettings|null);
/** GlobalSettings fontSize */
fontSize?: (number|null);
/** GlobalSettings securityNotifications */
securityNotifications?: (boolean|null);
/** GlobalSettings autoUnarchiveChats */
autoUnarchiveChats?: (boolean|null);
/** GlobalSettings videoQualityMode */
videoQualityMode?: (number|null);
/** GlobalSettings photoQualityMode */
photoQualityMode?: (number|null);
/** GlobalSettings individualNotificationSettings */
individualNotificationSettings?: (HistorySync.INotificationSettings|null);
/** GlobalSettings groupNotificationSettings */
groupNotificationSettings?: (HistorySync.INotificationSettings|null);
/** GlobalSettings chatLockSettings */
chatLockSettings?: (ChatLockSettings.IChatLockSettings|null);
/** GlobalSettings chatDbLidMigrationTimestamp */
chatDbLidMigrationTimestamp?: (number|Long|null);
}
/** Represents a GlobalSettings. */
class GlobalSettings implements IGlobalSettings {
/**
* Constructs a new GlobalSettings.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IGlobalSettings);
/** GlobalSettings lightThemeWallpaper. */
public lightThemeWallpaper?: (HistorySync.IWallpaperSettings|null);
/** GlobalSettings mediaVisibility. */
public mediaVisibility: HistorySync.MediaVisibility;
/** GlobalSettings darkThemeWallpaper. */
public darkThemeWallpaper?: (HistorySync.IWallpaperSettings|null);
/** GlobalSettings autoDownloadWiFi. */
public autoDownloadWiFi?: (HistorySync.IAutoDownloadSettings|null);
/** GlobalSettings autoDownloadCellular. */
public autoDownloadCellular?: (HistorySync.IAutoDownloadSettings|null);
/** GlobalSettings autoDownloadRoaming. */
public autoDownloadRoaming?: (HistorySync.IAutoDownloadSettings|null);
/** GlobalSettings showIndividualNotificationsPreview. */
public showIndividualNotificationsPreview: boolean;
/** GlobalSettings showGroupNotificationsPreview. */
public showGroupNotificationsPreview: boolean;
/** GlobalSettings disappearingModeDuration. */
public disappearingModeDuration: number;
/** GlobalSettings disappearingModeTimestamp. */
public disappearingModeTimestamp: (number|Long);
/** GlobalSettings avatarUserSettings. */
public avatarUserSettings?: (HistorySync.IAvatarUserSettings|null);
/** GlobalSettings fontSize. */
public fontSize: number;
/** GlobalSettings securityNotifications. */
public securityNotifications: boolean;
/** GlobalSettings autoUnarchiveChats. */
public autoUnarchiveChats: boolean;
/** GlobalSettings videoQualityMode. */
public videoQualityMode: number;
/** GlobalSettings photoQualityMode. */
public photoQualityMode: number;
/** GlobalSettings individualNotificationSettings. */
public individualNotificationSettings?: (HistorySync.INotificationSettings|null);
/** GlobalSettings groupNotificationSettings. */
public groupNotificationSettings?: (HistorySync.INotificationSettings|null);
/** GlobalSettings chatLockSettings. */
public chatLockSettings?: (ChatLockSettings.IChatLockSettings|null);
/** GlobalSettings chatDbLidMigrationTimestamp. */
public chatDbLidMigrationTimestamp: (number|Long);
/**
* Creates a new GlobalSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns GlobalSettings instance
*/
public static create(properties?: HistorySync.IGlobalSettings): HistorySync.GlobalSettings;
/**
* Encodes the specified GlobalSettings message. Does not implicitly {@link HistorySync.GlobalSettings.verify|verify} messages.
* @param message GlobalSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IGlobalSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GlobalSettings message, length delimited. Does not implicitly {@link HistorySync.GlobalSettings.verify|verify} messages.
* @param message GlobalSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IGlobalSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GlobalSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GlobalSettings
* @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): HistorySync.GlobalSettings;
/**
* Decodes a GlobalSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GlobalSettings
* @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)): HistorySync.GlobalSettings;
/**
* Verifies a GlobalSettings 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 a GlobalSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GlobalSettings
*/
public static fromObject(object: { [k: string]: any }): HistorySync.GlobalSettings;
/**
* Creates a plain object from a GlobalSettings message. Also converts values to other types if specified.
* @param message GlobalSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.GlobalSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GlobalSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for GlobalSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a WallpaperSettings. */
interface IWallpaperSettings {
/** WallpaperSettings filename */
filename?: (string|null);
/** WallpaperSettings opacity */
opacity?: (number|null);
}
/** Represents a WallpaperSettings. */
class WallpaperSettings implements IWallpaperSettings {
/**
* Constructs a new WallpaperSettings.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IWallpaperSettings);
/** WallpaperSettings filename. */
public filename: string;
/** WallpaperSettings opacity. */
public opacity: number;
/**
* Creates a new WallpaperSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns WallpaperSettings instance
*/
public static create(properties?: HistorySync.IWallpaperSettings): HistorySync.WallpaperSettings;
/**
* Encodes the specified WallpaperSettings message. Does not implicitly {@link HistorySync.WallpaperSettings.verify|verify} messages.
* @param message WallpaperSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IWallpaperSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified WallpaperSettings message, length delimited. Does not implicitly {@link HistorySync.WallpaperSettings.verify|verify} messages.
* @param message WallpaperSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IWallpaperSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a WallpaperSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns WallpaperSettings
* @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): HistorySync.WallpaperSettings;
/**
* Decodes a WallpaperSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns WallpaperSettings
* @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)): HistorySync.WallpaperSettings;
/**
* Verifies a WallpaperSettings 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 a WallpaperSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns WallpaperSettings
*/
public static fromObject(object: { [k: string]: any }): HistorySync.WallpaperSettings;
/**
* Creates a plain object from a WallpaperSettings message. Also converts values to other types if specified.
* @param message WallpaperSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.WallpaperSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this WallpaperSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for WallpaperSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a GroupParticipant. */
interface IGroupParticipant {
/** GroupParticipant userJid */
userJid: string;
/** GroupParticipant rank */
rank?: (HistorySync.GroupParticipant.Rank|null);
/** GroupParticipant memberLabel */
memberLabel?: (E2E.IMemberLabel|null);
}
/** Represents a GroupParticipant. */
class GroupParticipant implements IGroupParticipant {
/**
* Constructs a new GroupParticipant.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IGroupParticipant);
/** GroupParticipant userJid. */
public userJid: string;
/** GroupParticipant rank. */
public rank: HistorySync.GroupParticipant.Rank;
/** GroupParticipant memberLabel. */
public memberLabel?: (E2E.IMemberLabel|null);
/**
* Creates a new GroupParticipant instance using the specified properties.
* @param [properties] Properties to set
* @returns GroupParticipant instance
*/
public static create(properties?: HistorySync.IGroupParticipant): HistorySync.GroupParticipant;
/**
* Encodes the specified GroupParticipant message. Does not implicitly {@link HistorySync.GroupParticipant.verify|verify} messages.
* @param message GroupParticipant message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IGroupParticipant, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GroupParticipant message, length delimited. Does not implicitly {@link HistorySync.GroupParticipant.verify|verify} messages.
* @param message GroupParticipant message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IGroupParticipant, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GroupParticipant message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GroupParticipant
* @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): HistorySync.GroupParticipant;
/**
* Decodes a GroupParticipant message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GroupParticipant
* @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)): HistorySync.GroupParticipant;
/**
* Verifies a GroupParticipant 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 a GroupParticipant message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GroupParticipant
*/
public static fromObject(object: { [k: string]: any }): HistorySync.GroupParticipant;
/**
* Creates a plain object from a GroupParticipant message. Also converts values to other types if specified.
* @param message GroupParticipant
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: HistorySync.GroupParticipant, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GroupParticipant to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for GroupParticipant
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace GroupParticipant {
/** Rank enum. */
enum Rank {
REGULAR = 0,
ADMIN = 1,
SUPERADMIN = 2
}
}
/** Properties of a Pushname. */
interface IPushname {
/** Pushname id */
id?: (string|null);
/** Pushname pushname */
pushname?: (string|null);
}
/** Represents a Pushname. */
class Pushname implements IPushname {
/**
* Constructs a new Pushname.
* @param [properties] Properties to set
*/
constructor(properties?: HistorySync.IPushname);
/** Pushname id. */
public id: string;
/** Pushname pushname. */
public pushname: string;
/**
* Creates a new Pushname instance using the specified properties.
* @param [properties] Properties to set
* @returns Pushname instance
*/
public static create(properties?: HistorySync.IPushname): HistorySync.Pushname;
/**
* Encodes the specified Pushname message. Does not implicitly {@link HistorySync.Pushname.verify|verify} messages.
* @param message Pushname message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: HistorySync.IPushname, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Pushname message, length delimited. Does not implicitly {@link HistorySync.Pushname.verify|verify} messages.
* @param message Pushname message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: HistorySync.IPushname, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Pushname message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Pushname
* @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): HistorySync.Pushname;
/**
* Decodes a Pushname message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Pushname
* @throws {Error} If the payload is not a reader or valid buffer