Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 20b5a4703d | |||
| 6c904484e4 | |||
| 5382d03f93 | |||
| 5e602ebbf8 | |||
| 12c400cf1e | |||
| 92085d283a | |||
| 38aa34ffb0 | |||
| 52aa6402c0 | |||
| 8ea7f5434e |
+57
-2
@@ -1,7 +1,7 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package proto;
|
package proto;
|
||||||
|
|
||||||
/// WhatsApp Version: 2.3000.1034302344
|
/// WhatsApp Version: 2.3000.1034621774
|
||||||
|
|
||||||
message ADVDeviceIdentity {
|
message ADVDeviceIdentity {
|
||||||
optional uint32 rawId = 1;
|
optional uint32 rawId = 1;
|
||||||
@@ -74,6 +74,7 @@ message AIMediaCollectionMessage {
|
|||||||
|
|
||||||
message AIMediaCollectionMetadata {
|
message AIMediaCollectionMetadata {
|
||||||
optional string collectionId = 1;
|
optional string collectionId = 1;
|
||||||
|
optional uint32 uploadOrderIndex = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AIQueryFanout {
|
message AIQueryFanout {
|
||||||
@@ -251,10 +252,12 @@ message AIThreadInfo {
|
|||||||
optional AIThreadClientInfo clientInfo = 2;
|
optional AIThreadClientInfo clientInfo = 2;
|
||||||
message AIThreadClientInfo {
|
message AIThreadClientInfo {
|
||||||
optional AIThreadType type = 1;
|
optional AIThreadType type = 1;
|
||||||
|
optional string sourceChatJid = 2;
|
||||||
enum AIThreadType {
|
enum AIThreadType {
|
||||||
UNKNOWN = 0;
|
UNKNOWN = 0;
|
||||||
DEFAULT = 1;
|
DEFAULT = 1;
|
||||||
INCOGNITO = 2;
|
INCOGNITO = 2;
|
||||||
|
SIDE_CHAT = 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -403,6 +406,7 @@ message BotCapabilityMetadata {
|
|||||||
RICH_RESPONSE_UR_BLOKS_ENABLED = 55;
|
RICH_RESPONSE_UR_BLOKS_ENABLED = 55;
|
||||||
RICH_RESPONSE_INLINE_LINKS_ENABLED = 56;
|
RICH_RESPONSE_INLINE_LINKS_ENABLED = 56;
|
||||||
RICH_RESPONSE_UR_IMAGINE_VIDEO = 57;
|
RICH_RESPONSE_UR_IMAGINE_VIDEO = 57;
|
||||||
|
JSON_PATCH_STREAMING = 58;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -687,6 +691,7 @@ enum BotMetricsEntryPoint {
|
|||||||
WEB_INTRO_PANEL = 46;
|
WEB_INTRO_PANEL = 46;
|
||||||
WEB_NAVIGATION_BAR = 47;
|
WEB_NAVIGATION_BAR = 47;
|
||||||
GROUP_MEMBER = 54;
|
GROUP_MEMBER = 54;
|
||||||
|
CHATLIST_SEARCH = 55;
|
||||||
}
|
}
|
||||||
message BotMetricsMetadata {
|
message BotMetricsMetadata {
|
||||||
optional string destinationId = 1;
|
optional string destinationId = 1;
|
||||||
@@ -1106,6 +1111,7 @@ message ClientPayload {
|
|||||||
optional bool paaLink = 44;
|
optional bool paaLink = 44;
|
||||||
optional int32 preacksCount = 45;
|
optional int32 preacksCount = 45;
|
||||||
optional int32 processingQueueSize = 46;
|
optional int32 processingQueueSize = 46;
|
||||||
|
repeated string pairedPeripherals = 47;
|
||||||
enum AccountType {
|
enum AccountType {
|
||||||
DEFAULT = 0;
|
DEFAULT = 0;
|
||||||
GUEST = 1;
|
GUEST = 1;
|
||||||
@@ -1628,6 +1634,7 @@ message DeviceCapabilities {
|
|||||||
|
|
||||||
message BusinessBroadcast {
|
message BusinessBroadcast {
|
||||||
optional bool importListEnabled = 1;
|
optional bool importListEnabled = 1;
|
||||||
|
optional bool companionSupportEnabled = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ChatLockSupportLevel {
|
enum ChatLockSupportLevel {
|
||||||
@@ -1702,6 +1709,7 @@ message DeviceProps {
|
|||||||
optional uint32 thumbnailSyncDaysLimit = 19;
|
optional uint32 thumbnailSyncDaysLimit = 19;
|
||||||
optional uint32 initialSyncMaxMessagesPerChat = 20;
|
optional uint32 initialSyncMaxMessagesPerChat = 20;
|
||||||
optional bool supportManusHistory = 21;
|
optional bool supportManusHistory = 21;
|
||||||
|
optional bool supportHatchHistory = 22;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PlatformType {
|
enum PlatformType {
|
||||||
@@ -2798,6 +2806,13 @@ message Message {
|
|||||||
optional bool securityNotificationEnabled = 1;
|
optional bool securityNotificationEnabled = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum InsightDeliveryState {
|
||||||
|
SENT = 0;
|
||||||
|
DELIVERED = 1;
|
||||||
|
READ = 2;
|
||||||
|
REPLIED = 3;
|
||||||
|
QUICK_REPLIED = 4;
|
||||||
|
}
|
||||||
message InteractiveMessage {
|
message InteractiveMessage {
|
||||||
optional Header header = 1;
|
optional Header header = 1;
|
||||||
optional Body body = 2;
|
optional Body body = 2;
|
||||||
@@ -3170,6 +3185,16 @@ message Message {
|
|||||||
optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
|
optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
|
||||||
optional GalaxyFlowAction galaxyFlowAction = 9;
|
optional GalaxyFlowAction galaxyFlowAction = 9;
|
||||||
optional CompanionCanonicalUserNonceFetchRequest companionCanonicalUserNonceFetchRequest = 10;
|
optional CompanionCanonicalUserNonceFetchRequest companionCanonicalUserNonceFetchRequest = 10;
|
||||||
|
optional BizBroadcastInsightsContactListRequest bizBroadcastInsightsContactListRequest = 11;
|
||||||
|
optional BizBroadcastInsightsRefreshRequest bizBroadcastInsightsRefreshRequest = 12;
|
||||||
|
message BizBroadcastInsightsContactListRequest {
|
||||||
|
optional string campaignId = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message BizBroadcastInsightsRefreshRequest {
|
||||||
|
optional string campaignId = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message CompanionCanonicalUserNonceFetchRequest {
|
message CompanionCanonicalUserNonceFetchRequest {
|
||||||
optional string registrationTraceId = 1;
|
optional string registrationTraceId = 1;
|
||||||
}
|
}
|
||||||
@@ -3244,6 +3269,18 @@ message Message {
|
|||||||
optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
|
optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
|
||||||
optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
|
optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
|
||||||
optional FlowResponsesCsvBundle flowResponsesCsvBundle = 11;
|
optional FlowResponsesCsvBundle flowResponsesCsvBundle = 11;
|
||||||
|
optional BizBroadcastInsightsContactListResponse bizBroadcastInsightsContactListResponse = 12;
|
||||||
|
message BizBroadcastInsightsContactListResponse {
|
||||||
|
optional string campaignId = 1;
|
||||||
|
optional int64 timestampMs = 2;
|
||||||
|
repeated Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState contacts = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message BizBroadcastInsightsContactState {
|
||||||
|
optional string contactJid = 1;
|
||||||
|
optional Message.InsightDeliveryState state = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message CompanionCanonicalUserNonceFetchResponse {
|
message CompanionCanonicalUserNonceFetchResponse {
|
||||||
optional string nonce = 1;
|
optional string nonce = 1;
|
||||||
optional string waFbid = 2;
|
optional string waFbid = 2;
|
||||||
@@ -3357,6 +3394,8 @@ message Message {
|
|||||||
COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
|
COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
|
||||||
HISTORY_SYNC_CHUNK_RETRY = 10;
|
HISTORY_SYNC_CHUNK_RETRY = 10;
|
||||||
GALAXY_FLOW_ACTION = 11;
|
GALAXY_FLOW_ACTION = 11;
|
||||||
|
BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO = 12;
|
||||||
|
BUSINESS_BROADCAST_INSIGHTS_REFRESH = 13;
|
||||||
}
|
}
|
||||||
message PinInChatMessage {
|
message PinInChatMessage {
|
||||||
optional MessageKey key = 1;
|
optional MessageKey key = 1;
|
||||||
@@ -3967,6 +4006,7 @@ message MsgOpaqueData {
|
|||||||
optional string quarantineExtractedText = 48;
|
optional string quarantineExtractedText = 48;
|
||||||
optional int64 pollEndTime = 49;
|
optional int64 pollEndTime = 49;
|
||||||
optional bool pollHideVoterNames = 50;
|
optional bool pollHideVoterNames = 50;
|
||||||
|
optional bool pollAllowAddOption = 52;
|
||||||
message EventLocation {
|
message EventLocation {
|
||||||
optional double degreesLatitude = 1;
|
optional double degreesLatitude = 1;
|
||||||
optional double degreesLongitude = 2;
|
optional double degreesLongitude = 2;
|
||||||
@@ -4083,6 +4123,7 @@ enum MutationProps {
|
|||||||
NCT_SALT_SYNC_ACTION = 80;
|
NCT_SALT_SYNC_ACTION = 80;
|
||||||
BUSINESS_BROADCAST_CAMPAIGN_ACTION = 81;
|
BUSINESS_BROADCAST_CAMPAIGN_ACTION = 81;
|
||||||
BUSINESS_BROADCAST_INSIGHTS_ACTION = 82;
|
BUSINESS_BROADCAST_INSIGHTS_ACTION = 82;
|
||||||
|
CUSTOMER_DATA_ACTION = 83;
|
||||||
SHARE_OWN_PN = 10001;
|
SHARE_OWN_PN = 10001;
|
||||||
BUSINESS_BROADCAST_ACTION = 10002;
|
BUSINESS_BROADCAST_ACTION = 10002;
|
||||||
AI_THREAD_DELETE_ACTION = 10003;
|
AI_THREAD_DELETE_ACTION = 10003;
|
||||||
@@ -4718,6 +4759,7 @@ message SyncActionValue {
|
|||||||
optional NctSaltSyncAction nctSaltSyncAction = 80;
|
optional NctSaltSyncAction nctSaltSyncAction = 80;
|
||||||
optional BusinessBroadcastCampaignAction businessBroadcastCampaignAction = 81;
|
optional BusinessBroadcastCampaignAction businessBroadcastCampaignAction = 81;
|
||||||
optional BusinessBroadcastInsightsAction businessBroadcastInsightsAction = 82;
|
optional BusinessBroadcastInsightsAction businessBroadcastInsightsAction = 82;
|
||||||
|
optional CustomerDataAction customerDataAction = 83;
|
||||||
message AgentAction {
|
message AgentAction {
|
||||||
optional string name = 1;
|
optional string name = 1;
|
||||||
optional int32 deviceID = 2;
|
optional int32 deviceID = 2;
|
||||||
@@ -4839,6 +4881,20 @@ message SyncActionValue {
|
|||||||
repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
|
repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message CustomerDataAction {
|
||||||
|
optional string chatJid = 1;
|
||||||
|
optional int32 contactType = 2;
|
||||||
|
optional string email = 3;
|
||||||
|
optional string altPhoneNumbers = 4;
|
||||||
|
optional int64 birthday = 5;
|
||||||
|
optional string address = 6;
|
||||||
|
optional int32 acquisitionSource = 7;
|
||||||
|
optional int32 leadStage = 8;
|
||||||
|
optional int64 lastOrder = 9;
|
||||||
|
optional int64 createdAt = 10;
|
||||||
|
optional int64 modifiedAt = 11;
|
||||||
|
}
|
||||||
|
|
||||||
message DeleteChatAction {
|
message DeleteChatAction {
|
||||||
optional SyncActionValue.SyncActionMessageRange messageRange = 1;
|
optional SyncActionValue.SyncActionMessageRange messageRange = 1;
|
||||||
}
|
}
|
||||||
@@ -5351,7 +5407,6 @@ message TemplateButton {
|
|||||||
message ThreadID {
|
message ThreadID {
|
||||||
optional ThreadType threadType = 1;
|
optional ThreadType threadType = 1;
|
||||||
optional MessageKey threadKey = 2;
|
optional MessageKey threadKey = 2;
|
||||||
optional string sourceChatJid = 3;
|
|
||||||
enum ThreadType {
|
enum ThreadType {
|
||||||
UNKNOWN = 0;
|
UNKNOWN = 0;
|
||||||
VIEW_REPLIES = 1;
|
VIEW_REPLIES = 1;
|
||||||
|
|||||||
Vendored
+144
-6
@@ -203,11 +203,13 @@ export namespace proto {
|
|||||||
|
|
||||||
interface IAIMediaCollectionMetadata {
|
interface IAIMediaCollectionMetadata {
|
||||||
collectionId?: (string|null);
|
collectionId?: (string|null);
|
||||||
|
uploadOrderIndex?: (number|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class AIMediaCollectionMetadata implements IAIMediaCollectionMetadata {
|
class AIMediaCollectionMetadata implements IAIMediaCollectionMetadata {
|
||||||
constructor(p?: proto.IAIMediaCollectionMetadata);
|
constructor(p?: proto.IAIMediaCollectionMetadata);
|
||||||
public collectionId?: (string|null);
|
public collectionId?: (string|null);
|
||||||
|
public uploadOrderIndex?: (number|null);
|
||||||
public static create(properties?: proto.IAIMediaCollectionMetadata): proto.AIMediaCollectionMetadata;
|
public static create(properties?: proto.IAIMediaCollectionMetadata): proto.AIMediaCollectionMetadata;
|
||||||
public static encode(m: proto.IAIMediaCollectionMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.IAIMediaCollectionMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIMediaCollectionMetadata;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIMediaCollectionMetadata;
|
||||||
@@ -725,11 +727,13 @@ export namespace proto {
|
|||||||
|
|
||||||
interface IAIThreadClientInfo {
|
interface IAIThreadClientInfo {
|
||||||
type?: (proto.AIThreadInfo.AIThreadClientInfo.AIThreadType|null);
|
type?: (proto.AIThreadInfo.AIThreadClientInfo.AIThreadType|null);
|
||||||
|
sourceChatJid?: (string|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class AIThreadClientInfo implements IAIThreadClientInfo {
|
class AIThreadClientInfo implements IAIThreadClientInfo {
|
||||||
constructor(p?: proto.AIThreadInfo.IAIThreadClientInfo);
|
constructor(p?: proto.AIThreadInfo.IAIThreadClientInfo);
|
||||||
public type?: (proto.AIThreadInfo.AIThreadClientInfo.AIThreadType|null);
|
public type?: (proto.AIThreadInfo.AIThreadClientInfo.AIThreadType|null);
|
||||||
|
public sourceChatJid?: (string|null);
|
||||||
public static create(properties?: proto.AIThreadInfo.IAIThreadClientInfo): proto.AIThreadInfo.AIThreadClientInfo;
|
public static create(properties?: proto.AIThreadInfo.IAIThreadClientInfo): proto.AIThreadInfo.AIThreadClientInfo;
|
||||||
public static encode(m: proto.AIThreadInfo.IAIThreadClientInfo, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.AIThreadInfo.IAIThreadClientInfo, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIThreadInfo.AIThreadClientInfo;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIThreadInfo.AIThreadClientInfo;
|
||||||
@@ -744,7 +748,8 @@ export namespace proto {
|
|||||||
enum AIThreadType {
|
enum AIThreadType {
|
||||||
UNKNOWN = 0,
|
UNKNOWN = 0,
|
||||||
DEFAULT = 1,
|
DEFAULT = 1,
|
||||||
INCOGNITO = 2
|
INCOGNITO = 2,
|
||||||
|
SIDE_CHAT = 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1052,7 +1057,8 @@ export namespace proto {
|
|||||||
AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR = 54,
|
AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR = 54,
|
||||||
RICH_RESPONSE_UR_BLOKS_ENABLED = 55,
|
RICH_RESPONSE_UR_BLOKS_ENABLED = 55,
|
||||||
RICH_RESPONSE_INLINE_LINKS_ENABLED = 56,
|
RICH_RESPONSE_INLINE_LINKS_ENABLED = 56,
|
||||||
RICH_RESPONSE_UR_IMAGINE_VIDEO = 57
|
RICH_RESPONSE_UR_IMAGINE_VIDEO = 57,
|
||||||
|
JSON_PATCH_STREAMING = 58
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1738,7 +1744,8 @@ export namespace proto {
|
|||||||
META_AI_SETTINGS = 45,
|
META_AI_SETTINGS = 45,
|
||||||
WEB_INTRO_PANEL = 46,
|
WEB_INTRO_PANEL = 46,
|
||||||
WEB_NAVIGATION_BAR = 47,
|
WEB_NAVIGATION_BAR = 47,
|
||||||
GROUP_MEMBER = 54
|
GROUP_MEMBER = 54,
|
||||||
|
CHATLIST_SEARCH = 55
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IBotMetricsMetadata {
|
interface IBotMetricsMetadata {
|
||||||
@@ -2814,6 +2821,7 @@ export namespace proto {
|
|||||||
paaLink?: (boolean|null);
|
paaLink?: (boolean|null);
|
||||||
preacksCount?: (number|null);
|
preacksCount?: (number|null);
|
||||||
processingQueueSize?: (number|null);
|
processingQueueSize?: (number|null);
|
||||||
|
pairedPeripherals?: (string[]|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class ClientPayload implements IClientPayload {
|
class ClientPayload implements IClientPayload {
|
||||||
@@ -2852,6 +2860,7 @@ export namespace proto {
|
|||||||
public paaLink?: (boolean|null);
|
public paaLink?: (boolean|null);
|
||||||
public preacksCount?: (number|null);
|
public preacksCount?: (number|null);
|
||||||
public processingQueueSize?: (number|null);
|
public processingQueueSize?: (number|null);
|
||||||
|
public pairedPeripherals: string[];
|
||||||
public static create(properties?: proto.IClientPayload): proto.ClientPayload;
|
public static create(properties?: proto.IClientPayload): proto.ClientPayload;
|
||||||
public static encode(m: proto.IClientPayload, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.IClientPayload, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ClientPayload;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ClientPayload;
|
||||||
@@ -3973,11 +3982,13 @@ export namespace proto {
|
|||||||
|
|
||||||
interface IBusinessBroadcast {
|
interface IBusinessBroadcast {
|
||||||
importListEnabled?: (boolean|null);
|
importListEnabled?: (boolean|null);
|
||||||
|
companionSupportEnabled?: (boolean|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class BusinessBroadcast implements IBusinessBroadcast {
|
class BusinessBroadcast implements IBusinessBroadcast {
|
||||||
constructor(p?: proto.DeviceCapabilities.IBusinessBroadcast);
|
constructor(p?: proto.DeviceCapabilities.IBusinessBroadcast);
|
||||||
public importListEnabled?: (boolean|null);
|
public importListEnabled?: (boolean|null);
|
||||||
|
public companionSupportEnabled?: (boolean|null);
|
||||||
public static create(properties?: proto.DeviceCapabilities.IBusinessBroadcast): proto.DeviceCapabilities.BusinessBroadcast;
|
public static create(properties?: proto.DeviceCapabilities.IBusinessBroadcast): proto.DeviceCapabilities.BusinessBroadcast;
|
||||||
public static encode(m: proto.DeviceCapabilities.IBusinessBroadcast, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.DeviceCapabilities.IBusinessBroadcast, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceCapabilities.BusinessBroadcast;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceCapabilities.BusinessBroadcast;
|
||||||
@@ -4152,6 +4163,7 @@ export namespace proto {
|
|||||||
thumbnailSyncDaysLimit?: (number|null);
|
thumbnailSyncDaysLimit?: (number|null);
|
||||||
initialSyncMaxMessagesPerChat?: (number|null);
|
initialSyncMaxMessagesPerChat?: (number|null);
|
||||||
supportManusHistory?: (boolean|null);
|
supportManusHistory?: (boolean|null);
|
||||||
|
supportHatchHistory?: (boolean|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class HistorySyncConfig implements IHistorySyncConfig {
|
class HistorySyncConfig implements IHistorySyncConfig {
|
||||||
@@ -4177,6 +4189,7 @@ export namespace proto {
|
|||||||
public thumbnailSyncDaysLimit?: (number|null);
|
public thumbnailSyncDaysLimit?: (number|null);
|
||||||
public initialSyncMaxMessagesPerChat?: (number|null);
|
public initialSyncMaxMessagesPerChat?: (number|null);
|
||||||
public supportManusHistory?: (boolean|null);
|
public supportManusHistory?: (boolean|null);
|
||||||
|
public supportHatchHistory?: (boolean|null);
|
||||||
public static create(properties?: proto.DeviceProps.IHistorySyncConfig): proto.DeviceProps.HistorySyncConfig;
|
public static create(properties?: proto.DeviceProps.IHistorySyncConfig): proto.DeviceProps.HistorySyncConfig;
|
||||||
public static encode(m: proto.DeviceProps.IHistorySyncConfig, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.DeviceProps.IHistorySyncConfig, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceProps.HistorySyncConfig;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceProps.HistorySyncConfig;
|
||||||
@@ -7042,6 +7055,14 @@ export namespace proto {
|
|||||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum InsightDeliveryState {
|
||||||
|
SENT = 0,
|
||||||
|
DELIVERED = 1,
|
||||||
|
READ = 2,
|
||||||
|
REPLIED = 3,
|
||||||
|
QUICK_REPLIED = 4
|
||||||
|
}
|
||||||
|
|
||||||
interface IInteractiveMessage {
|
interface IInteractiveMessage {
|
||||||
header?: (proto.Message.InteractiveMessage.IHeader|null);
|
header?: (proto.Message.InteractiveMessage.IHeader|null);
|
||||||
body?: (proto.Message.InteractiveMessage.IBody|null);
|
body?: (proto.Message.InteractiveMessage.IBody|null);
|
||||||
@@ -8082,6 +8103,8 @@ export namespace proto {
|
|||||||
historySyncChunkRetryRequest?: (proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest|null);
|
historySyncChunkRetryRequest?: (proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest|null);
|
||||||
galaxyFlowAction?: (proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null);
|
galaxyFlowAction?: (proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null);
|
||||||
companionCanonicalUserNonceFetchRequest?: (proto.Message.PeerDataOperationRequestMessage.ICompanionCanonicalUserNonceFetchRequest|null);
|
companionCanonicalUserNonceFetchRequest?: (proto.Message.PeerDataOperationRequestMessage.ICompanionCanonicalUserNonceFetchRequest|null);
|
||||||
|
bizBroadcastInsightsContactListRequest?: (proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsContactListRequest|null);
|
||||||
|
bizBroadcastInsightsRefreshRequest?: (proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsRefreshRequest|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class PeerDataOperationRequestMessage implements IPeerDataOperationRequestMessage {
|
class PeerDataOperationRequestMessage implements IPeerDataOperationRequestMessage {
|
||||||
@@ -8096,6 +8119,8 @@ export namespace proto {
|
|||||||
public historySyncChunkRetryRequest?: (proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest|null);
|
public historySyncChunkRetryRequest?: (proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest|null);
|
||||||
public galaxyFlowAction?: (proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null);
|
public galaxyFlowAction?: (proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null);
|
||||||
public companionCanonicalUserNonceFetchRequest?: (proto.Message.PeerDataOperationRequestMessage.ICompanionCanonicalUserNonceFetchRequest|null);
|
public companionCanonicalUserNonceFetchRequest?: (proto.Message.PeerDataOperationRequestMessage.ICompanionCanonicalUserNonceFetchRequest|null);
|
||||||
|
public bizBroadcastInsightsContactListRequest?: (proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsContactListRequest|null);
|
||||||
|
public bizBroadcastInsightsRefreshRequest?: (proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsRefreshRequest|null);
|
||||||
public static create(properties?: proto.Message.IPeerDataOperationRequestMessage): proto.Message.PeerDataOperationRequestMessage;
|
public static create(properties?: proto.Message.IPeerDataOperationRequestMessage): proto.Message.PeerDataOperationRequestMessage;
|
||||||
public static encode(m: proto.Message.IPeerDataOperationRequestMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.Message.IPeerDataOperationRequestMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestMessage;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestMessage;
|
||||||
@@ -8107,6 +8132,38 @@ export namespace proto {
|
|||||||
|
|
||||||
namespace PeerDataOperationRequestMessage {
|
namespace PeerDataOperationRequestMessage {
|
||||||
|
|
||||||
|
interface IBizBroadcastInsightsContactListRequest {
|
||||||
|
campaignId?: (string|null);
|
||||||
|
}
|
||||||
|
|
||||||
|
class BizBroadcastInsightsContactListRequest implements IBizBroadcastInsightsContactListRequest {
|
||||||
|
constructor(p?: proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsContactListRequest);
|
||||||
|
public campaignId?: (string|null);
|
||||||
|
public static create(properties?: proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsContactListRequest): proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest;
|
||||||
|
public static encode(m: proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsContactListRequest, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest;
|
||||||
|
public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest;
|
||||||
|
public static toObject(m: proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||||
|
public toJSON(): { [k: string]: any };
|
||||||
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IBizBroadcastInsightsRefreshRequest {
|
||||||
|
campaignId?: (string|null);
|
||||||
|
}
|
||||||
|
|
||||||
|
class BizBroadcastInsightsRefreshRequest implements IBizBroadcastInsightsRefreshRequest {
|
||||||
|
constructor(p?: proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsRefreshRequest);
|
||||||
|
public campaignId?: (string|null);
|
||||||
|
public static create(properties?: proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsRefreshRequest): proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest;
|
||||||
|
public static encode(m: proto.Message.PeerDataOperationRequestMessage.IBizBroadcastInsightsRefreshRequest, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest;
|
||||||
|
public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest;
|
||||||
|
public static toObject(m: proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||||
|
public toJSON(): { [k: string]: any };
|
||||||
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
|
}
|
||||||
|
|
||||||
interface ICompanionCanonicalUserNonceFetchRequest {
|
interface ICompanionCanonicalUserNonceFetchRequest {
|
||||||
registrationTraceId?: (string|null);
|
registrationTraceId?: (string|null);
|
||||||
}
|
}
|
||||||
@@ -8326,6 +8383,7 @@ export namespace proto {
|
|||||||
companionCanonicalUserNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null);
|
companionCanonicalUserNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null);
|
||||||
historySyncChunkRetryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse|null);
|
historySyncChunkRetryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse|null);
|
||||||
flowResponsesCsvBundle?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFlowResponsesCsvBundle|null);
|
flowResponsesCsvBundle?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFlowResponsesCsvBundle|null);
|
||||||
|
bizBroadcastInsightsContactListResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactListResponse|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class PeerDataOperationResult implements IPeerDataOperationResult {
|
class PeerDataOperationResult implements IPeerDataOperationResult {
|
||||||
@@ -8341,6 +8399,7 @@ export namespace proto {
|
|||||||
public companionCanonicalUserNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null);
|
public companionCanonicalUserNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null);
|
||||||
public historySyncChunkRetryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse|null);
|
public historySyncChunkRetryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse|null);
|
||||||
public flowResponsesCsvBundle?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFlowResponsesCsvBundle|null);
|
public flowResponsesCsvBundle?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFlowResponsesCsvBundle|null);
|
||||||
|
public bizBroadcastInsightsContactListResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactListResponse|null);
|
||||||
public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.IPeerDataOperationResult): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult;
|
public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.IPeerDataOperationResult): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult;
|
||||||
public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.IPeerDataOperationResult, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.IPeerDataOperationResult, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult;
|
||||||
@@ -8352,6 +8411,44 @@ export namespace proto {
|
|||||||
|
|
||||||
namespace PeerDataOperationResult {
|
namespace PeerDataOperationResult {
|
||||||
|
|
||||||
|
interface IBizBroadcastInsightsContactListResponse {
|
||||||
|
campaignId?: (string|null);
|
||||||
|
timestampMs?: (number|Long|null);
|
||||||
|
contacts?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactState[]|null);
|
||||||
|
}
|
||||||
|
|
||||||
|
class BizBroadcastInsightsContactListResponse implements IBizBroadcastInsightsContactListResponse {
|
||||||
|
constructor(p?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactListResponse);
|
||||||
|
public campaignId?: (string|null);
|
||||||
|
public timestampMs?: (number|Long|null);
|
||||||
|
public contacts: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactState[];
|
||||||
|
public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactListResponse): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse;
|
||||||
|
public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactListResponse, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse;
|
||||||
|
public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse;
|
||||||
|
public static toObject(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||||
|
public toJSON(): { [k: string]: any };
|
||||||
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IBizBroadcastInsightsContactState {
|
||||||
|
contactJid?: (string|null);
|
||||||
|
state?: (proto.Message.InsightDeliveryState|null);
|
||||||
|
}
|
||||||
|
|
||||||
|
class BizBroadcastInsightsContactState implements IBizBroadcastInsightsContactState {
|
||||||
|
constructor(p?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactState);
|
||||||
|
public contactJid?: (string|null);
|
||||||
|
public state?: (proto.Message.InsightDeliveryState|null);
|
||||||
|
public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactState): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState;
|
||||||
|
public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IBizBroadcastInsightsContactState, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState;
|
||||||
|
public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState;
|
||||||
|
public static toObject(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||||
|
public toJSON(): { [k: string]: any };
|
||||||
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
|
}
|
||||||
|
|
||||||
interface ICompanionCanonicalUserNonceFetchResponse {
|
interface ICompanionCanonicalUserNonceFetchResponse {
|
||||||
nonce?: (string|null);
|
nonce?: (string|null);
|
||||||
waFbid?: (string|null);
|
waFbid?: (string|null);
|
||||||
@@ -8634,7 +8731,9 @@ export namespace proto {
|
|||||||
COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8,
|
COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8,
|
||||||
COMPANION_CANONICAL_USER_NONCE_FETCH = 9,
|
COMPANION_CANONICAL_USER_NONCE_FETCH = 9,
|
||||||
HISTORY_SYNC_CHUNK_RETRY = 10,
|
HISTORY_SYNC_CHUNK_RETRY = 10,
|
||||||
GALAXY_FLOW_ACTION = 11
|
GALAXY_FLOW_ACTION = 11,
|
||||||
|
BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO = 12,
|
||||||
|
BUSINESS_BROADCAST_INSIGHTS_REFRESH = 13
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IPinInChatMessage {
|
interface IPinInChatMessage {
|
||||||
@@ -10114,6 +10213,7 @@ export namespace proto {
|
|||||||
quarantineExtractedText?: (string|null);
|
quarantineExtractedText?: (string|null);
|
||||||
pollEndTime?: (number|Long|null);
|
pollEndTime?: (number|Long|null);
|
||||||
pollHideVoterNames?: (boolean|null);
|
pollHideVoterNames?: (boolean|null);
|
||||||
|
pollAllowAddOption?: (boolean|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class MsgOpaqueData implements IMsgOpaqueData {
|
class MsgOpaqueData implements IMsgOpaqueData {
|
||||||
@@ -10164,6 +10264,7 @@ export namespace proto {
|
|||||||
public quarantineExtractedText?: (string|null);
|
public quarantineExtractedText?: (string|null);
|
||||||
public pollEndTime?: (number|Long|null);
|
public pollEndTime?: (number|Long|null);
|
||||||
public pollHideVoterNames?: (boolean|null);
|
public pollHideVoterNames?: (boolean|null);
|
||||||
|
public pollAllowAddOption?: (boolean|null);
|
||||||
public static create(properties?: proto.IMsgOpaqueData): proto.MsgOpaqueData;
|
public static create(properties?: proto.IMsgOpaqueData): proto.MsgOpaqueData;
|
||||||
public static encode(m: proto.IMsgOpaqueData, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.IMsgOpaqueData, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.MsgOpaqueData;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.MsgOpaqueData;
|
||||||
@@ -10360,6 +10461,7 @@ export namespace proto {
|
|||||||
NCT_SALT_SYNC_ACTION = 80,
|
NCT_SALT_SYNC_ACTION = 80,
|
||||||
BUSINESS_BROADCAST_CAMPAIGN_ACTION = 81,
|
BUSINESS_BROADCAST_CAMPAIGN_ACTION = 81,
|
||||||
BUSINESS_BROADCAST_INSIGHTS_ACTION = 82,
|
BUSINESS_BROADCAST_INSIGHTS_ACTION = 82,
|
||||||
|
CUSTOMER_DATA_ACTION = 83,
|
||||||
SHARE_OWN_PN = 10001,
|
SHARE_OWN_PN = 10001,
|
||||||
BUSINESS_BROADCAST_ACTION = 10002,
|
BUSINESS_BROADCAST_ACTION = 10002,
|
||||||
AI_THREAD_DELETE_ACTION = 10003
|
AI_THREAD_DELETE_ACTION = 10003
|
||||||
@@ -11953,6 +12055,7 @@ export namespace proto {
|
|||||||
nctSaltSyncAction?: (proto.SyncActionValue.INctSaltSyncAction|null);
|
nctSaltSyncAction?: (proto.SyncActionValue.INctSaltSyncAction|null);
|
||||||
businessBroadcastCampaignAction?: (proto.SyncActionValue.IBusinessBroadcastCampaignAction|null);
|
businessBroadcastCampaignAction?: (proto.SyncActionValue.IBusinessBroadcastCampaignAction|null);
|
||||||
businessBroadcastInsightsAction?: (proto.SyncActionValue.IBusinessBroadcastInsightsAction|null);
|
businessBroadcastInsightsAction?: (proto.SyncActionValue.IBusinessBroadcastInsightsAction|null);
|
||||||
|
customerDataAction?: (proto.SyncActionValue.ICustomerDataAction|null);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SyncActionValue implements ISyncActionValue {
|
class SyncActionValue implements ISyncActionValue {
|
||||||
@@ -12030,6 +12133,7 @@ export namespace proto {
|
|||||||
public nctSaltSyncAction?: (proto.SyncActionValue.INctSaltSyncAction|null);
|
public nctSaltSyncAction?: (proto.SyncActionValue.INctSaltSyncAction|null);
|
||||||
public businessBroadcastCampaignAction?: (proto.SyncActionValue.IBusinessBroadcastCampaignAction|null);
|
public businessBroadcastCampaignAction?: (proto.SyncActionValue.IBusinessBroadcastCampaignAction|null);
|
||||||
public businessBroadcastInsightsAction?: (proto.SyncActionValue.IBusinessBroadcastInsightsAction|null);
|
public businessBroadcastInsightsAction?: (proto.SyncActionValue.IBusinessBroadcastInsightsAction|null);
|
||||||
|
public customerDataAction?: (proto.SyncActionValue.ICustomerDataAction|null);
|
||||||
public static create(properties?: proto.ISyncActionValue): proto.SyncActionValue;
|
public static create(properties?: proto.ISyncActionValue): proto.SyncActionValue;
|
||||||
public static encode(m: proto.ISyncActionValue, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.ISyncActionValue, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue;
|
||||||
@@ -12436,6 +12540,42 @@ export namespace proto {
|
|||||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ICustomerDataAction {
|
||||||
|
chatJid?: (string|null);
|
||||||
|
contactType?: (number|null);
|
||||||
|
email?: (string|null);
|
||||||
|
altPhoneNumbers?: (string|null);
|
||||||
|
birthday?: (number|Long|null);
|
||||||
|
address?: (string|null);
|
||||||
|
acquisitionSource?: (number|null);
|
||||||
|
leadStage?: (number|null);
|
||||||
|
lastOrder?: (number|Long|null);
|
||||||
|
createdAt?: (number|Long|null);
|
||||||
|
modifiedAt?: (number|Long|null);
|
||||||
|
}
|
||||||
|
|
||||||
|
class CustomerDataAction implements ICustomerDataAction {
|
||||||
|
constructor(p?: proto.SyncActionValue.ICustomerDataAction);
|
||||||
|
public chatJid?: (string|null);
|
||||||
|
public contactType?: (number|null);
|
||||||
|
public email?: (string|null);
|
||||||
|
public altPhoneNumbers?: (string|null);
|
||||||
|
public birthday?: (number|Long|null);
|
||||||
|
public address?: (string|null);
|
||||||
|
public acquisitionSource?: (number|null);
|
||||||
|
public leadStage?: (number|null);
|
||||||
|
public lastOrder?: (number|Long|null);
|
||||||
|
public createdAt?: (number|Long|null);
|
||||||
|
public modifiedAt?: (number|Long|null);
|
||||||
|
public static create(properties?: proto.SyncActionValue.ICustomerDataAction): proto.SyncActionValue.CustomerDataAction;
|
||||||
|
public static encode(m: proto.SyncActionValue.ICustomerDataAction, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.CustomerDataAction;
|
||||||
|
public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.CustomerDataAction;
|
||||||
|
public static toObject(m: proto.SyncActionValue.CustomerDataAction, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||||
|
public toJSON(): { [k: string]: any };
|
||||||
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||||
|
}
|
||||||
|
|
||||||
interface IDeleteChatAction {
|
interface IDeleteChatAction {
|
||||||
messageRange?: (proto.SyncActionValue.ISyncActionMessageRange|null);
|
messageRange?: (proto.SyncActionValue.ISyncActionMessageRange|null);
|
||||||
}
|
}
|
||||||
@@ -13959,14 +14099,12 @@ export namespace proto {
|
|||||||
interface IThreadID {
|
interface IThreadID {
|
||||||
threadType?: (proto.ThreadID.ThreadType|null);
|
threadType?: (proto.ThreadID.ThreadType|null);
|
||||||
threadKey?: (proto.IMessageKey|null);
|
threadKey?: (proto.IMessageKey|null);
|
||||||
sourceChatJid?: (string|null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class ThreadID implements IThreadID {
|
class ThreadID implements IThreadID {
|
||||||
constructor(p?: proto.IThreadID);
|
constructor(p?: proto.IThreadID);
|
||||||
public threadType?: (proto.ThreadID.ThreadType|null);
|
public threadType?: (proto.ThreadID.ThreadType|null);
|
||||||
public threadKey?: (proto.IMessageKey|null);
|
public threadKey?: (proto.IMessageKey|null);
|
||||||
public sourceChatJid?: (string|null);
|
|
||||||
public static create(properties?: proto.IThreadID): proto.ThreadID;
|
public static create(properties?: proto.IThreadID): proto.ThreadID;
|
||||||
public static encode(m: proto.IThreadID, w?: $protobuf.Writer): $protobuf.Writer;
|
public static encode(m: proto.IThreadID, w?: $protobuf.Writer): $protobuf.Writer;
|
||||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ThreadID;
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ThreadID;
|
||||||
|
|||||||
+1070
-21
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
|||||||
{"version":[2,3000,1034382497]}
|
{"version":[2,3000,1034641024]}
|
||||||
|
|||||||
+79
-13
@@ -302,6 +302,25 @@ export function makeLibSignalRepository(
|
|||||||
// Promise instead of each spawning their own DB transactions.
|
// Promise instead of each spawning their own DB transactions.
|
||||||
const migrationInFlight = new Map<string, Promise<{ migrated: number; skipped: number; total: number }>>()
|
const migrationInFlight = new Map<string, Promise<{ migrated: number; skipped: number; total: number }>>()
|
||||||
|
|
||||||
|
// Resolve PN JID to its canonical LID JID for transaction locking.
|
||||||
|
// This prevents PN/LID race conditions where concurrent operations for the
|
||||||
|
// same logical contact acquire different mutex locks because one uses PN
|
||||||
|
// and the other uses LID. (Aligned with WABA behavior — all operations use LID internally.)
|
||||||
|
const resolveCanonicalJid = async(jid: string): Promise<string> => {
|
||||||
|
if (isAnyLidUser(jid)) {
|
||||||
|
return jid
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isAnyPnUser(jid)) {
|
||||||
|
const lid = await lidMapping.getLIDForPN(jid)
|
||||||
|
if (lid) {
|
||||||
|
return lid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return jid
|
||||||
|
}
|
||||||
|
|
||||||
const repository: SignalRepositoryWithLIDStore = {
|
const repository: SignalRepositoryWithLIDStore = {
|
||||||
decryptGroupMessage({ group, authorJid, msg }) {
|
decryptGroupMessage({ group, authorJid, msg }) {
|
||||||
const senderName = jidToSignalSenderKeyName(group, authorJid)
|
const senderName = jidToSignalSenderKeyName(group, authorJid)
|
||||||
@@ -396,23 +415,24 @@ export function makeLibSignalRepository(
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it's not a sync message, we need to ensure atomicity
|
// Use canonical JID (PN→LID resolved) as transaction key to prevent
|
||||||
// For regular messages, we use a transaction to ensure atomicity
|
// PN/LID race conditions on the same logical session.
|
||||||
|
const canonicalJid = await resolveCanonicalJid(jid)
|
||||||
return parsedKeys.transaction(async () => {
|
return parsedKeys.transaction(async () => {
|
||||||
return await doDecrypt()
|
return await doDecrypt()
|
||||||
}, jid)
|
}, canonicalJid)
|
||||||
},
|
},
|
||||||
|
|
||||||
async encryptMessage({ jid, data }) {
|
async encryptMessage({ jid, data }) {
|
||||||
const addr = jidToSignalProtocolAddress(jid)
|
const addr = jidToSignalProtocolAddress(jid)
|
||||||
const cipher = new libsignal.SessionCipher(storage, addr)
|
const cipher = new libsignal.SessionCipher(storage, addr)
|
||||||
|
|
||||||
// Use transaction to ensure atomicity
|
const canonicalJid = await resolveCanonicalJid(jid)
|
||||||
return parsedKeys.transaction(async () => {
|
return parsedKeys.transaction(async () => {
|
||||||
const { type: sigType, body } = await cipher.encrypt(data)
|
const { type: sigType, body } = await cipher.encrypt(data)
|
||||||
const type = sigType === 3 ? 'pkmsg' : 'msg'
|
const type = sigType === 3 ? 'pkmsg' : 'msg'
|
||||||
return { type, ciphertext: Buffer.from(body, 'binary') }
|
return { type, ciphertext: Buffer.from(body, 'binary') }
|
||||||
}, jid)
|
}, canonicalJid)
|
||||||
},
|
},
|
||||||
|
|
||||||
async encryptGroupMessage({ group, meId, data }) {
|
async encryptGroupMessage({ group, meId, data }) {
|
||||||
@@ -654,9 +674,10 @@ export function makeLibSignalRepository(
|
|||||||
// Session exists (guaranteed from device discovery)
|
// Session exists (guaranteed from device discovery)
|
||||||
const fromSession = libsignal.SessionRecord.deserialize(pnSession)
|
const fromSession = libsignal.SessionRecord.deserialize(pnSession)
|
||||||
if (fromSession.haveOpenSession()) {
|
if (fromSession.haveOpenSession()) {
|
||||||
// Queue for bulk update: copy to LID, delete from PN
|
// Queue for bulk update: copy to LID, retain PN session.
|
||||||
|
// WABA retains both PN and LID sessions during migration to avoid
|
||||||
|
// No Session errors if messages arrive via PN before migration completes.
|
||||||
sessionUpdates[lidAddrStr] = fromSession.serialize()
|
sessionUpdates[lidAddrStr] = fromSession.serialize()
|
||||||
sessionUpdates[pnAddrStr] = null
|
|
||||||
|
|
||||||
migratedCount++
|
migratedCount++
|
||||||
}
|
}
|
||||||
@@ -776,6 +797,13 @@ function signalStorage(
|
|||||||
return id
|
return id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Delayed PreKey deletion: grace period to handle race conditions
|
||||||
|
// where two pkmsg with the same preKeyId arrive nearly simultaneously.
|
||||||
|
// WABA deletes immediately (33ms), but we add a 5-min grace period
|
||||||
|
// because we can't handle "Invalid PreKey ID" errors at the native level.
|
||||||
|
const PREKEY_GRACE_PERIOD_MS = 5 * 60 * 1000 // 5 minutes
|
||||||
|
const pendingPreKeyDeletions = new Map<string, ReturnType<typeof setTimeout>>()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
loadSession: async (id: string) => {
|
loadSession: async (id: string) => {
|
||||||
try {
|
try {
|
||||||
@@ -808,7 +836,26 @@ function signalStorage(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
removePreKey: (id: number) => keys.set({ 'pre-key': { [id]: null } }),
|
removePreKey: (id: number) => {
|
||||||
|
const keyId = id.toString()
|
||||||
|
// Clear any existing timer for this key
|
||||||
|
const existing = pendingPreKeyDeletions.get(keyId)
|
||||||
|
if (existing) {
|
||||||
|
clearTimeout(existing)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Schedule deletion after grace period
|
||||||
|
const timer = setTimeout(async () => {
|
||||||
|
pendingPreKeyDeletions.delete(keyId)
|
||||||
|
try {
|
||||||
|
await keys.set({ 'pre-key': { [id]: null } })
|
||||||
|
} catch {
|
||||||
|
// Keystore may be destroyed if connection closed — safe to ignore
|
||||||
|
}
|
||||||
|
}, PREKEY_GRACE_PERIOD_MS)
|
||||||
|
|
||||||
|
pendingPreKeyDeletions.set(keyId, timer)
|
||||||
|
},
|
||||||
loadSignedPreKey: () => {
|
loadSignedPreKey: () => {
|
||||||
const key = creds.signedPreKey
|
const key = creds.signedPreKey
|
||||||
return {
|
return {
|
||||||
@@ -898,14 +945,24 @@ function signalStorage(
|
|||||||
// IDENTITY KEY CHANGED - contact reinstalled WhatsApp or switched devices
|
// IDENTITY KEY CHANGED - contact reinstalled WhatsApp or switched devices
|
||||||
const previousFingerprint = generateKeyFingerprint(existingKey)
|
const previousFingerprint = generateKeyFingerprint(existingKey)
|
||||||
|
|
||||||
// Delete old session and save new identity key atomically
|
// Delete old session and save new identity key atomically.
|
||||||
|
// Store identity in BOTH LID and PN addresses (WABA stores in both
|
||||||
|
// recipient_account_type=0 and type=1 with CONFLICT_REPLACE).
|
||||||
|
const identityUpdates: Record<string, Uint8Array> = { [wireJid]: identityKey }
|
||||||
|
if (wireJid !== id) {
|
||||||
|
identityUpdates[id] = identityKey
|
||||||
|
}
|
||||||
|
|
||||||
await keys.set({
|
await keys.set({
|
||||||
session: { [wireJid]: null },
|
session: { [wireJid]: null },
|
||||||
'identity-key': { [wireJid]: identityKey }
|
'identity-key': identityUpdates
|
||||||
})
|
})
|
||||||
|
|
||||||
// Update cache
|
// Update cache for both addresses
|
||||||
identityKeyCache.set(wireJid, identityKey)
|
identityKeyCache.set(wireJid, identityKey)
|
||||||
|
if (wireJid !== id) {
|
||||||
|
identityKeyCache.set(id, identityKey)
|
||||||
|
}
|
||||||
|
|
||||||
// Record metrics
|
// Record metrics
|
||||||
metrics.signalIdentityChanges?.inc({ type: 'changed' })
|
metrics.signalIdentityChanges?.inc({ type: 'changed' })
|
||||||
@@ -941,10 +998,19 @@ function signalStorage(
|
|||||||
|
|
||||||
if (!existingKey) {
|
if (!existingKey) {
|
||||||
// NEW CONTACT - Trust On First Use (TOFU)
|
// NEW CONTACT - Trust On First Use (TOFU)
|
||||||
await keys.set({ 'identity-key': { [wireJid]: identityKey } })
|
// Store in both LID and PN addresses (aligned with WABA dual identity storage)
|
||||||
|
const identityUpdates: Record<string, Uint8Array> = { [wireJid]: identityKey }
|
||||||
|
if (wireJid !== id) {
|
||||||
|
identityUpdates[id] = identityKey
|
||||||
|
}
|
||||||
|
|
||||||
// Update cache
|
await keys.set({ 'identity-key': identityUpdates })
|
||||||
|
|
||||||
|
// Update cache for both addresses
|
||||||
identityKeyCache.set(wireJid, identityKey)
|
identityKeyCache.set(wireJid, identityKey)
|
||||||
|
if (wireJid !== id) {
|
||||||
|
identityKeyCache.set(id, identityKey)
|
||||||
|
}
|
||||||
|
|
||||||
// Record metrics
|
// Record metrics
|
||||||
metrics.signalIdentityChanges?.inc({ type: 'new' })
|
metrics.signalIdentityChanges?.inc({ type: 'new' })
|
||||||
|
|||||||
@@ -1314,7 +1314,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
let shouldRecreateSession = false
|
let shouldRecreateSession = false
|
||||||
let recreateReason = ''
|
let recreateReason = ''
|
||||||
|
|
||||||
if (enableAutoSessionRecreation && messageRetryManager && retryCount > 1) {
|
if (enableAutoSessionRecreation && messageRetryManager && retryCount >= 1) {
|
||||||
try {
|
try {
|
||||||
// Check if we have a session with this JID
|
// Check if we have a session with this JID
|
||||||
const sessionId = signalRepository.jidToSignalProtocolAddress(fromJid)
|
const sessionId = signalRepository.jidToSignalProtocolAddress(fromJid)
|
||||||
@@ -2033,7 +2033,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
let shouldRecreateSession = false
|
let shouldRecreateSession = false
|
||||||
let recreateReason = ''
|
let recreateReason = ''
|
||||||
|
|
||||||
if (enableAutoSessionRecreation && messageRetryManager && retryCount > 1) {
|
if (enableAutoSessionRecreation && messageRetryManager && retryCount >= 1) {
|
||||||
try {
|
try {
|
||||||
const sessionId = signalRepository.jidToSignalProtocolAddress(participant)
|
const sessionId = signalRepository.jidToSignalProtocolAddress(participant)
|
||||||
|
|
||||||
|
|||||||
@@ -1253,12 +1253,12 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
const isCarousel = isCarouselMessage(message)
|
const isCarousel = isCarouselMessage(message)
|
||||||
|
|
||||||
// Collect biz/bot nodes to append AFTER device-identity and tctoken
|
// Collect biz/bot nodes to append AFTER device-identity and tctoken
|
||||||
// Stanza order: participants → device-identity → tctoken → biz
|
// Stanza order: participants → device-identity → tctoken → biz (when applicable)
|
||||||
// The biz node MUST be last for WhatsApp Web carousel rendering
|
// Carousel messages must NOT have biz node (breaks WhatsApp Web rendering)
|
||||||
const deferredNodes: BinaryNode[] = []
|
const deferredNodes: BinaryNode[] = []
|
||||||
|
|
||||||
// Inject biz node for interactive messages (including carousel)
|
// Inject biz node for interactive messages (skip carousel — biz node breaks Web rendering)
|
||||||
if (buttonType && enableInteractiveMessages) {
|
if (buttonType && enableInteractiveMessages && !isCarousel) {
|
||||||
const startTime = Date.now()
|
const startTime = Date.now()
|
||||||
|
|
||||||
// Debug: Log message structure to diagnose list detection
|
// Debug: Log message structure to diagnose list detection
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import {
|
|||||||
isJidStatusBroadcast,
|
isJidStatusBroadcast,
|
||||||
isLidUser,
|
isLidUser,
|
||||||
isPnUser,
|
isPnUser,
|
||||||
jidDecode
|
|
||||||
// transferDevice
|
// transferDevice
|
||||||
} from '../WABinary'
|
} from '../WABinary'
|
||||||
import { unpadRandomMax16 } from './generics'
|
import { unpadRandomMax16 } from './generics'
|
||||||
@@ -488,8 +487,9 @@ export function isCorruptedSessionError(error: any): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clean up corrupted session by deleting all device sessions for a JID.
|
* Clean up corrupted session for a specific device JID.
|
||||||
* Signal Protocol will automatically recreate the session on next message.
|
* WABA behavior: DELETE sessions WHERE recipient_id=? AND device_id=?
|
||||||
|
* Only deletes the exact device that was corrupted, not all devices.
|
||||||
*
|
*
|
||||||
* NOTE: This should NOT be called on every Bad MAC error (hot path).
|
* NOTE: This should NOT be called on every Bad MAC error (hot path).
|
||||||
* Instead, let the retry+pkmsg flow handle recovery naturally (like WhatsApp does).
|
* Instead, let the retry+pkmsg flow handle recovery naturally (like WhatsApp does).
|
||||||
@@ -500,45 +500,7 @@ export async function cleanupCorruptedSession(
|
|||||||
repository: SignalRepositoryWithLIDStore,
|
repository: SignalRepositoryWithLIDStore,
|
||||||
logger: ILogger
|
logger: ILogger
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const { user, device } = jidDecode(jid) || {}
|
await repository.deleteSession([jid])
|
||||||
if (!user) {
|
logger.info({ jid }, 'Cleaned up corrupted session for specific device')
|
||||||
logger.warn({ jid }, 'Cannot cleanup session - invalid JID')
|
return 1
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build list of JIDs to delete (primary + secondary devices)
|
|
||||||
const jidsToDelete: string[] = []
|
|
||||||
|
|
||||||
// Determine domain type correctly (handle hosted JIDs)
|
|
||||||
// JID formats:
|
|
||||||
// - PN: user@s.whatsapp.net
|
|
||||||
// - LID: user@lid
|
|
||||||
// - Hosted PN: user@hosted
|
|
||||||
// - Hosted LID: user@hosted.lid
|
|
||||||
const isLID = jid.endsWith('@lid') || jid.endsWith('@hosted.lid')
|
|
||||||
const isHosted = jid.includes('@hosted')
|
|
||||||
|
|
||||||
let domain: string
|
|
||||||
if (isLID) {
|
|
||||||
domain = isHosted ? 'hosted.lid' : 'lid'
|
|
||||||
} else {
|
|
||||||
domain = isHosted ? 'hosted' : 's.whatsapp.net'
|
|
||||||
}
|
|
||||||
|
|
||||||
// Primary device (0)
|
|
||||||
jidsToDelete.push(`${user}@${domain}`)
|
|
||||||
|
|
||||||
// Secondary devices (1-5 common range for Web/Desktop/etc)
|
|
||||||
for (let i = 1; i <= 5; i++) {
|
|
||||||
jidsToDelete.push(`${user}:${i}@${domain}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
// If specific device was identified and > 5, ensure it's included
|
|
||||||
if (device !== undefined && device > 5) {
|
|
||||||
jidsToDelete.push(`${user}:${device}@${domain}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
await repository.deleteSession(jidsToDelete)
|
|
||||||
|
|
||||||
return jidsToDelete.length
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ export class MessageRetryManager {
|
|||||||
if (errorCode !== undefined && MAC_ERROR_CODES.has(errorCode)) {
|
if (errorCode !== undefined && MAC_ERROR_CODES.has(errorCode)) {
|
||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
const prevTime = this.sessionRecreateHistory.get(jid)
|
const prevTime = this.sessionRecreateHistory.get(jid)
|
||||||
const MAC_ERROR_COOLDOWN_MS = 10_000 // 10 seconds
|
const MAC_ERROR_COOLDOWN_MS = 1_000 // 1 second — WABA recovers faster
|
||||||
|
|
||||||
if (prevTime && now - prevTime < MAC_ERROR_COOLDOWN_MS) {
|
if (prevTime && now - prevTime < MAC_ERROR_COOLDOWN_MS) {
|
||||||
const reasonName = RetryReason[errorCode] || `code_${errorCode}`
|
const reasonName = RetryReason[errorCode] || `code_${errorCode}`
|
||||||
|
|||||||
Reference in New Issue
Block a user