@awangxcode/qiro-baileys 7.0.0-rc25.5 → 7.0.0-rc26.2
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 +15 -0
- package/README.md +1443 -1033
- package/WAProto/WAProto.proto +4 -0
- package/WAProto/index.d.ts +4067 -243
- package/WAProto/index.js +74957 -43330
- package/assets/branding/qiro-logo.svg +24 -0
- package/assets/branding/qiro-mark.png +0 -0
- package/assets/branding/qiro-mark.svg +34 -0
- package/assets/branding/qiro-social-preview.png +0 -0
- package/lib/Defaults/index.d.ts +16 -1
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Defaults/index.js +43 -10
- package/lib/Defaults/index.js.map +1 -1
- package/lib/Extensions/advanced.d.ts +1 -1
- package/lib/Extensions/experimental.d.ts +1 -3
- package/lib/Extensions/experimental.d.ts.map +1 -1
- package/lib/Extensions/experimental.js +0 -2
- package/lib/Extensions/experimental.js.map +1 -1
- package/lib/MessageBuilder/index.d.ts +5 -5
- package/lib/MessageBuilder/index.d.ts.map +1 -1
- package/lib/MessageBuilder/index.js +12 -3
- package/lib/MessageBuilder/index.js.map +1 -1
- package/lib/Signal/Group/group-session-builder.d.ts +3 -3
- package/lib/Signal/Group/group-session-builder.js +4 -4
- package/lib/Signal/Group/group_cipher.d.ts +2 -2
- package/lib/Signal/Group/group_cipher.js +4 -4
- package/lib/Signal/Group/index.d.ts +11 -11
- package/lib/Signal/Group/index.js +11 -11
- package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
- package/lib/Signal/Group/sender-chain-key.js +1 -1
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-distribution-message.js +1 -1
- package/lib/Signal/Group/sender-key-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-message.js +1 -1
- package/lib/Signal/Group/sender-key-record.d.ts +1 -1
- package/lib/Signal/Group/sender-key-record.js +2 -2
- package/lib/Signal/Group/sender-key-state.d.ts +2 -2
- package/lib/Signal/Group/sender-key-state.js +2 -2
- package/lib/Signal/libsignal.d.ts +3 -3
- package/lib/Signal/libsignal.js +6 -6
- package/lib/Signal/lid-mapping.d.ts +2 -2
- package/lib/Signal/lid-mapping.js +4 -4
- package/lib/Signal/lid-mapping.js.map +1 -1
- package/lib/Socket/Client/index.d.ts +2 -2
- package/lib/Socket/Client/index.js +2 -2
- package/lib/Socket/Client/types.d.ts +1 -1
- package/lib/Socket/Client/websocket.d.ts +1 -1
- package/lib/Socket/Client/websocket.js +2 -2
- package/lib/Socket/business.d.ts +347 -65
- package/lib/Socket/business.d.ts.map +1 -1
- package/lib/Socket/business.js +5 -5
- package/lib/Socket/chats.d.ts +129 -16
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/chats.js +293 -18
- package/lib/Socket/chats.js.map +1 -1
- package/lib/Socket/communities.d.ts +332 -50
- package/lib/Socket/communities.d.ts.map +1 -1
- package/lib/Socket/communities.js +5 -5
- package/lib/Socket/groups.d.ts +133 -27
- package/lib/Socket/groups.d.ts.map +1 -1
- package/lib/Socket/groups.js +4 -4
- package/lib/Socket/index.d.ts +366 -84
- package/lib/Socket/index.d.ts.map +1 -1
- package/lib/Socket/index.js +8 -5
- package/lib/Socket/index.js.map +1 -1
- package/lib/Socket/messages-recv.d.ts +324 -41
- package/lib/Socket/messages-recv.d.ts.map +1 -1
- package/lib/Socket/messages-recv.js +81 -30
- package/lib/Socket/messages-recv.js.map +1 -1
- package/lib/Socket/messages-send.d.ts +340 -44
- package/lib/Socket/messages-send.d.ts.map +1 -1
- package/lib/Socket/messages-send.js +171 -35
- package/lib/Socket/messages-send.js.map +1 -1
- package/lib/Socket/mex.d.ts +1 -1
- package/lib/Socket/mex.js +1 -1
- package/lib/Socket/newsletter.d.ts +324 -39
- package/lib/Socket/newsletter.d.ts.map +1 -1
- package/lib/Socket/newsletter.js +345 -5
- package/lib/Socket/newsletter.js.map +1 -1
- package/lib/Socket/socket.d.ts +24 -11
- package/lib/Socket/socket.d.ts.map +1 -1
- package/lib/Socket/socket.js +89 -36
- package/lib/Socket/socket.js.map +1 -1
- package/lib/Store/index.d.ts +4 -0
- package/lib/Store/index.js +4 -0
- package/lib/Store/make-in-memory-store.d.ts +63 -0
- package/lib/Store/make-in-memory-store.js +397 -0
- package/lib/Store/make-ordered-dictionary.d.ts +13 -0
- package/lib/Store/make-ordered-dictionary.js +79 -0
- package/lib/Store/object-repository.d.ts +11 -0
- package/lib/Store/object-repository.js +24 -0
- package/lib/Types/Auth.d.ts +2 -2
- package/lib/Types/Chat.d.ts +19 -6
- package/lib/Types/Chat.d.ts.map +1 -1
- package/lib/Types/Chat.js +7 -0
- package/lib/Types/Chat.js.map +1 -1
- package/lib/Types/Events.d.ts +9 -9
- package/lib/Types/GroupMetadata.d.ts +2 -2
- package/lib/Types/Message.d.ts +70 -6
- package/lib/Types/Message.d.ts.map +1 -1
- package/lib/Types/Message.js +11 -0
- package/lib/Types/Message.js.map +1 -1
- package/lib/Types/Mex.d.ts +68 -39
- package/lib/Types/Mex.d.ts.map +1 -1
- package/lib/Types/Mex.js +66 -0
- package/lib/Types/Mex.js.map +1 -1
- package/lib/Types/Product.d.ts +1 -1
- package/lib/Types/Signal.d.ts +1 -1
- package/lib/Types/Socket.d.ts +50 -5
- package/lib/Types/Socket.d.ts.map +1 -1
- package/lib/Types/Socket.js +1 -1
- package/lib/Types/State.d.ts +1 -1
- package/lib/Types/USync.d.ts +2 -2
- package/lib/Types/USync.js +1 -1
- package/lib/Types/index.d.ts +14 -14
- package/lib/Types/index.js +12 -12
- package/lib/Utils/audio-sticker.d.ts +14 -0
- package/lib/Utils/audio-sticker.js +172 -0
- package/lib/Utils/auth-store.d.ts +30 -0
- package/lib/Utils/auth-store.js +77 -0
- package/lib/Utils/auth-utils.d.ts +2 -2
- package/lib/Utils/auth-utils.js +4 -4
- package/lib/Utils/browser-utils.d.ts +1 -1
- package/lib/Utils/business.d.ts +2 -2
- package/lib/Utils/business.js +3 -3
- package/lib/Utils/chat-theme.d.ts +34 -0
- package/lib/Utils/chat-theme.js +336 -0
- package/lib/Utils/chat-utils.d.ts +3 -3
- package/lib/Utils/chat-utils.js +9 -9
- package/lib/Utils/chat-utils.js.map +1 -1
- package/lib/Utils/companion-reg-client-utils.d.ts +3 -3
- package/lib/Utils/companion-reg-client-utils.js +1 -1
- package/lib/Utils/crypto.d.ts +1 -1
- package/lib/Utils/crypto.js +1 -1
- package/lib/Utils/decode-wa-message.d.ts +18 -4
- package/lib/Utils/decode-wa-message.d.ts.map +1 -1
- package/lib/Utils/decode-wa-message.js +57 -2
- package/lib/Utils/decode-wa-message.js.map +1 -1
- package/lib/Utils/event-buffer.d.ts +4 -3
- package/lib/Utils/event-buffer.d.ts.map +1 -1
- package/lib/Utils/event-buffer.js +7 -8
- package/lib/Utils/event-buffer.js.map +1 -1
- package/lib/Utils/generics.d.ts +5 -4
- package/lib/Utils/generics.d.ts.map +1 -1
- package/lib/Utils/generics.js +13 -22
- package/lib/Utils/generics.js.map +1 -1
- package/lib/Utils/group-metadata-cache.d.ts +4 -0
- package/lib/Utils/group-metadata-cache.js +25 -0
- package/lib/Utils/history.d.ts +1 -1
- package/lib/Utils/history.js +6 -6
- package/lib/Utils/history.js.map +1 -1
- package/lib/Utils/html-app.d.ts +19 -0
- package/lib/Utils/html-app.js +96 -0
- package/lib/Utils/html-multiplayer.d.ts +10 -0
- package/lib/Utils/html-multiplayer.js +94 -0
- package/lib/Utils/identity-change-handler.d.ts +2 -2
- package/lib/Utils/identity-change-handler.js +2 -2
- package/lib/Utils/index.d.ts +46 -21
- package/lib/Utils/index.d.ts.map +1 -1
- package/lib/Utils/index.js +48 -21
- package/lib/Utils/index.js.map +1 -1
- package/lib/Utils/link-preview-metadata.d.ts +47 -0
- package/lib/Utils/link-preview-metadata.js +88 -0
- package/lib/Utils/link-preview.d.ts +2 -2
- package/lib/Utils/link-preview.js +2 -2
- package/lib/Utils/message-retry-manager.d.ts +1 -1
- package/lib/Utils/messages-media.d.ts +35 -6
- package/lib/Utils/messages-media.d.ts.map +1 -1
- package/lib/Utils/messages-media.js +69 -22
- package/lib/Utils/messages-media.js.map +1 -1
- package/lib/Utils/messages.d.ts +45 -5
- package/lib/Utils/messages.d.ts.map +1 -1
- package/lib/Utils/messages.js +123 -32
- package/lib/Utils/messages.js.map +1 -1
- package/lib/Utils/modern-messages.d.ts +150 -0
- package/lib/Utils/modern-messages.js +496 -0
- package/lib/Utils/native-flow.d.ts +11 -0
- package/lib/Utils/native-flow.js +116 -0
- package/lib/Utils/newsletter-status.d.ts +158 -0
- package/lib/Utils/newsletter-status.js +651 -0
- package/lib/Utils/noise-handler.d.ts +3 -3
- package/lib/Utils/noise-handler.js +3 -3
- package/lib/Utils/offline-node-processor.d.ts +1 -1
- package/lib/Utils/optional-media.d.ts +3 -0
- package/lib/Utils/optional-media.js +46 -0
- package/lib/Utils/payment-messages.d.ts +38 -0
- package/lib/Utils/payment-messages.js +160 -0
- package/lib/Utils/pre-key-manager.d.ts +2 -2
- package/lib/Utils/process-message.d.ts +13 -2
- package/lib/Utils/process-message.d.ts.map +1 -1
- package/lib/Utils/process-message.js +87 -7
- package/lib/Utils/process-message.js.map +1 -1
- package/lib/Utils/reporting-utils.d.ts +2 -2
- package/lib/Utils/reporting-utils.js +1 -1
- package/lib/Utils/scheduled-message.d.ts +51 -0
- package/lib/Utils/scheduled-message.js +113 -0
- package/lib/Utils/sender-key-memory.d.ts +19 -0
- package/lib/Utils/sender-key-memory.js +51 -0
- package/lib/Utils/signal.d.ts +4 -4
- package/lib/Utils/signal.js +4 -4
- package/lib/Utils/stanza-ack.d.ts +1 -1
- package/lib/Utils/status-stickers.d.ts +127 -0
- package/lib/Utils/status-stickers.js +261 -0
- package/lib/Utils/sync-action-utils.d.ts +2 -2
- package/lib/Utils/sync-action-utils.js +1 -1
- package/lib/Utils/tc-token-utils.d.ts +2 -2
- package/lib/Utils/tc-token-utils.js +1 -1
- package/lib/Utils/ttl-cache.d.ts +29 -0
- package/lib/Utils/ttl-cache.js +121 -0
- package/lib/Utils/use-mongo-auth-state.d.ts +22 -0
- package/lib/Utils/use-mongo-auth-state.js +68 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +2 -1
- package/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -1
- package/lib/Utils/use-multi-file-auth-state.js +28 -15
- package/lib/Utils/use-multi-file-auth-state.js.map +1 -1
- package/lib/Utils/use-mysql-auth-state.d.ts +20 -0
- package/lib/Utils/use-mysql-auth-state.js +80 -0
- package/lib/Utils/use-nekodb-auth.d.ts +19 -0
- package/lib/Utils/use-nekodb-auth.js +111 -0
- package/lib/Utils/use-postgres-auth-state.d.ts +20 -0
- package/lib/Utils/use-postgres-auth-state.js +80 -0
- package/lib/Utils/use-redis-auth-state.d.ts +20 -0
- package/lib/Utils/use-redis-auth-state.js +90 -0
- package/lib/Utils/use-single-file-auth-state.d.ts +11 -0
- package/lib/Utils/use-single-file-auth-state.js +109 -0
- package/lib/Utils/use-sqlite-auth-state.d.ts +13 -0
- package/lib/Utils/use-sqlite-auth-state.js +121 -0
- package/lib/Utils/username.d.ts +12 -0
- package/lib/Utils/username.js +59 -0
- package/lib/Utils/validate-connection.d.ts +2 -2
- package/lib/Utils/validate-connection.js +5 -5
- package/lib/Utils/voice-recognition.d.ts +53 -0
- package/lib/Utils/voice-recognition.js +219 -0
- package/lib/VoIP/audio-feeder.d.ts +24 -0
- package/lib/VoIP/audio-feeder.js +276 -0
- package/lib/VoIP/index.d.ts +93 -0
- package/lib/VoIP/index.js +998 -0
- package/lib/VoIP/relay-transport.d.ts +5 -0
- package/lib/VoIP/relay-transport.js +824 -0
- package/lib/VoIP/signaling.d.ts +11 -0
- package/lib/VoIP/signaling.js +1099 -0
- package/lib/VoIP/types.d.ts +2 -0
- package/lib/VoIP/types.js +12 -0
- package/lib/VoIP/video-feeder.d.ts +24 -0
- package/lib/VoIP/video-feeder.js +276 -0
- package/lib/VoIP/wasm-engine.d.ts +26 -0
- package/lib/VoIP/wasm-engine.js +1318 -0
- package/lib/VoIP/worker-bootstrap.js +1022 -0
- package/lib/WABinary/decode.d.ts +1 -1
- package/lib/WABinary/decode.js +2 -2
- package/lib/WABinary/encode.d.ts +1 -1
- package/lib/WABinary/encode.js +2 -2
- package/lib/WABinary/generic-utils.d.ts +3 -1
- package/lib/WABinary/generic-utils.d.ts.map +1 -1
- package/lib/WABinary/generic-utils.js +3 -1
- package/lib/WABinary/generic-utils.js.map +1 -1
- package/lib/WABinary/index.d.ts +5 -5
- package/lib/WABinary/index.js +5 -5
- package/lib/WABinary/jid-utils.d.ts +2 -0
- package/lib/WABinary/jid-utils.d.ts.map +1 -1
- package/lib/WABinary/jid-utils.js +3 -1
- package/lib/WABinary/jid-utils.js.map +1 -1
- package/lib/WABinary/types.d.ts +1 -1
- package/lib/WABinary/types.js +1 -1
- package/lib/WAM/BinaryInfo.d.ts +1 -1
- package/lib/WAM/encode.d.ts +1 -1
- package/lib/WAM/encode.js +2 -2
- package/lib/WAM/index.d.ts +3 -3
- package/lib/WAM/index.js +3 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +1 -1
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +1 -1
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +2 -2
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +2 -2
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/index.d.ts +5 -5
- package/lib/WAUSync/Protocols/index.js +5 -5
- package/lib/WAUSync/USyncQuery.d.ts +3 -3
- package/lib/WAUSync/USyncQuery.js +5 -5
- package/lib/WAUSync/index.d.ts +3 -3
- package/lib/WAUSync/index.js +3 -3
- package/lib/extensions/awang-MessageBuilder.js +1 -1
- package/lib/index.d.ts +14 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +15 -11
- package/lib/index.js.map +1 -1
- package/package.json +78 -31
- package/MIGRASI-QIRO-BAILEYS-RC25.md +0 -102
- package/QIRO-BAILEYS-RC25.md +0 -168
- package/THIRD_PARTY_NOTICES.md +0 -49
- /package/{engine-requirements.js → config/engine-requirements.js} +0 -0
|
@@ -1,24 +1,46 @@
|
|
|
1
1
|
import NodeCache from '@cacheable/node-cache';
|
|
2
2
|
import { Boom } from '@hapi/boom';
|
|
3
3
|
import { proto } from '../../WAProto/index.js';
|
|
4
|
-
import type { AnyMessageContent, MediaConnInfo, MessageReceiptType, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig, WAMessage, WAMessageKey } from '../Types
|
|
5
|
-
import { MessageRetryManager } from '../Utils
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import type { AnyMessageContent, MediaConnInfo, MessageReceiptType, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig, WAMessage, WAMessageKey } from '../Types';
|
|
5
|
+
import { MessageRetryManager } from '../Utils';
|
|
6
|
+
import { TTLCache } from '../Utils/ttl-cache.js';
|
|
7
|
+
import { type BinaryNode, type JidWithDevice } from '../WABinary';
|
|
8
|
+
import { USyncQuery } from '../WAUSync';
|
|
9
|
+
export declare const buildMemberLabelMessage: (jid: string, memberLabel?: string | null) => {
|
|
10
|
+
label: string;
|
|
11
|
+
content: {
|
|
12
|
+
protocolMessage: {
|
|
13
|
+
type: proto.Message.ProtocolMessage.Type;
|
|
14
|
+
memberLabel: {
|
|
15
|
+
label: string;
|
|
16
|
+
labelTimestamp: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
node: BinaryNode;
|
|
21
|
+
};
|
|
8
22
|
export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
9
|
-
userDevicesCache: import("../Types
|
|
23
|
+
userDevicesCache: import("../Types").PossiblyExtendedCacheStore | NodeCache<JidWithDevice[]>;
|
|
10
24
|
devicesMutex: {
|
|
11
25
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
12
26
|
};
|
|
13
27
|
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
14
28
|
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
15
|
-
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, isSecret, protected: protectedDelivery, me: meOnly }: MessageRelayOptions) => Promise<string>;
|
|
29
|
+
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, mediaType: mediaTypeOverride, messageType: messageTypeOverride, isSecret, protected: protectedDelivery, me: meOnly }: MessageRelayOptions) => Promise<string>;
|
|
16
30
|
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise<void>;
|
|
17
31
|
sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise<void>;
|
|
18
32
|
readMessages: (keys: WAMessageKey[]) => Promise<void>;
|
|
19
33
|
refreshMediaConn: (forceGet?: boolean) => Promise<MediaConnInfo>;
|
|
20
34
|
getMediaHost: () => string;
|
|
21
|
-
waUploadToServer: import("../Types
|
|
35
|
+
waUploadToServer: import("../Types").WAMediaUploadFunction;
|
|
36
|
+
outboundResendCache: import("../Types").CacheStore | TTLCache<{
|
|
37
|
+
jid: string;
|
|
38
|
+
message: proto.IMessage;
|
|
39
|
+
}>;
|
|
40
|
+
sendHD: (jid: string, content: any, options?: any) => Promise<WAMessage>;
|
|
41
|
+
sendImgVid: (jid: string, content: any, options?: any) => Promise<WAMessage>;
|
|
42
|
+
sendStAudioMessage: (jid: string, content: any, options?: any) => Promise<WAMessage>;
|
|
43
|
+
setThemeGroup: (jid: string, content: any, options?: any) => Promise<WAMessage | import("../Utils/chat-theme.js").ChatThemeCatalog | undefined>;
|
|
22
44
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
23
45
|
[_: string]: string;
|
|
24
46
|
}>;
|
|
@@ -34,22 +56,190 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
34
56
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
35
57
|
updateMediaMessage: (message: WAMessage) => Promise<WAMessage>;
|
|
36
58
|
sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise<WAMessage | undefined>;
|
|
37
|
-
|
|
38
|
-
|
|
59
|
+
newsletterUpdateUserSetting: (jid: string, type: "FOLLOWER_NOTIFICATIONS" | "ADMIN_NOTIFICATIONS", muted: boolean) => Promise<{
|
|
60
|
+
id: any;
|
|
61
|
+
state: any;
|
|
62
|
+
}>;
|
|
63
|
+
newsletterSubscribed: (options?: {
|
|
64
|
+
fetchStatusMetadata?: boolean;
|
|
65
|
+
fetchWamoSub?: boolean;
|
|
66
|
+
}) => Promise<any>;
|
|
67
|
+
newsletterUpdateReactions: (jid: string, setting: string) => Promise<unknown>;
|
|
68
|
+
newsletterInsights: (jid: string, options?: {
|
|
69
|
+
metrics?: string[];
|
|
70
|
+
}) => Promise<any>;
|
|
71
|
+
newsletterEnforcements: (jid: string, locale?: string) => Promise<{
|
|
72
|
+
adminProfiles: any;
|
|
73
|
+
profilePictureDeletions: any;
|
|
74
|
+
suspensions: any;
|
|
75
|
+
violatingMessages: {
|
|
76
|
+
enforcementId: any;
|
|
77
|
+
createdAt: number | undefined;
|
|
78
|
+
violationCategory: any;
|
|
79
|
+
source: any;
|
|
80
|
+
appealState: any;
|
|
81
|
+
appealCreatedAt: number | undefined;
|
|
82
|
+
appealReasonOptions: any;
|
|
83
|
+
appealFormUrl: any;
|
|
84
|
+
policy: {
|
|
85
|
+
headline: any;
|
|
86
|
+
subtitle: any;
|
|
87
|
+
overview: any;
|
|
88
|
+
explanation: any;
|
|
89
|
+
adminDisclaimer: any;
|
|
90
|
+
} | undefined;
|
|
91
|
+
}[];
|
|
92
|
+
geoSuspensions: {
|
|
93
|
+
enforcementId: any;
|
|
94
|
+
createdAt: number | undefined;
|
|
95
|
+
violationCategory: any;
|
|
96
|
+
source: any;
|
|
97
|
+
appealState: any;
|
|
98
|
+
appealCreatedAt: number | undefined;
|
|
99
|
+
appealReasonOptions: any;
|
|
100
|
+
appealFormUrl: any;
|
|
101
|
+
policy: {
|
|
102
|
+
headline: any;
|
|
103
|
+
subtitle: any;
|
|
104
|
+
overview: any;
|
|
105
|
+
explanation: any;
|
|
106
|
+
adminDisclaimer: any;
|
|
107
|
+
} | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
110
|
+
newsletterPendingAdminInvites: (jid: string) => Promise<any>;
|
|
111
|
+
newsletterQuestionResponseState: (jid: string, serverId: string | number, responseServerId: string | number, state: string) => Promise<any>;
|
|
112
|
+
newsletterSendPollVote: (jid: string, parentServerId: string | number, options: string | string[]) => Promise<{
|
|
113
|
+
id: string;
|
|
114
|
+
}>;
|
|
115
|
+
newsletterMyAddOns: (options?: {
|
|
116
|
+
limit?: number;
|
|
117
|
+
jid?: string;
|
|
118
|
+
}) => Promise<{
|
|
119
|
+
jid: string | undefined;
|
|
120
|
+
messages: {
|
|
121
|
+
serverId: number | undefined;
|
|
122
|
+
reaction: {
|
|
123
|
+
code: string | undefined;
|
|
124
|
+
t: number | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
pollVote: {
|
|
127
|
+
t: number | undefined;
|
|
128
|
+
hashes: string[];
|
|
129
|
+
} | undefined;
|
|
130
|
+
}[];
|
|
131
|
+
}[]>;
|
|
132
|
+
newsletterStatusMyAddOns: (options?: {
|
|
133
|
+
limit?: number;
|
|
134
|
+
jid?: string;
|
|
135
|
+
}) => Promise<{
|
|
136
|
+
jid: string | undefined;
|
|
137
|
+
messages: {
|
|
138
|
+
serverId: number | undefined;
|
|
139
|
+
reaction: {
|
|
140
|
+
code: string | undefined;
|
|
141
|
+
t: number | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
pollVote: {
|
|
144
|
+
t: number | undefined;
|
|
145
|
+
hashes: string[];
|
|
146
|
+
} | undefined;
|
|
147
|
+
}[];
|
|
148
|
+
}[]>;
|
|
149
|
+
sendNewsletterStatus: (jid: string, content: any, options?: import("../Utils/newsletter-status.js").NewsletterStatusSendOptions) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusSendResult>;
|
|
150
|
+
sendNewsletterStatusReaction: (jid: string, parentServerId: string | number, reaction: string, options?: Pick<import("../Utils/newsletter-status.js").NewsletterStatusSendOptions, "messageId" | "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusStanzaResult>;
|
|
151
|
+
revokeNewsletterStatus: (jid: string, statusId: string, options?: Pick<import("../Utils/newsletter-status.js").NewsletterStatusSendOptions, "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusStanzaResult>;
|
|
152
|
+
getNewsletterStatuses: (jid: string, options?: import("../Utils/newsletter-status.js").NewsletterStatusFetchOptions) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusList>;
|
|
153
|
+
getNewsletterStatusUpdates: (jid: string, options?: import("../Utils/newsletter-status.js").NewsletterStatusUpdatesFetchOptions) => Promise<import("../Utils/newsletter-status.js").NewsletterStatusList>;
|
|
154
|
+
newsletterCanPostStatus: (jid: string) => Promise<{
|
|
155
|
+
canPost: boolean;
|
|
156
|
+
canPostMusic: boolean;
|
|
157
|
+
capabilities: string[];
|
|
158
|
+
}>;
|
|
159
|
+
newsletterAdminInfo: (jid: string) => Promise<{
|
|
160
|
+
id: any;
|
|
161
|
+
adminCount: any;
|
|
162
|
+
adminProfile: {
|
|
163
|
+
id: any;
|
|
164
|
+
name: any;
|
|
165
|
+
picture: {
|
|
166
|
+
id: any;
|
|
167
|
+
directPath: any;
|
|
168
|
+
} | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
adminProfilesEnabled: any;
|
|
171
|
+
}>;
|
|
172
|
+
newsletterPollVoters: (jid: string, serverId: string | number, options?: {
|
|
173
|
+
limit?: number;
|
|
174
|
+
voteHash?: string;
|
|
175
|
+
}) => Promise<any>;
|
|
176
|
+
newsletterReactionSenders: (jid: string, serverId: string | number) => Promise<any>;
|
|
177
|
+
newsletterPinMessages: (jid: string, serverIds: string | number | Array<string | number>) => Promise<any>;
|
|
178
|
+
newsletterUnpinMessages: (jid: string, serverIds: string | number | Array<string | number>) => Promise<any>;
|
|
179
|
+
newsletterReports: (locale?: string) => Promise<any>;
|
|
180
|
+
newsletterAppealReport: (reportId: string | number, reason: string) => Promise<any>;
|
|
181
|
+
newsletterAdminCapabilities: (jid: string) => Promise<any>;
|
|
182
|
+
newsletterLabelAiContent: (jid: string, serverId: string | number, messageType?: string) => Promise<any>;
|
|
183
|
+
newsletterLabelPaidPartnership: (jid: string, serverId: string | number, messageType?: string) => Promise<any>;
|
|
184
|
+
newsletterCreateAdminInvite: (jid: string, userJid: string) => Promise<any>;
|
|
185
|
+
newsletterRevokeAdminInvite: (jid: string, userJid: string) => Promise<any>;
|
|
186
|
+
newsletterAcceptAdminInvite: (jid: string) => Promise<any>;
|
|
187
|
+
newsletterDirectoryList: (options?: any) => Promise<any>;
|
|
188
|
+
newsletterDirectorySearch: (searchText: string, options?: any) => Promise<any>;
|
|
189
|
+
newsletterDirectoryCategories: (options?: any) => Promise<any>;
|
|
190
|
+
newsletterRecommended: (options?: any) => Promise<any>;
|
|
191
|
+
newsletterSimilar: (jid: string, options?: any) => Promise<any>;
|
|
192
|
+
newsletterFollowers: (jid: string, options?: any) => Promise<any>;
|
|
193
|
+
newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
|
|
194
|
+
newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
|
|
39
195
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
40
196
|
subscribers: number;
|
|
41
197
|
}>;
|
|
42
|
-
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types
|
|
198
|
+
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types").NewsletterMetadata | null>;
|
|
43
199
|
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
44
200
|
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
45
201
|
newsletterMute: (jid: string) => Promise<unknown>;
|
|
46
202
|
newsletterUnmute: (jid: string) => Promise<unknown>;
|
|
47
203
|
newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
|
|
48
204
|
newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
|
|
49
|
-
newsletterUpdatePicture: (jid: string, content: import("../Types
|
|
205
|
+
newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<unknown>;
|
|
50
206
|
newsletterRemovePicture: (jid: string) => Promise<unknown>;
|
|
51
207
|
newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
|
|
52
208
|
newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
|
|
209
|
+
newsletterFetchMessageUpdates: (jid: string, options?: {
|
|
210
|
+
count?: number;
|
|
211
|
+
since?: number;
|
|
212
|
+
before?: number;
|
|
213
|
+
after?: number;
|
|
214
|
+
}) => Promise<{
|
|
215
|
+
jid: string;
|
|
216
|
+
messages: any[];
|
|
217
|
+
}>;
|
|
218
|
+
newsletterQuestionResponses: (jid: string, serverId: string | number, options?: {
|
|
219
|
+
count?: number;
|
|
220
|
+
before?: number;
|
|
221
|
+
filter?: string;
|
|
222
|
+
searchText?: string;
|
|
223
|
+
}) => Promise<{
|
|
224
|
+
jid: any;
|
|
225
|
+
serverId: number;
|
|
226
|
+
responses: {
|
|
227
|
+
id: string | undefined;
|
|
228
|
+
t: number | undefined;
|
|
229
|
+
isSender: boolean;
|
|
230
|
+
responseServerId: string | undefined;
|
|
231
|
+
sender: {
|
|
232
|
+
lid: string | undefined;
|
|
233
|
+
notifyName: string | undefined;
|
|
234
|
+
pictureDirectPath: string | undefined;
|
|
235
|
+
};
|
|
236
|
+
replied: boolean;
|
|
237
|
+
starred: boolean;
|
|
238
|
+
message: {
|
|
239
|
+
[k: string]: any;
|
|
240
|
+
} | undefined;
|
|
241
|
+
}[];
|
|
242
|
+
}>;
|
|
53
243
|
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
|
54
244
|
duration: string;
|
|
55
245
|
} | null>;
|
|
@@ -57,8 +247,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
57
247
|
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
58
248
|
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
59
249
|
newsletterDelete: (jid: string) => Promise<void>;
|
|
60
|
-
groupMetadata: (jid: string) => Promise<import("../Types
|
|
61
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types
|
|
250
|
+
groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
|
|
251
|
+
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
|
|
62
252
|
groupLeave: (id: string) => Promise<void>;
|
|
63
253
|
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
64
254
|
groupRequestParticipantsList: (jid: string) => Promise<{
|
|
@@ -68,7 +258,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
68
258
|
status: string;
|
|
69
259
|
jid: string | undefined;
|
|
70
260
|
}[]>;
|
|
71
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types
|
|
261
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
|
|
72
262
|
status: string;
|
|
73
263
|
jid: string | undefined;
|
|
74
264
|
content: BinaryNode;
|
|
@@ -79,23 +269,51 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
79
269
|
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
80
270
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
81
271
|
groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
82
|
-
groupGetInviteInfo: (code: string) => Promise<import("../Types
|
|
272
|
+
groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
|
|
83
273
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
84
274
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
85
275
|
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
86
276
|
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
87
277
|
groupFetchAllParticipating: () => Promise<{
|
|
88
|
-
[_: string]: import("../Types
|
|
278
|
+
[_: string]: import("../Types").GroupMetadata;
|
|
89
279
|
}>;
|
|
90
280
|
serverProps: {
|
|
91
281
|
privacyTokenOn1to1: boolean;
|
|
92
282
|
profilePicPrivacyToken: boolean;
|
|
93
283
|
lidTrustedTokenIssueToLid: boolean;
|
|
94
284
|
};
|
|
285
|
+
fetchProps: ({ full }?: {
|
|
286
|
+
full?: boolean;
|
|
287
|
+
}) => Promise<Record<string, string>>;
|
|
288
|
+
getServerProps: ({ refresh }?: {
|
|
289
|
+
refresh?: boolean;
|
|
290
|
+
}) => Promise<Record<string, string>>;
|
|
291
|
+
findUserId: (jid: string) => Promise<{
|
|
292
|
+
lid: string | null;
|
|
293
|
+
phoneNumber: string;
|
|
294
|
+
} | {
|
|
295
|
+
lid: string;
|
|
296
|
+
phoneNumber: string | null;
|
|
297
|
+
}>;
|
|
298
|
+
checkAccountHealth: (jid: string) => Promise<{
|
|
299
|
+
jid: string;
|
|
300
|
+
exists: boolean;
|
|
301
|
+
isBusiness: boolean;
|
|
302
|
+
verifiedName: string | null;
|
|
303
|
+
about: string | null;
|
|
304
|
+
hasProfilePhoto: boolean;
|
|
305
|
+
self: {
|
|
306
|
+
capped?: boolean;
|
|
307
|
+
warned?: boolean;
|
|
308
|
+
unlimited?: boolean;
|
|
309
|
+
remaining?: number | null;
|
|
310
|
+
} | null;
|
|
311
|
+
notes: string[];
|
|
312
|
+
}>;
|
|
95
313
|
createCallLink: (type: "audio" | "video", event?: {
|
|
96
314
|
startTime: number;
|
|
97
315
|
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
98
|
-
getBotListV2: () => Promise<import("../Types
|
|
316
|
+
getBotListV2: () => Promise<import("../Types").BotListInfo[]>;
|
|
99
317
|
messageMutex: {
|
|
100
318
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
101
319
|
};
|
|
@@ -108,15 +326,15 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
108
326
|
notificationMutex: {
|
|
109
327
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
110
328
|
};
|
|
111
|
-
upsertMessage: (msg: WAMessage, type: import("../Types
|
|
112
|
-
appPatch: (patchCreate: import("../Types
|
|
113
|
-
sendPresenceUpdate: (type: import("../Types
|
|
329
|
+
upsertMessage: (msg: WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
|
|
330
|
+
appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
|
|
331
|
+
sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
|
|
114
332
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
115
333
|
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
116
334
|
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
117
|
-
fetchStatus: (...jids: string[]) => Promise<import("../WAUSync
|
|
118
|
-
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../WAUSync
|
|
119
|
-
updateProfilePicture: (jid: string, content: import("../Types
|
|
335
|
+
fetchStatus: (...jids: string[]) => Promise<import("../WAUSync").USyncQueryResultList[] | undefined>;
|
|
336
|
+
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../WAUSync").USyncQueryResultList[] | undefined>;
|
|
337
|
+
updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload, dimensions?: {
|
|
120
338
|
width?: number;
|
|
121
339
|
height?: number;
|
|
122
340
|
full?: boolean;
|
|
@@ -127,22 +345,22 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
127
345
|
updateProfileName: (name: string) => Promise<void>;
|
|
128
346
|
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
129
347
|
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
130
|
-
updateCallPrivacy: (value: import("../Types
|
|
131
|
-
updateMessagesPrivacy: (value: import("../Types
|
|
132
|
-
updateLastSeenPrivacy: (value: import("../Types
|
|
133
|
-
updateOnlinePrivacy: (value: import("../Types
|
|
134
|
-
updateProfilePicturePrivacy: (value: import("../Types
|
|
135
|
-
updateStatusPrivacy: (value: import("../Types
|
|
136
|
-
updateReadReceiptsPrivacy: (value: import("../Types
|
|
137
|
-
updateGroupsAddPrivacy: (value: import("../Types
|
|
348
|
+
updateCallPrivacy: (value: import("../Types").WAPrivacyCallValue) => Promise<void>;
|
|
349
|
+
updateMessagesPrivacy: (value: import("../Types").WAPrivacyMessagesValue) => Promise<void>;
|
|
350
|
+
updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
|
351
|
+
updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
|
|
352
|
+
updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
|
353
|
+
updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
|
|
354
|
+
updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
|
|
355
|
+
updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyGroupAddValue) => Promise<void>;
|
|
138
356
|
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
139
|
-
getBusinessProfile: (jid: string) => Promise<import("../Types
|
|
357
|
+
getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
|
|
140
358
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
141
|
-
chatModify: (mod: import("../Types
|
|
359
|
+
chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
|
|
142
360
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
143
361
|
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
144
362
|
removeContact: (jid: string) => Promise<void>;
|
|
145
|
-
placeholderResendCache: import("../Types
|
|
363
|
+
placeholderResendCache: import("../Types").CacheStore;
|
|
146
364
|
addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
|
|
147
365
|
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
148
366
|
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
@@ -154,10 +372,75 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
154
372
|
}[], star: boolean) => Promise<void>;
|
|
155
373
|
addOrEditQuickReply: (quickReply: import("../Types/Bussines.js").QuickReplyAction) => Promise<void>;
|
|
156
374
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
375
|
+
getUsername: () => Promise<{
|
|
376
|
+
username: any;
|
|
377
|
+
state: any;
|
|
378
|
+
pin: any;
|
|
379
|
+
}>;
|
|
380
|
+
setUsername: (username?: string, options?: {
|
|
381
|
+
reserved?: boolean;
|
|
382
|
+
sessionId?: string;
|
|
383
|
+
source?: string;
|
|
384
|
+
}) => Promise<boolean>;
|
|
385
|
+
removeUsername: () => Promise<boolean>;
|
|
386
|
+
checkUsernameAvailability: (username: string, options?: {
|
|
387
|
+
sessionId?: string;
|
|
388
|
+
source?: string;
|
|
389
|
+
}) => Promise<{
|
|
390
|
+
available: boolean;
|
|
391
|
+
suggestions: any;
|
|
392
|
+
response: any;
|
|
393
|
+
}>;
|
|
394
|
+
setUsernamePin: (pin: string) => Promise<boolean>;
|
|
395
|
+
removeUsernamePin: () => Promise<boolean>;
|
|
396
|
+
updateTextStatus: (text: string, options?: {
|
|
397
|
+
ephemeralDurationSec?: number;
|
|
398
|
+
emoji?: string;
|
|
399
|
+
}) => Promise<any>;
|
|
400
|
+
fetchTextStatus: (jids: string | string[]) => Promise<any>;
|
|
401
|
+
fetchAbout: (jid: string) => Promise<{
|
|
402
|
+
jid: string;
|
|
403
|
+
status: any;
|
|
404
|
+
response: any;
|
|
405
|
+
}>;
|
|
406
|
+
fetchUserNotices: (since?: number) => Promise<{
|
|
407
|
+
id: string | undefined;
|
|
408
|
+
stage: string | undefined;
|
|
409
|
+
t: string | undefined;
|
|
410
|
+
version: string | undefined;
|
|
411
|
+
type: string | undefined;
|
|
412
|
+
}[]>;
|
|
413
|
+
updateUserNoticeStage: (noticeId: string | number, stage: string | number) => Promise<void>;
|
|
414
|
+
fetchOptOutList: (options?: {
|
|
415
|
+
category?: string;
|
|
416
|
+
dhash?: string;
|
|
417
|
+
}) => Promise<{
|
|
418
|
+
[key: string]: string;
|
|
419
|
+
}[]>;
|
|
420
|
+
updateOptOut: (input: {
|
|
421
|
+
jid: string;
|
|
422
|
+
category: string;
|
|
423
|
+
action: string;
|
|
424
|
+
dhash?: string;
|
|
425
|
+
reason?: string;
|
|
426
|
+
entryPoint?: string;
|
|
427
|
+
signupId?: string;
|
|
428
|
+
duration?: number;
|
|
429
|
+
}) => Promise<void>;
|
|
430
|
+
fetchPushSettings: () => Promise<{
|
|
431
|
+
[key: string]: string;
|
|
432
|
+
}>;
|
|
433
|
+
fetchServerLinkPreview: (url: string) => Promise<any>;
|
|
434
|
+
reportSpam: (jid: string, options?: import("../Types").SpamReportOptions) => Promise<{
|
|
435
|
+
jid: string | undefined;
|
|
436
|
+
flow: string | undefined;
|
|
437
|
+
reported: boolean;
|
|
438
|
+
node: BinaryNode;
|
|
439
|
+
}>;
|
|
157
440
|
type: "md";
|
|
158
441
|
ws: import("./Client/websocket.js").WebSocketClient;
|
|
159
|
-
ev: import("../Types
|
|
160
|
-
process(handler: (events: Partial<import("../Types
|
|
442
|
+
ev: import("../Types").BaileysEventEmitter & {
|
|
443
|
+
process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
161
444
|
buffer(): void;
|
|
162
445
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
163
446
|
flush(): boolean;
|
|
@@ -165,11 +448,11 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
165
448
|
destroy(): void;
|
|
166
449
|
};
|
|
167
450
|
authState: {
|
|
168
|
-
creds: import("../Types
|
|
169
|
-
keys: import("../Types
|
|
451
|
+
creds: import("../Types").AuthenticationCreds;
|
|
452
|
+
keys: import("../Types").SignalKeyStoreWithTransaction;
|
|
170
453
|
};
|
|
171
|
-
signalRepository: import("../Types
|
|
172
|
-
user: import("../Types
|
|
454
|
+
signalRepository: import("../Types").SignalRepositoryWithLIDStore;
|
|
455
|
+
user: import("../Types").Contact | undefined;
|
|
173
456
|
generateMessageTag: () => string;
|
|
174
457
|
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
175
458
|
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
@@ -185,17 +468,30 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
|
|
|
185
468
|
digestKeyBundle: () => Promise<void>;
|
|
186
469
|
rotateSignedPreKey: () => Promise<void>;
|
|
187
470
|
requestPairingCode: (phoneNumber: string, customPairingCode?: string | null) => Promise<string>;
|
|
471
|
+
cancelPairingCode: () => boolean;
|
|
188
472
|
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
189
473
|
sendUnifiedSession: () => Promise<void>;
|
|
190
474
|
wamBuffer: import("../index.js").BinaryInfo;
|
|
191
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types
|
|
475
|
+
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
192
476
|
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
193
|
-
executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../WAUSync
|
|
477
|
+
executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../WAUSync").USyncQueryResult | undefined>;
|
|
194
478
|
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
195
479
|
jid: string;
|
|
196
480
|
exists: boolean;
|
|
197
481
|
}[] | undefined>;
|
|
198
|
-
|
|
199
|
-
|
|
482
|
+
onWhatsAppUsername: (...usernames: Array<string | {
|
|
483
|
+
username?: string;
|
|
484
|
+
pin?: string;
|
|
485
|
+
usernameKey?: string;
|
|
486
|
+
}>) => Promise<{
|
|
487
|
+
jid: string;
|
|
488
|
+
exists: boolean;
|
|
489
|
+
}[]>;
|
|
490
|
+
getUsernames: (...jids: string[]) => Promise<{
|
|
491
|
+
jid: string;
|
|
492
|
+
username: unknown;
|
|
493
|
+
}[]>;
|
|
494
|
+
fetchAccountReachoutTimelock: () => Promise<import("../Types").ReachoutTimelockState>;
|
|
495
|
+
fetchNewChatMessageCap: () => Promise<import("../Types").NewChatMessageCapInfo>;
|
|
200
496
|
};
|
|
201
497
|
//# sourceMappingURL=messages-send.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-send.d.ts","sourceRoot":"","sources":["../../src/Socket/messages-send.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAE9C,OAAO,KAAK,EACX,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,MAAM,UAAU,CAAA;AACjB,OAAO,
|
|
1
|
+
{"version":3,"file":"messages-send.d.ts","sourceRoot":"","sources":["../../src/Socket/messages-send.ts"],"names":[],"mappings":"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"}
|