@vreden/meta
Version:
Baileys is a lightweight JavaScript library for interacting with the WhatsApp Web API using WebSocket.
1,212 lines (999 loc) • 1.61 MB
TypeScript
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace E2E. */
export namespace E2E {
/** Properties of a AIQueryFanout. */
interface IAIQueryFanout {
/** AIQueryFanout messageKey */
messageKey?: (Protocol.IMessageKey|null);
/** AIQueryFanout message */
message?: (E2E.IMessage|null);
/** AIQueryFanout timestamp */
timestamp?: (number|Long|null);
}
/** Represents a AIQueryFanout. */
class AIQueryFanout implements IAIQueryFanout {
/**
* Constructs a new AIQueryFanout.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IAIQueryFanout);
/** AIQueryFanout messageKey. */
public messageKey?: (Protocol.IMessageKey|null);
/** AIQueryFanout message. */
public message?: (E2E.IMessage|null);
/** AIQueryFanout timestamp. */
public timestamp: (number|Long);
/**
* Creates a new AIQueryFanout instance using the specified properties.
* @param [properties] Properties to set
* @returns AIQueryFanout instance
*/
public static create(properties?: E2E.IAIQueryFanout): E2E.AIQueryFanout;
/**
* Encodes the specified AIQueryFanout message. Does not implicitly {@link E2E.AIQueryFanout.verify|verify} messages.
* @param message AIQueryFanout message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IAIQueryFanout, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIQueryFanout message, length delimited. Does not implicitly {@link E2E.AIQueryFanout.verify|verify} messages.
* @param message AIQueryFanout message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IAIQueryFanout, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIQueryFanout message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AIQueryFanout
* @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): E2E.AIQueryFanout;
/**
* Decodes a AIQueryFanout message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AIQueryFanout
* @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)): E2E.AIQueryFanout;
/**
* Verifies a AIQueryFanout 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 AIQueryFanout message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AIQueryFanout
*/
public static fromObject(object: { [k: string]: any }): E2E.AIQueryFanout;
/**
* Creates a plain object from a AIQueryFanout message. Also converts values to other types if specified.
* @param message AIQueryFanout
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.AIQueryFanout, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AIQueryFanout to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AIQueryFanout
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a AIRichResponseMessage. */
interface IAIRichResponseMessage {
/** AIRichResponseMessage messageType */
messageType?: (AICommon.AIRichResponseMessageType|null);
/** AIRichResponseMessage submessages */
submessages?: (AICommon.IAIRichResponseSubMessage[]|null);
/** AIRichResponseMessage unifiedResponse */
unifiedResponse?: (AICommon.IAIRichResponseUnifiedResponse|null);
/** AIRichResponseMessage contextInfo */
contextInfo?: (E2E.IContextInfo|null);
}
/** Represents a AIRichResponseMessage. */
class AIRichResponseMessage implements IAIRichResponseMessage {
/**
* Constructs a new AIRichResponseMessage.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IAIRichResponseMessage);
/** AIRichResponseMessage messageType. */
public messageType: AICommon.AIRichResponseMessageType;
/** AIRichResponseMessage submessages. */
public submessages: AICommon.IAIRichResponseSubMessage[];
/** AIRichResponseMessage unifiedResponse. */
public unifiedResponse?: (AICommon.IAIRichResponseUnifiedResponse|null);
/** AIRichResponseMessage contextInfo. */
public contextInfo?: (E2E.IContextInfo|null);
/**
* Creates a new AIRichResponseMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns AIRichResponseMessage instance
*/
public static create(properties?: E2E.IAIRichResponseMessage): E2E.AIRichResponseMessage;
/**
* Encodes the specified AIRichResponseMessage message. Does not implicitly {@link E2E.AIRichResponseMessage.verify|verify} messages.
* @param message AIRichResponseMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IAIRichResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIRichResponseMessage message, length delimited. Does not implicitly {@link E2E.AIRichResponseMessage.verify|verify} messages.
* @param message AIRichResponseMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IAIRichResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIRichResponseMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AIRichResponseMessage
* @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): E2E.AIRichResponseMessage;
/**
* Decodes a AIRichResponseMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AIRichResponseMessage
* @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)): E2E.AIRichResponseMessage;
/**
* Verifies a AIRichResponseMessage 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 AIRichResponseMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AIRichResponseMessage
*/
public static fromObject(object: { [k: string]: any }): E2E.AIRichResponseMessage;
/**
* Creates a plain object from a AIRichResponseMessage message. Also converts values to other types if specified.
* @param message AIRichResponseMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.AIRichResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AIRichResponseMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AIRichResponseMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a MemberLabel. */
interface IMemberLabel {
/** MemberLabel label */
label?: (string|null);
/** MemberLabel labelTimestamp */
labelTimestamp?: (number|Long|null);
}
/** Represents a MemberLabel. */
class MemberLabel implements IMemberLabel {
/**
* Constructs a new MemberLabel.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IMemberLabel);
/** MemberLabel label. */
public label: string;
/** MemberLabel labelTimestamp. */
public labelTimestamp: (number|Long);
/**
* Creates a new MemberLabel instance using the specified properties.
* @param [properties] Properties to set
* @returns MemberLabel instance
*/
public static create(properties?: E2E.IMemberLabel): E2E.MemberLabel;
/**
* Encodes the specified MemberLabel message. Does not implicitly {@link E2E.MemberLabel.verify|verify} messages.
* @param message MemberLabel message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IMemberLabel, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MemberLabel message, length delimited. Does not implicitly {@link E2E.MemberLabel.verify|verify} messages.
* @param message MemberLabel message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IMemberLabel, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a MemberLabel message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns MemberLabel
* @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): E2E.MemberLabel;
/**
* Decodes a MemberLabel message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns MemberLabel
* @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)): E2E.MemberLabel;
/**
* Verifies a MemberLabel 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 MemberLabel message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns MemberLabel
*/
public static fromObject(object: { [k: string]: any }): E2E.MemberLabel;
/**
* Creates a plain object from a MemberLabel message. Also converts values to other types if specified.
* @param message MemberLabel
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.MemberLabel, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this MemberLabel to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for MemberLabel
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an UrlTrackingMap. */
interface IUrlTrackingMap {
/** UrlTrackingMap urlTrackingMapElements */
urlTrackingMapElements?: (E2E.UrlTrackingMap.IUrlTrackingMapElement[]|null);
}
/** Represents an UrlTrackingMap. */
class UrlTrackingMap implements IUrlTrackingMap {
/**
* Constructs a new UrlTrackingMap.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IUrlTrackingMap);
/** UrlTrackingMap urlTrackingMapElements. */
public urlTrackingMapElements: E2E.UrlTrackingMap.IUrlTrackingMapElement[];
/**
* Creates a new UrlTrackingMap instance using the specified properties.
* @param [properties] Properties to set
* @returns UrlTrackingMap instance
*/
public static create(properties?: E2E.IUrlTrackingMap): E2E.UrlTrackingMap;
/**
* Encodes the specified UrlTrackingMap message. Does not implicitly {@link E2E.UrlTrackingMap.verify|verify} messages.
* @param message UrlTrackingMap message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IUrlTrackingMap, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UrlTrackingMap message, length delimited. Does not implicitly {@link E2E.UrlTrackingMap.verify|verify} messages.
* @param message UrlTrackingMap message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IUrlTrackingMap, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an UrlTrackingMap message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UrlTrackingMap
* @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): E2E.UrlTrackingMap;
/**
* Decodes an UrlTrackingMap message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UrlTrackingMap
* @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)): E2E.UrlTrackingMap;
/**
* Verifies an UrlTrackingMap 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 UrlTrackingMap message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UrlTrackingMap
*/
public static fromObject(object: { [k: string]: any }): E2E.UrlTrackingMap;
/**
* Creates a plain object from an UrlTrackingMap message. Also converts values to other types if specified.
* @param message UrlTrackingMap
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.UrlTrackingMap, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UrlTrackingMap to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for UrlTrackingMap
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace UrlTrackingMap {
/** Properties of an UrlTrackingMapElement. */
interface IUrlTrackingMapElement {
/** UrlTrackingMapElement originalUrl */
originalUrl?: (string|null);
/** UrlTrackingMapElement unconsentedUsersUrl */
unconsentedUsersUrl?: (string|null);
/** UrlTrackingMapElement consentedUsersUrl */
consentedUsersUrl?: (string|null);
/** UrlTrackingMapElement cardIndex */
cardIndex?: (number|null);
}
/** Represents an UrlTrackingMapElement. */
class UrlTrackingMapElement implements IUrlTrackingMapElement {
/**
* Constructs a new UrlTrackingMapElement.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.UrlTrackingMap.IUrlTrackingMapElement);
/** UrlTrackingMapElement originalUrl. */
public originalUrl: string;
/** UrlTrackingMapElement unconsentedUsersUrl. */
public unconsentedUsersUrl: string;
/** UrlTrackingMapElement consentedUsersUrl. */
public consentedUsersUrl: string;
/** UrlTrackingMapElement cardIndex. */
public cardIndex: number;
/**
* Creates a new UrlTrackingMapElement instance using the specified properties.
* @param [properties] Properties to set
* @returns UrlTrackingMapElement instance
*/
public static create(properties?: E2E.UrlTrackingMap.IUrlTrackingMapElement): E2E.UrlTrackingMap.UrlTrackingMapElement;
/**
* Encodes the specified UrlTrackingMapElement message. Does not implicitly {@link E2E.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages.
* @param message UrlTrackingMapElement message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.UrlTrackingMap.IUrlTrackingMapElement, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UrlTrackingMapElement message, length delimited. Does not implicitly {@link E2E.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages.
* @param message UrlTrackingMapElement message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.UrlTrackingMap.IUrlTrackingMapElement, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an UrlTrackingMapElement message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UrlTrackingMapElement
* @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): E2E.UrlTrackingMap.UrlTrackingMapElement;
/**
* Decodes an UrlTrackingMapElement message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UrlTrackingMapElement
* @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)): E2E.UrlTrackingMap.UrlTrackingMapElement;
/**
* Verifies an UrlTrackingMapElement 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 UrlTrackingMapElement message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UrlTrackingMapElement
*/
public static fromObject(object: { [k: string]: any }): E2E.UrlTrackingMap.UrlTrackingMapElement;
/**
* Creates a plain object from an UrlTrackingMapElement message. Also converts values to other types if specified.
* @param message UrlTrackingMapElement
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.UrlTrackingMap.UrlTrackingMapElement, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UrlTrackingMapElement to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for UrlTrackingMapElement
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Properties of a ProcessedVideo. */
interface IProcessedVideo {
/** ProcessedVideo directPath */
directPath?: (string|null);
/** ProcessedVideo fileSha256 */
fileSha256?: (Uint8Array|null);
/** ProcessedVideo height */
height?: (number|null);
/** ProcessedVideo width */
width?: (number|null);
/** ProcessedVideo fileLength */
fileLength?: (number|Long|null);
/** ProcessedVideo bitrate */
bitrate?: (number|null);
/** ProcessedVideo quality */
quality?: (E2E.ProcessedVideo.VideoQuality|null);
/** ProcessedVideo capabilities */
capabilities?: (string[]|null);
}
/** Represents a ProcessedVideo. */
class ProcessedVideo implements IProcessedVideo {
/**
* Constructs a new ProcessedVideo.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IProcessedVideo);
/** ProcessedVideo directPath. */
public directPath: string;
/** ProcessedVideo fileSha256. */
public fileSha256: Uint8Array;
/** ProcessedVideo height. */
public height: number;
/** ProcessedVideo width. */
public width: number;
/** ProcessedVideo fileLength. */
public fileLength: (number|Long);
/** ProcessedVideo bitrate. */
public bitrate: number;
/** ProcessedVideo quality. */
public quality: E2E.ProcessedVideo.VideoQuality;
/** ProcessedVideo capabilities. */
public capabilities: string[];
/**
* Creates a new ProcessedVideo instance using the specified properties.
* @param [properties] Properties to set
* @returns ProcessedVideo instance
*/
public static create(properties?: E2E.IProcessedVideo): E2E.ProcessedVideo;
/**
* Encodes the specified ProcessedVideo message. Does not implicitly {@link E2E.ProcessedVideo.verify|verify} messages.
* @param message ProcessedVideo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IProcessedVideo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ProcessedVideo message, length delimited. Does not implicitly {@link E2E.ProcessedVideo.verify|verify} messages.
* @param message ProcessedVideo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IProcessedVideo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ProcessedVideo message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ProcessedVideo
* @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): E2E.ProcessedVideo;
/**
* Decodes a ProcessedVideo message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ProcessedVideo
* @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)): E2E.ProcessedVideo;
/**
* Verifies a ProcessedVideo 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 ProcessedVideo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ProcessedVideo
*/
public static fromObject(object: { [k: string]: any }): E2E.ProcessedVideo;
/**
* Creates a plain object from a ProcessedVideo message. Also converts values to other types if specified.
* @param message ProcessedVideo
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.ProcessedVideo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ProcessedVideo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ProcessedVideo
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace ProcessedVideo {
/** VideoQuality enum. */
enum VideoQuality {
UNDEFINED = 0,
LOW = 1,
MID = 2,
HIGH = 3
}
}
/** Properties of a LIDMigrationMappingSyncMessage. */
interface ILIDMigrationMappingSyncMessage {
/** LIDMigrationMappingSyncMessage encodedMappingPayload */
encodedMappingPayload?: (Uint8Array|null);
}
/** Represents a LIDMigrationMappingSyncMessage. */
class LIDMigrationMappingSyncMessage implements ILIDMigrationMappingSyncMessage {
/**
* Constructs a new LIDMigrationMappingSyncMessage.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.ILIDMigrationMappingSyncMessage);
/** LIDMigrationMappingSyncMessage encodedMappingPayload. */
public encodedMappingPayload: Uint8Array;
/**
* Creates a new LIDMigrationMappingSyncMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns LIDMigrationMappingSyncMessage instance
*/
public static create(properties?: E2E.ILIDMigrationMappingSyncMessage): E2E.LIDMigrationMappingSyncMessage;
/**
* Encodes the specified LIDMigrationMappingSyncMessage message. Does not implicitly {@link E2E.LIDMigrationMappingSyncMessage.verify|verify} messages.
* @param message LIDMigrationMappingSyncMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.ILIDMigrationMappingSyncMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified LIDMigrationMappingSyncMessage message, length delimited. Does not implicitly {@link E2E.LIDMigrationMappingSyncMessage.verify|verify} messages.
* @param message LIDMigrationMappingSyncMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.ILIDMigrationMappingSyncMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a LIDMigrationMappingSyncMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns LIDMigrationMappingSyncMessage
* @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): E2E.LIDMigrationMappingSyncMessage;
/**
* Decodes a LIDMigrationMappingSyncMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns LIDMigrationMappingSyncMessage
* @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)): E2E.LIDMigrationMappingSyncMessage;
/**
* Verifies a LIDMigrationMappingSyncMessage 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 LIDMigrationMappingSyncMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns LIDMigrationMappingSyncMessage
*/
public static fromObject(object: { [k: string]: any }): E2E.LIDMigrationMappingSyncMessage;
/**
* Creates a plain object from a LIDMigrationMappingSyncMessage message. Also converts values to other types if specified.
* @param message LIDMigrationMappingSyncMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.LIDMigrationMappingSyncMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this LIDMigrationMappingSyncMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for LIDMigrationMappingSyncMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a MediaNotifyMessage. */
interface IMediaNotifyMessage {
/** MediaNotifyMessage expressPathUrl */
expressPathUrl?: (string|null);
/** MediaNotifyMessage fileEncSha256 */
fileEncSha256?: (Uint8Array|null);
/** MediaNotifyMessage fileLength */
fileLength?: (number|Long|null);
}
/** Represents a MediaNotifyMessage. */
class MediaNotifyMessage implements IMediaNotifyMessage {
/**
* Constructs a new MediaNotifyMessage.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IMediaNotifyMessage);
/** MediaNotifyMessage expressPathUrl. */
public expressPathUrl: string;
/** MediaNotifyMessage fileEncSha256. */
public fileEncSha256: Uint8Array;
/** MediaNotifyMessage fileLength. */
public fileLength: (number|Long);
/**
* Creates a new MediaNotifyMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns MediaNotifyMessage instance
*/
public static create(properties?: E2E.IMediaNotifyMessage): E2E.MediaNotifyMessage;
/**
* Encodes the specified MediaNotifyMessage message. Does not implicitly {@link E2E.MediaNotifyMessage.verify|verify} messages.
* @param message MediaNotifyMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IMediaNotifyMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MediaNotifyMessage message, length delimited. Does not implicitly {@link E2E.MediaNotifyMessage.verify|verify} messages.
* @param message MediaNotifyMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IMediaNotifyMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a MediaNotifyMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns MediaNotifyMessage
* @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): E2E.MediaNotifyMessage;
/**
* Decodes a MediaNotifyMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns MediaNotifyMessage
* @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)): E2E.MediaNotifyMessage;
/**
* Verifies a MediaNotifyMessage 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 MediaNotifyMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns MediaNotifyMessage
*/
public static fromObject(object: { [k: string]: any }): E2E.MediaNotifyMessage;
/**
* Creates a plain object from a MediaNotifyMessage message. Also converts values to other types if specified.
* @param message MediaNotifyMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.MediaNotifyMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this MediaNotifyMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for MediaNotifyMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a MessageSecretMessage. */
interface IMessageSecretMessage {
/** MessageSecretMessage version */
version?: (number|null);
/** MessageSecretMessage encIv */
encIv?: (Uint8Array|null);
/** MessageSecretMessage encPayload */
encPayload?: (Uint8Array|null);
}
/** Represents a MessageSecretMessage. */
class MessageSecretMessage implements IMessageSecretMessage {
/**
* Constructs a new MessageSecretMessage.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IMessageSecretMessage);
/** MessageSecretMessage version. */
public version: number;
/** MessageSecretMessage encIv. */
public encIv: Uint8Array;
/** MessageSecretMessage encPayload. */
public encPayload: Uint8Array;
/**
* Creates a new MessageSecretMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns MessageSecretMessage instance
*/
public static create(properties?: E2E.IMessageSecretMessage): E2E.MessageSecretMessage;
/**
* Encodes the specified MessageSecretMessage message. Does not implicitly {@link E2E.MessageSecretMessage.verify|verify} messages.
* @param message MessageSecretMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IMessageSecretMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MessageSecretMessage message, length delimited. Does not implicitly {@link E2E.MessageSecretMessage.verify|verify} messages.
* @param message MessageSecretMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IMessageSecretMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a MessageSecretMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns MessageSecretMessage
* @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): E2E.MessageSecretMessage;
/**
* Decodes a MessageSecretMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns MessageSecretMessage
* @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)): E2E.MessageSecretMessage;
/**
* Verifies a MessageSecretMessage 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 MessageSecretMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns MessageSecretMessage
*/
public static fromObject(object: { [k: string]: any }): E2E.MessageSecretMessage;
/**
* Creates a plain object from a MessageSecretMessage message. Also converts values to other types if specified.
* @param message MessageSecretMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.MessageSecretMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this MessageSecretMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for MessageSecretMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a GroupMention. */
interface IGroupMention {
/** GroupMention groupJid */
groupJid?: (string|null);
/** GroupMention groupSubject */
groupSubject?: (string|null);
}
/** Represents a GroupMention. */
class GroupMention implements IGroupMention {
/**
* Constructs a new GroupMention.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IGroupMention);
/** GroupMention groupJid. */
public groupJid: string;
/** GroupMention groupSubject. */
public groupSubject: string;
/**
* Creates a new GroupMention instance using the specified properties.
* @param [properties] Properties to set
* @returns GroupMention instance
*/
public static create(properties?: E2E.IGroupMention): E2E.GroupMention;
/**
* Encodes the specified GroupMention message. Does not implicitly {@link E2E.GroupMention.verify|verify} messages.
* @param message GroupMention message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IGroupMention, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GroupMention message, length delimited. Does not implicitly {@link E2E.GroupMention.verify|verify} messages.
* @param message GroupMention message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IGroupMention, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GroupMention message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GroupMention
* @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): E2E.GroupMention;
/**
* Decodes a GroupMention message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GroupMention
* @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)): E2E.GroupMention;
/**
* Verifies a GroupMention 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 GroupMention message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GroupMention
*/
public static fromObject(object: { [k: string]: any }): E2E.GroupMention;
/**
* Creates a plain object from a GroupMention message. Also converts values to other types if specified.
* @param message GroupMention
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.GroupMention, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GroupMention to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for GroupMention
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an ActionLink. */
interface IActionLink {
/** ActionLink url */
url?: (string|null);
/** ActionLink buttonTitle */
buttonTitle?: (string|null);
}
/** Represents an ActionLink. */
class ActionLink implements IActionLink {
/**
* Constructs a new ActionLink.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IActionLink);
/** ActionLink url. */
public url: string;
/** ActionLink buttonTitle. */
public buttonTitle: string;
/**
* Creates a new ActionLink instance using the specified properties.
* @param [properties] Properties to set
* @returns ActionLink instance
*/
public static create(properties?: E2E.IActionLink): E2E.ActionLink;
/**
* Encodes the specified ActionLink message. Does not implicitly {@link E2E.ActionLink.verify|verify} messages.
* @param message ActionLink message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IActionLink, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ActionLink message, length delimited. Does not implicitly {@link E2E.ActionLink.verify|verify} messages.
* @param message ActionLink message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IActionLink, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an ActionLink message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ActionLink
* @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): E2E.ActionLink;
/**
* Decodes an ActionLink message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ActionLink
* @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)): E2E.ActionLink;
/**
* Verifies an ActionLink 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 ActionLink message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ActionLink
*/
public static fromObject(object: { [k: string]: any }): E2E.ActionLink;
/**
* Creates a plain object from an ActionLink message. Also converts values to other types if specified.
* @param message ActionLink
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.ActionLink, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ActionLink to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**