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

152
WAProto/index.d.ts vendored
View File

@@ -716,6 +716,102 @@ export namespace proto {
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. */
interface IBizAccountLinkInfo {
@@ -3387,6 +3483,9 @@ export namespace proto {
/** Conversation pnhDuplicateLidThread */
pnhDuplicateLidThread?: (boolean|null);
/** Conversation lidJid */
lidJid?: (string|null);
}
/** Represents a Conversation. */
@@ -3521,6 +3620,9 @@ export namespace proto {
/** Conversation pnhDuplicateLidThread. */
public pnhDuplicateLidThread: boolean;
/** Conversation lidJid. */
public lidJid: string;
/**
* Creates a new Conversation instance using the specified properties.
* @param [properties] Properties to set
@@ -3959,6 +4061,9 @@ export namespace proto {
/** HistorySyncConfig fullSyncSizeMbLimit */
fullSyncSizeMbLimit?: (number|null);
/** HistorySyncConfig storageQuotaMb */
storageQuotaMb?: (number|null);
}
/** Represents a HistorySyncConfig. */
@@ -3976,6 +4081,9 @@ export namespace proto {
/** HistorySyncConfig fullSyncSizeMbLimit. */
public fullSyncSizeMbLimit: number;
/** HistorySyncConfig storageQuotaMb. */
public storageQuotaMb: number;
/**
* Creates a new HistorySyncConfig instance using the specified properties.
* @param [properties] Properties to set
@@ -4510,6 +4618,9 @@ export namespace proto {
/** GlobalSettings disappearingModeTimestamp */
disappearingModeTimestamp?: (number|Long|null);
/** GlobalSettings avatarUserSettings */
avatarUserSettings?: (proto.IAvatarUserSettings|null);
}
/** Represents a GlobalSettings. */
@@ -4551,6 +4662,9 @@ export namespace proto {
/** GlobalSettings disappearingModeTimestamp. */
public disappearingModeTimestamp: (number|Long);
/** GlobalSettings avatarUserSettings. */
public avatarUserSettings?: (proto.IAvatarUserSettings|null);
/**
* Creates a new GlobalSettings instance using the specified properties.
* @param [properties] Properties to set
@@ -10601,6 +10715,9 @@ export namespace proto {
/** HistorySyncNotification progress */
progress?: (number|null);
/** HistorySyncNotification oldestMsgInChunkTimestampSec */
oldestMsgInChunkTimestampSec?: (number|Long|null);
}
/** Represents a HistorySyncNotification. */
@@ -10639,6 +10756,9 @@ export namespace proto {
/** HistorySyncNotification progress. */
public progress: number;
/** HistorySyncNotification oldestMsgInChunkTimestampSec. */
public oldestMsgInChunkTimestampSec: (number|Long);
/**
* Creates a new HistorySyncNotification instance using the specified properties.
* @param [properties] Properties to set
@@ -16681,11 +16801,17 @@ export namespace proto {
/** TemplateMessage hydratedTemplate */
hydratedTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage templateId */
templateId?: (string|null);
/** TemplateMessage fourRowTemplate */
fourRowTemplate?: (proto.Message.TemplateMessage.IFourRowTemplate|null);
/** TemplateMessage hydratedFourRowTemplate */
hydratedFourRowTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage interactiveMessageTemplate */
interactiveMessageTemplate?: (proto.Message.IInteractiveMessage|null);
}
/** Represents a TemplateMessage. */
@@ -16703,14 +16829,20 @@ export namespace proto {
/** TemplateMessage hydratedTemplate. */
public hydratedTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage templateId. */
public templateId: string;
/** TemplateMessage fourRowTemplate. */
public fourRowTemplate?: (proto.Message.TemplateMessage.IFourRowTemplate|null);
/** TemplateMessage hydratedFourRowTemplate. */
public hydratedFourRowTemplate?: (proto.Message.TemplateMessage.IHydratedFourRowTemplate|null);
/** TemplateMessage interactiveMessageTemplate. */
public interactiveMessageTemplate?: (proto.Message.IInteractiveMessage|null);
/** TemplateMessage format. */
public format?: ("fourRowTemplate"|"hydratedFourRowTemplate");
public format?: ("fourRowTemplate"|"hydratedFourRowTemplate"|"interactiveMessageTemplate");
/**
* Creates a new TemplateMessage instance using the specified properties.
@@ -22310,6 +22442,9 @@ export namespace proto {
/** ContactAction firstName */
firstName?: (string|null);
/** ContactAction lidJid */
lidJid?: (string|null);
}
/** Represents a ContactAction. */
@@ -22327,6 +22462,9 @@ export namespace proto {
/** ContactAction firstName. */
public firstName: string;
/** ContactAction lidJid. */
public lidJid: string;
/**
* Creates a new ContactAction instance using the specified properties.
* @param [properties] Properties to set
@@ -23066,6 +23204,9 @@ export namespace proto {
/** MuteAction muteEndTimestamp */
muteEndTimestamp?: (number|Long|null);
/** MuteAction autoMuted */
autoMuted?: (boolean|null);
}
/** Represents a MuteAction. */
@@ -23083,6 +23224,9 @@ export namespace proto {
/** MuteAction muteEndTimestamp. */
public muteEndTimestamp: (number|Long);
/** MuteAction autoMuted. */
public autoMuted: boolean;
/**
* Creates a new MuteAction instance using the specified properties.
* @param [properties] Properties to set
@@ -27323,7 +27467,11 @@ export namespace proto {
BIZ_CHAT_ASSIGNMENT = 154,
CHAT_PSA = 155,
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
}
}