nrx-bails 0.0.1
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 +21 -0
- package/README.md +1541 -0
- package/WAProto/GenerateStatics.sh +4 -0
- package/WAProto/WAProto.proto +4775 -0
- package/WAProto/index.d.ts +2 -0
- package/WAProto/index.js +169661 -0
- package/lib/Defaults/index.d.ts +113 -0
- package/lib/Defaults/index.js +156 -0
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Defaults/ye-bail-version.json +3 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +10 -0
- package/lib/Signal/Group/ciphertext-message.js +41 -0
- package/lib/Signal/Group/group-session-builder.d.ts +8 -0
- package/lib/Signal/Group/group-session-builder.js +90 -0
- package/lib/Signal/Group/group_cipher.d.ts +12 -0
- package/lib/Signal/Group/group_cipher.js +122 -0
- package/lib/Signal/Group/index.d.ts +22 -0
- package/lib/Signal/Group/index.js +83 -0
- package/lib/Signal/Group/keyhelper.d.ts +7 -0
- package/lib/Signal/Group/keyhelper.js +81 -0
- package/lib/Signal/Group/queue-job.d.ts +3 -0
- package/lib/Signal/Group/queue-job.js +83 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
- package/lib/Signal/Group/sender-chain-key.js +60 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +92 -0
- package/lib/Signal/Group/sender-key-message.d.ts +19 -0
- package/lib/Signal/Group/sender-key-message.js +95 -0
- package/lib/Signal/Group/sender-key-name.d.ts +12 -0
- package/lib/Signal/Group/sender-key-name.js +77 -0
- package/lib/Signal/Group/sender-key-record.d.ts +13 -0
- package/lib/Signal/Group/sender-key-record.js +79 -0
- package/lib/Signal/Group/sender-key-state.d.ts +17 -0
- package/lib/Signal/Group/sender-key-state.js +125 -0
- package/lib/Signal/Group/sender-message-key.d.ts +12 -0
- package/lib/Signal/Group/sender-message-key.js +55 -0
- package/lib/Signal/libsignal.d.ts +37 -0
- package/lib/Signal/libsignal.js +200 -0
- package/lib/Socket/Client/index.d.ts +1 -0
- package/lib/Socket/Client/index.js +44 -0
- package/lib/Socket/Client/types.d.ts +7 -0
- package/lib/Socket/Client/types.js +39 -0
- package/lib/Socket/Client/websocket.d.ts +19 -0
- package/lib/Socket/Client/websocket.js +137 -0
- package/lib/Socket/business.d.ts +329 -0
- package/lib/Socket/business.js +286 -0
- package/lib/Socket/chats.d.ts +84 -0
- package/lib/Socket/chats.js +1022 -0
- package/lib/Socket/groups.d.ts +216 -0
- package/lib/Socket/groups.js +358 -0
- package/lib/Socket/index.d.ts +330 -0
- package/lib/Socket/index.js +36 -0
- package/lib/Socket/messages-recv.d.ts +271 -0
- package/lib/Socket/messages-recv.js +1079 -0
- package/lib/Socket/messages-send.d.ts +258 -0
- package/lib/Socket/messages-send.js +1190 -0
- package/lib/Socket/newsletter.d.ts +253 -0
- package/lib/Socket/newsletter.js +362 -0
- package/lib/Socket/registration.d.ts +361 -0
- package/lib/Socket/registration.js +179 -0
- package/lib/Socket/socket.d.ts +33 -0
- package/lib/Socket/socket.js +699 -0
- package/lib/Socket/usync.d.ts +27 -0
- package/lib/Socket/usync.js +96 -0
- package/lib/Store/index.d.ts +3 -0
- package/lib/Store/index.js +36 -0
- package/lib/Store/make-cache-manager-auth-state.d.ts +16 -0
- package/lib/Store/make-cache-manager-auth-state.js +118 -0
- package/lib/Store/make-in-memory-store.d.ts +64 -0
- package/lib/Store/make-in-memory-store.js +465 -0
- package/lib/Store/make-ordered-dictionary.d.ts +14 -0
- package/lib/Store/make-ordered-dictionary.js +107 -0
- package/lib/Store/object-repository.d.ts +11 -0
- package/lib/Store/object-repository.js +53 -0
- package/lib/Types/Auth.d.ts +1 -0
- package/lib/Types/Auth.js +28 -0
- package/lib/Types/Call.d.ts +1 -0
- package/lib/Types/Call.js +28 -0
- package/lib/Types/Chat.d.ts +2 -0
- package/lib/Types/Chat.js +30 -0
- package/lib/Types/Contact.d.ts +1 -0
- package/lib/Types/Contact.js +28 -0
- package/lib/Types/Events.d.ts +1 -0
- package/lib/Types/Events.js +28 -0
- package/lib/Types/GroupMetadata.d.ts +1 -0
- package/lib/Types/GroupMetadata.js +28 -0
- package/lib/Types/Label.d.ts +2 -0
- package/lib/Types/Label.js +53 -0
- package/lib/Types/LabelAssociation.d.ts +2 -0
- package/lib/Types/LabelAssociation.js +35 -0
- package/lib/Types/Message.d.ts +2 -0
- package/lib/Types/Message.js +33 -0
- package/lib/Types/Newsletter.d.ts +4 -0
- package/lib/Types/Newsletter.js +62 -0
- package/lib/Types/Product.d.ts +1 -0
- package/lib/Types/Product.js +28 -0
- package/lib/Types/Signal.d.ts +1 -0
- package/lib/Types/Signal.js +28 -0
- package/lib/Types/Socket.d.ts +1 -0
- package/lib/Types/Socket.js +28 -0
- package/lib/Types/State.d.ts +1 -0
- package/lib/Types/State.js +28 -0
- package/lib/Types/USync.d.ts +1 -0
- package/lib/Types/USync.js +28 -0
- package/lib/Types/index.d.ts +2 -0
- package/lib/Types/index.js +68 -0
- package/lib/Utils/auth-utils.d.ts +63 -0
- package/lib/Utils/auth-utils.js +248 -0
- package/lib/Utils/browser-utils.d.ts +3 -0
- package/lib/Utils/browser-utils.js +61 -0
- package/lib/Utils/business.d.ts +53 -0
- package/lib/Utils/business.js +260 -0
- package/lib/Utils/chat-utils.d.ts +253 -0
- package/lib/Utils/chat-utils.js +756 -0
- package/lib/Utils/crypto.d.ts +43 -0
- package/lib/Utils/crypto.js +219 -0
- package/lib/Utils/decode-wa-message.d.ts +61 -0
- package/lib/Utils/decode-wa-message.js +233 -0
- package/lib/Utils/event-buffer.d.ts +17 -0
- package/lib/Utils/event-buffer.js +544 -0
- package/lib/Utils/generics.d.ts +89 -0
- package/lib/Utils/generics.js +471 -0
- package/lib/Utils/history.d.ts +59 -0
- package/lib/Utils/history.js +120 -0
- package/lib/Utils/index.d.ts +1 -0
- package/lib/Utils/index.js +61 -0
- package/lib/Utils/link-preview.d.ts +19 -0
- package/lib/Utils/link-preview.js +152 -0
- package/lib/Utils/logger.d.ts +3 -0
- package/lib/Utils/logger.js +33 -0
- package/lib/Utils/lt-hash.d.ts +13 -0
- package/lib/Utils/lt-hash.js +77 -0
- package/lib/Utils/make-mutex.d.ts +7 -0
- package/lib/Utils/make-mutex.js +69 -0
- package/lib/Utils/message-retry-manager.d.ts +34 -0
- package/lib/Utils/message-retry-manager.js +154 -0
- package/lib/Utils/messages-media.d.ts +137 -0
- package/lib/Utils/messages-media.js +1024 -0
- package/lib/Utils/messages.d.ts +66 -0
- package/lib/Utils/messages.js +1407 -0
- package/lib/Utils/noise-handler.d.ts +21 -0
- package/lib/Utils/noise-handler.js +176 -0
- package/lib/Utils/pre-key-manager.d.ts +13 -0
- package/lib/Utils/pre-key-manager.js +93 -0
- package/lib/Utils/process-message.d.ts +40 -0
- package/lib/Utils/process-message.js +430 -0
- package/lib/Utils/signal.d.ts +72 -0
- package/lib/Utils/signal.js +179 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +18 -0
- package/lib/Utils/use-multi-file-auth-state.js +151 -0
- package/lib/Utils/validate-connection.d.ts +43 -0
- package/lib/Utils/validate-connection.js +255 -0
- package/lib/Utils/ye-bail-event-stream.d.ts +16 -0
- package/lib/Utils/ye-bail-event-stream.js +89 -0
- package/lib/WABinary/constants.d.ts +23 -0
- package/lib/WABinary/constants.js +1328 -0
- package/lib/WABinary/decode.d.ts +10 -0
- package/lib/WABinary/decode.js +291 -0
- package/lib/WABinary/encode.d.ts +2 -0
- package/lib/WABinary/encode.js +276 -0
- package/lib/WABinary/generic-utils.d.ts +16 -0
- package/lib/WABinary/generic-utils.js +155 -0
- package/lib/WABinary/index.d.ts +1 -0
- package/lib/WABinary/index.js +47 -0
- package/lib/WABinary/jid-utils.d.ts +34 -0
- package/lib/WABinary/jid-utils.js +111 -0
- package/lib/WABinary/types.d.ts +1 -0
- package/lib/WABinary/types.js +28 -0
- package/lib/WAM/BinaryInfo.d.ts +8 -0
- package/lib/WAM/BinaryInfo.js +39 -0
- package/lib/WAM/constants.d.ts +35374 -0
- package/lib/WAM/constants.js +15376 -0
- package/lib/WAM/encode.d.ts +2 -0
- package/lib/WAM/encode.js +181 -0
- package/lib/WAM/index.d.ts +1 -0
- package/lib/WAM/index.js +45 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +14 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +58 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +83 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +56 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +68 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +39 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +79 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +50 -0
- package/lib/WAUSync/Protocols/index.d.ts +1 -0
- package/lib/WAUSync/Protocols/index.js +46 -0
- package/lib/WAUSync/USyncQuery.d.ts +20 -0
- package/lib/WAUSync/USyncQuery.js +115 -0
- package/lib/WAUSync/USyncUser.d.ts +13 -0
- package/lib/WAUSync/USyncUser.js +52 -0
- package/lib/WAUSync/index.d.ts +1 -0
- package/lib/WAUSync/index.js +45 -0
- package/lib/index.js +81 -0
- package/package.json +113 -0
- package/requirements.js +32 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export function makeMessagesSocket(config: any): {
|
|
3
|
+
getPrivacyTokens: (jids: any) => Promise<any>;
|
|
4
|
+
assertSessions: (jids: any, force: any) => Promise<boolean>;
|
|
5
|
+
relayMessage: (jid: any, message: any, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: {
|
|
6
|
+
messageId: any;
|
|
7
|
+
participant: any;
|
|
8
|
+
additionalAttributes: any;
|
|
9
|
+
additionalNodes: any;
|
|
10
|
+
useUserDevicesCache: any;
|
|
11
|
+
useCachedGroupMetadata: any;
|
|
12
|
+
statusJidList: any;
|
|
13
|
+
}) => Promise<any>;
|
|
14
|
+
sendReceipt: (jid: any, participant: any, messageIds: any, type: any) => Promise<void>;
|
|
15
|
+
sendReceipts: (keys: any, type: any) => Promise<void>;
|
|
16
|
+
readMessages: (keys: any) => Promise<void>;
|
|
17
|
+
refreshMediaConn: (forceGet?: boolean) => Promise<any>;
|
|
18
|
+
waUploadToServer: any;
|
|
19
|
+
fetchPrivacySettings: (force?: boolean) => Promise<any>;
|
|
20
|
+
getUSyncDevices: (jids: any, useCache: any, ignoreZeroDevices: any) => Promise<any[]>;
|
|
21
|
+
createParticipantNodes: (jids: any, message: any, extraAttrs: any) => Promise<{
|
|
22
|
+
nodes: any[];
|
|
23
|
+
shouldIncludeDeviceIdentity: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
sendPeerDataOperationMessage: (pdoMessage: any) => Promise<any>;
|
|
26
|
+
updateMediaMessage: (message: any) => Promise<any>;
|
|
27
|
+
sendStatusMentions: (content: any, jids?: any[]) => Promise<any>;
|
|
28
|
+
sendMessage: (jid: any, content: any, options?: {}) => Promise<any>;
|
|
29
|
+
newsletterFetchAllSubscribe: () => Promise<any>;
|
|
30
|
+
subscribeNewsletterUpdates: (jid: any) => Promise<any>;
|
|
31
|
+
newsletterReactionMode: (jid: any, mode: any) => Promise<void>;
|
|
32
|
+
newsletterUpdateDescription: (jid: any, description: any) => Promise<void>;
|
|
33
|
+
newsletterId: (url: any) => Promise<string>;
|
|
34
|
+
newsletterUpdateName: (jid: any, name: any) => Promise<void>;
|
|
35
|
+
newsletterUpdatePicture: (jid: any, content: any) => Promise<void>;
|
|
36
|
+
newsletterRemovePicture: (jid: any) => Promise<void>;
|
|
37
|
+
newsletterUnfollow: (jid: any) => Promise<void>;
|
|
38
|
+
newsletterFollow: (jid: any) => Promise<void>;
|
|
39
|
+
newsletterUnmute: (jid: any) => Promise<void>;
|
|
40
|
+
newsletterMute: (jid: any) => Promise<void>;
|
|
41
|
+
newsletterAction: (jid: any, type: any) => Promise<void>;
|
|
42
|
+
newsletterCreate: (name: any, description: any, reaction_codes: any) => Promise<{
|
|
43
|
+
id: any;
|
|
44
|
+
state: any;
|
|
45
|
+
creation_time: number;
|
|
46
|
+
name: any;
|
|
47
|
+
nameTime: number;
|
|
48
|
+
description: any;
|
|
49
|
+
descriptionTime: number;
|
|
50
|
+
invite: any;
|
|
51
|
+
picture: any;
|
|
52
|
+
preview: any;
|
|
53
|
+
reaction_codes: any;
|
|
54
|
+
subscribers: number;
|
|
55
|
+
verification: any;
|
|
56
|
+
viewer_metadata: any;
|
|
57
|
+
}>;
|
|
58
|
+
newsletterMetadata: (type: any, key: any, role: any) => Promise<{
|
|
59
|
+
id: any;
|
|
60
|
+
state: any;
|
|
61
|
+
creation_time: number;
|
|
62
|
+
name: any;
|
|
63
|
+
nameTime: number;
|
|
64
|
+
description: any;
|
|
65
|
+
descriptionTime: number;
|
|
66
|
+
invite: any;
|
|
67
|
+
picture: any;
|
|
68
|
+
preview: any;
|
|
69
|
+
reaction_codes: any;
|
|
70
|
+
subscribers: number;
|
|
71
|
+
verification: any;
|
|
72
|
+
viewer_metadata: any;
|
|
73
|
+
}>;
|
|
74
|
+
newsletterAdminCount: (jid: any) => Promise<any>;
|
|
75
|
+
newsletterChangeOwner: (jid: any, user: any) => Promise<void>;
|
|
76
|
+
newsletterPromote: (jid: any, user: any) => Promise<void>;
|
|
77
|
+
newsletterDemote: (jid: any, user: any) => Promise<void>;
|
|
78
|
+
newsletterDelete: (jid: any) => Promise<void>;
|
|
79
|
+
newsletterReactMessage: (jid: any, serverId: any, code: any) => Promise<void>;
|
|
80
|
+
newsletterFetchMessages: (type: any, key: any, count: any, after: any, since: any) => Promise<any>;
|
|
81
|
+
newsletterFetchUpdates: (jid: any, count: any, after: any, since: any) => Promise<any>;
|
|
82
|
+
newsletterSubscribers: (jid: any) => Promise<any>;
|
|
83
|
+
groupQuery: (jid: any, type: any, content: any) => Promise<any>;
|
|
84
|
+
groupMetadata: (jid: any) => Promise<{
|
|
85
|
+
desc: any;
|
|
86
|
+
descId: any;
|
|
87
|
+
descOwner: any;
|
|
88
|
+
descOwnerLid: any;
|
|
89
|
+
descTime: number;
|
|
90
|
+
linkedParent: any;
|
|
91
|
+
restrict: boolean;
|
|
92
|
+
announce: boolean;
|
|
93
|
+
isCommunity: boolean;
|
|
94
|
+
isCommunityAnnounce: boolean;
|
|
95
|
+
joinApprovalMode: boolean;
|
|
96
|
+
memberAddMode: boolean;
|
|
97
|
+
participants: any;
|
|
98
|
+
ephemeralDuration: number;
|
|
99
|
+
ownerLid?: any;
|
|
100
|
+
subjectTime: number;
|
|
101
|
+
size: any;
|
|
102
|
+
creation: number;
|
|
103
|
+
owner: any;
|
|
104
|
+
subjectOwnerLid?: any;
|
|
105
|
+
id: any;
|
|
106
|
+
addressingMode: any;
|
|
107
|
+
subject: any;
|
|
108
|
+
subjectOwner: any;
|
|
109
|
+
}>;
|
|
110
|
+
groupCreate: (subject: any, participants: any) => Promise<{
|
|
111
|
+
desc: any;
|
|
112
|
+
descId: any;
|
|
113
|
+
descOwner: any;
|
|
114
|
+
descOwnerLid: any;
|
|
115
|
+
descTime: number;
|
|
116
|
+
linkedParent: any;
|
|
117
|
+
restrict: boolean;
|
|
118
|
+
announce: boolean;
|
|
119
|
+
isCommunity: boolean;
|
|
120
|
+
isCommunityAnnounce: boolean;
|
|
121
|
+
joinApprovalMode: boolean;
|
|
122
|
+
memberAddMode: boolean;
|
|
123
|
+
participants: any;
|
|
124
|
+
ephemeralDuration: number;
|
|
125
|
+
ownerLid?: any;
|
|
126
|
+
subjectTime: number;
|
|
127
|
+
size: any;
|
|
128
|
+
creation: number;
|
|
129
|
+
owner: any;
|
|
130
|
+
subjectOwnerLid?: any;
|
|
131
|
+
id: any;
|
|
132
|
+
addressingMode: any;
|
|
133
|
+
subject: any;
|
|
134
|
+
subjectOwner: any;
|
|
135
|
+
}>;
|
|
136
|
+
groupLeave: (id: any) => Promise<void>;
|
|
137
|
+
groupUpdateSubject: (jid: any, subject: any) => Promise<void>;
|
|
138
|
+
groupRequestParticipantsList: (jid: any) => Promise<any>;
|
|
139
|
+
groupRequestParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<any>;
|
|
140
|
+
groupParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<any>;
|
|
141
|
+
groupUpdateDescription: (jid: any, description: any) => Promise<void>;
|
|
142
|
+
groupInviteCode: (jid: any) => Promise<any>;
|
|
143
|
+
groupRevokeInvite: (jid: any) => Promise<any>;
|
|
144
|
+
groupAcceptInvite: (code: any) => Promise<any>;
|
|
145
|
+
groupRevokeInviteV4: (groupJid: any, invitedJid: any) => Promise<boolean>;
|
|
146
|
+
groupAcceptInviteV4: any;
|
|
147
|
+
groupGetInviteInfo: (code: any) => Promise<{
|
|
148
|
+
desc: any;
|
|
149
|
+
descId: any;
|
|
150
|
+
descOwner: any;
|
|
151
|
+
descOwnerLid: any;
|
|
152
|
+
descTime: number;
|
|
153
|
+
linkedParent: any;
|
|
154
|
+
restrict: boolean;
|
|
155
|
+
announce: boolean;
|
|
156
|
+
isCommunity: boolean;
|
|
157
|
+
isCommunityAnnounce: boolean;
|
|
158
|
+
joinApprovalMode: boolean;
|
|
159
|
+
memberAddMode: boolean;
|
|
160
|
+
participants: any;
|
|
161
|
+
ephemeralDuration: number;
|
|
162
|
+
ownerLid?: any;
|
|
163
|
+
subjectTime: number;
|
|
164
|
+
size: any;
|
|
165
|
+
creation: number;
|
|
166
|
+
owner: any;
|
|
167
|
+
subjectOwnerLid?: any;
|
|
168
|
+
id: any;
|
|
169
|
+
addressingMode: any;
|
|
170
|
+
subject: any;
|
|
171
|
+
subjectOwner: any;
|
|
172
|
+
}>;
|
|
173
|
+
groupToggleEphemeral: (jid: any, ephemeralExpiration: any) => Promise<void>;
|
|
174
|
+
groupSettingUpdate: (jid: any, setting: any) => Promise<void>;
|
|
175
|
+
groupMemberAddMode: (jid: any, mode: any) => Promise<void>;
|
|
176
|
+
groupJoinApprovalMode: (jid: any, mode: any) => Promise<void>;
|
|
177
|
+
groupFetchAllParticipating: () => Promise<{}>;
|
|
178
|
+
createCallLink: (type: any, event: any, timeoutMs: any) => Promise<any>;
|
|
179
|
+
getBotListV2: () => Promise<{
|
|
180
|
+
jid: any;
|
|
181
|
+
personaId: any;
|
|
182
|
+
}[]>;
|
|
183
|
+
processingMutex: {
|
|
184
|
+
mutex(code: any): Promise<void>;
|
|
185
|
+
};
|
|
186
|
+
upsertMessage: any;
|
|
187
|
+
appPatch: (patchCreate: any) => Promise<void>;
|
|
188
|
+
sendPresenceUpdate: (type: any, toJid: any) => Promise<void>;
|
|
189
|
+
presenceSubscribe: (toJid: any, tcToken: any) => Promise<void>;
|
|
190
|
+
profilePictureUrl: (jid: any, type: string, timeoutMs: any) => Promise<any>;
|
|
191
|
+
onWhatsApp: (...jids: any[]) => Promise<any>;
|
|
192
|
+
fetchBlocklist: () => Promise<any>;
|
|
193
|
+
fetchDisappearingDuration: (...jids: any[]) => Promise<any>;
|
|
194
|
+
fetchStatus: (...jids: any[]) => Promise<any>;
|
|
195
|
+
updateProfilePicture: (jid: any, content: any, dimensions: any) => Promise<void>;
|
|
196
|
+
removeProfilePicture: (jid: any) => Promise<void>;
|
|
197
|
+
updateProfileStatus: (status: any) => Promise<void>;
|
|
198
|
+
updateProfileName: (name: any) => Promise<void>;
|
|
199
|
+
updateBlockStatus: (jid: any, action: any) => Promise<void>;
|
|
200
|
+
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: any) => Promise<void>;
|
|
201
|
+
updateCallPrivacy: (value: any) => Promise<void>;
|
|
202
|
+
updateMessagesPrivacy: (value: any) => Promise<void>;
|
|
203
|
+
updateLastSeenPrivacy: (value: any) => Promise<void>;
|
|
204
|
+
updateOnlinePrivacy: (value: any) => Promise<void>;
|
|
205
|
+
updateProfilePicturePrivacy: (value: any) => Promise<void>;
|
|
206
|
+
updateStatusPrivacy: (value: any) => Promise<void>;
|
|
207
|
+
updateReadReceiptsPrivacy: (value: any) => Promise<void>;
|
|
208
|
+
updateGroupsAddPrivacy: (value: any) => Promise<void>;
|
|
209
|
+
updateDefaultDisappearingMode: (duration: any) => Promise<void>;
|
|
210
|
+
getBusinessProfile: (jid: any) => Promise<{
|
|
211
|
+
wid: any;
|
|
212
|
+
address: any;
|
|
213
|
+
description: any;
|
|
214
|
+
website: any[];
|
|
215
|
+
email: any;
|
|
216
|
+
category: any;
|
|
217
|
+
business_hours: {
|
|
218
|
+
timezone: any;
|
|
219
|
+
business_config: any;
|
|
220
|
+
};
|
|
221
|
+
}>;
|
|
222
|
+
resyncAppState: any;
|
|
223
|
+
chatModify: (mod: any, jid: any) => Promise<void>;
|
|
224
|
+
cleanDirtyBits: (type: any, fromTimestamp: any) => Promise<void>;
|
|
225
|
+
addOrEditContact: (jid: any, contact: any) => Promise<void>;
|
|
226
|
+
removeContact: (jid: any) => Promise<void>;
|
|
227
|
+
addLabel: (jid: any, labels: any) => Promise<void>;
|
|
228
|
+
addChatLabel: (jid: any, labelId: any) => Promise<void>;
|
|
229
|
+
removeChatLabel: (jid: any, labelId: any) => Promise<void>;
|
|
230
|
+
addMessageLabel: (jid: any, messageId: any, labelId: any) => Promise<void>;
|
|
231
|
+
removeMessageLabel: (jid: any, messageId: any, labelId: any) => Promise<void>;
|
|
232
|
+
star: (jid: any, messages: any, star: any) => Promise<void>;
|
|
233
|
+
checkWhatsApp: (jid: any) => Promise<string>;
|
|
234
|
+
executeUSyncQuery: (usyncQuery: any) => Promise<any>;
|
|
235
|
+
type: string;
|
|
236
|
+
ws: any;
|
|
237
|
+
ev: any;
|
|
238
|
+
authState: {
|
|
239
|
+
creds: any;
|
|
240
|
+
keys: any;
|
|
241
|
+
};
|
|
242
|
+
signalRepository: any;
|
|
243
|
+
user: any;
|
|
244
|
+
generateMessageTag: () => string;
|
|
245
|
+
query: (node: any, timeoutMs: any) => Promise<any>;
|
|
246
|
+
waitForMessage: (msgId: any, timeoutMs?: any) => Promise<any>;
|
|
247
|
+
waitForSocketOpen: () => Promise<void>;
|
|
248
|
+
sendRawMessage: (data: any) => Promise<void>;
|
|
249
|
+
sendNode: (frame: any) => Promise<void>;
|
|
250
|
+
logout: (msg: any) => Promise<void>;
|
|
251
|
+
end: (error: any) => void;
|
|
252
|
+
onUnexpectedError: (err: any, msg: any) => void;
|
|
253
|
+
uploadPreKeys: (count?: 812) => Promise<void>;
|
|
254
|
+
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
255
|
+
requestPairingCode: (phoneNumber: any, pairCode?: string) => Promise<any>;
|
|
256
|
+
waitForConnectionUpdate: any;
|
|
257
|
+
sendWAMBuffer: (wamBuffer: any) => Promise<any>;
|
|
258
|
+
};
|