Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 38620d2e2f | |||
| bb78f61c6a | |||
| e1f6066db4 | |||
| a193402832 | |||
| c4ff320513 | |||
| ba914b4336 | |||
| cca28756ee | |||
| 095fbf121f |
+163
-1
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package proto;
|
||||
|
||||
/// WhatsApp Version: 2.3000.1038164556
|
||||
/// WhatsApp Version: 2.3000.1038469210
|
||||
|
||||
message ADVDeviceIdentity {
|
||||
optional uint32 rawId = 1;
|
||||
@@ -14,6 +14,7 @@ message ADVDeviceIdentity {
|
||||
enum ADVEncryptionType {
|
||||
E2EE = 0;
|
||||
HOSTED = 1;
|
||||
NON_E2EE = 2;
|
||||
}
|
||||
message ADVKeyIndexList {
|
||||
optional uint32 rawId = 1;
|
||||
@@ -61,6 +62,7 @@ message AIHomeState {
|
||||
ANIMATE_PHOTO = 2;
|
||||
ANALYZE_FILE = 3;
|
||||
COLLABORATE = 4;
|
||||
OPEN_GREETING_CARD = 5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,6 +249,16 @@ message AIRichResponseUnifiedResponse {
|
||||
optional bytes data = 1;
|
||||
}
|
||||
|
||||
enum AISubscriptionRequestType {
|
||||
UNSPECIFIED = 0;
|
||||
THINK_HARD = 1;
|
||||
IMAGE_GEN = 2;
|
||||
VIDEO_GEN = 3;
|
||||
}
|
||||
message AISubscriptionUpsellMetadata {
|
||||
optional AISubscriptionRequestType requestType = 1;
|
||||
}
|
||||
|
||||
message AIThreadInfo {
|
||||
optional AIThreadServerInfo serverInfo = 1;
|
||||
optional AIThreadClientInfo clientInfo = 2;
|
||||
@@ -659,6 +671,8 @@ message BotMetadata {
|
||||
optional BotInfrastructureDiagnostics botInfrastructureDiagnostics = 37;
|
||||
optional AIMediaCollectionMetadata aiMediaCollectionMetadata = 38;
|
||||
optional BotCommandMetadata commandMetadata = 39;
|
||||
optional BotResolvedToolCallMetadata resolvedToolCallMetadata = 40;
|
||||
optional AISubscriptionUpsellMetadata subscriptionUpsellMetadata = 41;
|
||||
optional bytes internalMetadata = 999;
|
||||
}
|
||||
|
||||
@@ -897,6 +911,11 @@ message BotRenderingMetadata {
|
||||
|
||||
}
|
||||
|
||||
message BotResolvedToolCallMetadata {
|
||||
optional string toolCallId = 1;
|
||||
optional string resolutionDataSerialized = 2;
|
||||
}
|
||||
|
||||
message BotSessionMetadata {
|
||||
optional string sessionId = 1;
|
||||
optional BotSessionSource sessionSource = 2;
|
||||
@@ -1132,6 +1151,7 @@ message ClientPayload {
|
||||
optional int32 preacksCount = 45;
|
||||
optional int32 processingQueueSize = 46;
|
||||
repeated string pairedPeripherals = 47;
|
||||
optional bytes testIsolationId = 48;
|
||||
enum AccountType {
|
||||
DEFAULT = 0;
|
||||
GUEST = 1;
|
||||
@@ -1227,6 +1247,7 @@ message ClientPayload {
|
||||
optional string deviceExpId = 14;
|
||||
optional DeviceType deviceType = 15;
|
||||
optional string deviceModelType = 16;
|
||||
optional DistributionChannel distributionChannel = 17;
|
||||
message AppVersion {
|
||||
optional uint32 primary = 1;
|
||||
optional uint32 secondary = 2;
|
||||
@@ -1242,6 +1263,12 @@ message ClientPayload {
|
||||
WEARABLE = 3;
|
||||
VR = 4;
|
||||
}
|
||||
enum DistributionChannel {
|
||||
APPSTORE = 0;
|
||||
WEBSITE = 1;
|
||||
TESTFLIGHT = 2;
|
||||
INTERNAL = 3;
|
||||
}
|
||||
enum Platform {
|
||||
ANDROID = 0;
|
||||
IOS = 1;
|
||||
@@ -1411,6 +1438,9 @@ message ContextInfo {
|
||||
optional MediaDomainInfo mediaDomainInfo = 74;
|
||||
optional PartiallySelectedContent partiallySelectedContent = 75;
|
||||
optional uint32 afterReadDuration = 76;
|
||||
optional CrossAppSource crossAppSource = 77;
|
||||
optional BusinessInteractionPills businessInteractionPills = 78;
|
||||
optional string posterStatusId = 79;
|
||||
message AdReplyInfo {
|
||||
optional string advertiserName = 1;
|
||||
optional MediaType mediaType = 2;
|
||||
@@ -1423,10 +1453,47 @@ message ContextInfo {
|
||||
}
|
||||
}
|
||||
|
||||
message BusinessInteractionPills {
|
||||
optional string businessJid = 1;
|
||||
repeated Pill pills = 2;
|
||||
optional EntryPoint entryPoint = 3;
|
||||
enum EntryPoint {
|
||||
ENTRY_POINT_UNKNOWN = 0;
|
||||
P2P_LINK_SHARE = 1;
|
||||
CONTACT_CARD_SHARING = 2;
|
||||
PHONE_NUMBER = 3;
|
||||
STATUS = 4;
|
||||
IN_THREAD_CONTEXT_CARD = 5;
|
||||
}
|
||||
message Pill {
|
||||
optional ContextInfo.BusinessInteractionPills.PillType pillType = 1;
|
||||
optional string actionUrl = 2;
|
||||
}
|
||||
|
||||
enum PillType {
|
||||
UNKNOWN = 0;
|
||||
VIEW_BUSINESS = 1;
|
||||
CHAT = 2;
|
||||
CALL = 3;
|
||||
CATALOG = 4;
|
||||
CHANNEL = 5;
|
||||
BOOK_APPOINTMENT = 6;
|
||||
OFFERS = 7;
|
||||
BESTSELLERS = 8;
|
||||
MENU = 9;
|
||||
ABOUT = 10;
|
||||
}
|
||||
}
|
||||
|
||||
message BusinessMessageForwardInfo {
|
||||
optional string businessOwnerJid = 1;
|
||||
}
|
||||
|
||||
enum CrossAppSource {
|
||||
CROSS_APP_SOURCE_UNKNOWN = 0;
|
||||
CROSS_APP_SOURCE_INSTAGRAM = 1;
|
||||
CROSS_APP_SOURCE_FACEBOOK = 2;
|
||||
}
|
||||
message DataSharingContext {
|
||||
optional bool showMmDisclosure = 1;
|
||||
optional string encryptedSignalTokenConsented = 2;
|
||||
@@ -1635,6 +1702,7 @@ message Conversation {
|
||||
optional bool isMarketingMessageThread = 55;
|
||||
optional bool isSenderNewAccount = 56;
|
||||
optional uint32 afterReadDuration = 57;
|
||||
optional bool isSenderSuspicious = 58;
|
||||
enum EndOfHistoryTransferType {
|
||||
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
||||
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
||||
@@ -2348,6 +2416,8 @@ message Message {
|
||||
optional PollAddOptionMessage pollAddOptionMessage = 121;
|
||||
optional EventInviteMessage eventInviteMessage = 122;
|
||||
optional GroupRootKeyShare groupRootKeyShare = 123;
|
||||
optional P2PPaymentReminderNotification p2PPaymentReminderNotification = 124;
|
||||
optional SplitPaymentMessage splitPaymentMessage = 125;
|
||||
message AlbumMessage {
|
||||
optional uint32 expectedImageCount = 2;
|
||||
optional uint32 expectedVideoCount = 3;
|
||||
@@ -2528,6 +2598,41 @@ message Message {
|
||||
optional string id = 2;
|
||||
}
|
||||
|
||||
message ChatCustomImageWallpaper {
|
||||
optional string directPath = 1;
|
||||
optional bytes mediaKey = 2;
|
||||
optional bytes fileEncSha256 = 3;
|
||||
optional bytes fileSha256 = 4;
|
||||
optional float dimLevel = 5;
|
||||
}
|
||||
|
||||
message ChatDefaultWallpaper {
|
||||
optional bool isDoodleEnabled = 1;
|
||||
}
|
||||
|
||||
message ChatSolidColorWallpaper {
|
||||
optional string colorLight = 1;
|
||||
optional string colorDark = 2;
|
||||
optional bool isDoodleEnabled = 3;
|
||||
}
|
||||
|
||||
message ChatStockImageWallpaper {
|
||||
optional string stockImageId = 1;
|
||||
optional float dimLevel = 2;
|
||||
}
|
||||
|
||||
message ChatThemeSetting {
|
||||
optional int64 settingTimestampMs = 1;
|
||||
optional bool clearTheme = 2;
|
||||
optional string colorSchemeId = 3;
|
||||
oneof wallpaper {
|
||||
Message.ChatDefaultWallpaper defaultWallpaper = 10;
|
||||
Message.ChatSolidColorWallpaper solidColor = 11;
|
||||
Message.ChatStockImageWallpaper stockImage = 12;
|
||||
Message.ChatCustomImageWallpaper customImage = 13;
|
||||
}
|
||||
}
|
||||
|
||||
message CloudAPIThreadControlNotification {
|
||||
optional CloudAPIThreadControl status = 1;
|
||||
optional int64 senderNotificationTimestampMs = 2;
|
||||
@@ -2637,6 +2742,7 @@ message Message {
|
||||
optional int64 startTime = 5;
|
||||
optional string caption = 6;
|
||||
optional bool isCanceled = 7;
|
||||
optional int64 endTime = 8;
|
||||
}
|
||||
|
||||
message EventMessage {
|
||||
@@ -3219,6 +3325,35 @@ message Message {
|
||||
}
|
||||
}
|
||||
|
||||
message P2PPaymentReminderNotification {
|
||||
optional string reminderId = 1;
|
||||
optional Money amount = 2;
|
||||
optional ReminderFrequency frequency = 3;
|
||||
optional int64 nextReminderTimestamp = 4;
|
||||
optional int64 expiryTimestamp = 5;
|
||||
optional ReminderState state = 6;
|
||||
optional string description = 7;
|
||||
optional string creatorJid = 8;
|
||||
optional string receiverJid = 9;
|
||||
optional string upiId = 10;
|
||||
optional int64 createdTimestamp = 11;
|
||||
enum ReminderFrequency {
|
||||
UNKNOWN_FREQUENCY = 0;
|
||||
WEEKLY = 1;
|
||||
BIWEEKLY = 2;
|
||||
MONTHLY = 3;
|
||||
CUSTOM = 4;
|
||||
}
|
||||
enum ReminderState {
|
||||
UNKNOWN_STATE = 0;
|
||||
ACTIVE = 1;
|
||||
PAUSED = 2;
|
||||
STOPPED = 3;
|
||||
EXPIRED = 4;
|
||||
CANCELLED = 5;
|
||||
}
|
||||
}
|
||||
|
||||
message PaymentExtendedMetadata {
|
||||
optional uint32 type = 1;
|
||||
optional string platform = 2;
|
||||
@@ -3628,6 +3763,7 @@ message Message {
|
||||
optional MemberLabel memberLabel = 27;
|
||||
optional AIMediaCollectionMessage aiMediaCollectionMessage = 28;
|
||||
optional uint32 afterReadDuration = 29;
|
||||
optional Message.ChatThemeSetting chatThemeSetting = 30;
|
||||
enum Type {
|
||||
REVOKE = 0;
|
||||
EPHEMERAL_SETTING = 3;
|
||||
@@ -3657,6 +3793,7 @@ message Message {
|
||||
GROUP_MEMBER_LABEL_CHANGE = 30;
|
||||
AI_MEDIA_COLLECTION_MESSAGE = 31;
|
||||
MESSAGE_UNSCHEDULE = 32;
|
||||
CHAT_THEME_SETTING = 34;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3748,6 +3885,26 @@ message Message {
|
||||
optional bytes axolotlSenderKeyDistributionMessage = 2;
|
||||
}
|
||||
|
||||
message SplitPaymentMessage {
|
||||
optional string splitId = 1;
|
||||
optional Money totalAmount = 2;
|
||||
optional string description = 3;
|
||||
optional string requesterJid = 4;
|
||||
repeated Message.SplitPaymentParticipant participants = 5;
|
||||
optional int64 createdAtMs = 6;
|
||||
optional ContextInfo contextInfo = 17;
|
||||
}
|
||||
|
||||
message SplitPaymentParticipant {
|
||||
optional string jid = 1;
|
||||
optional Money amount = 2;
|
||||
optional SplitPaymentStatus status = 3;
|
||||
enum SplitPaymentStatus {
|
||||
PENDING = 0;
|
||||
PAID = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message StatusNotificationMessage {
|
||||
optional MessageKey responseMessageKey = 1;
|
||||
optional MessageKey originalMessageKey = 2;
|
||||
@@ -4698,6 +4855,7 @@ message StatusAttribution {
|
||||
SHARECHAT = 9;
|
||||
GOOGLE_PHOTOS = 10;
|
||||
SOUNDCLOUD = 11;
|
||||
SHAZAM = 12;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4755,6 +4913,7 @@ message StatusAttribution {
|
||||
LAYOUTS = 8;
|
||||
NEWSLETTER_STATUS = 9;
|
||||
STATUS_CLOSE_SHARING = 10;
|
||||
PAID_PARTNERSHIP = 11;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5266,6 +5425,7 @@ message SyncActionValue {
|
||||
repeated string keywords = 3;
|
||||
optional int32 count = 4;
|
||||
optional bool deleted = 5;
|
||||
repeated string associatedLabelIds = 6;
|
||||
}
|
||||
|
||||
message RecentEmojiWeightsAction {
|
||||
@@ -5783,6 +5943,8 @@ message WebMessageInfo {
|
||||
optional string hsmTag = 79;
|
||||
optional uint64 ephemeralExpirationTimestamp = 80;
|
||||
optional ScheduledMessageMetadata scheduledMessageMetadata = 81;
|
||||
optional string decisionId = 82;
|
||||
repeated string decisionSources = 83;
|
||||
enum BizPrivacyStatus {
|
||||
E2EE = 0;
|
||||
FB = 2;
|
||||
|
||||
Vendored
+377
-5
@@ -28,7 +28,8 @@ export namespace proto {
|
||||
|
||||
enum ADVEncryptionType {
|
||||
E2EE = 0,
|
||||
HOSTED = 1
|
||||
HOSTED = 1,
|
||||
NON_E2EE = 2
|
||||
}
|
||||
|
||||
interface IADVKeyIndexList {
|
||||
@@ -176,7 +177,8 @@ export namespace proto {
|
||||
CREATE_IMAGE = 1,
|
||||
ANIMATE_PHOTO = 2,
|
||||
ANALYZE_FILE = 3,
|
||||
COLLABORATE = 4
|
||||
COLLABORATE = 4,
|
||||
OPEN_GREETING_CARD = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -705,6 +707,29 @@ export namespace proto {
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
enum AISubscriptionRequestType {
|
||||
UNSPECIFIED = 0,
|
||||
THINK_HARD = 1,
|
||||
IMAGE_GEN = 2,
|
||||
VIDEO_GEN = 3
|
||||
}
|
||||
|
||||
interface IAISubscriptionUpsellMetadata {
|
||||
requestType?: (proto.AISubscriptionRequestType|null);
|
||||
}
|
||||
|
||||
class AISubscriptionUpsellMetadata implements IAISubscriptionUpsellMetadata {
|
||||
constructor(p?: proto.IAISubscriptionUpsellMetadata);
|
||||
public requestType?: (proto.AISubscriptionRequestType|null);
|
||||
public static create(properties?: proto.IAISubscriptionUpsellMetadata): proto.AISubscriptionUpsellMetadata;
|
||||
public static encode(m: proto.IAISubscriptionUpsellMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AISubscriptionUpsellMetadata;
|
||||
public static fromObject(d: { [k: string]: any }): proto.AISubscriptionUpsellMetadata;
|
||||
public static toObject(m: proto.AISubscriptionUpsellMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IAIThreadInfo {
|
||||
serverInfo?: (proto.AIThreadInfo.IAIThreadServerInfo|null);
|
||||
clientInfo?: (proto.AIThreadInfo.IAIThreadClientInfo|null);
|
||||
@@ -1702,6 +1727,8 @@ export namespace proto {
|
||||
botInfrastructureDiagnostics?: (proto.IBotInfrastructureDiagnostics|null);
|
||||
aiMediaCollectionMetadata?: (proto.IAIMediaCollectionMetadata|null);
|
||||
commandMetadata?: (proto.IBotCommandMetadata|null);
|
||||
resolvedToolCallMetadata?: (proto.IBotResolvedToolCallMetadata|null);
|
||||
subscriptionUpsellMetadata?: (proto.IAISubscriptionUpsellMetadata|null);
|
||||
internalMetadata?: (Uint8Array|null);
|
||||
}
|
||||
|
||||
@@ -1745,6 +1772,8 @@ export namespace proto {
|
||||
public botInfrastructureDiagnostics?: (proto.IBotInfrastructureDiagnostics|null);
|
||||
public aiMediaCollectionMetadata?: (proto.IAIMediaCollectionMetadata|null);
|
||||
public commandMetadata?: (proto.IBotCommandMetadata|null);
|
||||
public resolvedToolCallMetadata?: (proto.IBotResolvedToolCallMetadata|null);
|
||||
public subscriptionUpsellMetadata?: (proto.IAISubscriptionUpsellMetadata|null);
|
||||
public internalMetadata?: (Uint8Array|null);
|
||||
public static create(properties?: proto.IBotMetadata): proto.BotMetadata;
|
||||
public static encode(m: proto.IBotMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
@@ -2294,6 +2323,24 @@ export namespace proto {
|
||||
}
|
||||
}
|
||||
|
||||
interface IBotResolvedToolCallMetadata {
|
||||
toolCallId?: (string|null);
|
||||
resolutionDataSerialized?: (string|null);
|
||||
}
|
||||
|
||||
class BotResolvedToolCallMetadata implements IBotResolvedToolCallMetadata {
|
||||
constructor(p?: proto.IBotResolvedToolCallMetadata);
|
||||
public toolCallId?: (string|null);
|
||||
public resolutionDataSerialized?: (string|null);
|
||||
public static create(properties?: proto.IBotResolvedToolCallMetadata): proto.BotResolvedToolCallMetadata;
|
||||
public static encode(m: proto.IBotResolvedToolCallMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotResolvedToolCallMetadata;
|
||||
public static fromObject(d: { [k: string]: any }): proto.BotResolvedToolCallMetadata;
|
||||
public static toObject(m: proto.BotResolvedToolCallMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IBotSessionMetadata {
|
||||
sessionId?: (string|null);
|
||||
sessionSource?: (proto.BotSessionSource|null);
|
||||
@@ -2882,6 +2929,7 @@ export namespace proto {
|
||||
preacksCount?: (number|null);
|
||||
processingQueueSize?: (number|null);
|
||||
pairedPeripherals?: (string[]|null);
|
||||
testIsolationId?: (Uint8Array|null);
|
||||
}
|
||||
|
||||
class ClientPayload implements IClientPayload {
|
||||
@@ -2921,6 +2969,7 @@ export namespace proto {
|
||||
public preacksCount?: (number|null);
|
||||
public processingQueueSize?: (number|null);
|
||||
public pairedPeripherals: string[];
|
||||
public testIsolationId?: (Uint8Array|null);
|
||||
public static create(properties?: proto.IClientPayload): proto.ClientPayload;
|
||||
public static encode(m: proto.IClientPayload, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ClientPayload;
|
||||
@@ -3083,6 +3132,7 @@ export namespace proto {
|
||||
deviceExpId?: (string|null);
|
||||
deviceType?: (proto.ClientPayload.UserAgent.DeviceType|null);
|
||||
deviceModelType?: (string|null);
|
||||
distributionChannel?: (proto.ClientPayload.UserAgent.DistributionChannel|null);
|
||||
}
|
||||
|
||||
class UserAgent implements IUserAgent {
|
||||
@@ -3103,6 +3153,7 @@ export namespace proto {
|
||||
public deviceExpId?: (string|null);
|
||||
public deviceType?: (proto.ClientPayload.UserAgent.DeviceType|null);
|
||||
public deviceModelType?: (string|null);
|
||||
public distributionChannel?: (proto.ClientPayload.UserAgent.DistributionChannel|null);
|
||||
public static create(properties?: proto.ClientPayload.IUserAgent): proto.ClientPayload.UserAgent;
|
||||
public static encode(m: proto.ClientPayload.IUserAgent, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ClientPayload.UserAgent;
|
||||
@@ -3146,6 +3197,13 @@ export namespace proto {
|
||||
VR = 4
|
||||
}
|
||||
|
||||
enum DistributionChannel {
|
||||
APPSTORE = 0,
|
||||
WEBSITE = 1,
|
||||
TESTFLIGHT = 2,
|
||||
INTERNAL = 3
|
||||
}
|
||||
|
||||
enum Platform {
|
||||
ANDROID = 0,
|
||||
IOS = 1,
|
||||
@@ -3411,6 +3469,9 @@ export namespace proto {
|
||||
mediaDomainInfo?: (proto.IMediaDomainInfo|null);
|
||||
partiallySelectedContent?: (proto.ContextInfo.IPartiallySelectedContent|null);
|
||||
afterReadDuration?: (number|null);
|
||||
crossAppSource?: (proto.ContextInfo.CrossAppSource|null);
|
||||
businessInteractionPills?: (proto.ContextInfo.IBusinessInteractionPills|null);
|
||||
posterStatusId?: (string|null);
|
||||
}
|
||||
|
||||
class ContextInfo implements IContextInfo {
|
||||
@@ -3474,6 +3535,9 @@ export namespace proto {
|
||||
public mediaDomainInfo?: (proto.IMediaDomainInfo|null);
|
||||
public partiallySelectedContent?: (proto.ContextInfo.IPartiallySelectedContent|null);
|
||||
public afterReadDuration?: (number|null);
|
||||
public crossAppSource?: (proto.ContextInfo.CrossAppSource|null);
|
||||
public businessInteractionPills?: (proto.ContextInfo.IBusinessInteractionPills|null);
|
||||
public posterStatusId?: (string|null);
|
||||
public static create(properties?: proto.IContextInfo): proto.ContextInfo;
|
||||
public static encode(m: proto.IContextInfo, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo;
|
||||
@@ -3516,6 +3580,70 @@ export namespace proto {
|
||||
}
|
||||
}
|
||||
|
||||
interface IBusinessInteractionPills {
|
||||
businessJid?: (string|null);
|
||||
pills?: (proto.ContextInfo.BusinessInteractionPills.IPill[]|null);
|
||||
entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
|
||||
}
|
||||
|
||||
class BusinessInteractionPills implements IBusinessInteractionPills {
|
||||
constructor(p?: proto.ContextInfo.IBusinessInteractionPills);
|
||||
public businessJid?: (string|null);
|
||||
public pills: proto.ContextInfo.BusinessInteractionPills.IPill[];
|
||||
public entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
|
||||
public static create(properties?: proto.ContextInfo.IBusinessInteractionPills): proto.ContextInfo.BusinessInteractionPills;
|
||||
public static encode(m: proto.ContextInfo.IBusinessInteractionPills, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.BusinessInteractionPills;
|
||||
public static fromObject(d: { [k: string]: any }): proto.ContextInfo.BusinessInteractionPills;
|
||||
public static toObject(m: proto.ContextInfo.BusinessInteractionPills, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
namespace BusinessInteractionPills {
|
||||
|
||||
enum EntryPoint {
|
||||
ENTRY_POINT_UNKNOWN = 0,
|
||||
P2P_LINK_SHARE = 1,
|
||||
CONTACT_CARD_SHARING = 2,
|
||||
PHONE_NUMBER = 3,
|
||||
STATUS = 4,
|
||||
IN_THREAD_CONTEXT_CARD = 5
|
||||
}
|
||||
|
||||
interface IPill {
|
||||
pillType?: (proto.ContextInfo.BusinessInteractionPills.PillType|null);
|
||||
actionUrl?: (string|null);
|
||||
}
|
||||
|
||||
class Pill implements IPill {
|
||||
constructor(p?: proto.ContextInfo.BusinessInteractionPills.IPill);
|
||||
public pillType?: (proto.ContextInfo.BusinessInteractionPills.PillType|null);
|
||||
public actionUrl?: (string|null);
|
||||
public static create(properties?: proto.ContextInfo.BusinessInteractionPills.IPill): proto.ContextInfo.BusinessInteractionPills.Pill;
|
||||
public static encode(m: proto.ContextInfo.BusinessInteractionPills.IPill, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.BusinessInteractionPills.Pill;
|
||||
public static fromObject(d: { [k: string]: any }): proto.ContextInfo.BusinessInteractionPills.Pill;
|
||||
public static toObject(m: proto.ContextInfo.BusinessInteractionPills.Pill, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
enum PillType {
|
||||
UNKNOWN = 0,
|
||||
VIEW_BUSINESS = 1,
|
||||
CHAT = 2,
|
||||
CALL = 3,
|
||||
CATALOG = 4,
|
||||
CHANNEL = 5,
|
||||
BOOK_APPOINTMENT = 6,
|
||||
OFFERS = 7,
|
||||
BESTSELLERS = 8,
|
||||
MENU = 9,
|
||||
ABOUT = 10
|
||||
}
|
||||
}
|
||||
|
||||
interface IBusinessMessageForwardInfo {
|
||||
businessOwnerJid?: (string|null);
|
||||
}
|
||||
@@ -3532,6 +3660,12 @@ export namespace proto {
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
enum CrossAppSource {
|
||||
CROSS_APP_SOURCE_UNKNOWN = 0,
|
||||
CROSS_APP_SOURCE_INSTAGRAM = 1,
|
||||
CROSS_APP_SOURCE_FACEBOOK = 2
|
||||
}
|
||||
|
||||
interface IDataSharingContext {
|
||||
showMmDisclosure?: (boolean|null);
|
||||
encryptedSignalTokenConsented?: (string|null);
|
||||
@@ -3921,6 +4055,7 @@ export namespace proto {
|
||||
isMarketingMessageThread?: (boolean|null);
|
||||
isSenderNewAccount?: (boolean|null);
|
||||
afterReadDuration?: (number|null);
|
||||
isSenderSuspicious?: (boolean|null);
|
||||
}
|
||||
|
||||
class Conversation implements IConversation {
|
||||
@@ -3982,6 +4117,7 @@ export namespace proto {
|
||||
public isMarketingMessageThread?: (boolean|null);
|
||||
public isSenderNewAccount?: (boolean|null);
|
||||
public afterReadDuration?: (number|null);
|
||||
public isSenderSuspicious?: (boolean|null);
|
||||
public static create(properties?: proto.IConversation): proto.Conversation;
|
||||
public static encode(m: proto.IConversation, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Conversation;
|
||||
@@ -5725,6 +5861,8 @@ export namespace proto {
|
||||
pollAddOptionMessage?: (proto.Message.IPollAddOptionMessage|null);
|
||||
eventInviteMessage?: (proto.Message.IEventInviteMessage|null);
|
||||
groupRootKeyShare?: (proto.IGroupRootKeyShare|null);
|
||||
p2PPaymentReminderNotification?: (proto.Message.IP2PPaymentReminderNotification|null);
|
||||
splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
|
||||
}
|
||||
|
||||
class Message implements IMessage {
|
||||
@@ -5832,6 +5970,8 @@ export namespace proto {
|
||||
public pollAddOptionMessage?: (proto.Message.IPollAddOptionMessage|null);
|
||||
public eventInviteMessage?: (proto.Message.IEventInviteMessage|null);
|
||||
public groupRootKeyShare?: (proto.IGroupRootKeyShare|null);
|
||||
public p2PPaymentReminderNotification?: (proto.Message.IP2PPaymentReminderNotification|null);
|
||||
public splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
|
||||
public static create(properties?: proto.IMessage): proto.Message;
|
||||
public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message;
|
||||
@@ -6340,6 +6480,113 @@ export namespace proto {
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IChatCustomImageWallpaper {
|
||||
directPath?: (string|null);
|
||||
mediaKey?: (Uint8Array|null);
|
||||
fileEncSha256?: (Uint8Array|null);
|
||||
fileSha256?: (Uint8Array|null);
|
||||
dimLevel?: (number|null);
|
||||
}
|
||||
|
||||
class ChatCustomImageWallpaper implements IChatCustomImageWallpaper {
|
||||
constructor(p?: proto.Message.IChatCustomImageWallpaper);
|
||||
public directPath?: (string|null);
|
||||
public mediaKey?: (Uint8Array|null);
|
||||
public fileEncSha256?: (Uint8Array|null);
|
||||
public fileSha256?: (Uint8Array|null);
|
||||
public dimLevel?: (number|null);
|
||||
public static create(properties?: proto.Message.IChatCustomImageWallpaper): proto.Message.ChatCustomImageWallpaper;
|
||||
public static encode(m: proto.Message.IChatCustomImageWallpaper, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ChatCustomImageWallpaper;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.ChatCustomImageWallpaper;
|
||||
public static toObject(m: proto.Message.ChatCustomImageWallpaper, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IChatDefaultWallpaper {
|
||||
isDoodleEnabled?: (boolean|null);
|
||||
}
|
||||
|
||||
class ChatDefaultWallpaper implements IChatDefaultWallpaper {
|
||||
constructor(p?: proto.Message.IChatDefaultWallpaper);
|
||||
public isDoodleEnabled?: (boolean|null);
|
||||
public static create(properties?: proto.Message.IChatDefaultWallpaper): proto.Message.ChatDefaultWallpaper;
|
||||
public static encode(m: proto.Message.IChatDefaultWallpaper, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ChatDefaultWallpaper;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.ChatDefaultWallpaper;
|
||||
public static toObject(m: proto.Message.ChatDefaultWallpaper, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IChatSolidColorWallpaper {
|
||||
colorLight?: (string|null);
|
||||
colorDark?: (string|null);
|
||||
isDoodleEnabled?: (boolean|null);
|
||||
}
|
||||
|
||||
class ChatSolidColorWallpaper implements IChatSolidColorWallpaper {
|
||||
constructor(p?: proto.Message.IChatSolidColorWallpaper);
|
||||
public colorLight?: (string|null);
|
||||
public colorDark?: (string|null);
|
||||
public isDoodleEnabled?: (boolean|null);
|
||||
public static create(properties?: proto.Message.IChatSolidColorWallpaper): proto.Message.ChatSolidColorWallpaper;
|
||||
public static encode(m: proto.Message.IChatSolidColorWallpaper, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ChatSolidColorWallpaper;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.ChatSolidColorWallpaper;
|
||||
public static toObject(m: proto.Message.ChatSolidColorWallpaper, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IChatStockImageWallpaper {
|
||||
stockImageId?: (string|null);
|
||||
dimLevel?: (number|null);
|
||||
}
|
||||
|
||||
class ChatStockImageWallpaper implements IChatStockImageWallpaper {
|
||||
constructor(p?: proto.Message.IChatStockImageWallpaper);
|
||||
public stockImageId?: (string|null);
|
||||
public dimLevel?: (number|null);
|
||||
public static create(properties?: proto.Message.IChatStockImageWallpaper): proto.Message.ChatStockImageWallpaper;
|
||||
public static encode(m: proto.Message.IChatStockImageWallpaper, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ChatStockImageWallpaper;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.ChatStockImageWallpaper;
|
||||
public static toObject(m: proto.Message.ChatStockImageWallpaper, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IChatThemeSetting {
|
||||
settingTimestampMs?: (number|Long|null);
|
||||
clearTheme?: (boolean|null);
|
||||
colorSchemeId?: (string|null);
|
||||
defaultWallpaper?: (proto.Message.IChatDefaultWallpaper|null);
|
||||
solidColor?: (proto.Message.IChatSolidColorWallpaper|null);
|
||||
stockImage?: (proto.Message.IChatStockImageWallpaper|null);
|
||||
customImage?: (proto.Message.IChatCustomImageWallpaper|null);
|
||||
}
|
||||
|
||||
class ChatThemeSetting implements IChatThemeSetting {
|
||||
constructor(p?: proto.Message.IChatThemeSetting);
|
||||
public settingTimestampMs?: (number|Long|null);
|
||||
public clearTheme?: (boolean|null);
|
||||
public colorSchemeId?: (string|null);
|
||||
public defaultWallpaper?: (proto.Message.IChatDefaultWallpaper|null);
|
||||
public solidColor?: (proto.Message.IChatSolidColorWallpaper|null);
|
||||
public stockImage?: (proto.Message.IChatStockImageWallpaper|null);
|
||||
public customImage?: (proto.Message.IChatCustomImageWallpaper|null);
|
||||
public wallpaper?: ("defaultWallpaper"|"solidColor"|"stockImage"|"customImage");
|
||||
public static create(properties?: proto.Message.IChatThemeSetting): proto.Message.ChatThemeSetting;
|
||||
public static encode(m: proto.Message.IChatThemeSetting, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ChatThemeSetting;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.ChatThemeSetting;
|
||||
public static toObject(m: proto.Message.ChatThemeSetting, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface ICloudAPIThreadControlNotification {
|
||||
status?: (proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControl|null);
|
||||
senderNotificationTimestampMs?: (number|Long|null);
|
||||
@@ -6644,6 +6891,7 @@ export namespace proto {
|
||||
startTime?: (number|Long|null);
|
||||
caption?: (string|null);
|
||||
isCanceled?: (boolean|null);
|
||||
endTime?: (number|Long|null);
|
||||
}
|
||||
|
||||
class EventInviteMessage implements IEventInviteMessage {
|
||||
@@ -6655,6 +6903,7 @@ export namespace proto {
|
||||
public startTime?: (number|Long|null);
|
||||
public caption?: (string|null);
|
||||
public isCanceled?: (boolean|null);
|
||||
public endTime?: (number|Long|null);
|
||||
public static create(properties?: proto.Message.IEventInviteMessage): proto.Message.EventInviteMessage;
|
||||
public static encode(m: proto.Message.IEventInviteMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.EventInviteMessage;
|
||||
@@ -8175,6 +8424,62 @@ export namespace proto {
|
||||
}
|
||||
}
|
||||
|
||||
interface IP2PPaymentReminderNotification {
|
||||
reminderId?: (string|null);
|
||||
amount?: (proto.IMoney|null);
|
||||
frequency?: (proto.Message.P2PPaymentReminderNotification.ReminderFrequency|null);
|
||||
nextReminderTimestamp?: (number|Long|null);
|
||||
expiryTimestamp?: (number|Long|null);
|
||||
state?: (proto.Message.P2PPaymentReminderNotification.ReminderState|null);
|
||||
description?: (string|null);
|
||||
creatorJid?: (string|null);
|
||||
receiverJid?: (string|null);
|
||||
upiId?: (string|null);
|
||||
createdTimestamp?: (number|Long|null);
|
||||
}
|
||||
|
||||
class P2PPaymentReminderNotification implements IP2PPaymentReminderNotification {
|
||||
constructor(p?: proto.Message.IP2PPaymentReminderNotification);
|
||||
public reminderId?: (string|null);
|
||||
public amount?: (proto.IMoney|null);
|
||||
public frequency?: (proto.Message.P2PPaymentReminderNotification.ReminderFrequency|null);
|
||||
public nextReminderTimestamp?: (number|Long|null);
|
||||
public expiryTimestamp?: (number|Long|null);
|
||||
public state?: (proto.Message.P2PPaymentReminderNotification.ReminderState|null);
|
||||
public description?: (string|null);
|
||||
public creatorJid?: (string|null);
|
||||
public receiverJid?: (string|null);
|
||||
public upiId?: (string|null);
|
||||
public createdTimestamp?: (number|Long|null);
|
||||
public static create(properties?: proto.Message.IP2PPaymentReminderNotification): proto.Message.P2PPaymentReminderNotification;
|
||||
public static encode(m: proto.Message.IP2PPaymentReminderNotification, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.P2PPaymentReminderNotification;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.P2PPaymentReminderNotification;
|
||||
public static toObject(m: proto.Message.P2PPaymentReminderNotification, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
namespace P2PPaymentReminderNotification {
|
||||
|
||||
enum ReminderFrequency {
|
||||
UNKNOWN_FREQUENCY = 0,
|
||||
WEEKLY = 1,
|
||||
BIWEEKLY = 2,
|
||||
MONTHLY = 3,
|
||||
CUSTOM = 4
|
||||
}
|
||||
|
||||
enum ReminderState {
|
||||
UNKNOWN_STATE = 0,
|
||||
ACTIVE = 1,
|
||||
PAUSED = 2,
|
||||
STOPPED = 3,
|
||||
EXPIRED = 4,
|
||||
CANCELLED = 5
|
||||
}
|
||||
}
|
||||
|
||||
interface IPaymentExtendedMetadata {
|
||||
type?: (number|null);
|
||||
platform?: (string|null);
|
||||
@@ -9323,6 +9628,7 @@ export namespace proto {
|
||||
memberLabel?: (proto.IMemberLabel|null);
|
||||
aiMediaCollectionMessage?: (proto.IAIMediaCollectionMessage|null);
|
||||
afterReadDuration?: (number|null);
|
||||
chatThemeSetting?: (proto.Message.IChatThemeSetting|null);
|
||||
}
|
||||
|
||||
class ProtocolMessage implements IProtocolMessage {
|
||||
@@ -9353,6 +9659,7 @@ export namespace proto {
|
||||
public memberLabel?: (proto.IMemberLabel|null);
|
||||
public aiMediaCollectionMessage?: (proto.IAIMediaCollectionMessage|null);
|
||||
public afterReadDuration?: (number|null);
|
||||
public chatThemeSetting?: (proto.Message.IChatThemeSetting|null);
|
||||
public static create(properties?: proto.Message.IProtocolMessage): proto.Message.ProtocolMessage;
|
||||
public static encode(m: proto.Message.IProtocolMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ProtocolMessage;
|
||||
@@ -9392,7 +9699,8 @@ export namespace proto {
|
||||
AI_QUERY_FANOUT = 29,
|
||||
GROUP_MEMBER_LABEL_CHANGE = 30,
|
||||
AI_MEDIA_COLLECTION_MESSAGE = 31,
|
||||
MESSAGE_UNSCHEDULE = 32
|
||||
MESSAGE_UNSCHEDULE = 32,
|
||||
CHAT_THEME_SETTING = 34
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9644,6 +9952,62 @@ export namespace proto {
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface ISplitPaymentMessage {
|
||||
splitId?: (string|null);
|
||||
totalAmount?: (proto.IMoney|null);
|
||||
description?: (string|null);
|
||||
requesterJid?: (string|null);
|
||||
participants?: (proto.Message.ISplitPaymentParticipant[]|null);
|
||||
createdAtMs?: (number|Long|null);
|
||||
contextInfo?: (proto.IContextInfo|null);
|
||||
}
|
||||
|
||||
class SplitPaymentMessage implements ISplitPaymentMessage {
|
||||
constructor(p?: proto.Message.ISplitPaymentMessage);
|
||||
public splitId?: (string|null);
|
||||
public totalAmount?: (proto.IMoney|null);
|
||||
public description?: (string|null);
|
||||
public requesterJid?: (string|null);
|
||||
public participants: proto.Message.ISplitPaymentParticipant[];
|
||||
public createdAtMs?: (number|Long|null);
|
||||
public contextInfo?: (proto.IContextInfo|null);
|
||||
public static create(properties?: proto.Message.ISplitPaymentMessage): proto.Message.SplitPaymentMessage;
|
||||
public static encode(m: proto.Message.ISplitPaymentMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.SplitPaymentMessage;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.SplitPaymentMessage;
|
||||
public static toObject(m: proto.Message.SplitPaymentMessage, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface ISplitPaymentParticipant {
|
||||
jid?: (string|null);
|
||||
amount?: (proto.IMoney|null);
|
||||
status?: (proto.Message.SplitPaymentParticipant.SplitPaymentStatus|null);
|
||||
}
|
||||
|
||||
class SplitPaymentParticipant implements ISplitPaymentParticipant {
|
||||
constructor(p?: proto.Message.ISplitPaymentParticipant);
|
||||
public jid?: (string|null);
|
||||
public amount?: (proto.IMoney|null);
|
||||
public status?: (proto.Message.SplitPaymentParticipant.SplitPaymentStatus|null);
|
||||
public static create(properties?: proto.Message.ISplitPaymentParticipant): proto.Message.SplitPaymentParticipant;
|
||||
public static encode(m: proto.Message.ISplitPaymentParticipant, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.SplitPaymentParticipant;
|
||||
public static fromObject(d: { [k: string]: any }): proto.Message.SplitPaymentParticipant;
|
||||
public static toObject(m: proto.Message.SplitPaymentParticipant, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
namespace SplitPaymentParticipant {
|
||||
|
||||
enum SplitPaymentStatus {
|
||||
PENDING = 0,
|
||||
PAID = 1
|
||||
}
|
||||
}
|
||||
|
||||
interface IStatusNotificationMessage {
|
||||
responseMessageKey?: (proto.IMessageKey|null);
|
||||
originalMessageKey?: (proto.IMessageKey|null);
|
||||
@@ -11998,7 +12362,8 @@ export namespace proto {
|
||||
APPLE_MUSIC = 8,
|
||||
SHARECHAT = 9,
|
||||
GOOGLE_PHOTOS = 10,
|
||||
SOUNDCLOUD = 11
|
||||
SOUNDCLOUD = 11,
|
||||
SHAZAM = 12
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12132,7 +12497,8 @@ export namespace proto {
|
||||
AI_CREATED = 7,
|
||||
LAYOUTS = 8,
|
||||
NEWSLETTER_STATUS = 9,
|
||||
STATUS_CLOSE_SHARING = 10
|
||||
STATUS_CLOSE_SHARING = 10,
|
||||
PAID_PARTNERSHIP = 11
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13669,6 +14035,7 @@ export namespace proto {
|
||||
keywords?: (string[]|null);
|
||||
count?: (number|null);
|
||||
deleted?: (boolean|null);
|
||||
associatedLabelIds?: (string[]|null);
|
||||
}
|
||||
|
||||
class QuickReplyAction implements IQuickReplyAction {
|
||||
@@ -13678,6 +14045,7 @@ export namespace proto {
|
||||
public keywords: string[];
|
||||
public count?: (number|null);
|
||||
public deleted?: (boolean|null);
|
||||
public associatedLabelIds: string[];
|
||||
public static create(properties?: proto.SyncActionValue.IQuickReplyAction): proto.SyncActionValue.QuickReplyAction;
|
||||
public static encode(m: proto.SyncActionValue.IQuickReplyAction, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.QuickReplyAction;
|
||||
@@ -14959,6 +15327,8 @@ export namespace proto {
|
||||
hsmTag?: (string|null);
|
||||
ephemeralExpirationTimestamp?: (number|Long|null);
|
||||
scheduledMessageMetadata?: (proto.IScheduledMessageMetadata|null);
|
||||
decisionId?: (string|null);
|
||||
decisionSources?: (string[]|null);
|
||||
}
|
||||
|
||||
class WebMessageInfo implements IWebMessageInfo {
|
||||
@@ -15033,6 +15403,8 @@ export namespace proto {
|
||||
public hsmTag?: (string|null);
|
||||
public ephemeralExpirationTimestamp?: (number|Long|null);
|
||||
public scheduledMessageMetadata?: (proto.IScheduledMessageMetadata|null);
|
||||
public decisionId?: (string|null);
|
||||
public decisionSources: string[];
|
||||
public static create(properties?: proto.IWebMessageInfo): proto.WebMessageInfo;
|
||||
public static encode(m: proto.IWebMessageInfo, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.WebMessageInfo;
|
||||
|
||||
+2549
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
{"version":[2,3000,1038189736]}
|
||||
{"version":[2,3000,1038487394]}
|
||||
|
||||
@@ -343,13 +343,11 @@ export const extractGroupMetadata = (result: BinaryNode) => {
|
||||
let descId: string | undefined
|
||||
let descOwner: string | undefined
|
||||
let descOwnerPn: string | undefined
|
||||
let descOwnerUsername: string | undefined
|
||||
let descTime: number | undefined
|
||||
if (descChild) {
|
||||
desc = getBinaryNodeChildString(descChild, 'body')
|
||||
descOwner = descChild.attrs.participant ? jidNormalizedUser(descChild.attrs.participant) : undefined
|
||||
descOwnerPn = descChild.attrs.participant_pn ? jidNormalizedUser(descChild.attrs.participant_pn) : undefined
|
||||
descOwnerUsername = descChild.attrs.participant_username || undefined
|
||||
descTime = +descChild.attrs.t!
|
||||
descId = descChild.attrs.id
|
||||
}
|
||||
@@ -364,19 +362,16 @@ export const extractGroupMetadata = (result: BinaryNode) => {
|
||||
subject: group.attrs.subject!,
|
||||
subjectOwner: group.attrs.s_o,
|
||||
subjectOwnerPn: group.attrs.s_o_pn,
|
||||
subjectOwnerUsername: group.attrs.s_o_username,
|
||||
subjectTime: +(group.attrs.s_t ?? '0'),
|
||||
size: group.attrs.size ? +group.attrs.size : getBinaryNodeChildren(group, 'participant').length,
|
||||
creation: +(group.attrs.creation ?? '0'),
|
||||
owner: group.attrs.creator ? jidNormalizedUser(group.attrs.creator) : undefined,
|
||||
ownerPn: group.attrs.creator_pn ? jidNormalizedUser(group.attrs.creator_pn) : undefined,
|
||||
ownerUsername: group.attrs.creator_username || undefined,
|
||||
owner_country_code: group.attrs.creator_country_code,
|
||||
desc,
|
||||
descId,
|
||||
descOwner,
|
||||
descOwnerPn,
|
||||
descOwnerUsername,
|
||||
descTime,
|
||||
linkedParent: getBinaryNodeChild(group, 'linked_parent')?.attrs.jid || undefined,
|
||||
restrict: !!getBinaryNodeChild(group, 'locked'),
|
||||
@@ -391,7 +386,6 @@ export const extractGroupMetadata = (result: BinaryNode) => {
|
||||
id: attrs.jid!,
|
||||
phoneNumber: isLidUser(attrs.jid) && isPnUser(attrs.phone_number) ? attrs.phone_number : undefined,
|
||||
lid: isPnUser(attrs.jid) && isLidUser(attrs.lid) ? attrs.lid : undefined,
|
||||
username: attrs.participant_username || attrs.username || undefined,
|
||||
admin: (attrs.type || null) as GroupParticipant['admin']
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -2240,7 +2240,6 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
fromMe,
|
||||
participant: node.attrs.participant,
|
||||
participantAlt,
|
||||
participantUsername: node.attrs.participant_username,
|
||||
addressingMode,
|
||||
id: node.attrs.id,
|
||||
...(msg.key || {})
|
||||
@@ -2249,10 +2248,6 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
msg.messageTimestamp = +node.attrs.t!
|
||||
|
||||
const fullMsg = proto.WebMessageInfo.fromObject(msg) as WAMessage
|
||||
// Preserve custom WAMessageKey fields (participantAlt, participantUsername,
|
||||
// addressingMode) that proto.WebMessageInfo.fromObject strips because
|
||||
// they aren't part of the proto.MessageKey schema.
|
||||
fullMsg.key = msg.key
|
||||
await upsertMessage(fullMsg, 'append')
|
||||
}
|
||||
})
|
||||
|
||||
@@ -9,8 +9,6 @@ export interface Contact {
|
||||
name?: string
|
||||
/** name of the contact, the contact has set on their own on WA */
|
||||
notify?: string
|
||||
/** username associated with this contact, when provided by WA */
|
||||
username?: string
|
||||
/** I have no idea */
|
||||
verifiedName?: string
|
||||
// Baileys Added
|
||||
|
||||
@@ -81,7 +81,6 @@ export type BaileysEventMap = {
|
||||
id: string
|
||||
author: string
|
||||
authorPn?: string
|
||||
authorUsername?: string
|
||||
participants: GroupParticipant[]
|
||||
action: ParticipantAction
|
||||
}
|
||||
@@ -89,7 +88,6 @@ export type BaileysEventMap = {
|
||||
id: string
|
||||
author: string
|
||||
authorPn?: string
|
||||
authorUsername?: string
|
||||
participant: string
|
||||
participantPn?: string
|
||||
action: RequestJoinAction
|
||||
|
||||
@@ -20,20 +20,17 @@ export interface GroupMetadata {
|
||||
addressingMode?: WAMessageAddressingMode
|
||||
owner: string | undefined
|
||||
ownerPn?: string | undefined
|
||||
ownerUsername?: string | undefined
|
||||
owner_country_code?: string | undefined
|
||||
subject: string
|
||||
/** group subject owner */
|
||||
subjectOwner?: string
|
||||
subjectOwnerPn?: string
|
||||
subjectOwnerUsername?: string
|
||||
/** group subject modification date */
|
||||
subjectTime?: number
|
||||
creation?: number
|
||||
desc?: string
|
||||
descOwner?: string
|
||||
descOwnerPn?: string
|
||||
descOwnerUsername?: string
|
||||
descId?: string
|
||||
descTime?: number
|
||||
/** if this group is part of a community, it returns the jid of the community to which it belongs */
|
||||
@@ -59,7 +56,6 @@ export interface GroupMetadata {
|
||||
/** the person who added you to group or changed some setting in group */
|
||||
author?: string
|
||||
authorPn?: string
|
||||
authorUsername?: string
|
||||
}
|
||||
|
||||
export interface WAGroupCreateResponse {
|
||||
|
||||
@@ -19,9 +19,7 @@ export type WAContactMessage = proto.Message.IContactMessage
|
||||
export type WAContactsArrayMessage = proto.Message.IContactsArrayMessage
|
||||
export type WAMessageKey = proto.IMessageKey & {
|
||||
remoteJidAlt?: string
|
||||
remoteJidUsername?: string
|
||||
participantAlt?: string
|
||||
participantUsername?: string
|
||||
server_id?: string
|
||||
addressingMode?: string
|
||||
isViewOnce?: boolean // TODO: remove out of the message key, place in WebMessageInfo
|
||||
|
||||
@@ -1083,7 +1083,6 @@ export const processSyncAction = (
|
||||
action.lidContactAction.firstName ||
|
||||
action.lidContactAction.username ||
|
||||
undefined,
|
||||
username: action.lidContactAction.username || undefined,
|
||||
lid: id!,
|
||||
phoneNumber: undefined
|
||||
}
|
||||
|
||||
@@ -246,14 +246,10 @@ export function decodeMessageNode(stanza: BinaryNode, meId: string, meLid: strin
|
||||
const key: WAMessageKey = {
|
||||
remoteJid: chatId,
|
||||
remoteJidAlt: !isJidGroup(chatId) ? addressingContext.senderAlt : undefined,
|
||||
remoteJidUsername: !isJidGroup(chatId)
|
||||
? stanza.attrs.peer_recipient_username || stanza.attrs.recipient_username
|
||||
: undefined,
|
||||
fromMe,
|
||||
id: msgId,
|
||||
participant,
|
||||
participantAlt: isJidGroup(chatId) ? addressingContext.senderAlt : undefined,
|
||||
participantUsername: stanza.attrs.participant ? stanza.attrs.participant_username : undefined,
|
||||
addressingMode: addressingContext.addressingMode,
|
||||
...(msgType === 'newsletter' && stanza.attrs.server_id ? { server_id: stanza.attrs.server_id } : {})
|
||||
}
|
||||
|
||||
@@ -315,7 +315,6 @@ export const processHistoryMessage = (item: proto.IHistorySync, logger?: ILogger
|
||||
contacts.push({
|
||||
id: chatId,
|
||||
name: chat.displayName || chat.name || chat.username || undefined,
|
||||
username: chat.username || undefined,
|
||||
lid: chat.lidJid || chat.accountLid || undefined,
|
||||
phoneNumber: chat.pnJid || undefined
|
||||
})
|
||||
|
||||
@@ -950,19 +950,12 @@ const processMessage = async (
|
||||
id: jid,
|
||||
author: message.key.participant!,
|
||||
authorPn: message.key.participantAlt!,
|
||||
authorUsername: message.key.participantUsername!,
|
||||
participants,
|
||||
action
|
||||
})
|
||||
const emitGroupUpdate = (update: Partial<GroupMetadata>) => {
|
||||
ev.emit('groups.update', [
|
||||
{
|
||||
id: jid,
|
||||
...update,
|
||||
author: message.key.participant ?? undefined,
|
||||
authorPn: message.key.participantAlt,
|
||||
authorUsername: message.key.participantUsername
|
||||
}
|
||||
{ id: jid, ...update, author: message.key.participant ?? undefined, authorPn: message.key.participantAlt }
|
||||
])
|
||||
}
|
||||
|
||||
@@ -971,7 +964,6 @@ const processMessage = async (
|
||||
id: jid,
|
||||
author: message.key.participant!,
|
||||
authorPn: message.key.participantAlt!,
|
||||
authorUsername: message.key.participantUsername!,
|
||||
participant: participant.lid,
|
||||
participantPn: participant.pn,
|
||||
action,
|
||||
|
||||
@@ -46,7 +46,6 @@ export const processContactAction = (
|
||||
{
|
||||
id,
|
||||
name: action.fullName || action.firstName || action.username || undefined,
|
||||
username: action.username || undefined,
|
||||
lid: lidJid || undefined,
|
||||
phoneNumber
|
||||
}
|
||||
|
||||
@@ -13,37 +13,11 @@ export class USyncContactProtocol implements USyncQueryProtocol {
|
||||
}
|
||||
|
||||
getUserElement(user: USyncUser): BinaryNode {
|
||||
if (user.phone) {
|
||||
return {
|
||||
tag: 'contact',
|
||||
attrs: {},
|
||||
content: user.phone
|
||||
}
|
||||
}
|
||||
|
||||
if (user.username) {
|
||||
return {
|
||||
tag: 'contact',
|
||||
attrs: {
|
||||
username: user.username,
|
||||
...(user.usernameKey ? { pin: user.usernameKey } : {}),
|
||||
...(user.lid ? { lid: user.lid } : {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (user.type) {
|
||||
return {
|
||||
tag: 'contact',
|
||||
attrs: {
|
||||
type: user.type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: Implement type / username fields (not yet supported)
|
||||
return {
|
||||
tag: 'contact',
|
||||
attrs: {}
|
||||
attrs: {},
|
||||
content: user.phone
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
import type { USyncQueryProtocol } from '../../Types/USync'
|
||||
import { assertNodeErrorFree, type BinaryNode } from '../../WABinary'
|
||||
import { USyncUser } from '../USyncUser'
|
||||
|
||||
export class USyncUsernameProtocol implements USyncQueryProtocol {
|
||||
name = 'username'
|
||||
|
||||
getQueryElement(): BinaryNode {
|
||||
return {
|
||||
tag: 'username',
|
||||
attrs: {}
|
||||
}
|
||||
}
|
||||
|
||||
getUserElement(user: USyncUser): BinaryNode | null {
|
||||
void user
|
||||
return null
|
||||
}
|
||||
|
||||
parser(node: BinaryNode): string | null {
|
||||
if (node.tag === 'username') {
|
||||
assertNodeErrorFree(node)
|
||||
return typeof node.content === 'string' ? node.content : null
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
}
|
||||
@@ -2,4 +2,3 @@ export * from './USyncDeviceProtocol'
|
||||
export * from './USyncContactProtocol'
|
||||
export * from './USyncStatusProtocol'
|
||||
export * from './USyncDisappearingModeProtocol'
|
||||
export * from './USyncUsernameProtocol'
|
||||
|
||||
@@ -6,8 +6,7 @@ import {
|
||||
USyncContactProtocol,
|
||||
USyncDeviceProtocol,
|
||||
USyncDisappearingModeProtocol,
|
||||
USyncStatusProtocol,
|
||||
USyncUsernameProtocol
|
||||
USyncStatusProtocol
|
||||
} from './Protocols'
|
||||
import { USyncUser } from './USyncUser'
|
||||
|
||||
@@ -138,9 +137,4 @@ export class USyncQuery {
|
||||
this.protocols.push(new USyncLIDProtocol())
|
||||
return this
|
||||
}
|
||||
|
||||
withUsernameProtocol() {
|
||||
this.protocols.push(new USyncUsernameProtocol())
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@ export class USyncUser {
|
||||
id?: string
|
||||
lid?: string
|
||||
phone?: string
|
||||
username?: string
|
||||
usernameKey?: string
|
||||
type?: string
|
||||
personaId?: string
|
||||
|
||||
@@ -22,16 +20,6 @@ export class USyncUser {
|
||||
return this
|
||||
}
|
||||
|
||||
withUsername(username: string) {
|
||||
this.username = username
|
||||
return this
|
||||
}
|
||||
|
||||
withUsernameKey(usernameKey: string) {
|
||||
this.usernameKey = usernameKey
|
||||
return this
|
||||
}
|
||||
|
||||
withType(type: string) {
|
||||
this.type = type
|
||||
return this
|
||||
|
||||
Reference in New Issue
Block a user