@awangxcode/qiro-baileys 7.1.1 → 7.1.3
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/README.md +298 -111
- package/lib/Defaults/index.d.ts +8 -8
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Extensions/advanced.d.ts +1 -1
- package/lib/Extensions/experimental.d.ts +4 -4
- package/lib/Extensions/experimental.d.ts.map +1 -1
- package/lib/MessageBuilder/index.d.ts +5 -5
- package/lib/Signal/Group/group-session-builder.d.ts +3 -3
- package/lib/Signal/Group/group_cipher.d.ts +2 -2
- package/lib/Signal/Group/index.d.ts +11 -11
- package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-record.d.ts +1 -1
- package/lib/Signal/Group/sender-key-state.d.ts +2 -2
- package/lib/Signal/libsignal.d.ts +3 -3
- package/lib/Signal/lid-mapping.d.ts +2 -2
- package/lib/Socket/Client/index.d.ts +2 -2
- package/lib/Socket/Client/types.d.ts +1 -1
- package/lib/Socket/Client/websocket.d.ts +1 -1
- package/lib/Socket/business.d.ts +79 -79
- package/lib/Socket/business.d.ts.map +1 -1
- package/lib/Socket/chats.d.ts +16 -16
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/communities.d.ts +59 -59
- package/lib/Socket/communities.d.ts.map +1 -1
- package/lib/Socket/groups.d.ts +28 -28
- package/lib/Socket/groups.d.ts.map +1 -1
- package/lib/Socket/index.d.ts +99 -99
- package/lib/Socket/index.d.ts.map +1 -1
- package/lib/Socket/messages-recv.d.ts +42 -43
- package/lib/Socket/messages-recv.d.ts.map +1 -1
- package/lib/Socket/messages-send.d.ts +45 -46
- package/lib/Socket/messages-send.d.ts.map +1 -1
- package/lib/Socket/mex.d.ts +1 -1
- package/lib/Socket/newsletter.d.ts +34 -34
- package/lib/Socket/newsletter.d.ts.map +1 -1
- package/lib/Socket/socket.d.ts +11 -11
- package/lib/Socket/socket.js +1 -1
- package/lib/Types/Auth.d.ts +2 -2
- package/lib/Types/Chat.d.ts +6 -6
- package/lib/Types/Events.d.ts +9 -9
- package/lib/Types/GroupMetadata.d.ts +2 -2
- package/lib/Types/Message.d.ts +5 -5
- package/lib/Types/Product.d.ts +1 -1
- package/lib/Types/Signal.d.ts +1 -1
- package/lib/Types/Socket.d.ts +5 -5
- package/lib/Types/State.d.ts +1 -1
- package/lib/Types/USync.d.ts +2 -2
- package/lib/Types/index.d.ts +14 -14
- package/lib/Utils/auth-utils.d.ts +2 -2
- package/lib/Utils/browser-utils.d.ts +1 -1
- package/lib/Utils/business.d.ts +3 -3
- package/lib/Utils/chat-utils.d.ts +7 -7
- package/lib/Utils/chat-utils.d.ts.map +1 -1
- package/lib/Utils/companion-reg-client-utils.d.ts +3 -3
- package/lib/Utils/crypto.d.ts +15 -15
- package/lib/Utils/crypto.d.ts.map +1 -1
- package/lib/Utils/decode-wa-message.d.ts +4 -4
- package/lib/Utils/event-buffer.d.ts +2 -2
- package/lib/Utils/generics.d.ts +5 -5
- package/lib/Utils/generics.d.ts.map +1 -1
- package/lib/Utils/history.d.ts +1 -1
- package/lib/Utils/identity-change-handler.d.ts +2 -2
- package/lib/Utils/index.d.ts +21 -21
- package/lib/Utils/link-preview.d.ts +2 -2
- package/lib/Utils/logger.d.ts +1 -1
- package/lib/Utils/lt-hash.d.ts +1 -2
- package/lib/Utils/lt-hash.d.ts.map +1 -1
- package/lib/Utils/message-retry-manager.d.ts +1 -1
- package/lib/Utils/messages-media.d.ts +25 -25
- package/lib/Utils/messages-media.d.ts.map +1 -1
- package/lib/Utils/messages.d.ts +11 -12
- package/lib/Utils/messages.d.ts.map +1 -1
- package/lib/Utils/newsletter-auto-follow.d.ts.map +1 -1
- package/lib/Utils/newsletter-auto-follow.js +3 -3
- package/lib/Utils/newsletter-auto-follow.js.map +1 -1
- package/lib/Utils/noise-handler.d.ts +4 -4
- package/lib/Utils/offline-node-processor.d.ts +1 -1
- package/lib/Utils/pre-key-manager.d.ts +2 -2
- package/lib/Utils/process-message.d.ts +2 -2
- package/lib/Utils/reporting-utils.d.ts +2 -2
- package/lib/Utils/self-updater.d.ts +0 -1
- package/lib/Utils/self-updater.js +0 -1
- package/lib/Utils/signal.d.ts +7 -7
- package/lib/Utils/stanza-ack.d.ts +1 -1
- package/lib/Utils/sync-action-utils.d.ts +2 -2
- package/lib/Utils/tc-token-utils.d.ts +2 -2
- package/lib/Utils/use-multi-file-auth-state.d.ts +1 -1
- package/lib/Utils/validate-connection.d.ts +3 -3
- package/lib/Utils/validate-connection.d.ts.map +1 -1
- package/lib/WABinary/decode.d.ts +2 -2
- package/lib/WABinary/decode.d.ts.map +1 -1
- package/lib/WABinary/encode.d.ts +1 -1
- package/lib/WABinary/generic-utils.d.ts +3 -3
- package/lib/WABinary/generic-utils.d.ts.map +1 -1
- package/lib/WABinary/index.d.ts +5 -5
- package/lib/WABinary/types.d.ts +1 -1
- package/lib/WAM/BinaryInfo.d.ts +1 -1
- package/lib/WAM/encode.d.ts +2 -2
- package/lib/WAM/encode.d.ts.map +1 -1
- package/lib/WAM/index.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/index.d.ts +5 -5
- package/lib/WAUSync/USyncQuery.d.ts +3 -3
- package/lib/WAUSync/index.d.ts +3 -3
- package/lib/index.d.ts +10 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/Utils/self-updater.d.ts.map +0 -1
- package/lib/Utils/self-updater.js.map +0 -1
package/lib/Socket/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { UserFacingSocketConfig } from '../Types
|
|
1
|
+
import type { UserFacingSocketConfig } from '../Types';
|
|
2
2
|
declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
3
|
-
communityMetadata: (jid: string) => Promise<import("
|
|
4
|
-
communityCreate: (subject: string, body: string) => Promise<import("
|
|
5
|
-
communityCreateGroup: (subject: string, participants: string[], parentCommunityJid: string) => Promise<import("
|
|
3
|
+
communityMetadata: (jid: string) => Promise<import("..").GroupMetadata>;
|
|
4
|
+
communityCreate: (subject: string, body: string) => Promise<import("..").GroupMetadata | null>;
|
|
5
|
+
communityCreateGroup: (subject: string, participants: string[], parentCommunityJid: string) => Promise<import("..").GroupMetadata | null>;
|
|
6
6
|
communityLeave: (id: string) => Promise<void>;
|
|
7
7
|
communityUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
8
8
|
communityLinkGroup: (groupJid: string, parentCommunityJid: string) => Promise<void>;
|
|
@@ -25,83 +25,83 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
25
25
|
status: string;
|
|
26
26
|
jid: string | undefined;
|
|
27
27
|
}[]>;
|
|
28
|
-
communityParticipantsUpdate: (jid: string, participants: string[], action: import("
|
|
28
|
+
communityParticipantsUpdate: (jid: string, participants: string[], action: import("..").ParticipantAction) => Promise<{
|
|
29
29
|
status: string;
|
|
30
30
|
jid: string | undefined;
|
|
31
|
-
content: import("
|
|
31
|
+
content: import("..").BinaryNode;
|
|
32
32
|
}[]>;
|
|
33
33
|
communityUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
34
34
|
communityInviteCode: (jid: string) => Promise<string | undefined>;
|
|
35
35
|
communityRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
36
36
|
communityAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
37
37
|
communityRevokeInviteV4: (communityJid: string, invitedJid: string) => Promise<boolean>;
|
|
38
|
-
communityAcceptInviteV4: (key: string | import("
|
|
39
|
-
communityGetInviteInfo: (code: string) => Promise<import("
|
|
38
|
+
communityAcceptInviteV4: (key: string | import("..").WAMessageKey, inviteMessage: import("..").proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
39
|
+
communityGetInviteInfo: (code: string) => Promise<import("..").GroupMetadata>;
|
|
40
40
|
communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
41
41
|
communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
42
42
|
communityMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
43
43
|
communityJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
44
44
|
communityFetchAllParticipating: () => Promise<{
|
|
45
|
-
[_: string]: import("
|
|
45
|
+
[_: string]: import("..").GroupMetadata;
|
|
46
46
|
}>;
|
|
47
|
-
logger: import("../Utils/logger
|
|
48
|
-
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("
|
|
49
|
-
getCatalog: ({ jid, limit, cursor }: import("
|
|
50
|
-
products: import("
|
|
51
|
-
nextPageCursor:
|
|
47
|
+
logger: import("../Utils/logger").ILogger;
|
|
48
|
+
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("..").OrderDetails>;
|
|
49
|
+
getCatalog: ({ jid, limit, cursor }: import("..").GetCatalogOptions) => Promise<{
|
|
50
|
+
products: import("..").Product[];
|
|
51
|
+
nextPageCursor: any;
|
|
52
52
|
}>;
|
|
53
53
|
getCollections: (jid?: string, limit?: number) => Promise<{
|
|
54
|
-
collections: import("
|
|
54
|
+
collections: import("..").CatalogCollection[];
|
|
55
55
|
}>;
|
|
56
|
-
productCreate: (create: import("
|
|
56
|
+
productCreate: (create: import("..").ProductCreate) => Promise<import("..").Product>;
|
|
57
57
|
productDelete: (productIds: string[]) => Promise<{
|
|
58
58
|
deleted: number;
|
|
59
59
|
}>;
|
|
60
|
-
productUpdate: (productId: string, update: import("
|
|
61
|
-
updateBussinesProfile: (args: import("../Types/Bussines
|
|
62
|
-
updateCoverPhoto: (photo: import("
|
|
60
|
+
productUpdate: (productId: string, update: import("..").ProductUpdate) => Promise<import("..").Product>;
|
|
61
|
+
updateBussinesProfile: (args: import("../Types/Bussines").UpdateBussinesProfileProps) => Promise<any>;
|
|
62
|
+
updateCoverPhoto: (photo: import("..").WAMediaUpload) => Promise<number>;
|
|
63
63
|
removeCoverPhoto: (id: string) => Promise<any>;
|
|
64
|
-
sendMessageAck: (node: import("
|
|
65
|
-
sendRetryRequest: (node: import("
|
|
64
|
+
sendMessageAck: (node: import("..").BinaryNode, errorCode?: number) => Promise<void>;
|
|
65
|
+
sendRetryRequest: (node: import("..").BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
|
66
66
|
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
|
67
|
-
fetchMessageHistory: (count: number, oldestMsgKey: import("
|
|
68
|
-
requestPlaceholderResend: (messageKey: import("
|
|
69
|
-
messageRetryManager: import("
|
|
70
|
-
userDevicesCache:
|
|
67
|
+
fetchMessageHistory: (count: number, oldestMsgKey: import("..").WAMessageKey, oldestMsgTimestamp: number | Long) => Promise<string>;
|
|
68
|
+
requestPlaceholderResend: (messageKey: import("..").WAMessageKey, msgData?: Partial<import("..").WAMessage>) => Promise<string | undefined>;
|
|
69
|
+
messageRetryManager: import("..").MessageRetryManager | null;
|
|
70
|
+
userDevicesCache: any;
|
|
71
71
|
devicesMutex: {
|
|
72
72
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
73
73
|
};
|
|
74
74
|
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
75
75
|
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
76
|
-
relayMessage: (jid: string, message: import("
|
|
77
|
-
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("
|
|
78
|
-
sendReceipts: (keys: import("
|
|
79
|
-
readMessages: (keys: import("
|
|
80
|
-
refreshMediaConn: (forceGet?: boolean) => Promise<import("
|
|
76
|
+
relayMessage: (jid: string, message: import("..").proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, mediaType: mediaTypeOverride, messageType: messageTypeOverride, isSecret, protected: protectedDelivery, me: meOnly }: import("..").MessageRelayOptions) => Promise<string>;
|
|
77
|
+
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("..").MessageReceiptType) => Promise<void>;
|
|
78
|
+
sendReceipts: (keys: import("..").WAMessageKey[], type: import("..").MessageReceiptType) => Promise<void>;
|
|
79
|
+
readMessages: (keys: import("..").WAMessageKey[]) => Promise<void>;
|
|
80
|
+
refreshMediaConn: (forceGet?: boolean) => Promise<import("..").MediaConnInfo>;
|
|
81
81
|
getMediaHost: () => string;
|
|
82
|
-
waUploadToServer: import("
|
|
83
|
-
outboundResendCache: import("
|
|
82
|
+
waUploadToServer: import("..").WAMediaUploadFunction;
|
|
83
|
+
outboundResendCache: import("..").CacheStore | import("../Utils/ttl-cache").TTLCache<{
|
|
84
84
|
jid: string;
|
|
85
|
-
message: import("
|
|
85
|
+
message: import("..").proto.IMessage;
|
|
86
86
|
}>;
|
|
87
|
-
sendHD: (jid: string, content: any, options?: any) => Promise<import("
|
|
88
|
-
sendImgVid: (jid: string, content: any, options?: any) => Promise<import("
|
|
89
|
-
sendStAudioMessage: (jid: string, content: any, options?: any) => Promise<import("
|
|
90
|
-
setThemeGroup: (jid: string, content: any, options?: any) => Promise<import("
|
|
87
|
+
sendHD: (jid: string, content: any, options?: any) => Promise<import("..").WAMessage>;
|
|
88
|
+
sendImgVid: (jid: string, content: any, options?: any) => Promise<import("..").WAMessage>;
|
|
89
|
+
sendStAudioMessage: (jid: string, content: any, options?: any) => Promise<import("..").WAMessage>;
|
|
90
|
+
setThemeGroup: (jid: string, content: any, options?: any) => Promise<import("..").WAMessage | import("../Utils/chat-theme").ChatThemeCatalog | undefined>;
|
|
91
91
|
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
92
92
|
[_: string]: string;
|
|
93
93
|
}>;
|
|
94
|
-
sendPeerDataOperationMessage: (pdoMessage: import("
|
|
95
|
-
createParticipantNodes: (recipientJids: string[], message: import("
|
|
96
|
-
nodes: import("
|
|
94
|
+
sendPeerDataOperationMessage: (pdoMessage: import("..").proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
95
|
+
createParticipantNodes: (recipientJids: string[], message: import("..").proto.IMessage, extraAttrs?: import("..").BinaryNode["attrs"], dsmMessage?: import("..").proto.IMessage) => Promise<{
|
|
96
|
+
nodes: import("..").BinaryNode[];
|
|
97
97
|
shouldIncludeDeviceIdentity: boolean;
|
|
98
98
|
}>;
|
|
99
|
-
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("
|
|
99
|
+
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("..").JidWithDevice & {
|
|
100
100
|
jid: string;
|
|
101
101
|
})[]>;
|
|
102
102
|
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
103
|
-
updateMediaMessage: (message: import("
|
|
104
|
-
sendMessage: (jid: string, content: import("
|
|
103
|
+
updateMediaMessage: (message: import("..").WAMessage) => Promise<import("..").WAMessage>;
|
|
104
|
+
sendMessage: (jid: string, content: import("..").AnyMessageContent, options?: import("..").MiscMessageGenerationOptions) => Promise<import("..").WAMessage | undefined>;
|
|
105
105
|
newsletterUpdateUserSetting: (jid: string, type: "FOLLOWER_NOTIFICATIONS" | "ADMIN_NOTIFICATIONS", muted: boolean) => Promise<{
|
|
106
106
|
id: any;
|
|
107
107
|
state: any;
|
|
@@ -192,11 +192,11 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
192
192
|
} | undefined;
|
|
193
193
|
}[];
|
|
194
194
|
}[]>;
|
|
195
|
-
sendNewsletterStatus: (jid: string, content: any, options?: import("../Utils/newsletter-status
|
|
196
|
-
sendNewsletterStatusReaction: (jid: string, parentServerId: string | number, reaction: string, options?: Pick<import("../Utils/newsletter-status
|
|
197
|
-
revokeNewsletterStatus: (jid: string, statusId: string, options?: Pick<import("../Utils/newsletter-status
|
|
198
|
-
getNewsletterStatuses: (jid: string, options?: import("../Utils/newsletter-status
|
|
199
|
-
getNewsletterStatusUpdates: (jid: string, options?: import("../Utils/newsletter-status
|
|
195
|
+
sendNewsletterStatus: (jid: string, content: any, options?: import("../Utils/newsletter-status").NewsletterStatusSendOptions) => Promise<import("../Utils/newsletter-status").NewsletterStatusSendResult>;
|
|
196
|
+
sendNewsletterStatusReaction: (jid: string, parentServerId: string | number, reaction: string, options?: Pick<import("../Utils/newsletter-status").NewsletterStatusSendOptions, "messageId" | "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status").NewsletterStatusStanzaResult>;
|
|
197
|
+
revokeNewsletterStatus: (jid: string, statusId: string, options?: Pick<import("../Utils/newsletter-status").NewsletterStatusSendOptions, "ackTimeoutMs">) => Promise<import("../Utils/newsletter-status").NewsletterStatusStanzaResult>;
|
|
198
|
+
getNewsletterStatuses: (jid: string, options?: import("../Utils/newsletter-status").NewsletterStatusFetchOptions) => Promise<import("../Utils/newsletter-status").NewsletterStatusList>;
|
|
199
|
+
getNewsletterStatusUpdates: (jid: string, options?: import("../Utils/newsletter-status").NewsletterStatusUpdatesFetchOptions) => Promise<import("../Utils/newsletter-status").NewsletterStatusList>;
|
|
200
200
|
newsletterCanPostStatus: (jid: string) => Promise<{
|
|
201
201
|
canPost: boolean;
|
|
202
202
|
canPostMusic: boolean;
|
|
@@ -236,19 +236,19 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
236
236
|
newsletterRecommended: (options?: any) => Promise<any>;
|
|
237
237
|
newsletterSimilar: (jid: string, options?: any) => Promise<any>;
|
|
238
238
|
newsletterFollowers: (jid: string, options?: any) => Promise<any>;
|
|
239
|
-
newsletterCreate: (name: string, description?: string) => Promise<import("
|
|
240
|
-
newsletterUpdate: (jid: string, updates: import("
|
|
239
|
+
newsletterCreate: (name: string, description?: string) => Promise<import("..").NewsletterMetadata>;
|
|
240
|
+
newsletterUpdate: (jid: string, updates: import("..").NewsletterUpdate) => Promise<unknown>;
|
|
241
241
|
newsletterSubscribers: (jid: string) => Promise<{
|
|
242
242
|
subscribers: number;
|
|
243
243
|
}>;
|
|
244
|
-
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("
|
|
244
|
+
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("..").NewsletterMetadata | null>;
|
|
245
245
|
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
246
246
|
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
247
247
|
newsletterMute: (jid: string) => Promise<unknown>;
|
|
248
248
|
newsletterUnmute: (jid: string) => Promise<unknown>;
|
|
249
249
|
newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
|
|
250
250
|
newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
|
|
251
|
-
newsletterUpdatePicture: (jid: string, content: import("
|
|
251
|
+
newsletterUpdatePicture: (jid: string, content: import("..").WAMediaUpload) => Promise<unknown>;
|
|
252
252
|
newsletterRemovePicture: (jid: string) => Promise<unknown>;
|
|
253
253
|
newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
|
|
254
254
|
newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
|
|
@@ -293,8 +293,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
293
293
|
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
294
294
|
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
295
295
|
newsletterDelete: (jid: string) => Promise<void>;
|
|
296
|
-
groupMetadata: (jid: string) => Promise<import("
|
|
297
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("
|
|
296
|
+
groupMetadata: (jid: string) => Promise<import("..").GroupMetadata>;
|
|
297
|
+
groupCreate: (subject: string, participants: string[]) => Promise<import("..").GroupMetadata>;
|
|
298
298
|
groupLeave: (id: string) => Promise<void>;
|
|
299
299
|
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
300
300
|
groupRequestParticipantsList: (jid: string) => Promise<{
|
|
@@ -304,24 +304,24 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
304
304
|
status: string;
|
|
305
305
|
jid: string | undefined;
|
|
306
306
|
}[]>;
|
|
307
|
-
groupParticipantsUpdate: (jid: string, participants: string[], action: import("
|
|
307
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: import("..").ParticipantAction) => Promise<{
|
|
308
308
|
status: string;
|
|
309
309
|
jid: string | undefined;
|
|
310
|
-
content: import("
|
|
310
|
+
content: import("..").BinaryNode;
|
|
311
311
|
}[]>;
|
|
312
312
|
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
313
313
|
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
|
314
314
|
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
315
315
|
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
316
316
|
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
317
|
-
groupAcceptInviteV4: (key: string | import("
|
|
318
|
-
groupGetInviteInfo: (code: string) => Promise<import("
|
|
317
|
+
groupAcceptInviteV4: (key: string | import("..").WAMessageKey, inviteMessage: import("..").proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
318
|
+
groupGetInviteInfo: (code: string) => Promise<import("..").GroupMetadata>;
|
|
319
319
|
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
320
320
|
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
321
321
|
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
322
322
|
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
323
323
|
groupFetchAllParticipating: () => Promise<{
|
|
324
|
-
[_: string]: import("
|
|
324
|
+
[_: string]: import("..").GroupMetadata;
|
|
325
325
|
}>;
|
|
326
326
|
serverProps: {
|
|
327
327
|
privacyTokenOn1to1: boolean;
|
|
@@ -359,7 +359,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
359
359
|
createCallLink: (type: "audio" | "video", event?: {
|
|
360
360
|
startTime: number;
|
|
361
361
|
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
362
|
-
getBotListV2: () => Promise<import("
|
|
362
|
+
getBotListV2: () => Promise<import("..").BotListInfo[]>;
|
|
363
363
|
messageMutex: {
|
|
364
364
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
365
365
|
};
|
|
@@ -372,15 +372,15 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
372
372
|
notificationMutex: {
|
|
373
373
|
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
374
374
|
};
|
|
375
|
-
upsertMessage: (msg: import("
|
|
376
|
-
appPatch: (patchCreate: import("
|
|
377
|
-
sendPresenceUpdate: (type: import("
|
|
375
|
+
upsertMessage: (msg: import("..").WAMessage, type: import("..").MessageUpsertType) => Promise<void>;
|
|
376
|
+
appPatch: (patchCreate: import("..").WAPatchCreate) => Promise<void>;
|
|
377
|
+
sendPresenceUpdate: (type: import("..").WAPresence, toJid?: string) => Promise<void>;
|
|
378
378
|
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
379
379
|
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
380
380
|
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
381
|
-
fetchStatus: (...jids: string[]) => Promise<import("
|
|
382
|
-
fetchDisappearingDuration: (...jids: string[]) => Promise<import("
|
|
383
|
-
updateProfilePicture: (jid: string, content: import("
|
|
381
|
+
fetchStatus: (...jids: string[]) => Promise<import("..").USyncQueryResultList[] | undefined>;
|
|
382
|
+
fetchDisappearingDuration: (...jids: string[]) => Promise<import("..").USyncQueryResultList[] | undefined>;
|
|
383
|
+
updateProfilePicture: (jid: string, content: import("..").WAMediaUpload, dimensions?: {
|
|
384
384
|
width?: number;
|
|
385
385
|
height?: number;
|
|
386
386
|
full?: boolean;
|
|
@@ -391,23 +391,23 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
391
391
|
updateProfileName: (name: string) => Promise<void>;
|
|
392
392
|
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
393
393
|
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
394
|
-
updateCallPrivacy: (value: import("
|
|
395
|
-
updateMessagesPrivacy: (value: import("
|
|
396
|
-
updateLastSeenPrivacy: (value: import("
|
|
397
|
-
updateOnlinePrivacy: (value: import("
|
|
398
|
-
updateProfilePicturePrivacy: (value: import("
|
|
399
|
-
updateStatusPrivacy: (value: import("
|
|
400
|
-
updateReadReceiptsPrivacy: (value: import("
|
|
401
|
-
updateGroupsAddPrivacy: (value: import("
|
|
394
|
+
updateCallPrivacy: (value: import("..").WAPrivacyCallValue) => Promise<void>;
|
|
395
|
+
updateMessagesPrivacy: (value: import("..").WAPrivacyMessagesValue) => Promise<void>;
|
|
396
|
+
updateLastSeenPrivacy: (value: import("..").WAPrivacyValue) => Promise<void>;
|
|
397
|
+
updateOnlinePrivacy: (value: import("..").WAPrivacyOnlineValue) => Promise<void>;
|
|
398
|
+
updateProfilePicturePrivacy: (value: import("..").WAPrivacyValue) => Promise<void>;
|
|
399
|
+
updateStatusPrivacy: (value: import("..").WAPrivacyValue) => Promise<void>;
|
|
400
|
+
updateReadReceiptsPrivacy: (value: import("..").WAReadReceiptsValue) => Promise<void>;
|
|
401
|
+
updateGroupsAddPrivacy: (value: import("..").WAPrivacyGroupAddValue) => Promise<void>;
|
|
402
402
|
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
403
|
-
getBusinessProfile: (jid: string) => Promise<import("
|
|
403
|
+
getBusinessProfile: (jid: string) => Promise<import("..").WABusinessProfile | void>;
|
|
404
404
|
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
405
|
-
chatModify: (mod: import("
|
|
405
|
+
chatModify: (mod: import("..").ChatModification, jid: string) => Promise<void>;
|
|
406
406
|
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
407
|
-
addOrEditContact: (jid: string, contact: import("
|
|
407
|
+
addOrEditContact: (jid: string, contact: import("..").proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
408
408
|
removeContact: (jid: string) => Promise<void>;
|
|
409
|
-
placeholderResendCache: import("
|
|
410
|
-
addLabel: (jid: string, labels: import("../Types/Label
|
|
409
|
+
placeholderResendCache: import("..").CacheStore;
|
|
410
|
+
addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
|
|
411
411
|
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
412
412
|
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
413
413
|
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
@@ -416,7 +416,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
416
416
|
id: string;
|
|
417
417
|
fromMe?: boolean;
|
|
418
418
|
}[], star: boolean) => Promise<void>;
|
|
419
|
-
addOrEditQuickReply: (quickReply: import("../Types/Bussines
|
|
419
|
+
addOrEditQuickReply: (quickReply: import("../Types/Bussines").QuickReplyAction) => Promise<void>;
|
|
420
420
|
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
421
421
|
getUsername: () => Promise<{
|
|
422
422
|
username: any;
|
|
@@ -477,16 +477,16 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
477
477
|
[key: string]: string;
|
|
478
478
|
}>;
|
|
479
479
|
fetchServerLinkPreview: (url: string) => Promise<any>;
|
|
480
|
-
reportSpam: (jid: string, options?: import("
|
|
480
|
+
reportSpam: (jid: string, options?: import("..").SpamReportOptions) => Promise<{
|
|
481
481
|
jid: string | undefined;
|
|
482
482
|
flow: string | undefined;
|
|
483
483
|
reported: boolean;
|
|
484
|
-
node: import("
|
|
484
|
+
node: import("..").BinaryNode;
|
|
485
485
|
}>;
|
|
486
486
|
type: "md";
|
|
487
|
-
ws: import("./Client
|
|
488
|
-
ev: import("
|
|
489
|
-
process(handler: (events: Partial<import("
|
|
487
|
+
ws: import("./Client").WebSocketClient;
|
|
488
|
+
ev: import("..").BaileysEventEmitter & {
|
|
489
|
+
process(handler: (events: Partial<import("..").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
490
490
|
buffer(): void;
|
|
491
491
|
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
492
492
|
flush(): boolean;
|
|
@@ -494,35 +494,35 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
494
494
|
destroy(): void;
|
|
495
495
|
};
|
|
496
496
|
authState: {
|
|
497
|
-
creds: import("
|
|
498
|
-
keys: import("
|
|
497
|
+
creds: import("..").AuthenticationCreds;
|
|
498
|
+
keys: import("..").SignalKeyStoreWithTransaction;
|
|
499
499
|
};
|
|
500
|
-
signalRepository: import("
|
|
501
|
-
user: import("
|
|
500
|
+
signalRepository: import("..").SignalRepositoryWithLIDStore;
|
|
501
|
+
user: import("..").Contact | undefined;
|
|
502
502
|
generateMessageTag: () => string;
|
|
503
|
-
query: (node: import("
|
|
503
|
+
query: (node: import("..").BinaryNode, timeoutMs?: number, options?: {
|
|
504
504
|
suppressTimeoutLog?: boolean;
|
|
505
505
|
}) => Promise<any>;
|
|
506
506
|
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined, suppressTimeoutLog?: boolean) => Promise<T | undefined>;
|
|
507
507
|
waitForSocketOpen: () => Promise<void>;
|
|
508
508
|
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
|
509
|
-
sendNode: (frame: import("
|
|
509
|
+
sendNode: (frame: import("..").BinaryNode) => Promise<void>;
|
|
510
510
|
logout: (msg?: string) => Promise<void>;
|
|
511
511
|
end: (error: Error | undefined) => Promise<void>;
|
|
512
512
|
registerSocketEndHandler: (handler: (error: Error | undefined) => void | Promise<void>) => void;
|
|
513
|
-
onUnexpectedError: (err: Error |
|
|
513
|
+
onUnexpectedError: (err: Error | Boom, msg: string) => void;
|
|
514
514
|
uploadPreKeys: (count?: number) => Promise<void>;
|
|
515
515
|
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
516
516
|
digestKeyBundle: () => Promise<void>;
|
|
517
517
|
rotateSignedPreKey: () => Promise<void>;
|
|
518
518
|
requestPairingCode: (phoneNumber: string, customPairingCode?: string | null) => Promise<string>;
|
|
519
519
|
cancelPairingCode: () => boolean;
|
|
520
|
-
updateServerTimeOffset: ({ attrs }: import("
|
|
520
|
+
updateServerTimeOffset: ({ attrs }: import("..").BinaryNode) => void;
|
|
521
521
|
sendUnifiedSession: () => Promise<void>;
|
|
522
|
-
wamBuffer: import("
|
|
523
|
-
waitForConnectionUpdate: (check: (u: Partial<import("
|
|
522
|
+
wamBuffer: import("..").BinaryInfo;
|
|
523
|
+
waitForConnectionUpdate: (check: (u: Partial<import("..").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
524
524
|
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
525
|
-
executeUSyncQuery: (usyncQuery: import("
|
|
525
|
+
executeUSyncQuery: (usyncQuery: import("..").USyncQuery) => Promise<import("..").USyncQueryResult | undefined>;
|
|
526
526
|
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
527
527
|
jid: string;
|
|
528
528
|
exists: boolean;
|
|
@@ -539,8 +539,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
|
|
|
539
539
|
jid: string;
|
|
540
540
|
username: unknown;
|
|
541
541
|
}[]>;
|
|
542
|
-
fetchAccountReachoutTimelock: () => Promise<import("
|
|
543
|
-
fetchNewChatMessageCap: () => Promise<import("
|
|
544
|
-
} & import("
|
|
542
|
+
fetchAccountReachoutTimelock: () => Promise<import("..").ReachoutTimelockState>;
|
|
543
|
+
fetchNewChatMessageCap: () => Promise<import("..").NewChatMessageCapInfo>;
|
|
544
|
+
} & import("..").AdvancedSocketMethods & import("..").ExperimentalSocketMethods;
|
|
545
545
|
export default makeWASocket;
|
|
546
546
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Socket/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAQtD,QAAA,MAAM,YAAY,GAAI,QAAQ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAmBs3J,CAAC;oBAAuB,CAAC;;;;eAAyqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAiiX,CAAC;WAAa,CAAC;;;;;;;;;;;;;;;;aAA8F,CAAC;WAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAryL,CAAC;gBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAuwT,CAAC;aAAe,CAAC;cAAgB,CAAC;aAAe,CAAC;;;;;;aAAo6B,CAAC;cAAgB,CAAC;cAAgB,CAAC;kBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAy2Q,CAAC;;;eAAx6pB,CAAC;;;;;;;;;;;;;;;;;kBAAyuC,CAAC;kBAAiB,CAAC;qBAAoB,CAAC;qBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAtrG,CAAC;cAAgB,CAAC;YAAc,CAAC;eAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA8hyB,CAAC;;;;;;;;;;gBAA6kX,CAAC;iBAAoB,CAAC;cAAgB,CAAC;;;;iBAAqhB,CAAC;cAAgB,CAAC;;;;;;;;;4BAA+gC,CAAC;aAAe,CAAC;;;;;;;;;;;;;;;;;gBAA84D,CAAC;aAAe,CAAC;;;;;;;;aAA6gB,CAAC;cAAgB,CAAC;kBAAoB,CAAC;gBAAkB,CAAC;gBAAkB,CAAC;;;;;;;;;;;;;;;;;0DAAjugD,GAAG,0BAA0B,GAAG;;;;;;;;;;;;;0BAAixI,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Socket/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAQtD,QAAA,MAAM,YAAY,GAAI,QAAQ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAmBs3J,CAAC;oBAAuB,CAAC;;;;eAAyqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAiiX,CAAC;WAAa,CAAC;;;;;;;;;;;;;;;;aAA8F,CAAC;WAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAryL,CAAC;gBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAuwT,CAAC;aAAe,CAAC;cAAgB,CAAC;aAAe,CAAC;;;;;;aAAo6B,CAAC;cAAgB,CAAC;cAAgB,CAAC;kBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAy2Q,CAAC;;;eAAx6pB,CAAC;;;;;;;;;;;;;;;;;kBAAyuC,CAAC;kBAAiB,CAAC;qBAAoB,CAAC;qBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAtrG,CAAC;cAAgB,CAAC;YAAc,CAAC;eAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA8hyB,CAAC;;;;;;;;;;gBAA6kX,CAAC;iBAAoB,CAAC;cAAgB,CAAC;;;;iBAAqhB,CAAC;cAAgB,CAAC;;;;;;;;;4BAA+gC,CAAC;aAAe,CAAC;;;;;;;;;;;;;;;;;gBAA84D,CAAC;aAAe,CAAC;;;;;;;;aAA6gB,CAAC;cAAgB,CAAC;kBAAoB,CAAC;gBAAkB,CAAC;gBAAkB,CAAC;;;;;;;;;;;;;;;;;0DAAjugD,GAAG,0BAA0B,GAAG;;;;;;;;;;;;;0BAAixI,CAAC;;;;wCAAjiE,MAAO;;;;;;;;;;;;;;;;+BAA4quB,MAAO;;;;;;;gBAAnljB,CAAC;WAAa,CAAC;mBAAqB,CAAC;;;;;;;;;;;+EAHnwQ,CAAA;AAED,eAAe,YAAY,CAAA"}
|