@jkt48connect-corp/baileys 7.2.8 → 7.2.9
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/Socket/socket.js +1 -1
- package/package.json +1 -1
- package/WAProto/index.d.ts +0 -48955
- package/lib/Defaults/index.d.ts +0 -282
- package/lib/Signal/libsignal.d.ts +0 -3
- package/lib/Socket/Client/abstract-socket-client.d.ts +0 -15
- package/lib/Socket/Client/index.d.ts +0 -3
- package/lib/Socket/Client/mobile-socket-client.d.ts +0 -12
- package/lib/Socket/Client/web-socket-client.d.ts +0 -12
- package/lib/Socket/business.d.ts +0 -170
- package/lib/Socket/chats.d.ts +0 -79
- package/lib/Socket/groups.d.ts +0 -113
- package/lib/Socket/index.d.ts +0 -172
- package/lib/Socket/messages-recv.d.ts +0 -158
- package/lib/Socket/messages-send.d.ts +0 -149
- package/lib/Socket/newsletter.d.ts +0 -132
- package/lib/Socket/registration.d.ts +0 -264
- package/lib/Socket/socket.d.ts +0 -42
- package/lib/Store/index.d.ts +0 -3
- package/lib/Store/make-cache-manager-store.d.ts +0 -14
- package/lib/Store/make-in-memory-store.d.ts +0 -117
- package/lib/Store/make-ordered-dictionary.d.ts +0 -13
- package/lib/Store/object-repository.d.ts +0 -10
- package/lib/Types/Auth.d.ts +0 -109
- package/lib/Types/Call.d.ts +0 -13
- package/lib/Types/Chat.d.ts +0 -107
- package/lib/Types/Contact.d.ts +0 -19
- package/lib/Types/Events.d.ts +0 -172
- package/lib/Types/GroupMetadata.d.ts +0 -56
- package/lib/Types/Label.d.ts +0 -46
- package/lib/Types/LabelAssociation.d.ts +0 -29
- package/lib/Types/Message.d.ts +0 -424
- package/lib/Types/Newsletter.d.ts +0 -92
- package/lib/Types/Product.d.ts +0 -78
- package/lib/Types/Signal.d.ts +0 -57
- package/lib/Types/Socket.d.ts +0 -116
- package/lib/Types/State.d.ts +0 -27
- package/lib/Types/index.d.ts +0 -66
- package/lib/Utils/auth-utils.d.ts +0 -18
- package/lib/Utils/baileys-event-stream.d.ts +0 -16
- package/lib/Utils/business.d.ts +0 -22
- package/lib/Utils/chat-utils.d.ts +0 -70
- package/lib/Utils/crypto.d.ts +0 -40
- package/lib/Utils/decode-wa-message.d.ts +0 -36
- package/lib/Utils/event-buffer.d.ts +0 -35
- package/lib/Utils/generics.d.ts +0 -88
- package/lib/Utils/history.d.ts +0 -19
- package/lib/Utils/index.d.ts +0 -17
- package/lib/Utils/link-preview.d.ts +0 -21
- package/lib/Utils/logger.d.ts +0 -2
- package/lib/Utils/lt-hash.d.ts +0 -12
- package/lib/Utils/make-mutex.d.ts +0 -7
- package/lib/Utils/messages-media.d.ts +0 -113
- package/lib/Utils/messages.d.ts +0 -74
- package/lib/Utils/noise-handler.d.ts +0 -20
- package/lib/Utils/process-message.d.ts +0 -41
- package/lib/Utils/signal.d.ts +0 -32
- package/lib/Utils/use-multi-file-auth-state.d.ts +0 -12
- package/lib/Utils/validate-connection.d.ts +0 -11
- package/lib/WABinary/constants.d.ts +0 -27
- package/lib/WABinary/decode.d.ts +0 -6
- package/lib/WABinary/encode.d.ts +0 -2
- package/lib/WABinary/generic-utils.d.ts +0 -14
- package/lib/WABinary/index.d.ts +0 -5
- package/lib/WABinary/jid-utils.d.ts +0 -31
- package/lib/WABinary/types.d.ts +0 -18
- package/lib/WAM/BinaryInfo.d.ts +0 -8
- package/lib/WAM/constants.d.ts +0 -38
- package/lib/WAM/encode.d.ts +0 -2
- package/lib/WAM/index.d.ts +0 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -9
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -22
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -12
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -12
- package/lib/WAUSync/Protocols/index.d.ts +0 -4
- package/lib/WAUSync/USyncQuery.d.ts +0 -26
- package/lib/WAUSync/USyncUser.d.ts +0 -10
- package/lib/WAUSync/index.d.ts +0 -3
package/lib/Socket/groups.d.ts
DELETED
@@ -1,113 +0,0 @@
|
|
1
|
-
import { proto } from '../../WAProto';
|
2
|
-
import { GroupMetadata, ParticipantAction, SocketConfig } from '../Types';
|
3
|
-
import { BinaryNode } from '../WABinary';
|
4
|
-
export declare const makeGroupsSocket: (config: SocketConfig) => {
|
5
|
-
groupMetadata: (jid: string) => Promise<GroupMetadata>;
|
6
|
-
groupCreate: (subject: string, participants: string[]) => Promise<GroupMetadata>;
|
7
|
-
groupLeave: (id: string) => Promise<void>;
|
8
|
-
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
9
|
-
groupRequestParticipantsList: (jid: string) => Promise<{
|
10
|
-
[key: string]: string;
|
11
|
-
}[]>;
|
12
|
-
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
13
|
-
status: string;
|
14
|
-
jid: string;
|
15
|
-
}[]>;
|
16
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: ParticipantAction) => Promise<{
|
17
|
-
status: string;
|
18
|
-
jid: string;
|
19
|
-
content: BinaryNode;
|
20
|
-
}[]>;
|
21
|
-
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
22
|
-
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
23
|
-
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
24
|
-
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
25
|
-
/**
|
26
|
-
* accept a GroupInviteMessage
|
27
|
-
* @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite
|
28
|
-
* @param inviteMessage the message to accept
|
29
|
-
*/
|
30
|
-
groupAcceptInviteV4: (key: string | proto.IMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<string>;
|
31
|
-
groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
32
|
-
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
33
|
-
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
34
|
-
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
35
|
-
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
36
|
-
groupFetchAllParticipating: () => Promise<{
|
37
|
-
[_: string]: GroupMetadata;
|
38
|
-
}>;
|
39
|
-
processingMutex: {
|
40
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
41
|
-
};
|
42
|
-
fetchPrivacySettings: (force?: boolean) => Promise<{
|
43
|
-
[_: string]: string;
|
44
|
-
}>;
|
45
|
-
upsertMessage: (msg: proto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>;
|
46
|
-
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
47
|
-
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
48
|
-
presenceSubscribe: (toJid: string, tcToken?: Buffer) => Promise<void>;
|
49
|
-
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
50
|
-
onWhatsApp: (...jids: string[]) => Promise<{
|
51
|
-
exists: boolean;
|
52
|
-
jid: string;
|
53
|
-
}[]>;
|
54
|
-
fetchBlocklist: () => Promise<string[]>;
|
55
|
-
fetchStatus: (jid: string) => Promise<{
|
56
|
-
status: string | undefined;
|
57
|
-
setAt: Date;
|
58
|
-
} | undefined>;
|
59
|
-
updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
|
60
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
61
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
62
|
-
updateProfileName: (name: string) => Promise<void>;
|
63
|
-
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
64
|
-
updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
65
|
-
updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
|
66
|
-
updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
67
|
-
updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
68
|
-
updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
|
69
|
-
updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
70
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
71
|
-
getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
|
72
|
-
resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
73
|
-
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
74
|
-
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
75
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
76
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
77
|
-
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
78
|
-
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
79
|
-
star: (jid: string, messages: {
|
80
|
-
id: string;
|
81
|
-
fromMe?: boolean;
|
82
|
-
}[], star: boolean) => Promise<void>;
|
83
|
-
type: "md";
|
84
|
-
ws: any;
|
85
|
-
ev: import("../Types").BaileysEventEmitter & {
|
86
|
-
process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): (() => void);
|
87
|
-
buffer(): void;
|
88
|
-
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): ((...args: A) => Promise<T>);
|
89
|
-
flush(force?: boolean): boolean;
|
90
|
-
isBuffering(): boolean;
|
91
|
-
};
|
92
|
-
authState: {
|
93
|
-
creds: import("../Types").AuthenticationCreds;
|
94
|
-
keys: import("../Types").SignalKeyStoreWithTransaction;
|
95
|
-
};
|
96
|
-
signalRepository: import("../Types").SignalRepository;
|
97
|
-
user: import("../Types").Contact | undefined;
|
98
|
-
generateMessageTag: () => string;
|
99
|
-
query: (node: BinaryNode, timeoutMs?: number) => Promise<BinaryNode>;
|
100
|
-
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T>;
|
101
|
-
waitForSocketOpen: () => Promise<void>;
|
102
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
103
|
-
sendNode: (frame: BinaryNode) => Promise<void>;
|
104
|
-
logout: (msg?: string) => Promise<void>;
|
105
|
-
end: (error: Error | undefined) => void;
|
106
|
-
onUnexpectedError: (err: Error | Boom, msg: string) => void;
|
107
|
-
uploadPreKeys: (count?: number) => Promise<void>;
|
108
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
109
|
-
requestPairingCode: (phoneNumber: string, pairCode: string) => Promise<string>;
|
110
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number) => Promise<void>;
|
111
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<BinaryNode>;
|
112
|
-
};
|
113
|
-
export declare const extractGroupMetadata: (result: BinaryNode) => GroupMetadata;
|
package/lib/Socket/index.d.ts
DELETED
@@ -1,172 +0,0 @@
|
|
1
|
-
import { UserFacingSocketConfig } from '../Types';
|
2
|
-
declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
3
|
-
register: (code: string) => Promise<import("./registration").ExistsResponse>;
|
4
|
-
requestRegistrationCode: (registrationOptions?: import("./registration").RegistrationOptions) => Promise<import("./registration").ExistsResponse>;
|
5
|
-
logger: Logger;
|
6
|
-
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("../Types").OrderDetails>;
|
7
|
-
getCatalog: ({ jid, limit, cursor }: import("../Types").GetCatalogOptions) => Promise<{
|
8
|
-
products: import("../Types").Product[];
|
9
|
-
nextPageCursor: any;
|
10
|
-
}>;
|
11
|
-
getCollections: (jid?: string, limit?: number) => Promise<{
|
12
|
-
collections: import("../Types").CatalogCollection[];
|
13
|
-
}>;
|
14
|
-
productCreate: (create: import("../Types").ProductCreate) => Promise<import("../Types").Product>;
|
15
|
-
productDelete: (productIds: string[]) => Promise<{
|
16
|
-
deleted: number;
|
17
|
-
}>;
|
18
|
-
productUpdate: (productId: string, update: import("../Types").ProductUpdate) => Promise<import("../Types").Product>;
|
19
|
-
sendMessageAck: ({ tag, attrs, content }: import("..").BinaryNode, errorCode?: number) => Promise<void>;
|
20
|
-
sendRetryRequest: (node: import("..").BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
21
|
-
offerCall: (toJid: string, isVideo?: boolean) => Promise<{
|
22
|
-
id: any;
|
23
|
-
to: string;
|
24
|
-
}>;
|
25
|
-
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
26
|
-
fetchMessageHistory: (count: number, oldestMsgKey: import("../Types").WAMessageKey, oldestMsgTimestamp: number) => Promise<string>;
|
27
|
-
requestPlaceholderResend: (messageKey: import("../Types").WAMessageKey) => Promise<string | undefined>;
|
28
|
-
getPrivacyTokens: (jids: string[]) => Promise<import("..").BinaryNode>;
|
29
|
-
assertSessions: (jids: string[], force: boolean) => Promise<boolean>;
|
30
|
-
relayMessage: (jid: string, message: import("../Types").WAProto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, cachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
|
31
|
-
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types").MessageReceiptType) => Promise<void>;
|
32
|
-
sendReceipts: (keys: import("../Types").WAMessageKey[], type: import("../Types").MessageReceiptType) => Promise<void>;
|
33
|
-
getButtonArgs: (message: import("../Types").WAProto.IMessage) => import("..").BinaryNode["attrs"];
|
34
|
-
readMessages: (keys: import("../Types").WAMessageKey[]) => Promise<void>;
|
35
|
-
refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types").MediaConnInfo>;
|
36
|
-
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<import("..").JidWithDevice[]>;
|
37
|
-
sendPeerDataOperationMessage: (pdoMessage: import("../Types").WAProto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
38
|
-
createParticipantNodes: (jids: string[], message: import("../Types").WAProto.IMessage, extraAttrs?: import("..").BinaryNode["attrs"]) => Promise<{
|
39
|
-
nodes: import("..").BinaryNode[];
|
40
|
-
shouldIncludeDeviceIdentity: boolean;
|
41
|
-
}>;
|
42
|
-
waUploadToServer: import("../Types").WAMediaUploadFunction;
|
43
|
-
fetchPrivacySettings: (force?: boolean) => Promise<{
|
44
|
-
[_: string]: string;
|
45
|
-
}>;
|
46
|
-
updateMediaMessage: (message: import("../Types").WAProto.IWebMessageInfo) => Promise<import("../Types").WAProto.IWebMessageInfo>;
|
47
|
-
sendStatusMentions: (content: import("../Types").AnyMessageContent, jids?: string[]) => Promise<import("../Types").WAProto.WebMessageInfo>;
|
48
|
-
sendAlbumMessage: (jid: string, medias: import("../Types").Media[], options?: import("../Types").MiscMessageGenerationOptions) => Promise<import("../Types").WAProto.WebMessageInfo>;
|
49
|
-
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<import("../Types").WAProto.WebMessageInfo | undefined>;
|
50
|
-
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
51
|
-
duration: string;
|
52
|
-
}>;
|
53
|
-
newsletterReactionMode: (jid: string, mode: import("../Types").NewsletterReactionMode) => Promise<void>;
|
54
|
-
newsletterUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
55
|
-
newsletterUpdateName: (jid: string, name: string) => Promise<void>;
|
56
|
-
newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
|
57
|
-
newsletterRemovePicture: (jid: string) => Promise<void>;
|
58
|
-
newsletterUnfollow: (jid: string) => Promise<void>;
|
59
|
-
newsletterFollow: (jid: string) => Promise<void>;
|
60
|
-
newsletterUnmute: (jid: string) => Promise<void>;
|
61
|
-
newsletterMute: (jid: string) => Promise<void>;
|
62
|
-
newsletterAction: (jid: string, type: "follow" | "unfollow" | "mute" | "unmute") => Promise<void>;
|
63
|
-
newsletterCreate: (name: string, description: string) => Promise<import("../Types").NewsletterMetadata>;
|
64
|
-
newsletterMetadata: (type: "invite" | "jid", key: string, role?: import("../Types").NewsletterViewRole) => Promise<import("../Types").NewsletterMetadata>;
|
65
|
-
newsletterAdminCount: (jid: string) => Promise<number>;
|
66
|
-
newsletterChangeOwner: (jid: string, user: string) => Promise<void>;
|
67
|
-
newsletterDemote: (jid: string, user: string) => Promise<void>;
|
68
|
-
newsletterDelete: (jid: string) => Promise<void>;
|
69
|
-
newsletterReactMessage: (jid: string, serverId: string, code?: string) => Promise<void>;
|
70
|
-
newsletterFetchMessages: (type: "invite" | "jid", key: string, count: number, after?: number) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
|
71
|
-
newsletterFetchUpdates: (jid: string, count: number, after?: number, since?: number) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
|
72
|
-
groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
|
73
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
|
74
|
-
groupLeave: (id: string) => Promise<void>;
|
75
|
-
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
76
|
-
groupRequestParticipantsList: (jid: string) => Promise<{
|
77
|
-
[key: string]: string;
|
78
|
-
}[]>;
|
79
|
-
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
80
|
-
status: string;
|
81
|
-
jid: string;
|
82
|
-
}[]>;
|
83
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
|
84
|
-
status: string;
|
85
|
-
jid: string;
|
86
|
-
content: import("..").BinaryNode;
|
87
|
-
}[]>;
|
88
|
-
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
89
|
-
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
90
|
-
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
91
|
-
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
92
|
-
groupAcceptInviteV4: (key: string | import("../Types").WAProto.IMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<string>;
|
93
|
-
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
94
|
-
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
95
|
-
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
96
|
-
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
97
|
-
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
98
|
-
groupFetchAllParticipating: () => Promise<{
|
99
|
-
[_: string]: import("../Types").GroupMetadata;
|
100
|
-
}>;
|
101
|
-
processingMutex: {
|
102
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
103
|
-
};
|
104
|
-
upsertMessage: (msg: import("../Types").WAProto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>;
|
105
|
-
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
106
|
-
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
107
|
-
presenceSubscribe: (toJid: string, tcToken?: Buffer) => Promise<void>;
|
108
|
-
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
109
|
-
onWhatsApp: (...jids: string[]) => Promise<{
|
110
|
-
exists: boolean;
|
111
|
-
jid: string;
|
112
|
-
}[]>;
|
113
|
-
fetchBlocklist: () => Promise<string[]>;
|
114
|
-
fetchStatus: (jid: string) => Promise<{
|
115
|
-
status: string | undefined;
|
116
|
-
setAt: Date;
|
117
|
-
} | undefined>;
|
118
|
-
updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
|
119
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
120
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
121
|
-
updateProfileName: (name: string) => Promise<void>;
|
122
|
-
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
123
|
-
updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
124
|
-
updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
|
125
|
-
updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
126
|
-
updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
127
|
-
updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
|
128
|
-
updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
129
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
130
|
-
getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
|
131
|
-
resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
132
|
-
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
133
|
-
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
134
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
135
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
136
|
-
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
137
|
-
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
138
|
-
star: (jid: string, messages: {
|
139
|
-
id: string;
|
140
|
-
fromMe?: boolean;
|
141
|
-
}[], star: boolean) => Promise<void>;
|
142
|
-
type: "md";
|
143
|
-
ws: any;
|
144
|
-
ev: import("../Types").BaileysEventEmitter & {
|
145
|
-
process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): (() => void);
|
146
|
-
buffer(): void;
|
147
|
-
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): ((...args: A) => Promise<T>);
|
148
|
-
flush(force?: boolean): boolean;
|
149
|
-
isBuffering(): boolean;
|
150
|
-
};
|
151
|
-
authState: {
|
152
|
-
creds: import("../Types").AuthenticationCreds;
|
153
|
-
keys: import("../Types").SignalKeyStoreWithTransaction;
|
154
|
-
};
|
155
|
-
signalRepository: import("../Types").SignalRepository;
|
156
|
-
user: import("../Types").Contact | undefined;
|
157
|
-
generateMessageTag: () => string;
|
158
|
-
query: (node: import("..").BinaryNode, timeoutMs?: number) => Promise<import("..").BinaryNode>;
|
159
|
-
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T>;
|
160
|
-
waitForSocketOpen: () => Promise<void>;
|
161
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
162
|
-
sendNode: (frame: import("..").BinaryNode) => Promise<void>;
|
163
|
-
logout: (msg?: string) => Promise<void>;
|
164
|
-
end: (error: Error | undefined) => void;
|
165
|
-
onUnexpectedError: (err: Error | Boom, msg: string) => void;
|
166
|
-
uploadPreKeys: (count?: number) => Promise<void>;
|
167
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
168
|
-
requestPairingCode: (phoneNumber: string, pairCode: string) => Promise<string>;
|
169
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number) => Promise<void>;
|
170
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<import("..").BinaryNode>;
|
171
|
-
};
|
172
|
-
export default makeWASocket;
|
@@ -1,158 +0,0 @@
|
|
1
|
-
import { Boom } from '@hapi/boom';
|
2
|
-
import { proto } from '../../WAProto';
|
3
|
-
import { MessageReceiptType, MessageRelayOptions, SocketConfig, WAMessageKey } from '../Types';
|
4
|
-
import { BinaryNode } from '../WABinary';
|
5
|
-
export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
6
|
-
sendMessageAck: ({ tag, attrs, content }: BinaryNode, errorCode?: number) => Promise<void>;
|
7
|
-
sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
8
|
-
offerCall: (toJid: string, isVideo?: boolean) => Promise<{
|
9
|
-
id: any;
|
10
|
-
to: string;
|
11
|
-
}>;
|
12
|
-
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
13
|
-
fetchMessageHistory: (count: number, oldestMsgKey: WAMessageKey, oldestMsgTimestamp: number) => Promise<string>;
|
14
|
-
requestPlaceholderResend: (messageKey: WAMessageKey) => Promise<string | undefined>;
|
15
|
-
getPrivacyTokens: (jids: string[]) => Promise<BinaryNode>;
|
16
|
-
assertSessions: (jids: string[], force: boolean) => Promise<boolean>;
|
17
|
-
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, cachedGroupMetadata, statusJidList }: MessageRelayOptions) => Promise<string>;
|
18
|
-
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise<void>;
|
19
|
-
sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise<void>;
|
20
|
-
getButtonArgs: (message: proto.IMessage) => BinaryNode["attrs"];
|
21
|
-
readMessages: (keys: WAMessageKey[]) => Promise<void>;
|
22
|
-
refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types").MediaConnInfo>;
|
23
|
-
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<import("../WABinary").JidWithDevice[]>;
|
24
|
-
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
25
|
-
createParticipantNodes: (jids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"]) => Promise<{
|
26
|
-
nodes: BinaryNode[];
|
27
|
-
shouldIncludeDeviceIdentity: boolean;
|
28
|
-
}>;
|
29
|
-
waUploadToServer: import("../Types").WAMediaUploadFunction;
|
30
|
-
fetchPrivacySettings: (force?: boolean) => Promise<{
|
31
|
-
[_: string]: string;
|
32
|
-
}>;
|
33
|
-
updateMediaMessage: (message: proto.IWebMessageInfo) => Promise<proto.IWebMessageInfo>;
|
34
|
-
sendStatusMentions: (content: import("../Types").AnyMessageContent, jids?: string[]) => Promise<proto.WebMessageInfo>;
|
35
|
-
sendAlbumMessage: (jid: string, medias: import("../Types").Media[], options?: import("../Types").MiscMessageGenerationOptions) => Promise<proto.WebMessageInfo>;
|
36
|
-
sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<proto.WebMessageInfo | undefined>;
|
37
|
-
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
38
|
-
duration: string;
|
39
|
-
}>;
|
40
|
-
newsletterReactionMode: (jid: string, mode: import("../Types").NewsletterReactionMode) => Promise<void>;
|
41
|
-
newsletterUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
42
|
-
newsletterUpdateName: (jid: string, name: string) => Promise<void>;
|
43
|
-
newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
|
44
|
-
newsletterRemovePicture: (jid: string) => Promise<void>;
|
45
|
-
newsletterUnfollow: (jid: string) => Promise<void>;
|
46
|
-
newsletterFollow: (jid: string) => Promise<void>;
|
47
|
-
newsletterUnmute: (jid: string) => Promise<void>;
|
48
|
-
newsletterMute: (jid: string) => Promise<void>;
|
49
|
-
newsletterAction: (jid: string, type: "follow" | "unfollow" | "mute" | "unmute") => Promise<void>;
|
50
|
-
newsletterCreate: (name: string, description: string) => Promise<import("../Types").NewsletterMetadata>;
|
51
|
-
newsletterMetadata: (type: "invite" | "jid", key: string, role?: import("../Types").NewsletterViewRole) => Promise<import("../Types").NewsletterMetadata>;
|
52
|
-
newsletterAdminCount: (jid: string) => Promise<number>;
|
53
|
-
newsletterChangeOwner: (jid: string, user: string) => Promise<void>;
|
54
|
-
newsletterDemote: (jid: string, user: string) => Promise<void>;
|
55
|
-
newsletterDelete: (jid: string) => Promise<void>;
|
56
|
-
newsletterReactMessage: (jid: string, serverId: string, code?: string) => Promise<void>;
|
57
|
-
newsletterFetchMessages: (type: "invite" | "jid", key: string, count: number, after?: number) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
|
58
|
-
newsletterFetchUpdates: (jid: string, count: number, after?: number, since?: number) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
|
59
|
-
groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
|
60
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
|
61
|
-
groupLeave: (id: string) => Promise<void>;
|
62
|
-
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
63
|
-
groupRequestParticipantsList: (jid: string) => Promise<{
|
64
|
-
[key: string]: string;
|
65
|
-
}[]>;
|
66
|
-
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
67
|
-
status: string;
|
68
|
-
jid: string;
|
69
|
-
}[]>;
|
70
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
|
71
|
-
status: string;
|
72
|
-
jid: string;
|
73
|
-
content: BinaryNode;
|
74
|
-
}[]>;
|
75
|
-
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
76
|
-
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
77
|
-
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
78
|
-
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
79
|
-
groupAcceptInviteV4: (key: string | proto.IMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<string>;
|
80
|
-
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
81
|
-
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
82
|
-
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
83
|
-
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
84
|
-
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
85
|
-
groupFetchAllParticipating: () => Promise<{
|
86
|
-
[_: string]: import("../Types").GroupMetadata;
|
87
|
-
}>;
|
88
|
-
processingMutex: {
|
89
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
90
|
-
};
|
91
|
-
upsertMessage: (msg: proto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>;
|
92
|
-
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
93
|
-
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
94
|
-
presenceSubscribe: (toJid: string, tcToken?: Buffer) => Promise<void>;
|
95
|
-
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
96
|
-
onWhatsApp: (...jids: string[]) => Promise<{
|
97
|
-
exists: boolean;
|
98
|
-
jid: string;
|
99
|
-
}[]>;
|
100
|
-
fetchBlocklist: () => Promise<string[]>;
|
101
|
-
fetchStatus: (jid: string) => Promise<{
|
102
|
-
status: string | undefined;
|
103
|
-
setAt: Date;
|
104
|
-
} | undefined>;
|
105
|
-
updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
|
106
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
107
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
108
|
-
updateProfileName: (name: string) => Promise<void>;
|
109
|
-
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
110
|
-
updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
111
|
-
updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
|
112
|
-
updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
113
|
-
updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
114
|
-
updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
|
115
|
-
updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
116
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
117
|
-
getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
|
118
|
-
resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
119
|
-
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
120
|
-
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
121
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
122
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
123
|
-
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
124
|
-
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
125
|
-
star: (jid: string, messages: {
|
126
|
-
id: string;
|
127
|
-
fromMe?: boolean;
|
128
|
-
}[], star: boolean) => Promise<void>;
|
129
|
-
type: "md";
|
130
|
-
ws: any;
|
131
|
-
ev: import("../Types").BaileysEventEmitter & {
|
132
|
-
process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): (() => void);
|
133
|
-
buffer(): void;
|
134
|
-
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): ((...args: A) => Promise<T>);
|
135
|
-
flush(force?: boolean): boolean;
|
136
|
-
isBuffering(): boolean;
|
137
|
-
};
|
138
|
-
authState: {
|
139
|
-
creds: import("../Types").AuthenticationCreds;
|
140
|
-
keys: import("../Types").SignalKeyStoreWithTransaction;
|
141
|
-
};
|
142
|
-
signalRepository: import("../Types").SignalRepository;
|
143
|
-
user: import("../Types").Contact | undefined;
|
144
|
-
generateMessageTag: () => string;
|
145
|
-
query: (node: BinaryNode, timeoutMs?: number) => Promise<BinaryNode>;
|
146
|
-
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T>;
|
147
|
-
waitForSocketOpen: () => Promise<void>;
|
148
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
149
|
-
sendNode: (frame: BinaryNode) => Promise<void>;
|
150
|
-
logout: (msg?: string) => Promise<void>;
|
151
|
-
end: (error: Error | undefined) => void;
|
152
|
-
onUnexpectedError: (err: Error | Boom, msg: string) => void;
|
153
|
-
uploadPreKeys: (count?: number) => Promise<void>;
|
154
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
155
|
-
requestPairingCode: (phoneNumber: string, pairCode: string) => Promise<string>;
|
156
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number) => Promise<void>;
|
157
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<BinaryNode>;
|
158
|
-
};
|
@@ -1,149 +0,0 @@
|
|
1
|
-
import { Boom } from '@hapi/boom';
|
2
|
-
import { proto } from '../../WAProto';
|
3
|
-
import { AnyMessageContent, Media, MediaConnInfo, MessageReceiptType, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig, WAMessageKey } from '../Types';
|
4
|
-
import { BinaryNode, JidWithDevice } from '../WABinary';
|
5
|
-
export declare const makeMessagesSocket: (config: SocketConfig) => {
|
6
|
-
getPrivacyTokens: (jids: string[]) => Promise<BinaryNode>;
|
7
|
-
assertSessions: (jids: string[], force: boolean) => Promise<boolean>;
|
8
|
-
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, cachedGroupMetadata, statusJidList }: MessageRelayOptions) => Promise<string>;
|
9
|
-
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise<void>;
|
10
|
-
sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise<void>;
|
11
|
-
getButtonArgs: (message: proto.IMessage) => BinaryNode["attrs"];
|
12
|
-
readMessages: (keys: WAMessageKey[]) => Promise<void>;
|
13
|
-
refreshMediaConn: (forceGet?: boolean) => Promise<MediaConnInfo>;
|
14
|
-
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<JidWithDevice[]>;
|
15
|
-
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
16
|
-
createParticipantNodes: (jids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"]) => Promise<{
|
17
|
-
nodes: BinaryNode[];
|
18
|
-
shouldIncludeDeviceIdentity: boolean;
|
19
|
-
}>;
|
20
|
-
waUploadToServer: import("../Types").WAMediaUploadFunction;
|
21
|
-
fetchPrivacySettings: (force?: boolean) => Promise<{
|
22
|
-
[_: string]: string;
|
23
|
-
}>;
|
24
|
-
updateMediaMessage: (message: proto.IWebMessageInfo) => Promise<proto.IWebMessageInfo>;
|
25
|
-
sendStatusMentions: (content: AnyMessageContent, jids?: string[]) => Promise<proto.WebMessageInfo>;
|
26
|
-
sendAlbumMessage: (jid: string, medias: Media[], options?: MiscMessageGenerationOptions) => Promise<proto.WebMessageInfo>;
|
27
|
-
sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise<proto.WebMessageInfo | undefined>;
|
28
|
-
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
29
|
-
duration: string;
|
30
|
-
}>;
|
31
|
-
newsletterReactionMode: (jid: string, mode: import("../Types").NewsletterReactionMode) => Promise<void>;
|
32
|
-
newsletterUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
33
|
-
newsletterUpdateName: (jid: string, name: string) => Promise<void>;
|
34
|
-
newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
|
35
|
-
newsletterRemovePicture: (jid: string) => Promise<void>;
|
36
|
-
newsletterUnfollow: (jid: string) => Promise<void>;
|
37
|
-
newsletterFollow: (jid: string) => Promise<void>;
|
38
|
-
newsletterUnmute: (jid: string) => Promise<void>;
|
39
|
-
newsletterMute: (jid: string) => Promise<void>;
|
40
|
-
newsletterAction: (jid: string, type: "follow" | "unfollow" | "mute" | "unmute") => Promise<void>;
|
41
|
-
newsletterCreate: (name: string, description: string) => Promise<import("../Types").NewsletterMetadata>;
|
42
|
-
newsletterMetadata: (type: "invite" | "jid", key: string, role?: import("../Types").NewsletterViewRole) => Promise<import("../Types").NewsletterMetadata>;
|
43
|
-
newsletterAdminCount: (jid: string) => Promise<number>;
|
44
|
-
newsletterChangeOwner: (jid: string, user: string) => Promise<void>;
|
45
|
-
newsletterDemote: (jid: string, user: string) => Promise<void>;
|
46
|
-
newsletterDelete: (jid: string) => Promise<void>;
|
47
|
-
newsletterReactMessage: (jid: string, serverId: string, code?: string) => Promise<void>;
|
48
|
-
newsletterFetchMessages: (type: "invite" | "jid", key: string, count: number, after?: number) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
|
49
|
-
newsletterFetchUpdates: (jid: string, count: number, after?: number, since?: number) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
|
50
|
-
groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
|
51
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
|
52
|
-
groupLeave: (id: string) => Promise<void>;
|
53
|
-
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
54
|
-
groupRequestParticipantsList: (jid: string) => Promise<{
|
55
|
-
[key: string]: string;
|
56
|
-
}[]>;
|
57
|
-
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
58
|
-
status: string;
|
59
|
-
jid: string;
|
60
|
-
}[]>;
|
61
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
|
62
|
-
status: string;
|
63
|
-
jid: string;
|
64
|
-
content: BinaryNode;
|
65
|
-
}[]>;
|
66
|
-
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
67
|
-
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
68
|
-
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
69
|
-
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
70
|
-
groupAcceptInviteV4: (key: string | proto.IMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<string>;
|
71
|
-
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
72
|
-
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
73
|
-
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
74
|
-
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
75
|
-
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
76
|
-
groupFetchAllParticipating: () => Promise<{
|
77
|
-
[_: string]: import("../Types").GroupMetadata;
|
78
|
-
}>;
|
79
|
-
processingMutex: {
|
80
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
81
|
-
};
|
82
|
-
upsertMessage: (msg: proto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>;
|
83
|
-
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
84
|
-
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
85
|
-
presenceSubscribe: (toJid: string, tcToken?: Buffer) => Promise<void>;
|
86
|
-
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
87
|
-
onWhatsApp: (...jids: string[]) => Promise<{
|
88
|
-
exists: boolean;
|
89
|
-
jid: string;
|
90
|
-
}[]>;
|
91
|
-
fetchBlocklist: () => Promise<string[]>;
|
92
|
-
fetchStatus: (jid: string) => Promise<{
|
93
|
-
status: string | undefined;
|
94
|
-
setAt: Date;
|
95
|
-
} | undefined>;
|
96
|
-
updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
|
97
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
98
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
99
|
-
updateProfileName: (name: string) => Promise<void>;
|
100
|
-
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
101
|
-
updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
102
|
-
updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
|
103
|
-
updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
104
|
-
updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
105
|
-
updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
|
106
|
-
updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
107
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
108
|
-
getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
|
109
|
-
resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
110
|
-
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
111
|
-
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
112
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
113
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
114
|
-
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
115
|
-
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
116
|
-
star: (jid: string, messages: {
|
117
|
-
id: string;
|
118
|
-
fromMe?: boolean;
|
119
|
-
}[], star: boolean) => Promise<void>;
|
120
|
-
type: "md";
|
121
|
-
ws: any;
|
122
|
-
ev: import("../Types").BaileysEventEmitter & {
|
123
|
-
process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): (() => void);
|
124
|
-
buffer(): void;
|
125
|
-
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): ((...args: A) => Promise<T>);
|
126
|
-
flush(force?: boolean): boolean;
|
127
|
-
isBuffering(): boolean;
|
128
|
-
};
|
129
|
-
authState: {
|
130
|
-
creds: import("../Types").AuthenticationCreds;
|
131
|
-
keys: import("../Types").SignalKeyStoreWithTransaction;
|
132
|
-
};
|
133
|
-
signalRepository: import("../Types").SignalRepository;
|
134
|
-
user: import("../Types").Contact | undefined;
|
135
|
-
generateMessageTag: () => string;
|
136
|
-
query: (node: BinaryNode, timeoutMs?: number) => Promise<BinaryNode>;
|
137
|
-
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T>;
|
138
|
-
waitForSocketOpen: () => Promise<void>;
|
139
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
140
|
-
sendNode: (frame: BinaryNode) => Promise<void>;
|
141
|
-
logout: (msg?: string) => Promise<void>;
|
142
|
-
end: (error: Error | undefined) => void;
|
143
|
-
onUnexpectedError: (err: Error | Boom, msg: string) => void;
|
144
|
-
uploadPreKeys: (count?: number) => Promise<void>;
|
145
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
146
|
-
requestPairingCode: (phoneNumber: string, pairCode: string) => Promise<string>;
|
147
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number) => Promise<void>;
|
148
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<BinaryNode>;
|
149
|
-
};
|