@awangxcode/qiro-baileys 7.0.0-rc26.2 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Defaults/index.d.ts +1 -1
- package/lib/Defaults/index.js +3 -3
- package/lib/Extensions/advanced.d.ts +1 -1
- package/lib/Extensions/experimental.d.ts +1 -1
- package/lib/MessageBuilder/index.d.ts +5 -5
- package/lib/MessageBuilder/index.js +2 -2
- package/lib/Signal/Group/group-session-builder.d.ts +3 -3
- package/lib/Signal/Group/group-session-builder.js +4 -4
- package/lib/Signal/Group/group_cipher.d.ts +2 -2
- package/lib/Signal/Group/group_cipher.js +4 -4
- package/lib/Signal/Group/index.d.ts +11 -11
- package/lib/Signal/Group/index.js +11 -11
- package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
- package/lib/Signal/Group/sender-chain-key.js +1 -1
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-distribution-message.js +1 -1
- package/lib/Signal/Group/sender-key-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-message.js +1 -1
- package/lib/Signal/Group/sender-key-record.d.ts +1 -1
- package/lib/Signal/Group/sender-key-record.js +2 -2
- package/lib/Signal/Group/sender-key-state.d.ts +2 -2
- package/lib/Signal/Group/sender-key-state.js +2 -2
- package/lib/Signal/libsignal.d.ts +3 -3
- package/lib/Signal/libsignal.js +6 -6
- package/lib/Signal/lid-mapping.d.ts +2 -2
- package/lib/Signal/lid-mapping.js +1 -1
- package/lib/Socket/Client/index.d.ts +2 -2
- package/lib/Socket/Client/index.js +2 -2
- package/lib/Socket/Client/types.d.ts +1 -1
- package/lib/Socket/Client/websocket.d.ts +1 -1
- package/lib/Socket/Client/websocket.js +2 -2
- package/lib/Socket/business.d.ts +77 -77
- package/lib/Socket/business.js +5 -5
- package/lib/Socket/chats.d.ts +16 -16
- package/lib/Socket/chats.js +9 -9
- package/lib/Socket/communities.d.ts +56 -56
- package/lib/Socket/communities.js +5 -5
- package/lib/Socket/groups.d.ts +28 -28
- package/lib/Socket/groups.js +4 -4
- package/lib/Socket/index.d.ts +97 -97
- package/lib/Socket/index.js +4 -4
- package/lib/Socket/messages-recv.d.ts +42 -42
- package/lib/Socket/messages-recv.js +10 -10
- package/lib/Socket/messages-send.d.ts +45 -45
- package/lib/Socket/messages-send.js +9 -9
- package/lib/Socket/mex.d.ts +1 -1
- package/lib/Socket/mex.js +1 -1
- package/lib/Socket/newsletter.d.ts +34 -34
- package/lib/Socket/newsletter.js +5 -5
- package/lib/Socket/socket.d.ts +11 -11
- package/lib/Socket/socket.js +7 -7
- package/lib/Types/Auth.d.ts +2 -2
- package/lib/Types/Chat.d.ts +6 -6
- package/lib/Types/Events.d.ts +9 -9
- package/lib/Types/GroupMetadata.d.ts +2 -2
- package/lib/Types/Message.d.ts +5 -5
- package/lib/Types/Product.d.ts +1 -1
- package/lib/Types/Signal.d.ts +1 -1
- package/lib/Types/Socket.d.ts +5 -5
- package/lib/Types/Socket.js +1 -1
- package/lib/Types/State.d.ts +1 -1
- package/lib/Types/USync.d.ts +2 -2
- package/lib/Types/USync.js +1 -1
- package/lib/Types/index.d.ts +14 -14
- package/lib/Types/index.js +12 -12
- package/lib/Utils/auth-utils.d.ts +2 -2
- package/lib/Utils/auth-utils.js +4 -4
- package/lib/Utils/browser-utils.d.ts +1 -1
- package/lib/Utils/business.d.ts +2 -2
- package/lib/Utils/business.js +3 -3
- package/lib/Utils/chat-utils.d.ts +3 -3
- package/lib/Utils/chat-utils.js +7 -7
- package/lib/Utils/companion-reg-client-utils.d.ts +3 -3
- package/lib/Utils/companion-reg-client-utils.js +1 -1
- package/lib/Utils/crypto.d.ts +1 -1
- package/lib/Utils/crypto.js +1 -1
- package/lib/Utils/decode-wa-message.d.ts +4 -4
- package/lib/Utils/decode-wa-message.js +2 -2
- package/lib/Utils/event-buffer.d.ts +2 -2
- package/lib/Utils/event-buffer.js +4 -4
- package/lib/Utils/generics.d.ts +2 -2
- package/lib/Utils/generics.js +3 -3
- package/lib/Utils/history.d.ts +1 -1
- package/lib/Utils/history.js +5 -5
- package/lib/Utils/identity-change-handler.d.ts +2 -2
- package/lib/Utils/identity-change-handler.js +2 -2
- package/lib/Utils/index.d.ts +21 -21
- package/lib/Utils/index.js +21 -21
- package/lib/Utils/link-preview.d.ts +2 -2
- package/lib/Utils/link-preview.js +2 -2
- package/lib/Utils/message-retry-manager.d.ts +1 -1
- package/lib/Utils/messages-media.d.ts +4 -4
- package/lib/Utils/messages-media.js +4 -4
- package/lib/Utils/messages.d.ts +4 -4
- package/lib/Utils/messages.js +7 -7
- package/lib/Utils/noise-handler.d.ts +3 -3
- package/lib/Utils/noise-handler.js +3 -3
- package/lib/Utils/offline-node-processor.d.ts +1 -1
- package/lib/Utils/pre-key-manager.d.ts +2 -2
- package/lib/Utils/process-message.d.ts +2 -2
- package/lib/Utils/process-message.js +7 -7
- package/lib/Utils/reporting-utils.d.ts +2 -2
- package/lib/Utils/reporting-utils.js +1 -1
- package/lib/Utils/signal.d.ts +4 -4
- package/lib/Utils/signal.js +4 -4
- package/lib/Utils/stanza-ack.d.ts +1 -1
- package/lib/Utils/sync-action-utils.d.ts +2 -2
- package/lib/Utils/sync-action-utils.js +1 -1
- package/lib/Utils/tc-token-utils.d.ts +2 -2
- package/lib/Utils/tc-token-utils.js +1 -1
- package/lib/Utils/use-multi-file-auth-state.d.ts +1 -1
- package/lib/Utils/use-multi-file-auth-state.js +2 -2
- package/lib/Utils/validate-connection.d.ts +2 -2
- package/lib/Utils/validate-connection.js +5 -5
- package/lib/WABinary/decode.d.ts +1 -1
- package/lib/WABinary/decode.js +2 -2
- package/lib/WABinary/encode.d.ts +1 -1
- package/lib/WABinary/encode.js +2 -2
- package/lib/WABinary/generic-utils.d.ts +1 -1
- package/lib/WABinary/generic-utils.js +1 -1
- package/lib/WABinary/index.d.ts +5 -5
- package/lib/WABinary/index.js +5 -5
- package/lib/WABinary/types.d.ts +1 -1
- package/lib/WABinary/types.js +1 -1
- package/lib/WAM/BinaryInfo.d.ts +1 -1
- package/lib/WAM/encode.d.ts +1 -1
- package/lib/WAM/encode.js +2 -2
- package/lib/WAM/index.d.ts +3 -3
- package/lib/WAM/index.js +3 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +1 -1
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +1 -1
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +2 -2
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +2 -2
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/index.d.ts +5 -5
- package/lib/WAUSync/Protocols/index.js +5 -5
- package/lib/WAUSync/USyncQuery.d.ts +3 -3
- package/lib/WAUSync/USyncQuery.js +5 -5
- package/lib/WAUSync/index.d.ts +3 -3
- package/lib/WAUSync/index.js +3 -3
- package/lib/index.d.ts +10 -10
- package/lib/index.js +11 -11
- package/package.json +2 -2
package/lib/Socket/business.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import type { GetCatalogOptions, ProductCreate, ProductUpdate, SocketConfig, WAMediaUpload } from '../Types';
|
|
2
|
-
import type { UpdateBussinesProfileProps } from '../Types/Bussines';
|
|
3
|
-
import { type BinaryNode } from '../WABinary';
|
|
1
|
+
import type { GetCatalogOptions, ProductCreate, ProductUpdate, SocketConfig, WAMediaUpload } from '../Types/index.js';
|
|
2
|
+
import type { UpdateBussinesProfileProps } from '../Types/Bussines.js';
|
|
3
|
+
import { type BinaryNode } from '../WABinary/index.js';
|
|
4
4
|
export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
5
|
-
logger: import("../Utils/logger").ILogger;
|
|
6
|
-
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("
|
|
5
|
+
logger: import("../Utils/logger.js").ILogger;
|
|
6
|
+
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("../index.js").OrderDetails>;
|
|
7
7
|
getCatalog: ({ jid, limit, cursor }: GetCatalogOptions) => Promise<{
|
|
8
|
-
products: import("
|
|
8
|
+
products: import("../index.js").Product[];
|
|
9
9
|
nextPageCursor: string | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
getCollections: (jid?: string, limit?: number) => Promise<{
|
|
12
|
-
collections: import("
|
|
12
|
+
collections: import("../index.js").CatalogCollection[];
|
|
13
13
|
}>;
|
|
14
|
-
productCreate: (create: ProductCreate) => Promise<import("
|
|
14
|
+
productCreate: (create: ProductCreate) => Promise<import("../index.js").Product>;
|
|
15
15
|
productDelete: (productIds: string[]) => Promise<{
|
|
16
16
|
deleted: number;
|
|
17
17
|
}>;
|
|
18
|
-
productUpdate: (productId: string, update: ProductUpdate) => Promise<import("
|
|
18
|
+
productUpdate: (productId: string, update: ProductUpdate) => Promise<import("../index.js").Product>;
|
|
19
19
|
updateBussinesProfile: (args: UpdateBussinesProfileProps) => Promise<any>;
|
|
20
20
|
updateCoverPhoto: (photo: WAMediaUpload) => Promise<number>;
|
|
21
21
|
removeCoverPhoto: (id: string) => Promise<any>;
|
|
22
22
|
sendMessageAck: (node: BinaryNode, errorCode?: number) => Promise<void>;
|
|
23
23
|
sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
|
24
24
|
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
|
25
|
-
fetchMessageHistory: (count: number, oldestMsgKey: import("
|
|
26
|
-
requestPlaceholderResend: (messageKey: import("
|
|
27
|
-
messageRetryManager: import("
|
|
28
|
-
userDevicesCache: import("
|
|
25
|
+
fetchMessageHistory: (count: number, oldestMsgKey: import("../index.js").WAMessageKey, oldestMsgTimestamp: number | import("long").default) => Promise<string>;
|
|
26
|
+
requestPlaceholderResend: (messageKey: import("../index.js").WAMessageKey, msgData?: Partial<import("../index.js").WAMessage>) => Promise<string | undefined>;
|
|
27
|
+
messageRetryManager: import("../index.js").MessageRetryManager | null;
|
|
28
|
+
userDevicesCache: import("../index.js").PossiblyExtendedCacheStore | import("@cacheable/node-cache").NodeCache<import("../index.js").JidWithDevice[]>;
|
|
29
29
|
devicesMutex: {
|
|
30
30
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
31
31
|
};
|
|
32
32
|
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
33
33
|
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
34
|
-
relayMessage: (jid: string, message: import("
|
|
35
|
-
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("
|
|
36
|
-
sendReceipts: (keys: import("
|
|
37
|
-
readMessages: (keys: import("
|
|
38
|
-
refreshMediaConn: (forceGet?: boolean) => Promise<import("
|
|
34
|
+
relayMessage: (jid: string, message: import("../index.js").proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, mediaType: mediaTypeOverride, messageType: messageTypeOverride, isSecret, protected: protectedDelivery, me: meOnly }: import("../index.js").MessageRelayOptions) => Promise<string>;
|
|
35
|
+
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../index.js").MessageReceiptType) => Promise<void>;
|
|
36
|
+
sendReceipts: (keys: import("../index.js").WAMessageKey[], type: import("../index.js").MessageReceiptType) => Promise<void>;
|
|
37
|
+
readMessages: (keys: import("../index.js").WAMessageKey[]) => Promise<void>;
|
|
38
|
+
refreshMediaConn: (forceGet?: boolean) => Promise<import("../index.js").MediaConnInfo>;
|
|
39
39
|
getMediaHost: () => string;
|
|
40
|
-
waUploadToServer: import("
|
|
41
|
-
outboundResendCache: import("
|
|
40
|
+
waUploadToServer: import("../index.js").WAMediaUploadFunction;
|
|
41
|
+
outboundResendCache: import("../index.js").CacheStore | import("../Utils/ttl-cache.js").TTLCache<{
|
|
42
42
|
jid: string;
|
|
43
|
-
message: import("
|
|
43
|
+
message: import("../index.js").proto.IMessage;
|
|
44
44
|
}>;
|
|
45
|
-
sendHD: (jid: string, content: any, options?: any) => Promise<import("
|
|
46
|
-
sendImgVid: (jid: string, content: any, options?: any) => Promise<import("
|
|
47
|
-
sendStAudioMessage: (jid: string, content: any, options?: any) => Promise<import("
|
|
48
|
-
setThemeGroup: (jid: string, content: any, options?: any) => Promise<import("
|
|
45
|
+
sendHD: (jid: string, content: any, options?: any) => Promise<import("../index.js").WAMessage>;
|
|
46
|
+
sendImgVid: (jid: string, content: any, options?: any) => Promise<import("../index.js").WAMessage>;
|
|
47
|
+
sendStAudioMessage: (jid: string, content: any, options?: any) => Promise<import("../index.js").WAMessage>;
|
|
48
|
+
setThemeGroup: (jid: string, content: any, options?: any) => Promise<import("../index.js").WAMessage | import("../Utils/chat-theme.js").ChatThemeCatalog | undefined>;
|
|
49
49
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
50
50
|
[_: string]: string;
|
|
51
51
|
}>;
|
|
52
|
-
sendPeerDataOperationMessage: (pdoMessage: import("
|
|
53
|
-
createParticipantNodes: (recipientJids: string[], message: import("
|
|
52
|
+
sendPeerDataOperationMessage: (pdoMessage: import("../index.js").proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
53
|
+
createParticipantNodes: (recipientJids: string[], message: import("../index.js").proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: import("../index.js").proto.IMessage) => Promise<{
|
|
54
54
|
nodes: BinaryNode[];
|
|
55
55
|
shouldIncludeDeviceIdentity: boolean;
|
|
56
56
|
}>;
|
|
57
|
-
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("
|
|
57
|
+
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("../index.js").JidWithDevice & {
|
|
58
58
|
jid: string;
|
|
59
59
|
})[]>;
|
|
60
60
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
61
|
-
updateMediaMessage: (message: import("
|
|
62
|
-
sendMessage: (jid: string, content: import("
|
|
61
|
+
updateMediaMessage: (message: import("../index.js").WAMessage) => Promise<import("../index.js").WAMessage>;
|
|
62
|
+
sendMessage: (jid: string, content: import("../index.js").AnyMessageContent, options?: import("../index.js").MiscMessageGenerationOptions) => Promise<import("../index.js").WAMessage | undefined>;
|
|
63
63
|
newsletterUpdateUserSetting: (jid: string, type: "FOLLOWER_NOTIFICATIONS" | "ADMIN_NOTIFICATIONS", muted: boolean) => Promise<{
|
|
64
64
|
id: any;
|
|
65
65
|
state: any;
|
|
@@ -150,11 +150,11 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
150
150
|
} | undefined;
|
|
151
151
|
}[];
|
|
152
152
|
}[]>;
|
|
153
|
-
sendNewsletterStatus: (jid: string, content: any, options?: import("../Utils/newsletter-status").NewsletterStatusSendOptions) => Promise<import("../Utils/newsletter-status").NewsletterStatusSendResult>;
|
|
154
|
-
sendNewsletterStatusReaction: (jid: string, parentServerId: string | number, reaction: string, options?: Pick<import("../Utils/newsletter-status").NewsletterStatusSendOptions, "messageId" | "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status").NewsletterStatusStanzaResult>;
|
|
155
|
-
revokeNewsletterStatus: (jid: string, statusId: string, options?: Pick<import("../Utils/newsletter-status").NewsletterStatusSendOptions, "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status").NewsletterStatusStanzaResult>;
|
|
156
|
-
getNewsletterStatuses: (jid: string, options?: import("../Utils/newsletter-status").NewsletterStatusFetchOptions) => Promise<import("../Utils/newsletter-status").NewsletterStatusList>;
|
|
157
|
-
getNewsletterStatusUpdates: (jid: string, options?: import("../Utils/newsletter-status").NewsletterStatusUpdatesFetchOptions) => Promise<import("../Utils/newsletter-status").NewsletterStatusList>;
|
|
153
|
+
sendNewsletterStatus: (jid: string, content: any, options?: import("../Utils/newsletter-status.js").NewsletterStatusSendOptions) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusSendResult>;
|
|
154
|
+
sendNewsletterStatusReaction: (jid: string, parentServerId: string | number, reaction: string, options?: Pick<import("../Utils/newsletter-status.js").NewsletterStatusSendOptions, "messageId" | "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusStanzaResult>;
|
|
155
|
+
revokeNewsletterStatus: (jid: string, statusId: string, options?: Pick<import("../Utils/newsletter-status.js").NewsletterStatusSendOptions, "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusStanzaResult>;
|
|
156
|
+
getNewsletterStatuses: (jid: string, options?: import("../Utils/newsletter-status.js").NewsletterStatusFetchOptions) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusList>;
|
|
157
|
+
getNewsletterStatusUpdates: (jid: string, options?: import("../Utils/newsletter-status.js").NewsletterStatusUpdatesFetchOptions) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusList>;
|
|
158
158
|
newsletterCanPostStatus: (jid: string) => Promise<{
|
|
159
159
|
canPost: boolean;
|
|
160
160
|
canPostMusic: boolean;
|
|
@@ -194,12 +194,12 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
194
194
|
newsletterRecommended: (options?: any) => Promise<any>;
|
|
195
195
|
newsletterSimilar: (jid: string, options?: any) => Promise<any>;
|
|
196
196
|
newsletterFollowers: (jid: string, options?: any) => Promise<any>;
|
|
197
|
-
newsletterCreate: (name: string, description?: string) => Promise<import("
|
|
198
|
-
newsletterUpdate: (jid: string, updates: import("
|
|
197
|
+
newsletterCreate: (name: string, description?: string) => Promise<import("../index.js").NewsletterMetadata>;
|
|
198
|
+
newsletterUpdate: (jid: string, updates: import("../index.js").NewsletterUpdate) => Promise<unknown>;
|
|
199
199
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
200
200
|
subscribers: number;
|
|
201
201
|
}>;
|
|
202
|
-
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("
|
|
202
|
+
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../index.js").NewsletterMetadata | null>;
|
|
203
203
|
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
204
204
|
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
205
205
|
newsletterMute: (jid: string) => Promise<unknown>;
|
|
@@ -251,8 +251,8 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
251
251
|
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
252
252
|
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
253
253
|
newsletterDelete: (jid: string) => Promise<void>;
|
|
254
|
-
groupMetadata: (jid: string) => Promise<import("
|
|
255
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("
|
|
254
|
+
groupMetadata: (jid: string) => Promise<import("../index.js").GroupMetadata>;
|
|
255
|
+
groupCreate: (subject: string, participants: string[]) => Promise<import("../index.js").GroupMetadata>;
|
|
256
256
|
groupLeave: (id: string) => Promise<void>;
|
|
257
257
|
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
258
258
|
groupRequestParticipantsList: (jid: string) => Promise<{
|
|
@@ -262,7 +262,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
262
262
|
status: string;
|
|
263
263
|
jid: string | undefined;
|
|
264
264
|
}[]>;
|
|
265
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("
|
|
265
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../index.js").ParticipantAction) => Promise<{
|
|
266
266
|
status: string;
|
|
267
267
|
jid: string | undefined;
|
|
268
268
|
content: BinaryNode;
|
|
@@ -272,14 +272,14 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
272
272
|
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
273
273
|
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
274
274
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
275
|
-
groupAcceptInviteV4: (key: string | import("
|
|
276
|
-
groupGetInviteInfo: (code: string) => Promise<import("
|
|
275
|
+
groupAcceptInviteV4: (key: string | import("../index.js").WAMessageKey, inviteMessage: import("../index.js").proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
276
|
+
groupGetInviteInfo: (code: string) => Promise<import("../index.js").GroupMetadata>;
|
|
277
277
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
278
278
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
279
279
|
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
280
280
|
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
281
281
|
groupFetchAllParticipating: () => Promise<{
|
|
282
|
-
[_: string]: import("
|
|
282
|
+
[_: string]: import("../index.js").GroupMetadata;
|
|
283
283
|
}>;
|
|
284
284
|
serverProps: {
|
|
285
285
|
privacyTokenOn1to1: boolean;
|
|
@@ -317,7 +317,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
317
317
|
createCallLink: (type: "audio" | "video", event?: {
|
|
318
318
|
startTime: number;
|
|
319
319
|
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
320
|
-
getBotListV2: () => Promise<import("
|
|
320
|
+
getBotListV2: () => Promise<import("../index.js").BotListInfo[]>;
|
|
321
321
|
messageMutex: {
|
|
322
322
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
323
323
|
};
|
|
@@ -330,14 +330,14 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
330
330
|
notificationMutex: {
|
|
331
331
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
332
332
|
};
|
|
333
|
-
upsertMessage: (msg: import("
|
|
334
|
-
appPatch: (patchCreate: import("
|
|
335
|
-
sendPresenceUpdate: (type: import("
|
|
333
|
+
upsertMessage: (msg: import("../index.js").WAMessage, type: import("../index.js").MessageUpsertType) => Promise<void>;
|
|
334
|
+
appPatch: (patchCreate: import("../index.js").WAPatchCreate) => Promise<void>;
|
|
335
|
+
sendPresenceUpdate: (type: import("../index.js").WAPresence, toJid?: string) => Promise<void>;
|
|
336
336
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
337
337
|
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
338
338
|
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
339
|
-
fetchStatus: (...jids: string[]) => Promise<import("
|
|
340
|
-
fetchDisappearingDuration: (...jids: string[]) => Promise<import("
|
|
339
|
+
fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
340
|
+
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
341
341
|
updateProfilePicture: (jid: string, content: WAMediaUpload, dimensions?: {
|
|
342
342
|
width?: number;
|
|
343
343
|
height?: number;
|
|
@@ -349,23 +349,23 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
349
349
|
updateProfileName: (name: string) => Promise<void>;
|
|
350
350
|
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
351
351
|
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
352
|
-
updateCallPrivacy: (value: import("
|
|
353
|
-
updateMessagesPrivacy: (value: import("
|
|
354
|
-
updateLastSeenPrivacy: (value: import("
|
|
355
|
-
updateOnlinePrivacy: (value: import("
|
|
356
|
-
updateProfilePicturePrivacy: (value: import("
|
|
357
|
-
updateStatusPrivacy: (value: import("
|
|
358
|
-
updateReadReceiptsPrivacy: (value: import("
|
|
359
|
-
updateGroupsAddPrivacy: (value: import("
|
|
352
|
+
updateCallPrivacy: (value: import("../index.js").WAPrivacyCallValue) => Promise<void>;
|
|
353
|
+
updateMessagesPrivacy: (value: import("../index.js").WAPrivacyMessagesValue) => Promise<void>;
|
|
354
|
+
updateLastSeenPrivacy: (value: import("../index.js").WAPrivacyValue) => Promise<void>;
|
|
355
|
+
updateOnlinePrivacy: (value: import("../index.js").WAPrivacyOnlineValue) => Promise<void>;
|
|
356
|
+
updateProfilePicturePrivacy: (value: import("../index.js").WAPrivacyValue) => Promise<void>;
|
|
357
|
+
updateStatusPrivacy: (value: import("../index.js").WAPrivacyValue) => Promise<void>;
|
|
358
|
+
updateReadReceiptsPrivacy: (value: import("../index.js").WAReadReceiptsValue) => Promise<void>;
|
|
359
|
+
updateGroupsAddPrivacy: (value: import("../index.js").WAPrivacyGroupAddValue) => Promise<void>;
|
|
360
360
|
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
361
|
-
getBusinessProfile: (jid: string) => Promise<import("
|
|
361
|
+
getBusinessProfile: (jid: string) => Promise<import("../index.js").WABusinessProfile | void>;
|
|
362
362
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
363
|
-
chatModify: (mod: import("
|
|
363
|
+
chatModify: (mod: import("../index.js").ChatModification, jid: string) => Promise<void>;
|
|
364
364
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
365
|
-
addOrEditContact: (jid: string, contact: import("
|
|
365
|
+
addOrEditContact: (jid: string, contact: import("../index.js").proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
366
366
|
removeContact: (jid: string) => Promise<void>;
|
|
367
|
-
placeholderResendCache: import("
|
|
368
|
-
addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
|
|
367
|
+
placeholderResendCache: import("../index.js").CacheStore;
|
|
368
|
+
addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
|
|
369
369
|
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
370
370
|
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
371
371
|
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
@@ -374,7 +374,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
374
374
|
id: string;
|
|
375
375
|
fromMe?: boolean;
|
|
376
376
|
}[], star: boolean) => Promise<void>;
|
|
377
|
-
addOrEditQuickReply: (quickReply: import("../Types/Bussines").QuickReplyAction) => Promise<void>;
|
|
377
|
+
addOrEditQuickReply: (quickReply: import("../Types/Bussines.js").QuickReplyAction) => Promise<void>;
|
|
378
378
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
379
379
|
getUsername: () => Promise<{
|
|
380
380
|
username: any;
|
|
@@ -435,16 +435,16 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
435
435
|
[key: string]: string;
|
|
436
436
|
}>;
|
|
437
437
|
fetchServerLinkPreview: (url: string) => Promise<any>;
|
|
438
|
-
reportSpam: (jid: string, options?: import("
|
|
438
|
+
reportSpam: (jid: string, options?: import("../index.js").SpamReportOptions) => Promise<{
|
|
439
439
|
jid: string | undefined;
|
|
440
440
|
flow: string | undefined;
|
|
441
441
|
reported: boolean;
|
|
442
442
|
node: BinaryNode;
|
|
443
443
|
}>;
|
|
444
444
|
type: "md";
|
|
445
|
-
ws: import("./Client").WebSocketClient;
|
|
446
|
-
ev: import("
|
|
447
|
-
process(handler: (events: Partial<import("
|
|
445
|
+
ws: import("./Client/index.js").WebSocketClient;
|
|
446
|
+
ev: import("../index.js").BaileysEventEmitter & {
|
|
447
|
+
process(handler: (events: Partial<import("../index.js").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
448
448
|
buffer(): void;
|
|
449
449
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
450
450
|
flush(): boolean;
|
|
@@ -452,11 +452,11 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
452
452
|
destroy(): void;
|
|
453
453
|
};
|
|
454
454
|
authState: {
|
|
455
|
-
creds: import("
|
|
456
|
-
keys: import("
|
|
455
|
+
creds: import("../index.js").AuthenticationCreds;
|
|
456
|
+
keys: import("../index.js").SignalKeyStoreWithTransaction;
|
|
457
457
|
};
|
|
458
|
-
signalRepository: import("
|
|
459
|
-
user: import("
|
|
458
|
+
signalRepository: import("../index.js").SignalRepositoryWithLIDStore;
|
|
459
|
+
user: import("../index.js").Contact | undefined;
|
|
460
460
|
generateMessageTag: () => string;
|
|
461
461
|
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
462
462
|
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
@@ -475,10 +475,10 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
475
475
|
cancelPairingCode: () => boolean;
|
|
476
476
|
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
477
477
|
sendUnifiedSession: () => Promise<void>;
|
|
478
|
-
wamBuffer: import("
|
|
479
|
-
waitForConnectionUpdate: (check: (u: Partial<import("
|
|
478
|
+
wamBuffer: import("../index.js").BinaryInfo;
|
|
479
|
+
waitForConnectionUpdate: (check: (u: Partial<import("../index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
480
480
|
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
481
|
-
executeUSyncQuery: (usyncQuery: import("
|
|
481
|
+
executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
482
482
|
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
483
483
|
jid: string;
|
|
484
484
|
exists: boolean;
|
|
@@ -495,7 +495,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
|
495
495
|
jid: string;
|
|
496
496
|
username: unknown;
|
|
497
497
|
}[]>;
|
|
498
|
-
fetchAccountReachoutTimelock: () => Promise<import("
|
|
499
|
-
fetchNewChatMessageCap: () => Promise<import("
|
|
498
|
+
fetchAccountReachoutTimelock: () => Promise<import("../index.js").ReachoutTimelockState>;
|
|
499
|
+
fetchNewChatMessageCap: () => Promise<import("../index.js").NewChatMessageCapInfo>;
|
|
500
500
|
};
|
|
501
501
|
//# sourceMappingURL=business.d.ts.map
|
package/lib/Socket/business.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getRawMediaUploadData } from '../Utils';
|
|
2
|
-
import { parseCatalogNode, parseCollectionsNode, parseOrderDetailsNode, parseProductNode, toProductNode, uploadingNecessaryImagesOfProduct } from '../Utils/business';
|
|
3
|
-
import { jidNormalizedUser, S_WHATSAPP_NET } from '../WABinary';
|
|
4
|
-
import { getBinaryNodeChild } from '../WABinary/generic-utils';
|
|
5
|
-
import { makeMessagesRecvSocket } from './messages-recv';
|
|
1
|
+
import { getRawMediaUploadData } from '../Utils/index.js';
|
|
2
|
+
import { parseCatalogNode, parseCollectionsNode, parseOrderDetailsNode, parseProductNode, toProductNode, uploadingNecessaryImagesOfProduct } from '../Utils/business.js';
|
|
3
|
+
import { jidNormalizedUser, S_WHATSAPP_NET } from '../WABinary/index.js';
|
|
4
|
+
import { getBinaryNodeChild } from '../WABinary/generic-utils.js';
|
|
5
|
+
import { makeMessagesRecvSocket } from './messages-recv.js';
|
|
6
6
|
export const makeBusinessSocket = (config) => {
|
|
7
7
|
const sock = makeMessagesRecvSocket(config);
|
|
8
8
|
const { authState, query, waUploadToServer } = sock;
|
package/lib/Socket/chats.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Boom } from '@hapi/boom';
|
|
2
2
|
import { proto } from '../../WAProto/index.js';
|
|
3
|
-
import type { BotListInfo, CacheStore, ChatModification, MessageUpsertType, SocketConfig, WABusinessProfile, WAMediaUpload, WAMessage, WAPatchCreate, WAPresence, WAPrivacyCallValue, WAPrivacyGroupAddValue, WAPrivacyMessagesValue, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue, SpamReportOptions } from '../Types';
|
|
3
|
+
import type { BotListInfo, CacheStore, ChatModification, MessageUpsertType, SocketConfig, WABusinessProfile, WAMediaUpload, WAMessage, WAPatchCreate, WAPresence, WAPrivacyCallValue, WAPrivacyGroupAddValue, WAPrivacyMessagesValue, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue, SpamReportOptions } from '../Types/index.js';
|
|
4
4
|
import type { QuickReplyAction } from '../Types/Bussines.js';
|
|
5
|
-
import type { LabelActionBody } from '../Types/Label';
|
|
6
|
-
import { type BinaryNode } from '../WABinary';
|
|
7
|
-
import { USyncQuery } from '../WAUSync';
|
|
5
|
+
import type { LabelActionBody } from '../Types/Label.js';
|
|
6
|
+
import { type BinaryNode } from '../WABinary/index.js';
|
|
7
|
+
import { USyncQuery } from '../WAUSync/index.js';
|
|
8
8
|
export declare const buildSpamListNode: (jid: string, options?: SpamReportOptions) => BinaryNode;
|
|
9
9
|
export declare const readSpamReportResult: (sent: BinaryNode, result: BinaryNode) => {
|
|
10
10
|
jid: string | undefined;
|
|
@@ -75,8 +75,8 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
75
75
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
76
76
|
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
77
77
|
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
78
|
-
fetchStatus: (...jids: string[]) => Promise<import("../WAUSync").USyncQueryResultList[] | undefined>;
|
|
79
|
-
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../WAUSync").USyncQueryResultList[] | undefined>;
|
|
78
|
+
fetchStatus: (...jids: string[]) => Promise<import("../WAUSync/index.js").USyncQueryResultList[] | undefined>;
|
|
79
|
+
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../WAUSync/index.js").USyncQueryResultList[] | undefined>;
|
|
80
80
|
updateProfilePicture: (jid: string, content: WAMediaUpload, dimensions?: {
|
|
81
81
|
width?: number;
|
|
82
82
|
height?: number;
|
|
@@ -182,8 +182,8 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
182
182
|
}>;
|
|
183
183
|
type: "md";
|
|
184
184
|
ws: import("./Client/websocket.js").WebSocketClient;
|
|
185
|
-
ev: import("../Types").BaileysEventEmitter & {
|
|
186
|
-
process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
185
|
+
ev: import("../Types/index.js").BaileysEventEmitter & {
|
|
186
|
+
process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
187
187
|
buffer(): void;
|
|
188
188
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
189
189
|
flush(): boolean;
|
|
@@ -191,11 +191,11 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
191
191
|
destroy(): void;
|
|
192
192
|
};
|
|
193
193
|
authState: {
|
|
194
|
-
creds: import("../Types").AuthenticationCreds;
|
|
195
|
-
keys: import("../Types").SignalKeyStoreWithTransaction;
|
|
194
|
+
creds: import("../Types/index.js").AuthenticationCreds;
|
|
195
|
+
keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
|
|
196
196
|
};
|
|
197
|
-
signalRepository: import("../Types").SignalRepositoryWithLIDStore;
|
|
198
|
-
user: import("../Types").Contact | undefined;
|
|
197
|
+
signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
|
|
198
|
+
user: import("../Types/index.js").Contact | undefined;
|
|
199
199
|
generateMessageTag: () => string;
|
|
200
200
|
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
201
201
|
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
@@ -215,9 +215,9 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
215
215
|
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
216
216
|
sendUnifiedSession: () => Promise<void>;
|
|
217
217
|
wamBuffer: import("../index.js").BinaryInfo;
|
|
218
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
218
|
+
waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
219
219
|
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
220
|
-
executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../WAUSync").USyncQueryResult | undefined>;
|
|
220
|
+
executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../WAUSync/index.js").USyncQueryResult | undefined>;
|
|
221
221
|
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
222
222
|
jid: string;
|
|
223
223
|
exists: boolean;
|
|
@@ -234,7 +234,7 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
|
234
234
|
jid: string;
|
|
235
235
|
username: unknown;
|
|
236
236
|
}[]>;
|
|
237
|
-
fetchAccountReachoutTimelock: () => Promise<import("../Types").ReachoutTimelockState>;
|
|
238
|
-
fetchNewChatMessageCap: () => Promise<import("../Types").NewChatMessageCapInfo>;
|
|
237
|
+
fetchAccountReachoutTimelock: () => Promise<import("../Types/index.js").ReachoutTimelockState>;
|
|
238
|
+
fetchNewChatMessageCap: () => Promise<import("../Types/index.js").NewChatMessageCapInfo>;
|
|
239
239
|
};
|
|
240
240
|
//# sourceMappingURL=chats.d.ts.map
|
package/lib/Socket/chats.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import NodeCache from '@cacheable/node-cache';
|
|
2
2
|
import { Boom } from '@hapi/boom';
|
|
3
3
|
import { proto } from '../../WAProto/index.js';
|
|
4
|
-
import { DEFAULT_CACHE_TTLS, HISTORY_SYNC_PAUSED_TIMEOUT_MS, PROCESSABLE_HISTORY_TYPES } from '../Defaults';
|
|
5
|
-
import { ALL_WA_PATCH_NAMES, QueryIds, XWAPaths, SPAM_FLOWS } from '../Types';
|
|
6
|
-
import { SyncState } from '../Types/State';
|
|
7
|
-
import { chatModificationToAppPatch, decodePatches, decodeSyncdSnapshot, encodeSyncdPatch, ensureLTHashStateVersion, extractSyncdPatches, generateProfilePicture, getHistoryMsg, isAppStateSyncIrrecoverable, isMissingKeyError, MAX_SYNC_ATTEMPTS, newLTHashState, processSyncAction } from '../Utils';
|
|
8
|
-
import { makeMutex } from '../Utils/make-mutex';
|
|
9
|
-
import processMessage from '../Utils/process-message';
|
|
10
|
-
import { buildTcTokenFromJid } from '../Utils/tc-token-utils';
|
|
11
|
-
import { getBinaryNodeChild, getBinaryNodeChildren, isHostedLidUser, isHostedPnUser, isLidUser, isPnUser, jidDecode, jidNormalizedUser, reduceBinaryNodeToDictionary, S_WHATSAPP_NET } from '../WABinary';
|
|
12
|
-
import { USyncQuery, USyncUser } from '../WAUSync';
|
|
4
|
+
import { DEFAULT_CACHE_TTLS, HISTORY_SYNC_PAUSED_TIMEOUT_MS, PROCESSABLE_HISTORY_TYPES } from '../Defaults/index.js';
|
|
5
|
+
import { ALL_WA_PATCH_NAMES, QueryIds, XWAPaths, SPAM_FLOWS } from '../Types/index.js';
|
|
6
|
+
import { SyncState } from '../Types/State.js';
|
|
7
|
+
import { chatModificationToAppPatch, decodePatches, decodeSyncdSnapshot, encodeSyncdPatch, ensureLTHashStateVersion, extractSyncdPatches, generateProfilePicture, getHistoryMsg, isAppStateSyncIrrecoverable, isMissingKeyError, MAX_SYNC_ATTEMPTS, newLTHashState, processSyncAction } from '../Utils/index.js';
|
|
8
|
+
import { makeMutex } from '../Utils/make-mutex.js';
|
|
9
|
+
import processMessage from '../Utils/process-message.js';
|
|
10
|
+
import { buildTcTokenFromJid } from '../Utils/tc-token-utils.js';
|
|
11
|
+
import { getBinaryNodeChild, getBinaryNodeChildren, isHostedLidUser, isHostedPnUser, isLidUser, isPnUser, jidDecode, jidNormalizedUser, reduceBinaryNodeToDictionary, S_WHATSAPP_NET } from '../WABinary/index.js';
|
|
12
|
+
import { USyncQuery, USyncUser } from '../WAUSync/index.js';
|
|
13
13
|
import { makeSocket } from './socket.js';
|
|
14
14
|
import { executeWMexQuery as genericExecuteWMexQuery } from './mex.js';
|
|
15
15
|
import { isUsernamePin, stripUsernamePrefix, validateUsername } from '../Utils/username.js';
|