UNPKG

@faouzkk/baileys

Version:

A WebSockets library for interacting with WhatsApp Web

962 lines (848 loc) 537 kB
import * as $protobuf from "protobufjs"; import Long = require("long"); export namespace proto { interface IADVDeviceIdentity { rawId?: (number|null); timestamp?: (number|Long|null); keyIndex?: (number|null); accountType?: (proto.ADVEncryptionType|null); deviceType?: (proto.ADVEncryptionType|null); } class ADVDeviceIdentity implements IADVDeviceIdentity { constructor(p?: proto.IADVDeviceIdentity); public rawId: number; public timestamp: (number|Long); public keyIndex: number; public accountType: proto.ADVEncryptionType; public deviceType: proto.ADVEncryptionType; public static create(properties?: proto.IADVDeviceIdentity): proto.ADVDeviceIdentity; public static encode(m: proto.IADVDeviceIdentity, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ADVDeviceIdentity; public static getTypeUrl(typeUrlPrefix?: string): string; } enum ADVEncryptionType { E2EE = 0, HOSTED = 1 } interface IADVKeyIndexList { rawId?: (number|null); timestamp?: (number|Long|null); currentIndex?: (number|null); validIndexes?: (number[]|null); accountType?: (proto.ADVEncryptionType|null); } class ADVKeyIndexList implements IADVKeyIndexList { constructor(p?: proto.IADVKeyIndexList); public rawId: number; public timestamp: (number|Long); public currentIndex: number; public validIndexes: number[]; public accountType: proto.ADVEncryptionType; public static create(properties?: proto.IADVKeyIndexList): proto.ADVKeyIndexList; public static encode(m: proto.IADVKeyIndexList, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ADVKeyIndexList; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IADVSignedDeviceIdentity { details?: (Uint8Array|null); accountSignatureKey?: (Uint8Array|null); accountSignature?: (Uint8Array|null); deviceSignature?: (Uint8Array|null); } class ADVSignedDeviceIdentity implements IADVSignedDeviceIdentity { constructor(p?: proto.IADVSignedDeviceIdentity); public details: Uint8Array; public accountSignatureKey: Uint8Array; public accountSignature: Uint8Array; public deviceSignature: Uint8Array; public static create(properties?: proto.IADVSignedDeviceIdentity): proto.ADVSignedDeviceIdentity; public static encode(m: proto.IADVSignedDeviceIdentity, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ADVSignedDeviceIdentity; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IADVSignedDeviceIdentityHMAC { details?: (Uint8Array|null); hmac?: (Uint8Array|null); accountType?: (proto.ADVEncryptionType|null); } class ADVSignedDeviceIdentityHMAC implements IADVSignedDeviceIdentityHMAC { constructor(p?: proto.IADVSignedDeviceIdentityHMAC); public details: Uint8Array; public hmac: Uint8Array; public accountType: proto.ADVEncryptionType; public static create(properties?: proto.IADVSignedDeviceIdentityHMAC): proto.ADVSignedDeviceIdentityHMAC; public static encode(m: proto.IADVSignedDeviceIdentityHMAC, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ADVSignedDeviceIdentityHMAC; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IADVSignedKeyIndexList { details?: (Uint8Array|null); accountSignature?: (Uint8Array|null); accountSignatureKey?: (Uint8Array|null); } class ADVSignedKeyIndexList implements IADVSignedKeyIndexList { constructor(p?: proto.IADVSignedKeyIndexList); public details: Uint8Array; public accountSignature: Uint8Array; public accountSignatureKey: Uint8Array; public static create(properties?: proto.IADVSignedKeyIndexList): proto.ADVSignedKeyIndexList; public static encode(m: proto.IADVSignedKeyIndexList, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ADVSignedKeyIndexList; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IAIQueryFanout { messageKey?: (proto.IMessageKey|null); message?: (proto.IMessage|null); timestamp?: (number|Long|null); } class AIQueryFanout implements IAIQueryFanout { constructor(p?: proto.IAIQueryFanout); public messageKey?: (proto.IMessageKey|null); public message?: (proto.IMessage|null); public timestamp: (number|Long); public static create(properties?: proto.IAIQueryFanout): proto.AIQueryFanout; public static encode(m: proto.IAIQueryFanout, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIQueryFanout; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IAIRichResponseMessage { messageType?: (proto.AIRichResponseMessage.AIRichResponseMessageType|null); submessages?: (proto.AIRichResponseMessage.IAIRichResponseSubMessage[]|null); unifiedResponse?: (proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null); } class AIRichResponseMessage implements IAIRichResponseMessage { constructor(p?: proto.IAIRichResponseMessage); public messageType: proto.AIRichResponseMessage.AIRichResponseMessageType; public submessages: proto.AIRichResponseMessage.IAIRichResponseSubMessage[]; public unifiedResponse?: (proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null); public static create(properties?: proto.IAIRichResponseMessage): proto.AIRichResponseMessage; public static encode(m: proto.IAIRichResponseMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseMessage { interface IAIRichResponseCodeMetadata { codeLanguage?: (string|null); codeBlocks?: (proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[]|null); } class AIRichResponseCodeMetadata implements IAIRichResponseCodeMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata); public codeLanguage: string; public codeBlocks: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[]; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata): proto.AIRichResponseMessage.AIRichResponseCodeMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseCodeMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseCodeMetadata { interface IAIRichResponseCodeBlock { highlightType?: (proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType|null); codeContent?: (string|null); } class AIRichResponseCodeBlock implements IAIRichResponseCodeBlock { constructor(p?: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock); public highlightType: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType; public codeContent: string; public static create(properties?: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; public static encode(m: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; public static getTypeUrl(typeUrlPrefix?: string): string; } enum AIRichResponseCodeHighlightType { AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0, AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1, AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2, AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3, AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4, AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5 } } interface IAIRichResponseContentItemsMetadata { itemsMetadata?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]|null); contentType?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType|null); } class AIRichResponseContentItemsMetadata implements IAIRichResponseContentItemsMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata); public itemsMetadata: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]; public contentType: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseContentItemsMetadata { interface IAIRichResponseContentItemMetadata { reelItem?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null); } class AIRichResponseContentItemMetadata implements IAIRichResponseContentItemMetadata { constructor(p?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata); public reelItem?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null); public aIRichResponseContentItem?: "reelItem"; public static create(properties?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; public static encode(m: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IAIRichResponseReelItem { title?: (string|null); profileIconUrl?: (string|null); thumbnailUrl?: (string|null); videoUrl?: (string|null); } class AIRichResponseReelItem implements IAIRichResponseReelItem { constructor(p?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem); public title: string; public profileIconUrl: string; public thumbnailUrl: string; public videoUrl: string; public static create(properties?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; public static encode(m: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; public static getTypeUrl(typeUrlPrefix?: string): string; } enum ContentType { DEFAULT = 0, CAROUSEL = 1 } } interface IAIRichResponseDynamicMetadata { type?: (proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType|null); version?: (number|Long|null); url?: (string|null); loopCount?: (number|null); } class AIRichResponseDynamicMetadata implements IAIRichResponseDynamicMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata); public type: proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType; public version: (number|Long); public url: string; public loopCount: number; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseDynamicMetadata { enum AIRichResponseDynamicMetadataType { AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0, AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1, AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2 } } interface IAIRichResponseGridImageMetadata { gridImageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); imageUrls?: (proto.AIRichResponseMessage.IAIRichResponseImageURL[]|null); } class AIRichResponseGridImageMetadata implements IAIRichResponseGridImageMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata); public gridImageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); public imageUrls: proto.AIRichResponseMessage.IAIRichResponseImageURL[]; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata): proto.AIRichResponseMessage.AIRichResponseGridImageMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseGridImageMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IAIRichResponseImageURL { imagePreviewUrl?: (string|null); imageHighResUrl?: (string|null); sourceUrl?: (string|null); } class AIRichResponseImageURL implements IAIRichResponseImageURL { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseImageURL); public imagePreviewUrl: string; public imageHighResUrl: string; public sourceUrl: string; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseImageURL): proto.AIRichResponseMessage.AIRichResponseImageURL; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseImageURL, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseImageURL; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IAIRichResponseInlineImageMetadata { imageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); imageText?: (string|null); alignment?: (proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment|null); tapLinkUrl?: (string|null); } class AIRichResponseInlineImageMetadata implements IAIRichResponseInlineImageMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata); public imageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); public imageText: string; public alignment: proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment; public tapLinkUrl: string; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata): proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseInlineImageMetadata { enum AIRichResponseImageAlignment { AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0, AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1, AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2 } } interface IAIRichResponseLatexMetadata { text?: (string|null); expressions?: (proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression[]|null); } class AIRichResponseLatexMetadata implements IAIRichResponseLatexMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseLatexMetadata); public text: string; public expressions: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression[]; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseLatexMetadata): proto.AIRichResponseMessage.AIRichResponseLatexMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseLatexMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseLatexMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseLatexMetadata { interface IAIRichResponseLatexExpression { latexExpression?: (string|null); url?: (string|null); width?: (number|null); height?: (number|null); fontHeight?: (number|null); imageTopPadding?: (number|null); imageLeadingPadding?: (number|null); imageBottomPadding?: (number|null); imageTrailingPadding?: (number|null); } class AIRichResponseLatexExpression implements IAIRichResponseLatexExpression { constructor(p?: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression); public latexExpression: string; public url: string; public width: number; public height: number; public fontHeight: number; public imageTopPadding: number; public imageLeadingPadding: number; public imageBottomPadding: number; public imageTrailingPadding: number; public static create(properties?: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression): proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; public static encode(m: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; public static getTypeUrl(typeUrlPrefix?: string): string; } } interface IAIRichResponseMapMetadata { centerLatitude?: (number|null); centerLongitude?: (number|null); latitudeDelta?: (number|null); longitudeDelta?: (number|null); annotations?: (proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation[]|null); showInfoList?: (boolean|null); } class AIRichResponseMapMetadata implements IAIRichResponseMapMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseMapMetadata); public centerLatitude: number; public centerLongitude: number; public latitudeDelta: number; public longitudeDelta: number; public annotations: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation[]; public showInfoList: boolean; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseMapMetadata): proto.AIRichResponseMessage.AIRichResponseMapMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseMapMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseMapMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseMapMetadata { interface IAIRichResponseMapAnnotation { annotationNumber?: (number|null); latitude?: (number|null); longitude?: (number|null); title?: (string|null); body?: (string|null); } class AIRichResponseMapAnnotation implements IAIRichResponseMapAnnotation { constructor(p?: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation); public annotationNumber: number; public latitude: number; public longitude: number; public title: string; public body: string; public static create(properties?: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation): proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; public static encode(m: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; public static getTypeUrl(typeUrlPrefix?: string): string; } } enum AIRichResponseMessageType { AI_RICH_RESPONSE_TYPE_UNKNOWN = 0, AI_RICH_RESPONSE_TYPE_STANDARD = 1 } interface IAIRichResponseSubMessage { messageType?: (proto.AIRichResponseMessage.AIRichResponseSubMessageType|null); gridImageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata|null); messageText?: (string|null); imageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata|null); codeMetadata?: (proto.AIRichResponseMessage.IAIRichResponseCodeMetadata|null); tableMetadata?: (proto.AIRichResponseMessage.IAIRichResponseTableMetadata|null); dynamicMetadata?: (proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata|null); latexMetadata?: (proto.AIRichResponseMessage.IAIRichResponseLatexMetadata|null); mapMetadata?: (proto.AIRichResponseMessage.IAIRichResponseMapMetadata|null); contentItemsMetadata?: (proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata|null); } class AIRichResponseSubMessage implements IAIRichResponseSubMessage { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseSubMessage); public messageType: proto.AIRichResponseMessage.AIRichResponseSubMessageType; public gridImageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata|null); public messageText: string; public imageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata|null); public codeMetadata?: (proto.AIRichResponseMessage.IAIRichResponseCodeMetadata|null); public tableMetadata?: (proto.AIRichResponseMessage.IAIRichResponseTableMetadata|null); public dynamicMetadata?: (proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata|null); public latexMetadata?: (proto.AIRichResponseMessage.IAIRichResponseLatexMetadata|null); public mapMetadata?: (proto.AIRichResponseMessage.IAIRichResponseMapMetadata|null); public contentItemsMetadata?: (proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata|null); public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseSubMessage): proto.AIRichResponseMessage.AIRichResponseSubMessage; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseSubMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseSubMessage; public static getTypeUrl(typeUrlPrefix?: string): string; } enum AIRichResponseSubMessageType { AI_RICH_RESPONSE_UNKNOWN = 0, AI_RICH_RESPONSE_GRID_IMAGE = 1, AI_RICH_RESPONSE_TEXT = 2, AI_RICH_RESPONSE_INLINE_IMAGE = 3, AI_RICH_RESPONSE_TABLE = 4, AI_RICH_RESPONSE_CODE = 5, AI_RICH_RESPONSE_DYNAMIC = 6, AI_RICH_RESPONSE_MAP = 7, AI_RICH_RESPONSE_LATEX = 8, AI_RICH_RESPONSE_CONTENT_ITEMS = 9 } interface IAIRichResponseTableMetadata { rows?: (proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow[]|null); } class AIRichResponseTableMetadata implements IAIRichResponseTableMetadata { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseTableMetadata); public rows: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow[]; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseTableMetadata): proto.AIRichResponseMessage.AIRichResponseTableMetadata; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseTableMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseTableMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIRichResponseTableMetadata { interface IAIRichResponseTableRow { items?: (string[]|null); isHeading?: (boolean|null); } class AIRichResponseTableRow implements IAIRichResponseTableRow { constructor(p?: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow); public items: string[]; public isHeading: boolean; public static create(properties?: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow): proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow; public static encode(m: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow; public static getTypeUrl(typeUrlPrefix?: string): string; } } interface IAIRichResponseUnifiedResponse { data?: (Uint8Array|null); } class AIRichResponseUnifiedResponse implements IAIRichResponseUnifiedResponse { constructor(p?: proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse); public data: Uint8Array; public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse): proto.AIRichResponseMessage.AIRichResponseUnifiedResponse; public static encode(m: proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseUnifiedResponse; public static getTypeUrl(typeUrlPrefix?: string): string; } } interface IAccount { lid?: (string|null); username?: (string|null); countryCode?: (string|null); isUsernameDeleted?: (boolean|null); } class Account implements IAccount { constructor(p?: proto.IAccount); public lid: string; public username: string; public countryCode: string; public isUsernameDeleted: boolean; public static create(properties?: proto.IAccount): proto.Account; public static encode(m: proto.IAccount, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Account; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IActionLink { url?: (string|null); buttonTitle?: (string|null); } class ActionLink implements IActionLink { constructor(p?: proto.IActionLink); public url: string; public buttonTitle: string; public static create(properties?: proto.IActionLink): proto.ActionLink; public static encode(m: proto.IActionLink, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ActionLink; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IAutoDownloadSettings { downloadImages?: (boolean|null); downloadAudio?: (boolean|null); downloadVideo?: (boolean|null); downloadDocuments?: (boolean|null); } class AutoDownloadSettings implements IAutoDownloadSettings { constructor(p?: proto.IAutoDownloadSettings); public downloadImages: boolean; public downloadAudio: boolean; public downloadVideo: boolean; public downloadDocuments: boolean; public static create(properties?: proto.IAutoDownloadSettings): proto.AutoDownloadSettings; public static encode(m: proto.IAutoDownloadSettings, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AutoDownloadSettings; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IAvatarUserSettings { fbid?: (string|null); password?: (string|null); } class AvatarUserSettings implements IAvatarUserSettings { constructor(p?: proto.IAvatarUserSettings); public fbid: string; public password: string; public static create(properties?: proto.IAvatarUserSettings): proto.AvatarUserSettings; public static encode(m: proto.IAvatarUserSettings, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AvatarUserSettings; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBizAccountLinkInfo { whatsappBizAcctFbid?: (number|Long|null); whatsappAcctNumber?: (string|null); issueTime?: (number|Long|null); hostStorage?: (proto.BizAccountLinkInfo.HostStorageType|null); accountType?: (proto.BizAccountLinkInfo.AccountType|null); } class BizAccountLinkInfo implements IBizAccountLinkInfo { constructor(p?: proto.IBizAccountLinkInfo); public whatsappBizAcctFbid: (number|Long); public whatsappAcctNumber: string; public issueTime: (number|Long); public hostStorage: proto.BizAccountLinkInfo.HostStorageType; public accountType: proto.BizAccountLinkInfo.AccountType; public static create(properties?: proto.IBizAccountLinkInfo): proto.BizAccountLinkInfo; public static encode(m: proto.IBizAccountLinkInfo, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BizAccountLinkInfo; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BizAccountLinkInfo { enum AccountType { ENTERPRISE = 0 } enum HostStorageType { ON_PREMISE = 0, FACEBOOK = 1 } } interface IBizAccountPayload { vnameCert?: (proto.IVerifiedNameCertificate|null); bizAcctLinkInfo?: (Uint8Array|null); } class BizAccountPayload implements IBizAccountPayload { constructor(p?: proto.IBizAccountPayload); public vnameCert?: (proto.IVerifiedNameCertificate|null); public bizAcctLinkInfo: Uint8Array; public static create(properties?: proto.IBizAccountPayload): proto.BizAccountPayload; public static encode(m: proto.IBizAccountPayload, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BizAccountPayload; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBizIdentityInfo { vlevel?: (proto.BizIdentityInfo.VerifiedLevelValue|null); vnameCert?: (proto.IVerifiedNameCertificate|null); signed?: (boolean|null); revoked?: (boolean|null); hostStorage?: (proto.BizIdentityInfo.HostStorageType|null); actualActors?: (proto.BizIdentityInfo.ActualActorsType|null); privacyModeTs?: (number|Long|null); featureControls?: (number|Long|null); } class BizIdentityInfo implements IBizIdentityInfo { constructor(p?: proto.IBizIdentityInfo); public vlevel: proto.BizIdentityInfo.VerifiedLevelValue; public vnameCert?: (proto.IVerifiedNameCertificate|null); public signed: boolean; public revoked: boolean; public hostStorage: proto.BizIdentityInfo.HostStorageType; public actualActors: proto.BizIdentityInfo.ActualActorsType; public privacyModeTs: (number|Long); public featureControls: (number|Long); public static create(properties?: proto.IBizIdentityInfo): proto.BizIdentityInfo; public static encode(m: proto.IBizIdentityInfo, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BizIdentityInfo; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BizIdentityInfo { enum ActualActorsType { SELF = 0, BSP = 1 } enum HostStorageType { ON_PREMISE = 0, FACEBOOK = 1 } enum VerifiedLevelValue { UNKNOWN = 0, LOW = 1, HIGH = 2 } } interface IBotAgeCollectionMetadata { ageCollectionEligible?: (boolean|null); shouldTriggerAgeCollectionOnClient?: (boolean|null); } class BotAgeCollectionMetadata implements IBotAgeCollectionMetadata { constructor(p?: proto.IBotAgeCollectionMetadata); public ageCollectionEligible: boolean; public shouldTriggerAgeCollectionOnClient: boolean; public static create(properties?: proto.IBotAgeCollectionMetadata): proto.BotAgeCollectionMetadata; public static encode(m: proto.IBotAgeCollectionMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotAgeCollectionMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBotAvatarMetadata { sentiment?: (number|null); behaviorGraph?: (string|null); action?: (number|null); intensity?: (number|null); wordCount?: (number|null); } class BotAvatarMetadata implements IBotAvatarMetadata { constructor(p?: proto.IBotAvatarMetadata); public sentiment: number; public behaviorGraph: string; public action: number; public intensity: number; public wordCount: number; public static create(properties?: proto.IBotAvatarMetadata): proto.BotAvatarMetadata; public static encode(m: proto.IBotAvatarMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotAvatarMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBotCapabilityMetadata { capabilities?: (proto.BotCapabilityMetadata.BotCapabilityType[]|null); } class BotCapabilityMetadata implements IBotCapabilityMetadata { constructor(p?: proto.IBotCapabilityMetadata); public capabilities: proto.BotCapabilityMetadata.BotCapabilityType[]; public static create(properties?: proto.IBotCapabilityMetadata): proto.BotCapabilityMetadata; public static encode(m: proto.IBotCapabilityMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotCapabilityMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BotCapabilityMetadata { enum BotCapabilityType { UNKNOWN = 0, PROGRESS_INDICATOR = 1, RICH_RESPONSE_HEADING = 2, RICH_RESPONSE_NESTED_LIST = 3, AI_MEMORY = 4, RICH_RESPONSE_THREAD_SURFING = 5, RICH_RESPONSE_TABLE = 6, RICH_RESPONSE_CODE = 7, RICH_RESPONSE_STRUCTURED_RESPONSE = 8, RICH_RESPONSE_INLINE_IMAGE = 9, WA_IG_1P_PLUGIN_RANKING_CONTROL = 10, WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11, WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12, WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13, WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14, WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15, WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16, WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17, WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18, WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19, WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20, RICH_RESPONSE_SUB_HEADING = 21, RICH_RESPONSE_GRID_IMAGE = 22, AI_STUDIO_UGC_MEMORY = 23, RICH_RESPONSE_LATEX = 24, RICH_RESPONSE_MAPS = 25, RICH_RESPONSE_INLINE_REELS = 26, AGENTIC_PLANNING = 27, ACCOUNT_LINKING = 28, STREAMING_DISAGGREGATION = 29, RICH_RESPONSE_GRID_IMAGE_3P = 30, RICH_RESPONSE_LATEX_INLINE = 31, QUERY_PLAN = 32, PROACTIVE_MESSAGE = 33, RICH_RESPONSE_UNIFIED_RESPONSE = 34, PROMOTION_MESSAGE = 35 } } interface IBotImagineMetadata { imagineType?: (proto.BotImagineMetadata.ImagineType|null); } class BotImagineMetadata implements IBotImagineMetadata { constructor(p?: proto.IBotImagineMetadata); public imagineType: proto.BotImagineMetadata.ImagineType; public static create(properties?: proto.IBotImagineMetadata): proto.BotImagineMetadata; public static encode(m: proto.IBotImagineMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotImagineMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BotImagineMetadata { enum ImagineType { UNKNOWN = 0, IMAGINE = 1, MEMU = 2, FLASH = 3, EDIT = 4 } } interface IBotLinkedAccount { type?: (proto.BotLinkedAccount.BotLinkedAccountType|null); } class BotLinkedAccount implements IBotLinkedAccount { constructor(p?: proto.IBotLinkedAccount); public type: proto.BotLinkedAccount.BotLinkedAccountType; public static create(properties?: proto.IBotLinkedAccount): proto.BotLinkedAccount; public static encode(m: proto.IBotLinkedAccount, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotLinkedAccount; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BotLinkedAccount { enum BotLinkedAccountType { BOT_LINKED_ACCOUNT_TYPE_1P = 0 } } interface IBotLinkedAccountsMetadata { accounts?: (proto.IBotLinkedAccount[]|null); acAuthTokens?: (Uint8Array|null); acErrorCode?: (number|null); } class BotLinkedAccountsMetadata implements IBotLinkedAccountsMetadata { constructor(p?: proto.IBotLinkedAccountsMetadata); public accounts: proto.IBotLinkedAccount[]; public acAuthTokens: Uint8Array; public acErrorCode: number; public static create(properties?: proto.IBotLinkedAccountsMetadata): proto.BotLinkedAccountsMetadata; public static encode(m: proto.IBotLinkedAccountsMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotLinkedAccountsMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBotMediaMetadata { fileSha256?: (string|null); mediaKey?: (string|null); fileEncSha256?: (string|null); directPath?: (string|null); mediaKeyTimestamp?: (number|Long|null); mimetype?: (string|null); orientationType?: (proto.BotMediaMetadata.OrientationType|null); } class BotMediaMetadata implements IBotMediaMetadata { constructor(p?: proto.IBotMediaMetadata); public fileSha256: string; public mediaKey: string; public fileEncSha256: string; public directPath: string; public mediaKeyTimestamp: (number|Long); public mimetype: string; public orientationType: proto.BotMediaMetadata.OrientationType; public static create(properties?: proto.IBotMediaMetadata): proto.BotMediaMetadata; public static encode(m: proto.IBotMediaMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMediaMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BotMediaMetadata { enum OrientationType { CENTER = 1, LEFT = 2, RIGHT = 3 } } interface IBotMemoryFact { fact?: (string|null); factId?: (string|null); } class BotMemoryFact implements IBotMemoryFact { constructor(p?: proto.IBotMemoryFact); public fact: string; public factId: string; public static create(properties?: proto.IBotMemoryFact): proto.BotMemoryFact; public static encode(m: proto.IBotMemoryFact, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMemoryFact; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBotMemoryMetadata { addedFacts?: (proto.IBotMemoryFact[]|null); removedFacts?: (proto.IBotMemoryFact[]|null); disclaimer?: (string|null); } class BotMemoryMetadata implements IBotMemoryMetadata { constructor(p?: proto.IBotMemoryMetadata); public addedFacts: proto.IBotMemoryFact[]; public removedFacts: proto.IBotMemoryFact[]; public disclaimer: string; public static create(properties?: proto.IBotMemoryMetadata): proto.BotMemoryMetadata; public static encode(m: proto.IBotMemoryMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMemoryMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBotMemuMetadata { faceImages?: (proto.IBotMediaMetadata[]|null); } class BotMemuMetadata implements IBotMemuMetadata { constructor(p?: proto.IBotMemuMetadata); public faceImages: proto.IBotMediaMetadata[]; public static create(properties?: proto.IBotMemuMetadata): proto.BotMemuMetadata; public static encode(m: proto.IBotMemuMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMemuMetadata; public static getTypeUrl(typeUrlPrefix?: string): string; } interface IBotMetadata { avatarMetadata?: (proto.IBotAvatarMetadata|null); personaId?: (string|null); pluginMetadata?: (proto.IBotPluginMetadata|null); suggestedPromptMetadata?: (proto.IBotSuggestedPromptMetadata|null); invokerJid?: (string|null); sessionMetadata?: (proto.IBotSessionMetadata|null); memuMetadata?: (proto.IBotMemuMetadata|null); timezone?: (string|null); reminderMetadata?: (proto.IBotReminderMetadata|null); modelMetadata?: (proto.IBotModelMetadata|null); messageDisclaimerText?: (string|null); progressIndicatorMetadata?: (proto.IBotProgressIndicatorMetadata|null); capabilityMetadata?: (proto.IBotCapabilityMetadata|null); imagineMetadata?: (proto.IBotImagineMetadata|null); memoryMetadata?: (proto.IBotMemoryMetadata|null); renderingMetadata?: (proto.IBotRenderingMetadata|null); botMetricsMetadata?: (proto.IBotMetricsMetadata|null); botLinkedAccountsMetadata?: (proto.IBotLinkedAccountsMetadata|null); richResponseSourcesMetadata?: (proto.IBotSourcesMetadata|null); aiConversationContext?: (Uint8Array|null); botPromotionMessageMetadata?: (proto.IBotPromotionMessageMetadata|null); botModeSelectionMetadata?: (proto.IBotModeSelectionMetadata|null); botQuotaMetadata?: (proto.IBotQuotaMetadata|null); botAgeCollectionMetadata?: (proto.IBotAgeCollectionMetadata|null); } class BotMetadata implements IBotMetadata { constructor(p?: proto.IBotMetadata); public avatarMetadata?: (proto.IBotAvatarMetadata|null); public personaId: string; public pluginMetadata?: (proto.IBotPluginMetadata|null); public suggestedPromptMetadata?: (proto.IBotSuggestedPromptMetadata|null); public invokerJid: string; public sessionMetadata?: (proto.IBotSessionMetadata|null); public memuMetadata?: (proto.IBotMemuMetadata|null); public timezone: string; public reminderMetadata?: (proto.IBotReminderMetadata|null); public modelMetadata?: (proto.IBotModelMetadata|null); public messageDisclaimerText: string; public progressIndicatorMetadata?: (proto.IBotProgressIndicatorMetadata|null); public capabilityMetadata?: (proto.IBotCapabilityMetadata|null); public imagineMetadata?: (proto.IBotImagineMetadata|null); public memoryMetadata?: (proto.IBotMemoryMetadata|null); public renderingMetadata?: (proto.IBotRenderingMetadata|null); public botMetricsMetadata?: (proto.IBotMetricsMetadata|null); public botLinkedAccountsMetadata?: (proto.IBotLinkedAccountsMetadata|null); public richResponseSourcesMetadata?: (proto.IBotSourcesMetadata|null); public aiConversationContext: Uint8Array; public botPromotionMessageMetadata?: (proto.IBotPromotionMessageMetadata|null); public botModeSelectionMetadata?: (proto.IBotModeSelectionMetadata|null); public botQuotaMetadata?: (proto.IBotQuotaMetadata|null); public botAgeCollectionMetadata?: (proto.IBotAgeCollectionMetadata|null); public static create(properties?: proto.IBotMetadata): proto.BotMetadata; public static encode(m: proto.IBotMetadata, w?: