@kyyinfinite/baileys 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +582 -1340
- package/WAProto/WAProto.proto +360 -916
- package/WAProto/fix-imports.js +22 -18
- package/WAProto/index.d.ts +14015 -0
- package/WAProto/index.js +47122 -81757
- package/engine-requirements.js +10 -0
- package/lib/Defaults/index.d.ts +15 -14
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Defaults/index.js +99 -107
- package/lib/Defaults/index.js.map +1 -1
- package/lib/Kyyinfinite/AIRich.js +2041 -0
- package/lib/Kyyinfinite/BaseBuilder.js +64 -0
- package/lib/Kyyinfinite/Button.js +341 -0
- package/lib/Kyyinfinite/ButtonV2.js +175 -0
- package/lib/Kyyinfinite/Carousel.js +125 -0
- package/lib/Kyyinfinite/Foad.js +542 -0
- package/lib/Kyyinfinite/Foad2.js +466 -0
- package/lib/Kyyinfinite/Simple/AIBuilder.js +18 -0
- package/lib/Kyyinfinite/Simple/BuilderFactories.js +17 -0
- package/lib/Kyyinfinite/Simple/ButtonBuilder.js +107 -0
- package/lib/Kyyinfinite/Simple/CardBuilder.js +179 -0
- package/lib/Kyyinfinite/Simple/CarouselBuilder.js +97 -0
- package/lib/Kyyinfinite/Simple/FoadBuilder.js +18 -0
- package/lib/Kyyinfinite/Simple/KyyMessage.js +46 -0
- package/lib/Kyyinfinite/Simple/MediaBuilder.js +41 -0
- package/lib/Kyyinfinite/Simple/MessageBuilder.js +55 -0
- package/lib/Kyyinfinite/Simple/MessageTypesBuilder.js +3 -0
- package/lib/Kyyinfinite/Simple/SimpleBuilder.js +28 -0
- package/lib/Kyyinfinite/Simple/SimpleClient.js +120 -0
- package/lib/Kyyinfinite/Simple/TextBuilder.js +28 -0
- package/lib/Kyyinfinite/Simple/UniversalMediaBuilder.js +21 -0
- package/lib/Kyyinfinite/Simple/index.d.ts +232 -0
- package/lib/Kyyinfinite/Simple/index.js +38 -0
- package/lib/Kyyinfinite/Simple/jid.js +55 -0
- package/lib/Kyyinfinite/Simple/messageUtils.js +49 -0
- package/lib/Kyyinfinite/Simple/parseMessage.js +55 -0
- package/lib/Kyyinfinite/Toolkit.js +453 -0
- package/lib/Kyyinfinite/constants.js +1 -0
- package/lib/Kyyinfinite/errors.js +39 -0
- package/lib/Kyyinfinite/index.d.ts +2 -0
- package/lib/Kyyinfinite/index.js +2 -0
- package/lib/Kyyinfinite/wrapper.d.ts +2 -0
- package/lib/Kyyinfinite/wrapper.js +10 -0
- package/lib/Signal/Group/group_cipher.js.map +1 -1
- package/lib/Signal/Group/keyhelper.d.ts.map +1 -1
- package/lib/Signal/Group/keyhelper.js.map +1 -1
- package/lib/Signal/Group/sender-chain-key.js.map +1 -1
- package/lib/Signal/Group/sender-key-message.js.map +1 -1
- package/lib/Signal/Group/sender-message-key.js.map +1 -1
- package/lib/Signal/libsignal.d.ts.map +1 -1
- package/lib/Signal/libsignal.js +45 -17
- package/lib/Signal/libsignal.js.map +1 -1
- package/lib/Signal/lid-mapping.d.ts +4 -0
- package/lib/Signal/lid-mapping.d.ts.map +1 -1
- package/lib/Signal/lid-mapping.js +6 -0
- package/lib/Signal/lid-mapping.js.map +1 -1
- package/lib/Socket/business.d.ts +213 -532
- package/lib/Socket/business.d.ts.map +1 -1
- package/lib/Socket/business.js +358 -401
- package/lib/Socket/chats.d.ts +16 -2
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/chats.js +247 -40
- package/lib/Socket/chats.js.map +1 -1
- package/lib/Socket/communities.d.ts +269 -641
- package/lib/Socket/communities.d.ts.map +1 -1
- package/lib/Socket/groups.d.ts +13 -2
- package/lib/Socket/groups.d.ts.map +1 -1
- package/lib/Socket/groups.js +21 -1
- package/lib/Socket/groups.js.map +1 -1
- package/lib/Socket/index.d.ts +255 -631
- package/lib/Socket/index.d.ts.map +1 -1
- package/lib/Socket/index.js +9 -10
- package/lib/Socket/index.js.map +1 -1
- package/lib/Socket/messages-recv.d.ts +23 -58
- package/lib/Socket/messages-recv.d.ts.map +1 -1
- package/lib/Socket/messages-recv.js +645 -181
- package/lib/Socket/messages-recv.js.map +1 -1
- package/lib/Socket/messages-send.d.ts +195 -575
- package/lib/Socket/messages-send.d.ts.map +1 -1
- package/lib/Socket/messages-send.js +1099 -1549
- package/lib/Socket/messages-send.js.map +1 -1
- package/lib/Socket/mex.d.ts.map +1 -1
- package/lib/Socket/mex.js +2 -8
- package/lib/Socket/mex.js.map +1 -1
- package/lib/Socket/newsletter.d.ts +11 -18
- package/lib/Socket/newsletter.d.ts.map +1 -1
- package/lib/Socket/newsletter.js +167 -302
- package/lib/Socket/newsletter.js.map +1 -1
- package/lib/Socket/socket.d.ts +6 -2
- package/lib/Socket/socket.d.ts.map +1 -1
- package/lib/Socket/socket.js +59 -25
- package/lib/Socket/socket.js.map +1 -1
- package/lib/Types/Auth.d.ts +1 -0
- package/lib/Types/Auth.d.ts.map +1 -1
- package/lib/Types/Bussines.d.ts +22 -34
- package/lib/Types/Call.d.ts +1 -1
- package/lib/Types/Call.d.ts.map +1 -1
- package/lib/Types/Chat.d.ts +1 -0
- package/lib/Types/Chat.d.ts.map +1 -1
- package/lib/Types/Contact.d.ts +2 -0
- package/lib/Types/Contact.d.ts.map +1 -1
- package/lib/Types/Events.d.ts +20 -1
- package/lib/Types/Events.d.ts.map +1 -1
- package/lib/Types/GroupMetadata.d.ts +4 -1
- package/lib/Types/GroupMetadata.d.ts.map +1 -1
- package/lib/Types/Message.d.ts +239 -341
- package/lib/Types/Message.d.ts.map +1 -1
- package/lib/Types/Message.js.map +1 -1
- package/lib/Types/{Newsletter.d.ts → Mex.d.ts} +11 -5
- package/lib/Types/Mex.d.ts.map +1 -0
- package/lib/Types/{Newsletter.js → Mex.js} +9 -3
- package/lib/Types/Mex.js.map +1 -0
- package/lib/Types/Signal.d.ts +12 -1
- package/lib/Types/Signal.d.ts.map +1 -1
- package/lib/Types/Socket.d.ts +126 -148
- package/lib/Types/Socket.d.ts.map +1 -1
- package/lib/Types/State.d.ts +58 -0
- package/lib/Types/State.d.ts.map +1 -1
- package/lib/Types/State.js +43 -0
- package/lib/Types/State.js.map +1 -1
- package/lib/Types/index.d.ts +52 -52
- package/lib/Types/index.d.ts.map +1 -1
- package/lib/Types/index.js +23 -30
- package/lib/Types/index.js.map +1 -1
- package/lib/Utils/auth-utils.d.ts +5 -0
- package/lib/Utils/auth-utils.d.ts.map +1 -1
- package/lib/Utils/auth-utils.js +12 -0
- package/lib/Utils/auth-utils.js.map +1 -1
- package/lib/Utils/browser-utils.d.ts.map +1 -1
- package/lib/Utils/browser-utils.js +1 -0
- package/lib/Utils/browser-utils.js.map +1 -1
- package/lib/Utils/chat-utils.d.ts +34 -4
- package/lib/Utils/chat-utils.d.ts.map +1 -1
- package/lib/Utils/chat-utils.js +80 -20
- package/lib/Utils/chat-utils.js.map +1 -1
- package/lib/Utils/companion-reg-client-utils.d.ts +17 -0
- package/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
- package/lib/Utils/companion-reg-client-utils.js +35 -0
- package/lib/Utils/companion-reg-client-utils.js.map +1 -0
- package/lib/Utils/crypto.d.ts +12 -12
- package/lib/Utils/crypto.d.ts.map +1 -1
- package/lib/Utils/crypto.js.map +1 -1
- package/lib/Utils/decode-wa-message.d.ts +18 -0
- package/lib/Utils/decode-wa-message.d.ts.map +1 -1
- package/lib/Utils/decode-wa-message.js +34 -0
- package/lib/Utils/decode-wa-message.js.map +1 -1
- package/lib/Utils/event-buffer.d.ts +2 -0
- package/lib/Utils/event-buffer.d.ts.map +1 -1
- package/lib/Utils/event-buffer.js +49 -1
- package/lib/Utils/event-buffer.js.map +1 -1
- package/lib/Utils/generics.d.ts +3 -2
- package/lib/Utils/generics.d.ts.map +1 -1
- package/lib/Utils/generics.js +10 -1
- package/lib/Utils/generics.js.map +1 -1
- package/lib/Utils/history.d.ts +2 -0
- package/lib/Utils/history.d.ts.map +1 -1
- package/lib/Utils/history.js +12 -9
- package/lib/Utils/history.js.map +1 -1
- package/lib/Utils/identity-change-handler.d.ts +7 -0
- package/lib/Utils/identity-change-handler.d.ts.map +1 -1
- package/lib/Utils/identity-change-handler.js +1 -0
- package/lib/Utils/identity-change-handler.js.map +1 -1
- package/lib/Utils/index.d.ts +22 -25
- package/lib/Utils/index.d.ts.map +1 -1
- package/lib/Utils/index.js +2 -4
- package/lib/Utils/index.js.map +1 -1
- package/lib/Utils/link-preview.js +2 -2
- package/lib/Utils/link-preview.js.map +1 -1
- package/lib/Utils/logger.d.ts +1 -2
- package/lib/Utils/logger.d.ts.map +1 -1
- package/lib/Utils/message-retry-manager.d.ts +5 -0
- package/lib/Utils/message-retry-manager.d.ts.map +1 -1
- package/lib/Utils/message-retry-manager.js +40 -0
- package/lib/Utils/message-retry-manager.js.map +1 -1
- package/lib/Utils/messages-media.d.ts +16 -13
- package/lib/Utils/messages-media.d.ts.map +1 -1
- package/lib/Utils/messages-media.js +85 -79
- package/lib/Utils/messages-media.js.map +1 -1
- package/lib/Utils/messages.d.ts +1 -1
- package/lib/Utils/messages.d.ts.map +1 -1
- package/lib/Utils/messages.js +751 -1096
- package/lib/Utils/messages.js.map +1 -1
- package/lib/Utils/noise-handler.d.ts +1 -1
- package/lib/Utils/process-message.d.ts.map +1 -1
- package/lib/Utils/process-message.js +103 -1
- package/lib/Utils/process-message.js.map +1 -1
- package/lib/Utils/signal.d.ts +13 -0
- package/lib/Utils/signal.d.ts.map +1 -1
- package/lib/Utils/signal.js +42 -0
- package/lib/Utils/signal.js.map +1 -1
- package/lib/Utils/sync-action-utils.d.ts.map +1 -1
- package/lib/Utils/sync-action-utils.js +1 -0
- package/lib/Utils/sync-action-utils.js.map +1 -1
- package/lib/Utils/tc-token-utils.d.ts +26 -1
- package/lib/Utils/tc-token-utils.d.ts.map +1 -1
- package/lib/Utils/tc-token-utils.js +151 -5
- package/lib/Utils/tc-token-utils.js.map +1 -1
- package/lib/Utils/validate-connection.d.ts.map +1 -1
- package/lib/Utils/validate-connection.js +12 -2
- package/lib/Utils/validate-connection.js.map +1 -1
- package/lib/WABinary/decode.d.ts +1 -1
- package/lib/WABinary/decode.d.ts.map +1 -1
- package/lib/WABinary/generic-utils.d.ts +1 -3
- package/lib/WABinary/generic-utils.d.ts.map +1 -1
- package/lib/WABinary/generic-utils.js +0 -78
- package/lib/WABinary/generic-utils.js.map +1 -1
- package/lib/WAM/encode.d.ts +1 -1
- package/lib/WAM/encode.d.ts.map +1 -1
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -1
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +26 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -1
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/index.d.ts +1 -0
- package/lib/WAUSync/Protocols/index.d.ts.map +1 -1
- package/lib/WAUSync/Protocols/index.js +1 -0
- package/lib/WAUSync/Protocols/index.js.map +1 -1
- package/lib/WAUSync/USyncQuery.d.ts +1 -0
- package/lib/WAUSync/USyncQuery.d.ts.map +1 -1
- package/lib/WAUSync/USyncQuery.js +6 -2
- package/lib/WAUSync/USyncQuery.js.map +1 -1
- package/lib/WAUSync/USyncUser.d.ts +4 -0
- package/lib/WAUSync/USyncUser.d.ts.map +1 -1
- package/lib/WAUSync/USyncUser.js +8 -0
- package/lib/WAUSync/USyncUser.js.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -12
- package/lib/index.js.map +1 -1
- package/package.json +104 -23
- package/test/core.test.js +38 -0
- package/test/simple-api.test.js +183 -0
- package/lib/Socket/dugong.d.ts +0 -130
- package/lib/Socket/dugong.d.ts.map +0 -1
- package/lib/Socket/dugong.js +0 -768
- package/lib/Socket/dugong.js.map +0 -1
- package/lib/Types/Newsletter.d.ts.map +0 -1
- package/lib/Types/Newsletter.js.map +0 -1
- package/lib/Utils/kyy-features.d.ts +0 -158
- package/lib/Utils/kyy-features.js +0 -365
- package/lib/Utils/rich-messages.d.ts +0 -277
- package/lib/Utils/rich-messages.d.ts.map +0 -1
- package/lib/Utils/rich-messages.js +0 -1144
- package/lib/Utils/rich-messages.js.map +0 -1
- package/lib/Utils/sticker-pack.d.ts +0 -10
- package/lib/Utils/sticker-pack.js +0 -111
|
@@ -1,645 +1,273 @@
|
|
|
1
|
-
import { proto } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type ParticipantAction,
|
|
5
|
-
type SocketConfig,
|
|
6
|
-
type WAMessageKey,
|
|
7
|
-
} from "../Types/index.js";
|
|
8
|
-
import { type BinaryNode } from "../WABinary/index.js";
|
|
1
|
+
import { proto } from '../../WAProto/index.js';
|
|
2
|
+
import { type GroupMetadata, type ParticipantAction, type SocketConfig, type WAMessageKey } from '../Types/index.js';
|
|
3
|
+
import { type BinaryNode } from '../WABinary/index.js';
|
|
9
4
|
export declare const makeCommunitiesSocket: (config: SocketConfig) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
subject: string,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}[]
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
jid: string,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
jid,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
jid
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
(
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
uploadFn: import("../Utils/index.js").MediaUploadFn,
|
|
272
|
-
) => Promise<{
|
|
273
|
-
message: any;
|
|
274
|
-
messageId: string;
|
|
275
|
-
}>;
|
|
276
|
-
sendLatexInlineImage: (
|
|
277
|
-
jid: string,
|
|
278
|
-
quoted: any,
|
|
279
|
-
options: import("../Utils/index.js").LatexImageOptions,
|
|
280
|
-
renderLatexToPng: import("../Utils/index.js").LatexRenderFn,
|
|
281
|
-
uploadFn: import("../Utils/index.js").MediaUploadFn,
|
|
282
|
-
) => Promise<{
|
|
283
|
-
message: any;
|
|
284
|
-
messageId: string;
|
|
285
|
-
}>;
|
|
286
|
-
captureUnifiedResponse: (
|
|
287
|
-
msg: proto.IMessage,
|
|
288
|
-
) => import("../Utils/index.js").CapturedUnifiedResponse | null;
|
|
289
|
-
sendUnifiedResponse: (
|
|
290
|
-
jid: string,
|
|
291
|
-
quoted: any,
|
|
292
|
-
captured: import("../Utils/index.js").CapturedUnifiedResponse,
|
|
293
|
-
) => Promise<{
|
|
294
|
-
message: any;
|
|
295
|
-
messageId: string;
|
|
296
|
-
}>;
|
|
297
|
-
sendRichMessage: (
|
|
298
|
-
jid: string,
|
|
299
|
-
submessages: proto.IAIRichResponseSubMessage[],
|
|
300
|
-
quoted?: any,
|
|
301
|
-
options?: {},
|
|
302
|
-
) => Promise<{
|
|
303
|
-
message: any;
|
|
304
|
-
messageId: string;
|
|
305
|
-
}>;
|
|
306
|
-
sendMessage: (
|
|
307
|
-
jid: string,
|
|
308
|
-
content: import("../Types/index.js").AnyMessageContent,
|
|
309
|
-
options?: import("../Types/index.js").MiscMessageGenerationOptions,
|
|
310
|
-
) => Promise<any>;
|
|
311
|
-
newsletterFetchAllSubscribe: () => Promise<unknown>;
|
|
312
|
-
newsletterMultipleFollow: (jids: string) => Promise<void>;
|
|
313
|
-
newsletterAction: (jid: string, type: string) => Promise<void>;
|
|
314
|
-
cekIDSaluran: (url: string) => Promise<{
|
|
315
|
-
id: any;
|
|
316
|
-
state: any;
|
|
317
|
-
creation_time: number;
|
|
318
|
-
name: any;
|
|
319
|
-
description: any;
|
|
320
|
-
invite: any;
|
|
321
|
-
picture: string;
|
|
322
|
-
preview: string;
|
|
323
|
-
subscribers: number;
|
|
324
|
-
verification: any;
|
|
325
|
-
viewer_metadata: any;
|
|
326
|
-
}>;
|
|
327
|
-
newsletterCreate: (
|
|
328
|
-
name: string,
|
|
329
|
-
description?: string,
|
|
330
|
-
) => Promise<import("../Types/index.js").NewsletterMetadata>;
|
|
331
|
-
newsletterUpdate: (
|
|
332
|
-
jid: string,
|
|
333
|
-
updates: import("../Types/index.js").NewsletterUpdate,
|
|
334
|
-
) => Promise<unknown>;
|
|
335
|
-
newsletterSubscribers: (jid: string) => Promise<{
|
|
336
|
-
subscribers: number;
|
|
337
|
-
}>;
|
|
338
|
-
newsletterMetadata: (
|
|
339
|
-
type: "invite" | "jid",
|
|
340
|
-
key: string,
|
|
341
|
-
) => Promise<import("../Types/index.js").NewsletterMetadata | null>;
|
|
342
|
-
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
343
|
-
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
344
|
-
newsletterMute: (jid: string) => Promise<unknown>;
|
|
345
|
-
newsletterUnmute: (jid: string) => Promise<unknown>;
|
|
346
|
-
newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
|
|
347
|
-
newsletterUpdateDescription: (
|
|
348
|
-
jid: string,
|
|
349
|
-
description: string,
|
|
350
|
-
) => Promise<unknown>;
|
|
351
|
-
newsletterUpdatePicture: (
|
|
352
|
-
jid: string,
|
|
353
|
-
content: import("../Types/index.js").WAMediaUpload,
|
|
354
|
-
) => Promise<unknown>;
|
|
355
|
-
newsletterRemovePicture: (jid: string) => Promise<unknown>;
|
|
356
|
-
newsletterReactMessage: (
|
|
357
|
-
jid: string,
|
|
358
|
-
serverId: string,
|
|
359
|
-
reaction?: string,
|
|
360
|
-
) => Promise<void>;
|
|
361
|
-
newsletterFetchMessages: (
|
|
362
|
-
jid: string,
|
|
363
|
-
count: number,
|
|
364
|
-
since: number,
|
|
365
|
-
after: number,
|
|
366
|
-
) => Promise<any>;
|
|
367
|
-
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
|
368
|
-
duration: string;
|
|
369
|
-
} | null>;
|
|
370
|
-
newsletterAdminCount: (jid: string) => Promise<number>;
|
|
371
|
-
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
372
|
-
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
373
|
-
newsletterDelete: (jid: string) => Promise<void>;
|
|
374
|
-
groupMetadata: (jid: string) => Promise<GroupMetadata>;
|
|
375
|
-
groupCreate: (
|
|
376
|
-
subject: string,
|
|
377
|
-
participants: string[],
|
|
378
|
-
) => Promise<GroupMetadata>;
|
|
379
|
-
groupLeave: (id: string) => Promise<void>;
|
|
380
|
-
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
381
|
-
groupRequestParticipantsList: (jid: string) => Promise<
|
|
382
|
-
{
|
|
383
|
-
[key: string]: string;
|
|
384
|
-
}[]
|
|
385
|
-
>;
|
|
386
|
-
groupRequestParticipantsUpdate: (
|
|
387
|
-
jid: string,
|
|
388
|
-
participants: string[],
|
|
389
|
-
action: "approve" | "reject",
|
|
390
|
-
) => Promise<
|
|
391
|
-
{
|
|
392
|
-
status: string;
|
|
393
|
-
jid: string | undefined;
|
|
394
|
-
}[]
|
|
395
|
-
>;
|
|
396
|
-
groupParticipantsUpdate: (
|
|
397
|
-
jid: string,
|
|
398
|
-
participants: string[],
|
|
399
|
-
action: ParticipantAction,
|
|
400
|
-
) => Promise<
|
|
401
|
-
{
|
|
402
|
-
status: string;
|
|
403
|
-
jid: string | undefined;
|
|
404
|
-
content: BinaryNode;
|
|
405
|
-
}[]
|
|
406
|
-
>;
|
|
407
|
-
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
408
|
-
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
|
409
|
-
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
410
|
-
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
411
|
-
groupRevokeInviteV4: (
|
|
412
|
-
groupJid: string,
|
|
413
|
-
invitedJid: string,
|
|
414
|
-
) => Promise<boolean>;
|
|
415
|
-
groupAcceptInviteV4: (
|
|
416
|
-
key: string | WAMessageKey,
|
|
417
|
-
inviteMessage: proto.Message.IGroupInviteMessage,
|
|
418
|
-
) => Promise<any>;
|
|
419
|
-
groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
420
|
-
groupToggleEphemeral: (
|
|
421
|
-
jid: string,
|
|
422
|
-
ephemeralExpiration: number,
|
|
423
|
-
) => Promise<void>;
|
|
424
|
-
groupSettingUpdate: (
|
|
425
|
-
jid: string,
|
|
426
|
-
setting: "announcement" | "not_announcement" | "locked" | "unlocked",
|
|
427
|
-
) => Promise<void>;
|
|
428
|
-
groupMemberAddMode: (
|
|
429
|
-
jid: string,
|
|
430
|
-
mode: "admin_add" | "all_member_add",
|
|
431
|
-
) => Promise<void>;
|
|
432
|
-
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
433
|
-
groupFetchAllParticipating: () => Promise<{
|
|
434
|
-
[_: string]: GroupMetadata;
|
|
435
|
-
}>;
|
|
436
|
-
createCallLink: (
|
|
437
|
-
type: "audio" | "video",
|
|
438
|
-
event?: {
|
|
439
|
-
startTime: number;
|
|
440
|
-
},
|
|
441
|
-
timeoutMs?: number,
|
|
442
|
-
) => Promise<string | undefined>;
|
|
443
|
-
getBotListV2: () => Promise<import("../Types/index.js").BotListInfo[]>;
|
|
444
|
-
messageMutex: {
|
|
445
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
446
|
-
};
|
|
447
|
-
receiptMutex: {
|
|
448
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
449
|
-
};
|
|
450
|
-
appStatePatchMutex: {
|
|
451
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
452
|
-
};
|
|
453
|
-
notificationMutex: {
|
|
454
|
-
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
455
|
-
};
|
|
456
|
-
upsertMessage: (
|
|
457
|
-
msg: import("../Types/index.js").WAMessage,
|
|
458
|
-
type: import("../Types/index.js").MessageUpsertType,
|
|
459
|
-
) => Promise<void>;
|
|
460
|
-
appPatch: (
|
|
461
|
-
patchCreate: import("../Types/index.js").WAPatchCreate,
|
|
462
|
-
) => Promise<void>;
|
|
463
|
-
sendPresenceUpdate: (
|
|
464
|
-
type: import("../Types/index.js").WAPresence,
|
|
465
|
-
toJid?: string,
|
|
466
|
-
) => Promise<void>;
|
|
467
|
-
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
468
|
-
profilePictureUrl: (
|
|
469
|
-
jid: string,
|
|
470
|
-
type?: "preview" | "image",
|
|
471
|
-
timeoutMs?: number,
|
|
472
|
-
) => Promise<string | undefined>;
|
|
473
|
-
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
474
|
-
fetchStatus: (
|
|
475
|
-
...jids: string[]
|
|
476
|
-
) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
477
|
-
fetchDisappearingDuration: (
|
|
478
|
-
...jids: string[]
|
|
479
|
-
) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
480
|
-
updateProfilePicture: (
|
|
481
|
-
jid: string,
|
|
482
|
-
content: import("../Types/index.js").WAMediaUpload,
|
|
483
|
-
dimensions?: {
|
|
484
|
-
width: number;
|
|
485
|
-
height: number;
|
|
486
|
-
},
|
|
487
|
-
) => Promise<void>;
|
|
488
|
-
removeProfilePicture: (jid: string) => Promise<void>;
|
|
489
|
-
updateProfileStatus: (status: string) => Promise<void>;
|
|
490
|
-
updateProfileName: (name: string) => Promise<void>;
|
|
491
|
-
updateBlockStatus: (
|
|
492
|
-
jid: string,
|
|
493
|
-
action: "block" | "unblock",
|
|
494
|
-
) => Promise<void>;
|
|
495
|
-
updateDisableLinkPreviewsPrivacy: (
|
|
496
|
-
isPreviewsDisabled: boolean,
|
|
497
|
-
) => Promise<void>;
|
|
498
|
-
updateCallPrivacy: (
|
|
499
|
-
value: import("../Types/index.js").WAPrivacyCallValue,
|
|
500
|
-
) => Promise<void>;
|
|
501
|
-
updateMessagesPrivacy: (
|
|
502
|
-
value: import("../Types/index.js").WAPrivacyMessagesValue,
|
|
503
|
-
) => Promise<void>;
|
|
504
|
-
updateLastSeenPrivacy: (
|
|
505
|
-
value: import("../Types/index.js").WAPrivacyValue,
|
|
506
|
-
) => Promise<void>;
|
|
507
|
-
updateOnlinePrivacy: (
|
|
508
|
-
value: import("../Types/index.js").WAPrivacyOnlineValue,
|
|
509
|
-
) => Promise<void>;
|
|
510
|
-
updateProfilePicturePrivacy: (
|
|
511
|
-
value: import("../Types/index.js").WAPrivacyValue,
|
|
512
|
-
) => Promise<void>;
|
|
513
|
-
updateStatusPrivacy: (
|
|
514
|
-
value: import("../Types/index.js").WAPrivacyValue,
|
|
515
|
-
) => Promise<void>;
|
|
516
|
-
updateReadReceiptsPrivacy: (
|
|
517
|
-
value: import("../Types/index.js").WAReadReceiptsValue,
|
|
518
|
-
) => Promise<void>;
|
|
519
|
-
updateGroupsAddPrivacy: (
|
|
520
|
-
value: import("../Types/index.js").WAPrivacyGroupAddValue,
|
|
521
|
-
) => Promise<void>;
|
|
522
|
-
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
523
|
-
getBusinessProfile: (
|
|
524
|
-
jid: string,
|
|
525
|
-
) => Promise<import("../Types/index.js").WABusinessProfile | void>;
|
|
526
|
-
resyncAppState: (
|
|
527
|
-
collections: readonly (
|
|
528
|
-
| "critical_unblock_low"
|
|
529
|
-
| "regular_high"
|
|
530
|
-
| "regular_low"
|
|
531
|
-
| "critical_block"
|
|
532
|
-
| "regular"
|
|
533
|
-
)[],
|
|
534
|
-
isInitialSync: boolean,
|
|
535
|
-
) => Promise<void>;
|
|
536
|
-
chatModify: (
|
|
537
|
-
mod: import("../Types/index.js").ChatModification,
|
|
538
|
-
jid: string,
|
|
539
|
-
) => Promise<void>;
|
|
540
|
-
cleanDirtyBits: (
|
|
541
|
-
type: "account_sync" | "groups",
|
|
542
|
-
fromTimestamp?: number | string,
|
|
543
|
-
) => Promise<void>;
|
|
544
|
-
addOrEditContact: (
|
|
545
|
-
jid: string,
|
|
546
|
-
contact: proto.SyncActionValue.IContactAction,
|
|
547
|
-
) => Promise<void>;
|
|
548
|
-
removeContact: (jid: string) => Promise<void>;
|
|
549
|
-
addLabel: (
|
|
550
|
-
jid: string,
|
|
551
|
-
labels: import("../Types/Label.js").LabelActionBody,
|
|
552
|
-
) => Promise<void>;
|
|
553
|
-
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
554
|
-
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
555
|
-
addMessageLabel: (
|
|
556
|
-
jid: string,
|
|
557
|
-
messageId: string,
|
|
558
|
-
labelId: string,
|
|
559
|
-
) => Promise<void>;
|
|
560
|
-
removeMessageLabel: (
|
|
561
|
-
jid: string,
|
|
562
|
-
messageId: string,
|
|
563
|
-
labelId: string,
|
|
564
|
-
) => Promise<void>;
|
|
565
|
-
star: (
|
|
566
|
-
jid: string,
|
|
567
|
-
messages: {
|
|
568
|
-
id: string;
|
|
569
|
-
fromMe?: boolean;
|
|
570
|
-
}[],
|
|
571
|
-
star: boolean,
|
|
572
|
-
) => Promise<void>;
|
|
573
|
-
addOrEditQuickReply: (
|
|
574
|
-
quickReply: import("../Types/Bussines.js").QuickReplyAction,
|
|
575
|
-
) => Promise<void>;
|
|
576
|
-
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
577
|
-
type: "md";
|
|
578
|
-
ws: import("./Client/websocket.js").WebSocketClient;
|
|
579
|
-
ev: import("../Types/index.js").BaileysEventEmitter & {
|
|
580
|
-
process(
|
|
581
|
-
handler: (
|
|
582
|
-
events: Partial<import("../Types/index.js").BaileysEventMap>,
|
|
583
|
-
) => void | Promise<void>,
|
|
584
|
-
): () => void;
|
|
585
|
-
buffer(): void;
|
|
586
|
-
createBufferedFunction<A extends any[], T>(
|
|
587
|
-
work: (...args: A) => Promise<T>,
|
|
588
|
-
): (...args: A) => Promise<T>;
|
|
589
|
-
flush(): boolean;
|
|
590
|
-
isBuffering(): boolean;
|
|
591
|
-
};
|
|
592
|
-
authState: {
|
|
593
|
-
creds: import("../Types/index.js").AuthenticationCreds;
|
|
594
|
-
keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
|
|
595
|
-
};
|
|
596
|
-
signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
|
|
597
|
-
user: import("../Types/index.js").Contact | undefined;
|
|
598
|
-
generateMessageTag: () => string;
|
|
599
|
-
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
600
|
-
waitForMessage: <T>(
|
|
601
|
-
msgId: string,
|
|
602
|
-
timeoutMs?: number | undefined,
|
|
603
|
-
) => Promise<T | undefined>;
|
|
604
|
-
waitForSocketOpen: () => Promise<void>;
|
|
605
|
-
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
|
606
|
-
sendNode: (frame: BinaryNode) => Promise<void>;
|
|
607
|
-
logout: (msg?: string) => Promise<void>;
|
|
608
|
-
end: (error: Error | undefined) => Promise<void>;
|
|
609
|
-
onUnexpectedError: (
|
|
610
|
-
err: Error | import("@hapi/boom").Boom,
|
|
611
|
-
msg: string,
|
|
612
|
-
) => void;
|
|
613
|
-
uploadPreKeys: (count?: number, retryCount?: number) => Promise<void>;
|
|
614
|
-
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
615
|
-
digestKeyBundle: () => Promise<void>;
|
|
616
|
-
rotateSignedPreKey: () => Promise<void>;
|
|
617
|
-
requestPairingCode: (
|
|
618
|
-
phoneNumber: string,
|
|
619
|
-
customPairingCode?: string,
|
|
620
|
-
) => Promise<string>;
|
|
621
|
-
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
622
|
-
sendUnifiedSession: () => Promise<void>;
|
|
623
|
-
wamBuffer: import("../index.js").BinaryInfo;
|
|
624
|
-
waitForConnectionUpdate: (
|
|
625
|
-
check: (
|
|
626
|
-
u: Partial<import("../Types/index.js").ConnectionState>,
|
|
627
|
-
) => Promise<boolean | undefined>,
|
|
628
|
-
timeoutMs?: number,
|
|
629
|
-
) => Promise<void>;
|
|
630
|
-
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
631
|
-
executeUSyncQuery: (
|
|
632
|
-
usyncQuery: import("../index.js").USyncQuery,
|
|
633
|
-
) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
634
|
-
onWhatsApp: (...phoneNumber: string[]) => Promise<
|
|
635
|
-
| {
|
|
5
|
+
communityMetadata: (jid: string) => Promise<GroupMetadata>;
|
|
6
|
+
communityCreate: (subject: string, body: string) => Promise<GroupMetadata | null>;
|
|
7
|
+
communityCreateGroup: (subject: string, participants: string[], parentCommunityJid: string) => Promise<GroupMetadata | null>;
|
|
8
|
+
communityLeave: (id: string) => Promise<void>;
|
|
9
|
+
communityUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
10
|
+
communityLinkGroup: (groupJid: string, parentCommunityJid: string) => Promise<void>;
|
|
11
|
+
communityUnlinkGroup: (groupJid: string, parentCommunityJid: string) => Promise<void>;
|
|
12
|
+
communityFetchLinkedGroups: (jid: string) => Promise<{
|
|
13
|
+
communityJid: string;
|
|
14
|
+
isCommunity: boolean;
|
|
15
|
+
linkedGroups: {
|
|
16
|
+
id: string | undefined;
|
|
17
|
+
subject: string;
|
|
18
|
+
creation: number | undefined;
|
|
19
|
+
owner: string | undefined;
|
|
20
|
+
size: number | undefined;
|
|
21
|
+
}[];
|
|
22
|
+
}>;
|
|
23
|
+
communityRequestParticipantsList: (jid: string) => Promise<{
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
}[]>;
|
|
26
|
+
communityRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
|
27
|
+
status: string;
|
|
28
|
+
jid: string | undefined;
|
|
29
|
+
}[]>;
|
|
30
|
+
communityParticipantsUpdate: (jid: string, participants: string[], action: ParticipantAction) => Promise<{
|
|
31
|
+
status: string;
|
|
32
|
+
jid: string | undefined;
|
|
33
|
+
content: BinaryNode;
|
|
34
|
+
}[]>;
|
|
35
|
+
communityUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
36
|
+
communityInviteCode: (jid: string) => Promise<string | undefined>;
|
|
37
|
+
communityRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
38
|
+
communityAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* revoke a v4 invite for someone
|
|
41
|
+
* @param communityJid community jid
|
|
42
|
+
* @param invitedJid jid of person you invited
|
|
43
|
+
* @returns true if successful
|
|
44
|
+
*/
|
|
45
|
+
communityRevokeInviteV4: (communityJid: string, invitedJid: string) => Promise<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* accept a CommunityInviteMessage
|
|
48
|
+
* @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite
|
|
49
|
+
* @param inviteMessage the message to accept
|
|
50
|
+
*/
|
|
51
|
+
communityAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
52
|
+
communityGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
53
|
+
communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
54
|
+
communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
55
|
+
communityMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
56
|
+
communityJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
57
|
+
communityFetchAllParticipating: () => Promise<{
|
|
58
|
+
[_: string]: GroupMetadata;
|
|
59
|
+
}>;
|
|
60
|
+
logger: import("../Utils/logger.js").ILogger;
|
|
61
|
+
getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("../Types/index.js").OrderDetails>;
|
|
62
|
+
getCatalog: ({ jid, limit, cursor }: import("../Types/index.js").GetCatalogOptions) => Promise<{
|
|
63
|
+
products: import("../Types/index.js").Product[];
|
|
64
|
+
nextPageCursor: string | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
getCollections: (jid?: string, limit?: number) => Promise<{
|
|
67
|
+
collections: import("../Types/index.js").CatalogCollection[];
|
|
68
|
+
}>;
|
|
69
|
+
productCreate: (create: import("../Types/index.js").ProductCreate) => Promise<import("../Types/index.js").Product>;
|
|
70
|
+
productDelete: (productIds: string[]) => Promise<{
|
|
71
|
+
deleted: number;
|
|
72
|
+
}>;
|
|
73
|
+
productUpdate: (productId: string, update: import("../Types/index.js").ProductUpdate) => Promise<import("../Types/index.js").Product>;
|
|
74
|
+
updateBussinesProfile: (args: import("../Types/Bussines.js").UpdateBussinesProfileProps) => Promise<any>;
|
|
75
|
+
updateCoverPhoto: (photo: import("../Types/index.js").WAMediaUpload) => Promise<number>;
|
|
76
|
+
removeCoverPhoto: (id: string) => Promise<any>;
|
|
77
|
+
sendMessageAck: (node: BinaryNode, errorCode?: number) => Promise<void>;
|
|
78
|
+
sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
|
|
79
|
+
rejectCall: (callId: string, callFrom: string) => Promise<void>;
|
|
80
|
+
fetchMessageHistory: (count: number, oldestMsgKey: WAMessageKey, oldestMsgTimestamp: number | import("long").default) => Promise<string>;
|
|
81
|
+
requestPlaceholderResend: (messageKey: WAMessageKey, msgData?: Partial<import("../Types/index.js").WAMessage>) => Promise<string | undefined>;
|
|
82
|
+
messageRetryManager: import("../Utils/index.js").MessageRetryManager | null;
|
|
83
|
+
userDevicesCache: import("../Types/index.js").PossiblyExtendedCacheStore | import("@cacheable/node-cache").NodeCache<import("../WABinary/index.js").JidWithDevice[]>;
|
|
84
|
+
devicesMutex: {
|
|
85
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
86
|
+
};
|
|
87
|
+
issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
|
|
88
|
+
assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
|
|
89
|
+
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types/index.js").MessageRelayOptions) => Promise<string>;
|
|
90
|
+
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types/index.js").MessageReceiptType) => Promise<void>;
|
|
91
|
+
sendReceipts: (keys: WAMessageKey[], type: import("../Types/index.js").MessageReceiptType) => Promise<void>;
|
|
92
|
+
readMessages: (keys: WAMessageKey[]) => Promise<void>;
|
|
93
|
+
refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types/index.js").MediaConnInfo>;
|
|
94
|
+
getMediaHost: () => string;
|
|
95
|
+
waUploadToServer: import("../Types/index.js").WAMediaUploadFunction;
|
|
96
|
+
fetchPrivacySettings: (force?: boolean) => Promise<{
|
|
97
|
+
[_: string]: string;
|
|
98
|
+
}>;
|
|
99
|
+
sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
|
|
100
|
+
createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
|
|
101
|
+
nodes: BinaryNode[];
|
|
102
|
+
shouldIncludeDeviceIdentity: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("../WABinary/index.js").JidWithDevice & {
|
|
105
|
+
jid: string;
|
|
106
|
+
})[]>;
|
|
107
|
+
updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
|
|
108
|
+
updateMediaMessage: (message: import("../Types/index.js").WAMessage) => Promise<import("../Types/index.js").WAMessage>;
|
|
109
|
+
sendMessage: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise<import("../Types/index.js").WAMessage | undefined>;
|
|
110
|
+
newsletterCreate: (name: string, description?: string) => Promise<import("../Types/index.js").NewsletterMetadata>;
|
|
111
|
+
newsletterUpdate: (jid: string, updates: import("../Types/index.js").NewsletterUpdate) => Promise<unknown>;
|
|
112
|
+
newsletterSubscribers: (jid: string) => Promise<{
|
|
113
|
+
subscribers: number;
|
|
114
|
+
}>;
|
|
115
|
+
newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types/index.js").NewsletterMetadata | null>;
|
|
116
|
+
newsletterFollow: (jid: string) => Promise<unknown>;
|
|
117
|
+
newsletterUnfollow: (jid: string) => Promise<unknown>;
|
|
118
|
+
newsletterMute: (jid: string) => Promise<unknown>;
|
|
119
|
+
newsletterUnmute: (jid: string) => Promise<unknown>;
|
|
120
|
+
newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
|
|
121
|
+
newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
|
|
122
|
+
newsletterUpdatePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload) => Promise<unknown>;
|
|
123
|
+
newsletterRemovePicture: (jid: string) => Promise<unknown>;
|
|
124
|
+
newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
|
|
125
|
+
newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
|
|
126
|
+
subscribeNewsletterUpdates: (jid: string) => Promise<{
|
|
127
|
+
duration: string;
|
|
128
|
+
} | null>;
|
|
129
|
+
newsletterAdminCount: (jid: string) => Promise<number>;
|
|
130
|
+
newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
|
|
131
|
+
newsletterDemote: (jid: string, userJid: string) => Promise<void>;
|
|
132
|
+
newsletterDelete: (jid: string) => Promise<void>;
|
|
133
|
+
groupMetadata: (jid: string) => Promise<GroupMetadata>;
|
|
134
|
+
groupCreate: (subject: string, participants: string[]) => Promise<GroupMetadata>;
|
|
135
|
+
groupLeave: (id: string) => Promise<void>;
|
|
136
|
+
groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
|
|
137
|
+
groupRequestParticipantsList: (jid: string) => Promise<{
|
|
138
|
+
[key: string]: string;
|
|
139
|
+
}[]>;
|
|
140
|
+
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{
|
|
141
|
+
status: string;
|
|
142
|
+
jid: string | undefined;
|
|
143
|
+
}[]>;
|
|
144
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: ParticipantAction) => Promise<{
|
|
145
|
+
status: string;
|
|
146
|
+
jid: string | undefined;
|
|
147
|
+
content: BinaryNode;
|
|
148
|
+
}[]>;
|
|
149
|
+
groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
|
|
150
|
+
groupInviteCode: (jid: string) => Promise<string | undefined>;
|
|
151
|
+
groupRevokeInvite: (jid: string) => Promise<string | undefined>;
|
|
152
|
+
groupAcceptInvite: (code: string) => Promise<string | undefined>;
|
|
153
|
+
groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
|
|
154
|
+
groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
155
|
+
groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
|
|
156
|
+
groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
|
|
157
|
+
groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
|
|
158
|
+
groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
|
|
159
|
+
groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
|
|
160
|
+
groupFetchAllParticipating: () => Promise<{
|
|
161
|
+
[_: string]: GroupMetadata;
|
|
162
|
+
}>;
|
|
163
|
+
serverProps: {
|
|
164
|
+
privacyTokenOn1to1: boolean;
|
|
165
|
+
profilePicPrivacyToken: boolean;
|
|
166
|
+
lidTrustedTokenIssueToLid: boolean;
|
|
167
|
+
};
|
|
168
|
+
createCallLink: (type: "audio" | "video", event?: {
|
|
169
|
+
startTime: number;
|
|
170
|
+
}, timeoutMs?: number) => Promise<string | undefined>;
|
|
171
|
+
getBotListV2: () => Promise<import("../Types/index.js").BotListInfo[]>;
|
|
172
|
+
messageMutex: {
|
|
173
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
174
|
+
};
|
|
175
|
+
receiptMutex: {
|
|
176
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
177
|
+
};
|
|
178
|
+
appStatePatchMutex: {
|
|
179
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
180
|
+
};
|
|
181
|
+
notificationMutex: {
|
|
182
|
+
mutex<T>(code: () => Promise<T> | T): Promise<T>;
|
|
183
|
+
};
|
|
184
|
+
upsertMessage: (msg: import("../Types/index.js").WAMessage, type: import("../Types/index.js").MessageUpsertType) => Promise<void>;
|
|
185
|
+
appPatch: (patchCreate: import("../Types/index.js").WAPatchCreate) => Promise<void>;
|
|
186
|
+
sendPresenceUpdate: (type: import("../Types/index.js").WAPresence, toJid?: string) => Promise<void>;
|
|
187
|
+
presenceSubscribe: (toJid: string) => Promise<void>;
|
|
188
|
+
profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
|
|
189
|
+
fetchBlocklist: () => Promise<(string | undefined)[]>;
|
|
190
|
+
fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
191
|
+
fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
|
|
192
|
+
updateProfilePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload, dimensions?: {
|
|
193
|
+
width: number;
|
|
194
|
+
height: number;
|
|
195
|
+
}) => Promise<void>;
|
|
196
|
+
removeProfilePicture: (jid: string) => Promise<void>;
|
|
197
|
+
updateProfileStatus: (status: string) => Promise<void>;
|
|
198
|
+
updateProfileName: (name: string) => Promise<void>;
|
|
199
|
+
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
|
|
200
|
+
updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
|
|
201
|
+
updateCallPrivacy: (value: import("../Types/index.js").WAPrivacyCallValue) => Promise<void>;
|
|
202
|
+
updateMessagesPrivacy: (value: import("../Types/index.js").WAPrivacyMessagesValue) => Promise<void>;
|
|
203
|
+
updateLastSeenPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
204
|
+
updateOnlinePrivacy: (value: import("../Types/index.js").WAPrivacyOnlineValue) => Promise<void>;
|
|
205
|
+
updateProfilePicturePrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
206
|
+
updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
|
|
207
|
+
updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise<void>;
|
|
208
|
+
updateGroupsAddPrivacy: (value: import("../Types/index.js").WAPrivacyGroupAddValue) => Promise<void>;
|
|
209
|
+
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
210
|
+
getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
|
|
211
|
+
resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
|
|
212
|
+
chatModify: (mod: import("../Types/index.js").ChatModification, jid: string) => Promise<void>;
|
|
213
|
+
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
|
|
214
|
+
addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
|
|
215
|
+
removeContact: (jid: string) => Promise<void>;
|
|
216
|
+
placeholderResendCache: import("../Types/index.js").CacheStore;
|
|
217
|
+
addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
|
|
218
|
+
addChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
219
|
+
removeChatLabel: (jid: string, labelId: string) => Promise<void>;
|
|
220
|
+
addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
221
|
+
removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
|
|
222
|
+
star: (jid: string, messages: {
|
|
223
|
+
id: string;
|
|
224
|
+
fromMe?: boolean;
|
|
225
|
+
}[], star: boolean) => Promise<void>;
|
|
226
|
+
addOrEditQuickReply: (quickReply: import("../Types/Bussines.js").QuickReplyAction) => Promise<void>;
|
|
227
|
+
removeQuickReply: (timestamp: string) => Promise<void>;
|
|
228
|
+
type: "md";
|
|
229
|
+
ws: import("./Client/websocket.js").WebSocketClient;
|
|
230
|
+
ev: import("../Types/index.js").BaileysEventEmitter & {
|
|
231
|
+
process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
|
|
232
|
+
buffer(): void;
|
|
233
|
+
createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
|
|
234
|
+
flush(): boolean;
|
|
235
|
+
isBuffering(): boolean;
|
|
236
|
+
destroy(): void;
|
|
237
|
+
};
|
|
238
|
+
authState: {
|
|
239
|
+
creds: import("../Types/index.js").AuthenticationCreds;
|
|
240
|
+
keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
|
|
241
|
+
};
|
|
242
|
+
signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
|
|
243
|
+
user: import("../Types/index.js").Contact | undefined;
|
|
244
|
+
generateMessageTag: () => string;
|
|
245
|
+
query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
|
|
246
|
+
waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
|
|
247
|
+
waitForSocketOpen: () => Promise<void>;
|
|
248
|
+
sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
|
|
249
|
+
sendNode: (frame: BinaryNode) => Promise<void>;
|
|
250
|
+
logout: (msg?: string) => Promise<void>;
|
|
251
|
+
end: (error: Error | undefined) => Promise<void>;
|
|
252
|
+
registerSocketEndHandler: (handler: (error: Error | undefined) => void | Promise<void>) => void;
|
|
253
|
+
onUnexpectedError: (err: Error | import("@hapi/boom").Boom, msg: string) => void;
|
|
254
|
+
uploadPreKeys: (count?: number) => Promise<void>;
|
|
255
|
+
uploadPreKeysToServerIfRequired: () => Promise<void>;
|
|
256
|
+
digestKeyBundle: () => Promise<void>;
|
|
257
|
+
rotateSignedPreKey: () => Promise<void>;
|
|
258
|
+
requestPairingCode: (phoneNumber: string, customPairingCode?: string) => Promise<string>;
|
|
259
|
+
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
260
|
+
sendUnifiedSession: () => Promise<void>;
|
|
261
|
+
wamBuffer: import("../index.js").BinaryInfo;
|
|
262
|
+
waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
263
|
+
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
264
|
+
executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
265
|
+
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
636
266
|
jid: string;
|
|
637
267
|
exists: boolean;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
268
|
+
}[] | undefined>;
|
|
269
|
+
fetchAccountReachoutTimelock: () => Promise<import("../Types/index.js").ReachoutTimelockState>;
|
|
270
|
+
fetchNewChatMessageCap: () => Promise<import("../Types/index.js").NewChatMessageCapInfo>;
|
|
641
271
|
};
|
|
642
|
-
export declare const extractCommunityMetadata: (
|
|
643
|
-
|
|
644
|
-
) => GroupMetadata;
|
|
645
|
-
//# sourceMappingURL=communities.d.ts.map
|
|
272
|
+
export declare const extractCommunityMetadata: (result: BinaryNode) => GroupMetadata;
|
|
273
|
+
//# sourceMappingURL=communities.d.ts.map
|