@xbibzlibrary/whatsbibz 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +93 -0
- package/LICENSE +22 -0
- package/LICENSE.upstream +21 -0
- package/README.md +280 -0
- package/VERIFIKASI-IDENTITAS-2026-09-03.md +138 -0
- package/WAProto/GenerateStatics.sh +3 -0
- package/WAProto/WAProto.proto +6035 -0
- package/WAProto/fix-imports.js +81 -0
- package/WAProto/index.d.ts +15314 -0
- package/WAProto/index.js +132326 -0
- package/assets/logo/README.md +21 -0
- package/assets/logo/png/banner-1200x360.png +0 -0
- package/assets/logo/png/icon-1024.png +0 -0
- package/assets/logo/png/icon-128.png +0 -0
- package/assets/logo/png/icon-16.png +0 -0
- package/assets/logo/png/icon-24.png +0 -0
- package/assets/logo/png/icon-256.png +0 -0
- package/assets/logo/png/icon-32.png +0 -0
- package/assets/logo/png/icon-48.png +0 -0
- package/assets/logo/png/icon-512.png +0 -0
- package/assets/logo/png/icon-64.png +0 -0
- package/assets/logo/png/mark-512.png +0 -0
- package/assets/logo/preview.png +0 -0
- package/assets/logo/whatsbibz.ico +0 -0
- package/lib/BibzWhats/client.d.ts +95 -0
- package/lib/BibzWhats/client.js +501 -0
- package/lib/BibzWhats/device-identity.d.ts +60 -0
- package/lib/BibzWhats/device-identity.js +234 -0
- package/lib/BibzWhats/extract.d.ts +29 -0
- package/lib/BibzWhats/extract.js +115 -0
- package/lib/BibzWhats/index.d.ts +7 -0
- package/lib/BibzWhats/index.js +8 -0
- package/lib/BibzWhats/jid.d.ts +22 -0
- package/lib/BibzWhats/jid.js +98 -0
- package/lib/BibzWhats/pairing.d.ts +35 -0
- package/lib/BibzWhats/pairing.js +186 -0
- package/lib/BibzWhats/send.d.ts +9 -0
- package/lib/BibzWhats/send.js +107 -0
- package/lib/BibzWhats/version.d.ts +6 -0
- package/lib/BibzWhats/version.js +7 -0
- package/lib/Defaults/index.d.ts +73 -0
- package/lib/Defaults/index.js +141 -0
- package/lib/Modded/message_builder.d.ts +15 -0
- package/lib/Modded/message_builder.js +2330 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
- package/lib/Signal/Group/ciphertext-message.js +11 -0
- package/lib/Signal/Group/group-session-builder.d.ts +14 -0
- package/lib/Signal/Group/group-session-builder.js +29 -0
- package/lib/Signal/Group/group_cipher.d.ts +16 -0
- package/lib/Signal/Group/group_cipher.js +81 -0
- package/lib/Signal/Group/index.d.ts +11 -0
- package/lib/Signal/Group/index.js +11 -0
- package/lib/Signal/Group/keyhelper.d.ts +10 -0
- package/lib/Signal/Group/keyhelper.js +17 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
- package/lib/Signal/Group/sender-chain-key.js +25 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +62 -0
- package/lib/Signal/Group/sender-key-message.d.ts +18 -0
- package/lib/Signal/Group/sender-key-message.js +65 -0
- package/lib/Signal/Group/sender-key-name.d.ts +17 -0
- package/lib/Signal/Group/sender-key-name.js +47 -0
- package/lib/Signal/Group/sender-key-record.d.ts +30 -0
- package/lib/Signal/Group/sender-key-record.js +40 -0
- package/lib/Signal/Group/sender-key-state.d.ts +38 -0
- package/lib/Signal/Group/sender-key-state.js +83 -0
- package/lib/Signal/Group/sender-message-key.d.ts +11 -0
- package/lib/Signal/Group/sender-message-key.js +25 -0
- package/lib/Signal/libsignal.d.ts +4 -0
- package/lib/Signal/libsignal.js +406 -0
- package/lib/Signal/lid-mapping.d.ts +18 -0
- package/lib/Signal/lid-mapping.js +276 -0
- package/lib/Socket/Client/index.d.ts +2 -0
- package/lib/Socket/Client/index.js +2 -0
- package/lib/Socket/Client/types.d.ts +15 -0
- package/lib/Socket/Client/types.js +10 -0
- package/lib/Socket/Client/websocket.d.ts +12 -0
- package/lib/Socket/Client/websocket.js +53 -0
- package/lib/Socket/business.d.ts +537 -0
- package/lib/Socket/business.js +421 -0
- package/lib/Socket/chats.d.ts +110 -0
- package/lib/Socket/chats.js +1006 -0
- package/lib/Socket/communities.d.ts +646 -0
- package/lib/Socket/communities.js +430 -0
- package/lib/Socket/engine.d.ts +129 -0
- package/lib/Socket/engine.js +767 -0
- package/lib/Socket/groups.d.ts +149 -0
- package/lib/Socket/groups.js +326 -0
- package/lib/Socket/index.d.ts +637 -0
- package/lib/Socket/index.js +14 -0
- package/lib/Socket/messages-recv.d.ts +239 -0
- package/lib/Socket/messages-recv.js +1307 -0
- package/lib/Socket/messages-send.d.ts +580 -0
- package/lib/Socket/messages-send.js +1639 -0
- package/lib/Socket/mex.d.ts +2 -0
- package/lib/Socket/mex.js +47 -0
- package/lib/Socket/newsletter.d.ts +176 -0
- package/lib/Socket/newsletter.js +456 -0
- package/lib/Socket/socket.d.ts +56 -0
- package/lib/Socket/socket.js +998 -0
- package/lib/Types/Auth.d.ts +115 -0
- package/lib/Types/Auth.js +1 -0
- package/lib/Types/Bussines.d.ts +36 -0
- package/lib/Types/Bussines.js +1 -0
- package/lib/Types/Call.d.ts +14 -0
- package/lib/Types/Call.js +1 -0
- package/lib/Types/Chat.d.ts +124 -0
- package/lib/Types/Chat.js +7 -0
- package/lib/Types/Contact.d.ts +23 -0
- package/lib/Types/Contact.js +1 -0
- package/lib/Types/Events.d.ts +241 -0
- package/lib/Types/Events.js +1 -0
- package/lib/Types/GroupMetadata.d.ts +67 -0
- package/lib/Types/GroupMetadata.js +1 -0
- package/lib/Types/Label.d.ts +46 -0
- package/lib/Types/Label.js +24 -0
- package/lib/Types/LabelAssociation.d.ts +29 -0
- package/lib/Types/LabelAssociation.js +6 -0
- package/lib/Types/Message.d.ts +427 -0
- package/lib/Types/Message.js +10 -0
- package/lib/Types/Newsletter.d.ts +134 -0
- package/lib/Types/Newsletter.js +30 -0
- package/lib/Types/Product.d.ts +78 -0
- package/lib/Types/Product.js +1 -0
- package/lib/Types/Signal.d.ts +77 -0
- package/lib/Types/Signal.js +1 -0
- package/lib/Types/Socket.d.ts +173 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.d.ts +38 -0
- package/lib/Types/State.js +12 -0
- package/lib/Types/USync.d.ts +25 -0
- package/lib/Types/USync.js +1 -0
- package/lib/Types/index.d.ts +75 -0
- package/lib/Types/index.js +32 -0
- package/lib/Utils/auth-utils.d.ts +18 -0
- package/lib/Utils/auth-utils.js +289 -0
- package/lib/Utils/browser-utils.d.ts +3 -0
- package/lib/Utils/browser-utils.js +47 -0
- package/lib/Utils/business.d.ts +22 -0
- package/lib/Utils/business.js +230 -0
- package/lib/Utils/chat-utils.d.ts +69 -0
- package/lib/Utils/chat-utils.js +811 -0
- package/lib/Utils/companion-reg-client-utils.d.ts +20 -0
- package/lib/Utils/companion-reg-client-utils.js +66 -0
- package/lib/Utils/crypto.d.ts +41 -0
- package/lib/Utils/crypto.js +117 -0
- package/lib/Utils/decode-wa-message.d.ts +47 -0
- package/lib/Utils/decode-wa-message.js +282 -0
- package/lib/Utils/event-buffer.d.ts +35 -0
- package/lib/Utils/event-buffer.js +590 -0
- package/lib/Utils/generics.d.ts +90 -0
- package/lib/Utils/generics.js +384 -0
- package/lib/Utils/history.d.ts +21 -0
- package/lib/Utils/history.js +130 -0
- package/lib/Utils/identity-change-handler.d.ts +36 -0
- package/lib/Utils/identity-change-handler.js +48 -0
- package/lib/Utils/index.d.ts +25 -0
- package/lib/Utils/index.js +24 -0
- package/lib/Utils/link-preview.d.ts +20 -0
- package/lib/Utils/link-preview.js +84 -0
- package/lib/Utils/logger.d.ts +12 -0
- package/lib/Utils/logger.js +2 -0
- package/lib/Utils/lt-hash.d.ts +10 -0
- package/lib/Utils/lt-hash.js +7 -0
- package/lib/Utils/make-mutex.d.ts +8 -0
- package/lib/Utils/make-mutex.js +32 -0
- package/lib/Utils/message-retry-manager.d.ts +109 -0
- package/lib/Utils/message-retry-manager.js +224 -0
- package/lib/Utils/messages-media.d.ts +129 -0
- package/lib/Utils/messages-media.js +784 -0
- package/lib/Utils/messages.d.ts +90 -0
- package/lib/Utils/messages.js +1240 -0
- package/lib/Utils/noise-handler.d.ts +19 -0
- package/lib/Utils/noise-handler.js +200 -0
- package/lib/Utils/offline-node-processor.d.ts +16 -0
- package/lib/Utils/offline-node-processor.js +39 -0
- package/lib/Utils/platform-identity.d.ts +14 -0
- package/lib/Utils/platform-identity.js +148 -0
- package/lib/Utils/pre-key-manager.d.ts +27 -0
- package/lib/Utils/pre-key-manager.js +105 -0
- package/lib/Utils/process-message.d.ts +59 -0
- package/lib/Utils/process-message.js +544 -0
- package/lib/Utils/reporting-utils.d.ts +10 -0
- package/lib/Utils/reporting-utils.js +257 -0
- package/lib/Utils/rich-messages.d.ts +276 -0
- package/lib/Utils/rich-messages.js +1143 -0
- package/lib/Utils/signal.d.ts +33 -0
- package/lib/Utils/signal.js +158 -0
- package/lib/Utils/stanza-ack.d.ts +10 -0
- package/lib/Utils/stanza-ack.js +37 -0
- package/lib/Utils/sticker-pack.d.ts +10 -0
- package/lib/Utils/sticker-pack.js +111 -0
- package/lib/Utils/sync-action-utils.d.ts +18 -0
- package/lib/Utils/sync-action-utils.js +47 -0
- package/lib/Utils/tc-token-utils.d.ts +8 -0
- package/lib/Utils/tc-token-utils.js +45 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
- package/lib/Utils/use-multi-file-auth-state.js +120 -0
- package/lib/Utils/validate-connection.d.ts +10 -0
- package/lib/Utils/validate-connection.js +222 -0
- package/lib/VoIP/audio-feeder.d.ts +15 -0
- package/lib/VoIP/audio-feeder.js +136 -0
- package/lib/VoIP/index.d.ts +12 -0
- package/lib/VoIP/index.js +282 -0
- package/lib/VoIP/relay-transport.d.ts +43 -0
- package/lib/VoIP/relay-transport.js +559 -0
- package/lib/VoIP/signaling.js +603 -0
- package/lib/VoIP/types.d.ts +69 -0
- package/lib/VoIP/types.js +17 -0
- package/lib/VoIP/wasm-engine.d.ts +103 -0
- package/lib/VoIP/wasm-engine.js +1214 -0
- package/lib/VoIP/worker-bootstrap.js +1042 -0
- package/lib/WABinary/constants.d.ts +27 -0
- package/lib/WABinary/constants.js +1300 -0
- package/lib/WABinary/decode.d.ts +6 -0
- package/lib/WABinary/decode.js +261 -0
- package/lib/WABinary/encode.d.ts +2 -0
- package/lib/WABinary/encode.js +219 -0
- package/lib/WABinary/generic-utils.d.ts +16 -0
- package/lib/WABinary/generic-utils.js +190 -0
- package/lib/WABinary/index.d.ts +5 -0
- package/lib/WABinary/index.js +5 -0
- package/lib/WABinary/jid-utils.d.ts +47 -0
- package/lib/WABinary/jid-utils.js +95 -0
- package/lib/WABinary/types.d.ts +18 -0
- package/lib/WABinary/types.js +1 -0
- package/lib/WAM/BinaryInfo.d.ts +8 -0
- package/lib/WAM/BinaryInfo.js +9 -0
- package/lib/WAM/constants.d.ts +39 -0
- package/lib/WAM/constants.js +22852 -0
- package/lib/WAM/encode.d.ts +2 -0
- package/lib/WAM/encode.js +149 -0
- package/lib/WAM/index.d.ts +3 -0
- package/lib/WAM/index.js +3 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +28 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +53 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +26 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +37 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +25 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +50 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +28 -0
- package/lib/WAUSync/Protocols/index.d.ts +4 -0
- package/lib/WAUSync/Protocols/index.js +4 -0
- package/lib/WAUSync/USyncQuery.d.ts +28 -0
- package/lib/WAUSync/USyncQuery.js +93 -0
- package/lib/WAUSync/USyncUser.d.ts +12 -0
- package/lib/WAUSync/USyncUser.js +22 -0
- package/lib/WAUSync/index.d.ts +3 -0
- package/lib/WAUSync/index.js +3 -0
- package/lib/assets/wasm/loader.js +5 -0
- package/lib/assets/wasm/whatsapp.wasm +0 -0
- package/lib/assets/wasm/worker-modules.js +273 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.js +22 -0
- package/package.json +111 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { Boom } from '@hapi/boom';
|
|
2
|
+
import Long from 'long';
|
|
3
|
+
import { proto } from '../../WAProto/index.js';
|
|
4
|
+
import type { MessageReceiptType, MessageRelayOptions, SocketConfig, WAMessage, WAMessageKey } from '../Types/index.js';
|
|
5
|
+
import { type BinaryNode } from '../WABinary/index.js';
|
|
6
|
+
export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
|
|
7
|
+
sendMessageAck: (node: BinaryNode, errorCode?: number) => Promise<void>;
|
|
8
|
+
sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
|
9
|
+
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
|
10
|
+
fetchMessageHistory: (count: number, oldestMsgKey: WAMessageKey, oldestMsgTimestamp: number | Long) => Promise<string>;
|
|
11
|
+
requestPlaceholderResend: (messageKey: WAMessageKey, msgData?: Partial<WAMessage>) => Promise<string | undefined>;
|
|
12
|
+
messageRetryManager: import("../Utils/index.js").MessageRetryManager | null;
|
|
13
|
+
getPrivacyTokens: (jids: string[]) => Promise<any>;
|
|
14
|
+
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
15
|
+
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, }: MessageRelayOptions) => Promise<string>;
|
|
16
|
+
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise<void>;
|
|
17
|
+
sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise<void>;
|
|
18
|
+
bibz: import("./engine.js").BibzWhatsEngine;
|
|
19
|
+
/** alias kompatibilitas ourin-baileys */
|
|
20
|
+
ourin: import("./engine.js").BibzWhatsEngine;
|
|
21
|
+
readMessages: (keys: WAMessageKey[]) => Promise<void>;
|
|
22
|
+
refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types/index.js").MediaConnInfo>;
|
|
23
|
+
waUploadToServer: import("../Types/index.js").WAMediaUploadFunction;
|
|
24
|
+
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
25
|
+
[_: string]: string;
|
|
26
|
+
}>;
|
|
27
|
+
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
28
|
+
createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
|
|
29
|
+
nodes: BinaryNode[];
|
|
30
|
+
shouldIncludeDeviceIdentity: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("../WABinary/index.js").JidWithDevice & {
|
|
33
|
+
jid: string;
|
|
34
|
+
})[]>;
|
|
35
|
+
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
36
|
+
updateMediaMessage: (message: WAMessage) => Promise<WAMessage>;
|
|
37
|
+
sendStatusMention: (content: any, jids?: string[]) => Promise<WAMessage>;
|
|
38
|
+
sendTable: (jid: string, title: string, headers: string[], rows: string[][], quoted?: any, options?: import("../Utils/index.js").RichMessageOptions) => Promise<{
|
|
39
|
+
message: any;
|
|
40
|
+
messageId: string;
|
|
41
|
+
}>;
|
|
42
|
+
sendList: (jid: string, title: string, items: (string | string[])[], quoted?: any, options?: import("../Utils/index.js").RichMessageOptions) => Promise<{
|
|
43
|
+
message: any;
|
|
44
|
+
messageId: string;
|
|
45
|
+
}>;
|
|
46
|
+
sendCodeBlock: (jid: string, code: string, quoted?: any, options?: import("../Utils/index.js").CodeBlockOptions) => Promise<{
|
|
47
|
+
message: any;
|
|
48
|
+
messageId: string;
|
|
49
|
+
}>;
|
|
50
|
+
sendLatex: (jid: string, quoted: any, options: import("../Utils/index.js").LatexOptions) => Promise<{
|
|
51
|
+
message: any;
|
|
52
|
+
messageId: string;
|
|
53
|
+
}>;
|
|
54
|
+
sendLatexImage: (jid: string, quoted: any, options: import("../Utils/index.js").LatexImageOptions, renderLatexToPng: import("../Utils/index.js").LatexRenderFn, uploadFn: import("../Utils/index.js").MediaUploadFn) => Promise<{
|
|
55
|
+
message: any;
|
|
56
|
+
messageId: string;
|
|
57
|
+
}>;
|
|
58
|
+
sendLatexInlineImage: (jid: string, quoted: any, options: import("../Utils/index.js").LatexImageOptions, renderLatexToPng: import("../Utils/index.js").LatexRenderFn, uploadFn: import("../Utils/index.js").MediaUploadFn) => Promise<{
|
|
59
|
+
message: any;
|
|
60
|
+
messageId: string;
|
|
61
|
+
}>;
|
|
62
|
+
captureUnifiedResponse: (msg: proto.IMessage) => import("../Utils/index.js").CapturedUnifiedResponse | null;
|
|
63
|
+
sendUnifiedResponse: (jid: string, quoted: any, captured: import("../Utils/index.js").CapturedUnifiedResponse) => Promise<{
|
|
64
|
+
message: any;
|
|
65
|
+
messageId: string;
|
|
66
|
+
}>;
|
|
67
|
+
sendRichMessage: (jid: string, submessages: proto.IAIRichResponseSubMessage[], quoted?: any, options?: {}) => Promise<{
|
|
68
|
+
message: any;
|
|
69
|
+
messageId: string;
|
|
70
|
+
}>;
|
|
71
|
+
sendMessage: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise<any>;
|
|
72
|
+
newsletterFetchAllSubscribe: () => Promise<unknown>;
|
|
73
|
+
newsletterMultipleFollow: (jids: string) => Promise<void>;
|
|
74
|
+
newsletterAction: (jid: string, type: string) => Promise<void>;
|
|
75
|
+
cekIDSaluran: (url: string) => Promise<{
|
|
76
|
+
id: any;
|
|
77
|
+
state: any;
|
|
78
|
+
creation_time: number;
|
|
79
|
+
name: any;
|
|
80
|
+
description: any;
|
|
81
|
+
invite: any;
|
|
82
|
+
picture: string;
|
|
83
|
+
preview: string;
|
|
84
|
+
subscribers: number;
|
|
85
|
+
verification: any;
|
|
86
|
+
viewer_metadata: any;
|
|
87
|
+
}>;
|
|
88
|
+
newsletterCreate: (name: string, description?: string) => Promise<import("../Types/index.js").NewsletterMetadata>;
|
|
89
|
+
newsletterUpdate: (jid: string, updates: import("../Types/index.js").NewsletterUpdate) => Promise<unknown>;
|
|
90
|
+
newsletterSubscribers: (jid: string) => Promise<{
|
|
91
|
+
subscribers: number;
|
|
92
|
+
}>;
|
|
93
|
+
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types/index.js").NewsletterMetadata | null>;
|
|
94
|
+
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
95
|
+
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
96
|
+
newsletterMute: (jid: string) => Promise<unknown>;
|
|
97
|
+
newsletterUnmute: (jid: string) => Promise<unknown>;
|
|
98
|
+
newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
|
|
99
|
+
newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
|
|
100
|
+
newsletterUpdatePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload) => Promise<unknown>;
|
|
101
|
+
newsletterRemovePicture: (jid: string) => Promise<unknown>;
|
|
102
|
+
newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
|
|
103
|
+
newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
|
|
104
|
+
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
|
105
|
+
duration: string;
|
|
106
|
+
} | null>;
|
|
107
|
+
newsletterAdminCount: (jid: string) => Promise<number>;
|
|
108
|
+
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
109
|
+
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
110
|
+
newsletterDelete: (jid: string) => Promise<void>;
|
|
111
|
+
groupMetadata: (jid: string) => Promise<import("../Types/index.js").GroupMetadata>;
|
|
112
|
+
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types/index.js").GroupMetadata>;
|
|
113
|
+
groupLeave: (id: string) => Promise<void>;
|
|
114
|
+
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
115
|
+
groupRequestParticipantsList: (jid: string) => Promise<{
|
|
116
|
+
[key: string]: string;
|
|
117
|
+
}[]>;
|
|
118
|
+
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
|
119
|
+
status: string;
|
|
120
|
+
jid: string | undefined;
|
|
121
|
+
}[]>;
|
|
122
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types/index.js").ParticipantAction) => Promise<{
|
|
123
|
+
status: string;
|
|
124
|
+
jid: string | undefined;
|
|
125
|
+
content: BinaryNode;
|
|
126
|
+
}[]>;
|
|
127
|
+
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
128
|
+
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
|
129
|
+
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
130
|
+
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
131
|
+
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
132
|
+
groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
133
|
+
groupGetInviteInfo: (code: string) => Promise<import("../Types/index.js").GroupMetadata>;
|
|
134
|
+
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
135
|
+
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
136
|
+
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
137
|
+
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
138
|
+
groupFetchAllParticipating: () => Promise<{
|
|
139
|
+
[_: string]: import("../Types/index.js").GroupMetadata;
|
|
140
|
+
}>;
|
|
141
|
+
createCallLink: (type: "audio" | "video", event?: {
|
|
142
|
+
startTime: number;
|
|
143
|
+
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
144
|
+
getBotListV2: () => Promise<import("../Types/index.js").BotListInfo[]>;
|
|
145
|
+
messageMutex: {
|
|
146
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
147
|
+
};
|
|
148
|
+
receiptMutex: {
|
|
149
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
150
|
+
};
|
|
151
|
+
appStatePatchMutex: {
|
|
152
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
153
|
+
};
|
|
154
|
+
notificationMutex: {
|
|
155
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
156
|
+
};
|
|
157
|
+
upsertMessage: (msg: WAMessage, type: import("../Types/index.js").MessageUpsertType) => Promise<void>;
|
|
158
|
+
appPatch: (patchCreate: import("../Types/index.js").WAPatchCreate) => Promise<void>;
|
|
159
|
+
sendPresenceUpdate: (type: import("../Types/index.js").WAPresence, toJid?: string) => Promise<void>;
|
|
160
|
+
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
161
|
+
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
162
|
+
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
163
|
+
fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
164
|
+
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
165
|
+
updateProfilePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload, dimensions?: {
|
|
166
|
+
width: number;
|
|
167
|
+
height: number;
|
|
168
|
+
}) => Promise<void>;
|
|
169
|
+
removeProfilePicture: (jid: string) => Promise<void>;
|
|
170
|
+
updateProfileStatus: (status: string) => Promise<void>;
|
|
171
|
+
updateProfileName: (name: string) => Promise<void>;
|
|
172
|
+
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
173
|
+
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
174
|
+
updateCallPrivacy: (value: import("../Types/index.js").WAPrivacyCallValue) => Promise<void>;
|
|
175
|
+
updateMessagesPrivacy: (value: import("../Types/index.js").WAPrivacyMessagesValue) => Promise<void>;
|
|
176
|
+
updateLastSeenPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
177
|
+
updateOnlinePrivacy: (value: import("../Types/index.js").WAPrivacyOnlineValue) => Promise<void>;
|
|
178
|
+
updateProfilePicturePrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
179
|
+
updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
180
|
+
updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise<void>;
|
|
181
|
+
updateGroupsAddPrivacy: (value: import("../Types/index.js").WAPrivacyGroupAddValue) => Promise<void>;
|
|
182
|
+
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
183
|
+
getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
|
|
184
|
+
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
185
|
+
chatModify: (mod: import("../Types/index.js").ChatModification, jid: string) => Promise<void>;
|
|
186
|
+
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
187
|
+
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
188
|
+
removeContact: (jid: string) => Promise<void>;
|
|
189
|
+
addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
|
|
190
|
+
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
191
|
+
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
192
|
+
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
193
|
+
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
194
|
+
star: (jid: string, messages: {
|
|
195
|
+
id: string;
|
|
196
|
+
fromMe?: boolean;
|
|
197
|
+
}[], star: boolean) => Promise<void>;
|
|
198
|
+
addOrEditQuickReply: (quickReply: import("../Types/Bussines.js").QuickReplyAction) => Promise<void>;
|
|
199
|
+
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
200
|
+
type: "md";
|
|
201
|
+
ws: import("./Client/websocket.js").WebSocketClient;
|
|
202
|
+
ev: import("../Types/index.js").BaileysEventEmitter & {
|
|
203
|
+
process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
204
|
+
buffer(): void;
|
|
205
|
+
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
206
|
+
flush(): boolean;
|
|
207
|
+
isBuffering(): boolean;
|
|
208
|
+
};
|
|
209
|
+
authState: {
|
|
210
|
+
creds: import("../Types/index.js").AuthenticationCreds;
|
|
211
|
+
keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
|
|
212
|
+
};
|
|
213
|
+
signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
|
|
214
|
+
user: import("../Types/index.js").Contact | undefined;
|
|
215
|
+
generateMessageTag: () => string;
|
|
216
|
+
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
217
|
+
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
218
|
+
waitForSocketOpen: () => Promise<void>;
|
|
219
|
+
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
|
220
|
+
sendNode: (frame: BinaryNode) => Promise<void>;
|
|
221
|
+
logout: (msg?: string) => Promise<void>;
|
|
222
|
+
end: (error: Error | undefined) => Promise<void>;
|
|
223
|
+
onUnexpectedError: (err: Error | Boom, msg: string) => void;
|
|
224
|
+
uploadPreKeys: (count?: number, retryCount?: number) => Promise<void>;
|
|
225
|
+
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
226
|
+
digestKeyBundle: () => Promise<void>;
|
|
227
|
+
rotateSignedPreKey: () => Promise<void>;
|
|
228
|
+
requestPairingCode: (phoneNumber: string, customPairingCode?: string) => Promise<string>;
|
|
229
|
+
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
230
|
+
sendUnifiedSession: () => Promise<void>;
|
|
231
|
+
wamBuffer: import("../index.js").BinaryInfo;
|
|
232
|
+
waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
233
|
+
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
234
|
+
executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
235
|
+
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
236
|
+
jid: string;
|
|
237
|
+
exists: boolean;
|
|
238
|
+
}[] | undefined>;
|
|
239
|
+
};
|