@alannxd/baileys 6.0.5 → 6.0.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/LICENSE +1 -1
- package/README.md +341 -286
- package/WAProto/WAProto.proto +1782 -359
- package/WAProto/index.d.ts +75133 -9893
- package/WAProto/index.js +205861 -60606
- package/lib/Socket/luxu.js +6 -117
- package/lib/Socket/messages-send.js +637 -493
- package/lib/Socket/newsletter.js +229 -156
- package/lib/Utils/browser-utils.js +26 -6
- package/lib/Utils/decode-wa-message.js +33 -0
- package/lib/Utils/generics.js +10 -0
- package/lib/Utils/index.js +1 -0
- package/lib/Utils/message-composer.js +273 -0
- package/lib/Utils/messages.js +361 -24
- package/lib/WABinary/generic-utils.js +8 -1
- package/lib/WABinary/jid-utils.js +2 -0
- package/lib/index.js +1 -2
- package/package.json +5 -4
- package/lib/Defaults/index.d.ts +0 -75
- package/lib/Signal/Group/ciphertext-message.d.ts +0 -10
- package/lib/Signal/Group/group-session-builder.d.ts +0 -15
- package/lib/Signal/Group/group_cipher.d.ts +0 -17
- package/lib/Signal/Group/index.d.ts +0 -12
- package/lib/Signal/Group/keyhelper.d.ts +0 -11
- package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
- package/lib/Signal/Group/sender-key-message.d.ts +0 -19
- package/lib/Signal/Group/sender-key-name.d.ts +0 -18
- package/lib/Signal/Group/sender-key-record.d.ts +0 -31
- package/lib/Signal/Group/sender-key-state.d.ts +0 -39
- package/lib/Signal/Group/sender-message-key.d.ts +0 -12
- package/lib/Signal/libsignal.d.ts +0 -5
- package/lib/Signal/lid-mapping.d.ts +0 -23
- package/lib/Socket/Client/index.d.ts +0 -3
- package/lib/Socket/Client/types.d.ts +0 -16
- package/lib/Socket/Client/websocket.d.ts +0 -13
- package/lib/Socket/business.d.ts +0 -217
- package/lib/Socket/chats.d.ts +0 -124
- package/lib/Socket/communities.d.ts +0 -273
- package/lib/Socket/groups.d.ts +0 -162
- package/lib/Socket/index.d.ts +0 -260
- package/lib/Socket/luxu.d.ts +0 -22
- package/lib/Socket/messages-recv.d.ts +0 -213
- package/lib/Socket/messages-send.d.ts +0 -199
- package/lib/Socket/mex.d.ts +0 -3
- package/lib/Socket/newsletter.d.ts +0 -170
- package/lib/Socket/socket.d.ts +0 -59
- package/lib/Store/index.d.ts +0 -10
- package/lib/Store/keyed-db.d.ts +0 -22
- package/lib/Store/make-cache-manager-store.d.ts +0 -19
- package/lib/Store/make-in-memory-store.d.ts +0 -39
- package/lib/Store/make-ordered-dictionary.d.ts +0 -14
- package/lib/Store/object-repository.d.ts +0 -11
- package/lib/Types/Auth.d.ts +0 -117
- package/lib/Types/Bussines.d.ts +0 -25
- package/lib/Types/Call.d.ts +0 -15
- package/lib/Types/Chat.d.ts +0 -124
- package/lib/Types/Contact.d.ts +0 -26
- package/lib/Types/Events.d.ts +0 -256
- package/lib/Types/GroupMetadata.d.ts +0 -71
- package/lib/Types/Label.d.ts +0 -47
- package/lib/Types/LabelAssociation.d.ts +0 -30
- package/lib/Types/Message.d.ts +0 -320
- package/lib/Types/Mex.d.ts +0 -141
- package/lib/Types/Product.d.ts +0 -79
- package/lib/Types/Signal.d.ts +0 -87
- package/lib/Types/Socket.d.ts +0 -136
- package/lib/Types/State.d.ts +0 -97
- package/lib/Types/USync.d.ts +0 -26
- package/lib/Types/index.d.ts +0 -65
- package/lib/Utils/auth-utils.d.ts +0 -24
- package/lib/Utils/browser-utils.d.ts +0 -4
- package/lib/Utils/business.d.ts +0 -23
- package/lib/Utils/chat-utils.d.ts +0 -100
- package/lib/Utils/companion-reg-client-utils.d.ts +0 -17
- package/lib/Utils/crypto.d.ts +0 -37
- package/lib/Utils/decode-wa-message.d.ts +0 -66
- package/lib/Utils/event-buffer.d.ts +0 -36
- package/lib/Utils/generics.d.ts +0 -91
- package/lib/Utils/history.d.ts +0 -24
- package/lib/Utils/identity-change-handler.d.ts +0 -44
- package/lib/Utils/index.d.ts +0 -22
- package/lib/Utils/link-preview.d.ts +0 -21
- package/lib/Utils/logger.d.ts +0 -12
- package/lib/Utils/lt-hash.d.ts +0 -8
- package/lib/Utils/make-mutex.d.ts +0 -9
- package/lib/Utils/message-retry-manager.d.ts +0 -115
- package/lib/Utils/messages-media.d.ts +0 -133
- package/lib/Utils/messages.d.ts +0 -91
- package/lib/Utils/noise-handler.d.ts +0 -20
- package/lib/Utils/offline-node-processor.d.ts +0 -17
- package/lib/Utils/pre-key-manager.d.ts +0 -28
- package/lib/Utils/process-message.d.ts +0 -60
- package/lib/Utils/reporting-utils.d.ts +0 -11
- package/lib/Utils/signal.d.ts +0 -47
- package/lib/Utils/stanza-ack.d.ts +0 -11
- package/lib/Utils/sync-action-utils.d.ts +0 -19
- package/lib/Utils/tc-token-utils.d.ts +0 -37
- package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
- package/lib/Utils/validate-connection.d.ts +0 -11
- package/lib/WABinary/constants.d.ts +0 -28
- package/lib/WABinary/decode.d.ts +0 -7
- package/lib/WABinary/encode.d.ts +0 -3
- package/lib/WABinary/generic-utils.d.ts +0 -18
- package/lib/WABinary/index.d.ts +0 -6
- package/lib/WABinary/jid-utils.d.ts +0 -48
- package/lib/WABinary/types.d.ts +0 -19
- package/lib/WAM/BinaryInfo.d.ts +0 -9
- package/lib/WAM/constants.d.ts +0 -40
- package/lib/WAM/encode.d.ts +0 -3
- package/lib/WAM/index.d.ts +0 -4
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -23
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -13
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -13
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +0 -10
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +0 -26
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +0 -10
- package/lib/WAUSync/Protocols/index.d.ts +0 -6
- package/lib/WAUSync/USyncQuery.d.ts +0 -30
- package/lib/WAUSync/USyncUser.d.ts +0 -17
- package/lib/WAUSync/index.d.ts +0 -4
- package/lib/index.d.ts +0 -13
package/lib/Socket/business.d.ts
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
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
|
-
export declare const makeBusinessSocket: (config: SocketConfig) => {
|
|
5
|
-
logger: import("../Utils/logger.js").ILogger;
|
|
6
|
-
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("../index.js").OrderDetails>;
|
|
7
|
-
getCatalog: ({ jid, limit, cursor }: GetCatalogOptions) => Promise<{
|
|
8
|
-
products: import("../index.js").Product[];
|
|
9
|
-
nextPageCursor: string | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
getCollections: (jid?: string, limit?: number) => Promise<{
|
|
12
|
-
collections: import("../index.js").CatalogCollection[];
|
|
13
|
-
}>;
|
|
14
|
-
productCreate: (create: ProductCreate) => Promise<import("../index.js").Product>;
|
|
15
|
-
productDelete: (productIds: string[]) => Promise<{
|
|
16
|
-
deleted: number;
|
|
17
|
-
}>;
|
|
18
|
-
productUpdate: (productId: string, update: ProductUpdate) => Promise<import("../index.js").Product>;
|
|
19
|
-
updateBussinesProfile: (args: UpdateBussinesProfileProps) => Promise<any>;
|
|
20
|
-
updateCoverPhoto: (photo: WAMediaUpload) => Promise<number>;
|
|
21
|
-
removeCoverPhoto: (id: string) => Promise<any>;
|
|
22
|
-
sendMessageAck: (node: BinaryNode, errorCode?: number) => Promise<void>;
|
|
23
|
-
sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
|
24
|
-
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
|
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
|
-
devicesMutex: {
|
|
30
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
31
|
-
};
|
|
32
|
-
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
33
|
-
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
34
|
-
relayMessage: (jid: string, message: import("../index.js").proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: 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
|
-
getMediaHost: () => string;
|
|
40
|
-
waUploadToServer: import("../index.js").WAMediaUploadFunction;
|
|
41
|
-
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
42
|
-
[_: string]: string;
|
|
43
|
-
}>;
|
|
44
|
-
sendPeerDataOperationMessage: (pdoMessage: import("../index.js").proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
45
|
-
createParticipantNodes: (recipientJids: string[], message: import("../index.js").proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: import("../index.js").proto.IMessage) => Promise<{
|
|
46
|
-
nodes: BinaryNode[];
|
|
47
|
-
shouldIncludeDeviceIdentity: boolean;
|
|
48
|
-
}>;
|
|
49
|
-
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("../index.js").JidWithDevice & {
|
|
50
|
-
jid: string;
|
|
51
|
-
})[]>;
|
|
52
|
-
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
53
|
-
updateMediaMessage: (message: import("../index.js").WAMessage) => Promise<import("../index.js").WAMessage>;
|
|
54
|
-
sendMessage: (jid: string, content: import("../index.js").AnyMessageContent, options?: import("../index.js").MiscMessageGenerationOptions) => Promise<import("../index.js").WAMessage | undefined>;
|
|
55
|
-
newsletterCreate: (name: string, description?: string) => Promise<import("../index.js").NewsletterMetadata>;
|
|
56
|
-
newsletterUpdate: (jid: string, updates: import("../index.js").NewsletterUpdate) => Promise<unknown>;
|
|
57
|
-
newsletterSubscribers: (jid: string) => Promise<{
|
|
58
|
-
subscribers: number;
|
|
59
|
-
}>;
|
|
60
|
-
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../index.js").NewsletterMetadata | null>;
|
|
61
|
-
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
62
|
-
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
63
|
-
newsletterMute: (jid: string) => Promise<unknown>;
|
|
64
|
-
newsletterUnmute: (jid: string) => Promise<unknown>;
|
|
65
|
-
newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
|
|
66
|
-
newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
|
|
67
|
-
newsletterUpdatePicture: (jid: string, content: WAMediaUpload) => Promise<unknown>;
|
|
68
|
-
newsletterRemovePicture: (jid: string) => Promise<unknown>;
|
|
69
|
-
newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
|
|
70
|
-
newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
|
|
71
|
-
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
|
72
|
-
duration: string;
|
|
73
|
-
} | null>;
|
|
74
|
-
newsletterAdminCount: (jid: string) => Promise<number>;
|
|
75
|
-
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
76
|
-
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
77
|
-
newsletterDelete: (jid: string) => Promise<void>;
|
|
78
|
-
groupMetadata: (jid: string) => Promise<import("../index.js").GroupMetadata>;
|
|
79
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("../index.js").GroupMetadata>;
|
|
80
|
-
groupLeave: (id: string) => Promise<void>;
|
|
81
|
-
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
82
|
-
groupRequestParticipantsList: (jid: string) => Promise<{
|
|
83
|
-
[key: string]: string;
|
|
84
|
-
}[]>;
|
|
85
|
-
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
|
86
|
-
status: string;
|
|
87
|
-
jid: string | undefined;
|
|
88
|
-
}[]>;
|
|
89
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../index.js").ParticipantAction) => Promise<{
|
|
90
|
-
status: string;
|
|
91
|
-
jid: string | undefined;
|
|
92
|
-
content: BinaryNode;
|
|
93
|
-
}[]>;
|
|
94
|
-
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
95
|
-
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
|
96
|
-
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
97
|
-
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
98
|
-
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
99
|
-
groupAcceptInviteV4: (key: string | import("../index.js").WAMessageKey, inviteMessage: import("../index.js").proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
100
|
-
groupGetInviteInfo: (code: string) => Promise<import("../index.js").GroupMetadata>;
|
|
101
|
-
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
102
|
-
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
103
|
-
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
104
|
-
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
105
|
-
groupFetchAllParticipating: () => Promise<{
|
|
106
|
-
[_: string]: import("../index.js").GroupMetadata;
|
|
107
|
-
}>;
|
|
108
|
-
serverProps: {
|
|
109
|
-
privacyTokenOn1to1: boolean;
|
|
110
|
-
profilePicPrivacyToken: boolean;
|
|
111
|
-
lidTrustedTokenIssueToLid: boolean;
|
|
112
|
-
};
|
|
113
|
-
createCallLink: (type: "audio" | "video", event?: {
|
|
114
|
-
startTime: number;
|
|
115
|
-
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
116
|
-
getBotListV2: () => Promise<import("../index.js").BotListInfo[]>;
|
|
117
|
-
messageMutex: {
|
|
118
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
119
|
-
};
|
|
120
|
-
receiptMutex: {
|
|
121
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
122
|
-
};
|
|
123
|
-
appStatePatchMutex: {
|
|
124
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
125
|
-
};
|
|
126
|
-
notificationMutex: {
|
|
127
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
128
|
-
};
|
|
129
|
-
upsertMessage: (msg: import("../index.js").WAMessage, type: import("../index.js").MessageUpsertType) => Promise<void>;
|
|
130
|
-
appPatch: (patchCreate: import("../index.js").WAPatchCreate) => Promise<void>;
|
|
131
|
-
sendPresenceUpdate: (type: import("../index.js").WAPresence, toJid?: string) => Promise<void>;
|
|
132
|
-
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
133
|
-
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
134
|
-
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
135
|
-
fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
136
|
-
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
137
|
-
updateProfilePicture: (jid: string, content: WAMediaUpload, dimensions?: {
|
|
138
|
-
width: number;
|
|
139
|
-
height: number;
|
|
140
|
-
}) => Promise<void>;
|
|
141
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
|
142
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
|
143
|
-
updateProfileName: (name: string) => Promise<void>;
|
|
144
|
-
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
145
|
-
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
146
|
-
updateCallPrivacy: (value: import("../index.js").WAPrivacyCallValue) => Promise<void>;
|
|
147
|
-
updateMessagesPrivacy: (value: import("../index.js").WAPrivacyMessagesValue) => Promise<void>;
|
|
148
|
-
updateLastSeenPrivacy: (value: import("../index.js").WAPrivacyValue) => Promise<void>;
|
|
149
|
-
updateOnlinePrivacy: (value: import("../index.js").WAPrivacyOnlineValue) => Promise<void>;
|
|
150
|
-
updateProfilePicturePrivacy: (value: import("../index.js").WAPrivacyValue) => Promise<void>;
|
|
151
|
-
updateStatusPrivacy: (value: import("../index.js").WAPrivacyValue) => Promise<void>;
|
|
152
|
-
updateReadReceiptsPrivacy: (value: import("../index.js").WAReadReceiptsValue) => Promise<void>;
|
|
153
|
-
updateGroupsAddPrivacy: (value: import("../index.js").WAPrivacyGroupAddValue) => Promise<void>;
|
|
154
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
155
|
-
getBusinessProfile: (jid: string) => Promise<import("../index.js").WABusinessProfile | void>;
|
|
156
|
-
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
157
|
-
chatModify: (mod: import("../index.js").ChatModification, jid: string) => Promise<void>;
|
|
158
|
-
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
159
|
-
addOrEditContact: (jid: string, contact: import("../index.js").proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
160
|
-
removeContact: (jid: string) => Promise<void>;
|
|
161
|
-
placeholderResendCache: import("../index.js").CacheStore;
|
|
162
|
-
addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
|
|
163
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
164
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
165
|
-
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
166
|
-
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
167
|
-
star: (jid: string, messages: {
|
|
168
|
-
id: string;
|
|
169
|
-
fromMe?: boolean;
|
|
170
|
-
}[], star: boolean) => Promise<void>;
|
|
171
|
-
addOrEditQuickReply: (quickReply: import("../Types/Bussines.js").QuickReplyAction) => Promise<void>;
|
|
172
|
-
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
173
|
-
type: "md";
|
|
174
|
-
ws: import("./Client/index.js").WebSocketClient;
|
|
175
|
-
ev: import("../index.js").BaileysEventEmitter & {
|
|
176
|
-
process(handler: (events: Partial<import("../index.js").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
177
|
-
buffer(): void;
|
|
178
|
-
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
179
|
-
flush(): boolean;
|
|
180
|
-
isBuffering(): boolean;
|
|
181
|
-
destroy(): void;
|
|
182
|
-
};
|
|
183
|
-
authState: {
|
|
184
|
-
creds: import("../index.js").AuthenticationCreds;
|
|
185
|
-
keys: import("../index.js").SignalKeyStoreWithTransaction;
|
|
186
|
-
};
|
|
187
|
-
signalRepository: import("../index.js").SignalRepositoryWithLIDStore;
|
|
188
|
-
user: import("../index.js").Contact | undefined;
|
|
189
|
-
generateMessageTag: () => string;
|
|
190
|
-
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
191
|
-
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
192
|
-
waitForSocketOpen: () => Promise<void>;
|
|
193
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
|
194
|
-
sendNode: (frame: BinaryNode) => Promise<void>;
|
|
195
|
-
logout: (msg?: string) => Promise<void>;
|
|
196
|
-
end: (error: Error | undefined) => Promise<void>;
|
|
197
|
-
registerSocketEndHandler: (handler: (error: Error | undefined) => void | Promise<void>) => void;
|
|
198
|
-
onUnexpectedError: (err: Error | import("@hapi/boom").Boom, msg: string) => void;
|
|
199
|
-
uploadPreKeys: (count?: number) => Promise<void>;
|
|
200
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
201
|
-
digestKeyBundle: () => Promise<void>;
|
|
202
|
-
rotateSignedPreKey: () => Promise<void>;
|
|
203
|
-
requestPairingCode: (phoneNumber: string, customPairingCode?: string) => Promise<string>;
|
|
204
|
-
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
205
|
-
sendUnifiedSession: () => Promise<void>;
|
|
206
|
-
wamBuffer: import("../index.js").BinaryInfo;
|
|
207
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
208
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
209
|
-
executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
210
|
-
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
211
|
-
jid: string;
|
|
212
|
-
exists: boolean;
|
|
213
|
-
}[] | undefined>;
|
|
214
|
-
fetchAccountReachoutTimelock: () => Promise<import("../index.js").ReachoutTimelockState>;
|
|
215
|
-
fetchNewChatMessageCap: () => Promise<import("../index.js").NewChatMessageCapInfo>;
|
|
216
|
-
};
|
|
217
|
-
//# sourceMappingURL=business.d.ts.map
|
package/lib/Socket/chats.d.ts
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { Boom } from '@hapi/boom';
|
|
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 } from '../Types/index.js';
|
|
4
|
-
import type { QuickReplyAction } from '../Types/Bussines.js';
|
|
5
|
-
import type { LabelActionBody } from '../Types/Label.js';
|
|
6
|
-
import { type BinaryNode } from '../WABinary/index.js';
|
|
7
|
-
import { USyncQuery } from '../WAUSync/index.js';
|
|
8
|
-
export declare const makeChatsSocket: (config: SocketConfig) => {
|
|
9
|
-
serverProps: {
|
|
10
|
-
/** AB prop 10518: gate tctoken on 1:1 messages. Default true (safe: avoids 463). */
|
|
11
|
-
privacyTokenOn1to1: boolean;
|
|
12
|
-
/** AB prop 9666: gate tctoken on profile picture IQs. WA Web default: true. */
|
|
13
|
-
profilePicPrivacyToken: boolean;
|
|
14
|
-
/** AB prop 14303: issue tctokens to LID instead of PN. WA Web default: false. */
|
|
15
|
-
lidTrustedTokenIssueToLid: boolean;
|
|
16
|
-
};
|
|
17
|
-
createCallLink: (type: "audio" | "video", event?: {
|
|
18
|
-
startTime: number;
|
|
19
|
-
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
20
|
-
getBotListV2: () => Promise<BotListInfo[]>;
|
|
21
|
-
messageMutex: {
|
|
22
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
23
|
-
};
|
|
24
|
-
receiptMutex: {
|
|
25
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
26
|
-
};
|
|
27
|
-
appStatePatchMutex: {
|
|
28
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
29
|
-
};
|
|
30
|
-
notificationMutex: {
|
|
31
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
32
|
-
};
|
|
33
|
-
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
34
|
-
[_: string]: string;
|
|
35
|
-
}>;
|
|
36
|
-
upsertMessage: (msg: WAMessage, type: MessageUpsertType) => Promise<void>;
|
|
37
|
-
appPatch: (patchCreate: WAPatchCreate) => Promise<void>;
|
|
38
|
-
sendPresenceUpdate: (type: WAPresence, toJid?: string) => Promise<void>;
|
|
39
|
-
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
40
|
-
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
41
|
-
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
42
|
-
fetchStatus: (...jids: string[]) => Promise<import("../WAUSync/index.js").USyncQueryResultList[] | undefined>;
|
|
43
|
-
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../WAUSync/index.js").USyncQueryResultList[] | undefined>;
|
|
44
|
-
updateProfilePicture: (jid: string, content: WAMediaUpload, dimensions?: {
|
|
45
|
-
width: number;
|
|
46
|
-
height: number;
|
|
47
|
-
}) => Promise<void>;
|
|
48
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
|
49
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
|
50
|
-
updateProfileName: (name: string) => Promise<void>;
|
|
51
|
-
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
52
|
-
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
53
|
-
updateCallPrivacy: (value: WAPrivacyCallValue) => Promise<void>;
|
|
54
|
-
updateMessagesPrivacy: (value: WAPrivacyMessagesValue) => Promise<void>;
|
|
55
|
-
updateLastSeenPrivacy: (value: WAPrivacyValue) => Promise<void>;
|
|
56
|
-
updateOnlinePrivacy: (value: WAPrivacyOnlineValue) => Promise<void>;
|
|
57
|
-
updateProfilePicturePrivacy: (value: WAPrivacyValue) => Promise<void>;
|
|
58
|
-
updateStatusPrivacy: (value: WAPrivacyValue) => Promise<void>;
|
|
59
|
-
updateReadReceiptsPrivacy: (value: WAReadReceiptsValue) => Promise<void>;
|
|
60
|
-
updateGroupsAddPrivacy: (value: WAPrivacyGroupAddValue) => Promise<void>;
|
|
61
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
62
|
-
getBusinessProfile: (jid: string) => Promise<WABusinessProfile | void>;
|
|
63
|
-
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
64
|
-
chatModify: (mod: ChatModification, jid: string) => Promise<void>;
|
|
65
|
-
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
66
|
-
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
67
|
-
removeContact: (jid: string) => Promise<void>;
|
|
68
|
-
placeholderResendCache: CacheStore;
|
|
69
|
-
addLabel: (jid: string, labels: LabelActionBody) => Promise<void>;
|
|
70
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
71
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
72
|
-
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
73
|
-
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
74
|
-
star: (jid: string, messages: {
|
|
75
|
-
id: string;
|
|
76
|
-
fromMe?: boolean;
|
|
77
|
-
}[], star: boolean) => Promise<void>;
|
|
78
|
-
addOrEditQuickReply: (quickReply: QuickReplyAction) => Promise<void>;
|
|
79
|
-
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
80
|
-
type: "md";
|
|
81
|
-
ws: import("./Client/websocket.js").WebSocketClient;
|
|
82
|
-
ev: import("../Types/index.js").BaileysEventEmitter & {
|
|
83
|
-
process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
84
|
-
buffer(): void;
|
|
85
|
-
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
86
|
-
flush(): boolean;
|
|
87
|
-
isBuffering(): boolean;
|
|
88
|
-
destroy(): void;
|
|
89
|
-
};
|
|
90
|
-
authState: {
|
|
91
|
-
creds: import("../Types/index.js").AuthenticationCreds;
|
|
92
|
-
keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
|
|
93
|
-
};
|
|
94
|
-
signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
|
|
95
|
-
user: import("../Types/index.js").Contact | undefined;
|
|
96
|
-
generateMessageTag: () => string;
|
|
97
|
-
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
98
|
-
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
99
|
-
waitForSocketOpen: () => Promise<void>;
|
|
100
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
|
101
|
-
sendNode: (frame: BinaryNode) => Promise<void>;
|
|
102
|
-
logout: (msg?: string) => Promise<void>;
|
|
103
|
-
end: (error: Error | undefined) => Promise<void>;
|
|
104
|
-
registerSocketEndHandler: (handler: (error: Error | undefined) => void | Promise<void>) => void;
|
|
105
|
-
onUnexpectedError: (err: Error | Boom, msg: string) => void;
|
|
106
|
-
uploadPreKeys: (count?: number) => Promise<void>;
|
|
107
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
108
|
-
digestKeyBundle: () => Promise<void>;
|
|
109
|
-
rotateSignedPreKey: () => Promise<void>;
|
|
110
|
-
requestPairingCode: (phoneNumber: string, customPairingCode?: string) => Promise<string>;
|
|
111
|
-
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
112
|
-
sendUnifiedSession: () => Promise<void>;
|
|
113
|
-
wamBuffer: import("../index.js").BinaryInfo;
|
|
114
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
115
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
116
|
-
executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../WAUSync/index.js").USyncQueryResult | undefined>;
|
|
117
|
-
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
118
|
-
jid: string;
|
|
119
|
-
exists: boolean;
|
|
120
|
-
}[] | undefined>;
|
|
121
|
-
fetchAccountReachoutTimelock: () => Promise<import("../Types/index.js").ReachoutTimelockState>;
|
|
122
|
-
fetchNewChatMessageCap: () => Promise<import("../Types/index.js").NewChatMessageCapInfo>;
|
|
123
|
-
};
|
|
124
|
-
//# sourceMappingURL=chats.d.ts.map
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import { proto } from '../../WAProto/index.js';
|
|
2
|
-
import { type GroupMetadata, type ParticipantAction, type SocketConfig, type WAMessageKey } from '../Types/index.js';
|
|
3
|
-
import { type BinaryNode } from '../WABinary/index.js';
|
|
4
|
-
export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
5
|
-
communityMetadata: (jid: string) => Promise<GroupMetadata>;
|
|
6
|
-
communityCreate: (subject: string, body: string) => Promise<GroupMetadata | null>;
|
|
7
|
-
communityCreateGroup: (subject: string, participants: string[], parentCommunityJid: string) => Promise<GroupMetadata | null>;
|
|
8
|
-
communityLeave: (id: string) => Promise<void>;
|
|
9
|
-
communityUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
10
|
-
communityLinkGroup: (groupJid: string, parentCommunityJid: string) => Promise<void>;
|
|
11
|
-
communityUnlinkGroup: (groupJid: string, parentCommunityJid: string) => Promise<void>;
|
|
12
|
-
communityFetchLinkedGroups: (jid: string) => Promise<{
|
|
13
|
-
communityJid: string;
|
|
14
|
-
isCommunity: boolean;
|
|
15
|
-
linkedGroups: {
|
|
16
|
-
id: string | undefined;
|
|
17
|
-
subject: string;
|
|
18
|
-
creation: number | undefined;
|
|
19
|
-
owner: string | undefined;
|
|
20
|
-
size: number | undefined;
|
|
21
|
-
}[];
|
|
22
|
-
}>;
|
|
23
|
-
communityRequestParticipantsList: (jid: string) => Promise<{
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
}[]>;
|
|
26
|
-
communityRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
|
27
|
-
status: string;
|
|
28
|
-
jid: string | undefined;
|
|
29
|
-
}[]>;
|
|
30
|
-
communityParticipantsUpdate: (jid: string, participants: string[], action: ParticipantAction) => Promise<{
|
|
31
|
-
status: string;
|
|
32
|
-
jid: string | undefined;
|
|
33
|
-
content: BinaryNode;
|
|
34
|
-
}[]>;
|
|
35
|
-
communityUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
36
|
-
communityInviteCode: (jid: string) => Promise<string | undefined>;
|
|
37
|
-
communityRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
38
|
-
communityAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
39
|
-
/**
|
|
40
|
-
* revoke a v4 invite for someone
|
|
41
|
-
* @param communityJid community jid
|
|
42
|
-
* @param invitedJid jid of person you invited
|
|
43
|
-
* @returns true if successful
|
|
44
|
-
*/
|
|
45
|
-
communityRevokeInviteV4: (communityJid: string, invitedJid: string) => Promise<boolean>;
|
|
46
|
-
/**
|
|
47
|
-
* accept a CommunityInviteMessage
|
|
48
|
-
* @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite
|
|
49
|
-
* @param inviteMessage the message to accept
|
|
50
|
-
*/
|
|
51
|
-
communityAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
52
|
-
communityGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
53
|
-
communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
54
|
-
communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
55
|
-
communityMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
56
|
-
communityJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
57
|
-
communityFetchAllParticipating: () => Promise<{
|
|
58
|
-
[_: string]: GroupMetadata;
|
|
59
|
-
}>;
|
|
60
|
-
logger: import("../Utils/logger.js").ILogger;
|
|
61
|
-
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("../Types/index.js").OrderDetails>;
|
|
62
|
-
getCatalog: ({ jid, limit, cursor }: import("../Types/index.js").GetCatalogOptions) => Promise<{
|
|
63
|
-
products: import("../Types/index.js").Product[];
|
|
64
|
-
nextPageCursor: string | undefined;
|
|
65
|
-
}>;
|
|
66
|
-
getCollections: (jid?: string, limit?: number) => Promise<{
|
|
67
|
-
collections: import("../Types/index.js").CatalogCollection[];
|
|
68
|
-
}>;
|
|
69
|
-
productCreate: (create: import("../Types/index.js").ProductCreate) => Promise<import("../Types/index.js").Product>;
|
|
70
|
-
productDelete: (productIds: string[]) => Promise<{
|
|
71
|
-
deleted: number;
|
|
72
|
-
}>;
|
|
73
|
-
productUpdate: (productId: string, update: import("../Types/index.js").ProductUpdate) => Promise<import("../Types/index.js").Product>;
|
|
74
|
-
updateBussinesProfile: (args: import("../Types/Bussines.js").UpdateBussinesProfileProps) => Promise<any>;
|
|
75
|
-
updateCoverPhoto: (photo: import("../Types/index.js").WAMediaUpload) => Promise<number>;
|
|
76
|
-
removeCoverPhoto: (id: string) => Promise<any>;
|
|
77
|
-
sendMessageAck: (node: BinaryNode, errorCode?: number) => Promise<void>;
|
|
78
|
-
sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
|
79
|
-
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
|
80
|
-
fetchMessageHistory: (count: number, oldestMsgKey: WAMessageKey, oldestMsgTimestamp: number | import("long").default) => Promise<string>;
|
|
81
|
-
requestPlaceholderResend: (messageKey: WAMessageKey, msgData?: Partial<import("../Types/index.js").WAMessage>) => Promise<string | undefined>;
|
|
82
|
-
messageRetryManager: import("../Utils/index.js").MessageRetryManager | null;
|
|
83
|
-
userDevicesCache: import("../Types/index.js").PossiblyExtendedCacheStore | import("@cacheable/node-cache").NodeCache<import("../WABinary/index.js").JidWithDevice[]>;
|
|
84
|
-
devicesMutex: {
|
|
85
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
86
|
-
};
|
|
87
|
-
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
88
|
-
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
89
|
-
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types/index.js").MessageRelayOptions) => Promise<string>;
|
|
90
|
-
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types/index.js").MessageReceiptType) => Promise<void>;
|
|
91
|
-
sendReceipts: (keys: WAMessageKey[], type: import("../Types/index.js").MessageReceiptType) => Promise<void>;
|
|
92
|
-
readMessages: (keys: WAMessageKey[]) => Promise<void>;
|
|
93
|
-
refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types/index.js").MediaConnInfo>;
|
|
94
|
-
getMediaHost: () => string;
|
|
95
|
-
waUploadToServer: import("../Types/index.js").WAMediaUploadFunction;
|
|
96
|
-
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
97
|
-
[_: string]: string;
|
|
98
|
-
}>;
|
|
99
|
-
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
100
|
-
createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
|
|
101
|
-
nodes: BinaryNode[];
|
|
102
|
-
shouldIncludeDeviceIdentity: boolean;
|
|
103
|
-
}>;
|
|
104
|
-
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("../WABinary/index.js").JidWithDevice & {
|
|
105
|
-
jid: string;
|
|
106
|
-
})[]>;
|
|
107
|
-
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
108
|
-
updateMediaMessage: (message: import("../Types/index.js").WAMessage) => Promise<import("../Types/index.js").WAMessage>;
|
|
109
|
-
sendMessage: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise<import("../Types/index.js").WAMessage | undefined>;
|
|
110
|
-
newsletterCreate: (name: string, description?: string) => Promise<import("../Types/index.js").NewsletterMetadata>;
|
|
111
|
-
newsletterUpdate: (jid: string, updates: import("../Types/index.js").NewsletterUpdate) => Promise<unknown>;
|
|
112
|
-
newsletterSubscribers: (jid: string) => Promise<{
|
|
113
|
-
subscribers: number;
|
|
114
|
-
}>;
|
|
115
|
-
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types/index.js").NewsletterMetadata | null>;
|
|
116
|
-
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
117
|
-
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
118
|
-
newsletterMute: (jid: string) => Promise<unknown>;
|
|
119
|
-
newsletterUnmute: (jid: string) => Promise<unknown>;
|
|
120
|
-
newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
|
|
121
|
-
newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
|
|
122
|
-
newsletterUpdatePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload) => Promise<unknown>;
|
|
123
|
-
newsletterRemovePicture: (jid: string) => Promise<unknown>;
|
|
124
|
-
newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
|
|
125
|
-
newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
|
|
126
|
-
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
|
127
|
-
duration: string;
|
|
128
|
-
} | null>;
|
|
129
|
-
newsletterAdminCount: (jid: string) => Promise<number>;
|
|
130
|
-
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
131
|
-
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
132
|
-
newsletterDelete: (jid: string) => Promise<void>;
|
|
133
|
-
groupMetadata: (jid: string) => Promise<GroupMetadata>;
|
|
134
|
-
groupCreate: (subject: string, participants: string[]) => Promise<GroupMetadata>;
|
|
135
|
-
groupLeave: (id: string) => Promise<void>;
|
|
136
|
-
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
137
|
-
groupRequestParticipantsList: (jid: string) => Promise<{
|
|
138
|
-
[key: string]: string;
|
|
139
|
-
}[]>;
|
|
140
|
-
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
|
141
|
-
status: string;
|
|
142
|
-
jid: string | undefined;
|
|
143
|
-
}[]>;
|
|
144
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: ParticipantAction) => Promise<{
|
|
145
|
-
status: string;
|
|
146
|
-
jid: string | undefined;
|
|
147
|
-
content: BinaryNode;
|
|
148
|
-
}[]>;
|
|
149
|
-
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
150
|
-
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
|
151
|
-
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
152
|
-
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
153
|
-
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
154
|
-
groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
155
|
-
groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
156
|
-
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
157
|
-
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
158
|
-
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
159
|
-
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
160
|
-
groupFetchAllParticipating: () => Promise<{
|
|
161
|
-
[_: string]: GroupMetadata;
|
|
162
|
-
}>;
|
|
163
|
-
serverProps: {
|
|
164
|
-
privacyTokenOn1to1: boolean;
|
|
165
|
-
profilePicPrivacyToken: boolean;
|
|
166
|
-
lidTrustedTokenIssueToLid: boolean;
|
|
167
|
-
};
|
|
168
|
-
createCallLink: (type: "audio" | "video", event?: {
|
|
169
|
-
startTime: number;
|
|
170
|
-
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
171
|
-
getBotListV2: () => Promise<import("../Types/index.js").BotListInfo[]>;
|
|
172
|
-
messageMutex: {
|
|
173
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
174
|
-
};
|
|
175
|
-
receiptMutex: {
|
|
176
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
177
|
-
};
|
|
178
|
-
appStatePatchMutex: {
|
|
179
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
180
|
-
};
|
|
181
|
-
notificationMutex: {
|
|
182
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
183
|
-
};
|
|
184
|
-
upsertMessage: (msg: import("../Types/index.js").WAMessage, type: import("../Types/index.js").MessageUpsertType) => Promise<void>;
|
|
185
|
-
appPatch: (patchCreate: import("../Types/index.js").WAPatchCreate) => Promise<void>;
|
|
186
|
-
sendPresenceUpdate: (type: import("../Types/index.js").WAPresence, toJid?: string) => Promise<void>;
|
|
187
|
-
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
188
|
-
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
189
|
-
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
190
|
-
fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
191
|
-
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
192
|
-
updateProfilePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload, dimensions?: {
|
|
193
|
-
width: number;
|
|
194
|
-
height: number;
|
|
195
|
-
}) => Promise<void>;
|
|
196
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
|
197
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
|
198
|
-
updateProfileName: (name: string) => Promise<void>;
|
|
199
|
-
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
200
|
-
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
201
|
-
updateCallPrivacy: (value: import("../Types/index.js").WAPrivacyCallValue) => Promise<void>;
|
|
202
|
-
updateMessagesPrivacy: (value: import("../Types/index.js").WAPrivacyMessagesValue) => Promise<void>;
|
|
203
|
-
updateLastSeenPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
204
|
-
updateOnlinePrivacy: (value: import("../Types/index.js").WAPrivacyOnlineValue) => Promise<void>;
|
|
205
|
-
updateProfilePicturePrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
206
|
-
updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
207
|
-
updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise<void>;
|
|
208
|
-
updateGroupsAddPrivacy: (value: import("../Types/index.js").WAPrivacyGroupAddValue) => Promise<void>;
|
|
209
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
210
|
-
getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
|
|
211
|
-
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
212
|
-
chatModify: (mod: import("../Types/index.js").ChatModification, jid: string) => Promise<void>;
|
|
213
|
-
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
214
|
-
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
215
|
-
removeContact: (jid: string) => Promise<void>;
|
|
216
|
-
placeholderResendCache: import("../Types/index.js").CacheStore;
|
|
217
|
-
addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
|
|
218
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
219
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
220
|
-
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
221
|
-
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
222
|
-
star: (jid: string, messages: {
|
|
223
|
-
id: string;
|
|
224
|
-
fromMe?: boolean;
|
|
225
|
-
}[], star: boolean) => Promise<void>;
|
|
226
|
-
addOrEditQuickReply: (quickReply: import("../Types/Bussines.js").QuickReplyAction) => Promise<void>;
|
|
227
|
-
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
228
|
-
type: "md";
|
|
229
|
-
ws: import("./Client/websocket.js").WebSocketClient;
|
|
230
|
-
ev: import("../Types/index.js").BaileysEventEmitter & {
|
|
231
|
-
process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
232
|
-
buffer(): void;
|
|
233
|
-
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
234
|
-
flush(): boolean;
|
|
235
|
-
isBuffering(): boolean;
|
|
236
|
-
destroy(): void;
|
|
237
|
-
};
|
|
238
|
-
authState: {
|
|
239
|
-
creds: import("../Types/index.js").AuthenticationCreds;
|
|
240
|
-
keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
|
|
241
|
-
};
|
|
242
|
-
signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
|
|
243
|
-
user: import("../Types/index.js").Contact | undefined;
|
|
244
|
-
generateMessageTag: () => string;
|
|
245
|
-
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
246
|
-
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
247
|
-
waitForSocketOpen: () => Promise<void>;
|
|
248
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
|
249
|
-
sendNode: (frame: BinaryNode) => Promise<void>;
|
|
250
|
-
logout: (msg?: string) => Promise<void>;
|
|
251
|
-
end: (error: Error | undefined) => Promise<void>;
|
|
252
|
-
registerSocketEndHandler: (handler: (error: Error | undefined) => void | Promise<void>) => void;
|
|
253
|
-
onUnexpectedError: (err: Error | import("@hapi/boom").Boom, msg: string) => void;
|
|
254
|
-
uploadPreKeys: (count?: number) => Promise<void>;
|
|
255
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
256
|
-
digestKeyBundle: () => Promise<void>;
|
|
257
|
-
rotateSignedPreKey: () => Promise<void>;
|
|
258
|
-
requestPairingCode: (phoneNumber: string, customPairingCode?: string) => Promise<string>;
|
|
259
|
-
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
260
|
-
sendUnifiedSession: () => Promise<void>;
|
|
261
|
-
wamBuffer: import("../index.js").BinaryInfo;
|
|
262
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
263
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
264
|
-
executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
265
|
-
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
266
|
-
jid: string;
|
|
267
|
-
exists: boolean;
|
|
268
|
-
}[] | undefined>;
|
|
269
|
-
fetchAccountReachoutTimelock: () => Promise<import("../Types/index.js").ReachoutTimelockState>;
|
|
270
|
-
fetchNewChatMessageCap: () => Promise<import("../Types/index.js").NewChatMessageCapInfo>;
|
|
271
|
-
};
|
|
272
|
-
export declare const extractCommunityMetadata: (result: BinaryNode) => GroupMetadata;
|
|
273
|
-
//# sourceMappingURL=communities.d.ts.map
|