@vanzxy/baileys 1.3.7 → 1.3.8

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.
Files changed (122) hide show
  1. package/README.md +1 -1
  2. package/WAProto/index.d.ts +9 -0
  3. package/lib/Defaults/index.d.ts +147 -0
  4. package/lib/Defaults/index.js +2 -2
  5. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  6. package/lib/Signal/Group/group-session-builder.d.ts +7 -0
  7. package/lib/Signal/Group/group_cipher.d.ts +10 -0
  8. package/lib/Signal/Group/index.d.ts +11 -0
  9. package/lib/Signal/Group/keyhelper.d.ts +6 -0
  10. package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
  11. package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
  12. package/lib/Signal/Group/sender-key-message.d.ts +18 -0
  13. package/lib/Signal/Group/sender-key-name.d.ts +11 -0
  14. package/lib/Signal/Group/sender-key-record.d.ts +12 -0
  15. package/lib/Signal/Group/sender-key-state.d.ts +16 -0
  16. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  17. package/lib/Signal/libsignal.d.ts +54 -0
  18. package/lib/Signal/lid-mapping.d.ts +20 -0
  19. package/lib/Socket/Client/index.d.ts +2 -0
  20. package/lib/Socket/Client/types.d.ts +5 -0
  21. package/lib/Socket/Client/websocket.d.ts +12 -0
  22. package/lib/Socket/business.d.ts +395 -0
  23. package/lib/Socket/chats.d.ts +136 -0
  24. package/lib/Socket/communities.d.ts +561 -0
  25. package/lib/Socket/communities.js +4 -2
  26. package/lib/Socket/dugong.d.ts +117 -0
  27. package/lib/Socket/dugong.js +26 -1
  28. package/lib/Socket/groups.d.ts +285 -0
  29. package/lib/Socket/index.d.ts +531 -0
  30. package/lib/Socket/messages-recv.d.ts +333 -0
  31. package/lib/Socket/messages-send.d.ts +329 -0
  32. package/lib/Socket/mex.d.ts +1 -0
  33. package/lib/Socket/newsletter.d.ts +281 -0
  34. package/lib/Socket/newsletter.js +19 -19
  35. package/lib/Socket/socket.d.ts +60 -0
  36. package/lib/Store/index.d.ts +3 -0
  37. package/lib/Store/make-in-memory-store.d.ts +62 -0
  38. package/lib/Store/make-ordered-dictionary.d.ts +12 -0
  39. package/lib/Store/object-repository.d.ts +10 -0
  40. package/lib/Types/Auth.d.ts +117 -0
  41. package/lib/Types/Bussines.d.ts +25 -0
  42. package/lib/Types/Call.d.ts +15 -0
  43. package/lib/Types/Chat.d.ts +124 -0
  44. package/lib/Types/Contact.d.ts +26 -0
  45. package/lib/Types/Events.d.ts +256 -0
  46. package/lib/Types/GroupMetadata.d.ts +71 -0
  47. package/lib/Types/Label.d.ts +2 -0
  48. package/lib/Types/LabelAssociation.d.ts +2 -0
  49. package/lib/Types/Message.d.ts +11 -0
  50. package/lib/Types/Mex.d.ts +2 -0
  51. package/lib/Types/Product.d.ts +79 -0
  52. package/lib/Types/RichType.d.ts +2 -0
  53. package/lib/Types/Signal.d.ts +87 -0
  54. package/lib/Types/Socket.d.ts +136 -0
  55. package/lib/Types/State.d.ts +5 -0
  56. package/lib/Types/USync.d.ts +26 -0
  57. package/lib/Types/index.d.ts +66 -0
  58. package/lib/Utils/auth-utils.d.ts +57 -0
  59. package/lib/Utils/browser-utils.d.ts +8 -0
  60. package/lib/Utils/business.d.ts +49 -0
  61. package/lib/Utils/business.js +2 -1
  62. package/lib/Utils/chat-utils.d.ts +407 -0
  63. package/lib/Utils/chat-utils.js +15 -1
  64. package/lib/Utils/companion-reg-client-utils.d.ts +4 -0
  65. package/lib/Utils/crypto.d.ts +41 -0
  66. package/lib/Utils/decode-wa-message.d.ts +83 -0
  67. package/lib/Utils/decode-wa-message.js +1 -3
  68. package/lib/Utils/event-buffer.d.ts +12 -0
  69. package/lib/Utils/generics.d.ts +63 -0
  70. package/lib/Utils/generics.js +2 -4
  71. package/lib/Utils/history.d.ts +90 -0
  72. package/lib/Utils/identity-change-handler.d.ts +13 -0
  73. package/lib/Utils/index.d.ts +24 -0
  74. package/lib/Utils/link-preview.d.ts +12 -0
  75. package/lib/Utils/logger.d.ts +2 -0
  76. package/lib/Utils/lt-hash.d.ts +12 -0
  77. package/lib/Utils/lt-hash.js +21 -2
  78. package/lib/Utils/make-mutex.d.ts +6 -0
  79. package/lib/Utils/message-retry-manager.d.ts +79 -0
  80. package/lib/Utils/messages-media.d.ts +135 -0
  81. package/lib/Utils/messages.d.ts +44 -0
  82. package/lib/Utils/noise-handler.d.ts +20 -0
  83. package/lib/Utils/offline-node-processor.d.ts +9 -0
  84. package/lib/Utils/pre-key-manager.d.ts +25 -0
  85. package/lib/Utils/process-message.d.ts +82 -0
  86. package/lib/Utils/reporting-utils.d.ts +12 -0
  87. package/lib/Utils/rich-message-utils.d.ts +48 -0
  88. package/lib/Utils/signal.d.ts +82 -0
  89. package/lib/Utils/stanza-ack.d.ts +16 -0
  90. package/lib/Utils/sync-action-utils.d.ts +2 -0
  91. package/lib/Utils/tc-token-utils.d.ts +29 -0
  92. package/lib/Utils/use-multi-file-auth-state.d.ts +10 -0
  93. package/lib/Utils/use-single-file-auth-state.d.ts +10 -0
  94. package/lib/Utils/use-single-file-auth-state.js +6 -1
  95. package/lib/Utils/use-sqlite-auth-state.d.ts +11 -0
  96. package/lib/Utils/use-sqlite-auth-state.js +12 -0
  97. package/lib/Utils/validate-connection.d.ts +42 -0
  98. package/lib/WABinary/constants.d.ts +61 -0
  99. package/lib/WABinary/decode.d.ts +9 -0
  100. package/lib/WABinary/encode.d.ts +2 -0
  101. package/lib/WABinary/generic-utils.d.ts +74 -0
  102. package/lib/WABinary/index.d.ts +5 -0
  103. package/lib/WABinary/jid-utils.d.ts +28 -0
  104. package/lib/WABinary/types.d.ts +19 -0
  105. package/lib/WAM/BinaryInfo.d.ts +7 -0
  106. package/lib/WAM/constants.d.ts +34926 -0
  107. package/lib/WAM/encode.d.ts +1 -0
  108. package/lib/WAM/index.d.ts +3 -0
  109. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +36 -0
  110. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +29 -0
  111. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  112. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  113. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +9 -0
  114. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +38 -0
  115. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +14 -0
  116. package/lib/WAUSync/Protocols/index.d.ts +7 -0
  117. package/lib/WAUSync/USyncQuery.d.ts +20 -0
  118. package/lib/WAUSync/USyncUser.d.ts +16 -0
  119. package/lib/WAUSync/index.d.ts +3 -0
  120. package/lib/index.d.ts +12 -0
  121. package/package.json +12 -7
  122. package/postinstall-banner.js +23 -0
@@ -0,0 +1,531 @@
1
+ export { Dugong } from "./dugong.js";
2
+ export default makeWASocket;
3
+ declare function makeWASocket(config: any): {
4
+ communityQuery: (jid: any, type: any, content: any) => Promise<any>;
5
+ communityMetadata: (jid: any) => Promise<{
6
+ id: any;
7
+ subject: any;
8
+ subjectOwner: any;
9
+ subjectTime: number;
10
+ size: any;
11
+ creation: number;
12
+ owner: string | undefined;
13
+ desc: any;
14
+ descId: any;
15
+ linkedParent: any;
16
+ restrict: boolean;
17
+ announce: boolean;
18
+ isCommunity: boolean;
19
+ isCommunityAnnounce: boolean;
20
+ joinApprovalMode: boolean;
21
+ memberAddMode: boolean;
22
+ participants: any;
23
+ ephemeralDuration: number | undefined;
24
+ addressingMode: any;
25
+ }>;
26
+ communityCreate: (subject: any, body: any) => Promise<{
27
+ id: any;
28
+ notify: any;
29
+ addressingMode: any;
30
+ subject: any;
31
+ subjectOwner: any;
32
+ subjectOwnerPn: any;
33
+ subjectOwnerUsername: any;
34
+ subjectTime: number;
35
+ size: any;
36
+ creation: number;
37
+ owner: string | undefined;
38
+ ownerPn: string | undefined;
39
+ ownerUsername: any;
40
+ owner_country_code: any;
41
+ desc: any;
42
+ descId: any;
43
+ descOwner: string | undefined;
44
+ descOwnerPn: string | undefined;
45
+ descOwnerUsername: any;
46
+ descTime: number | undefined;
47
+ linkedParent: any;
48
+ restrict: boolean;
49
+ announce: boolean;
50
+ isCommunity: boolean;
51
+ isCommunityAnnounce: boolean;
52
+ joinApprovalMode: boolean;
53
+ memberAddMode: boolean;
54
+ participants: any;
55
+ ephemeralDuration: number | undefined;
56
+ } | null>;
57
+ communityCreateGroup: (subject: any, participants: any, parentCommunityJid: any) => Promise<{
58
+ id: any;
59
+ notify: any;
60
+ addressingMode: any;
61
+ subject: any;
62
+ subjectOwner: any;
63
+ subjectOwnerPn: any;
64
+ subjectOwnerUsername: any;
65
+ subjectTime: number;
66
+ size: any;
67
+ creation: number;
68
+ owner: string | undefined;
69
+ ownerPn: string | undefined;
70
+ ownerUsername: any;
71
+ owner_country_code: any;
72
+ desc: any;
73
+ descId: any;
74
+ descOwner: string | undefined;
75
+ descOwnerPn: string | undefined;
76
+ descOwnerUsername: any;
77
+ descTime: number | undefined;
78
+ linkedParent: any;
79
+ restrict: boolean;
80
+ announce: boolean;
81
+ isCommunity: boolean;
82
+ isCommunityAnnounce: boolean;
83
+ joinApprovalMode: boolean;
84
+ memberAddMode: boolean;
85
+ participants: any;
86
+ ephemeralDuration: number | undefined;
87
+ } | null>;
88
+ communityLeave: (id: any) => Promise<void>;
89
+ communityUpdateSubject: (jid: any, subject: any) => Promise<void>;
90
+ communityLinkGroup: (groupJid: any, parentCommunityJid: any) => Promise<void>;
91
+ communityUnlinkGroup: (groupJid: any, parentCommunityJid: any) => Promise<void>;
92
+ communityFetchLinkedGroups: (jid: any) => Promise<{
93
+ communityJid: any;
94
+ isCommunity: boolean;
95
+ linkedGroups: {
96
+ id: string | undefined;
97
+ subject: any;
98
+ creation: number | undefined;
99
+ owner: string | undefined;
100
+ size: number | undefined;
101
+ }[];
102
+ }>;
103
+ communityRequestParticipantsList: (jid: any) => Promise<any>;
104
+ communityRequestParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<any>;
105
+ communityParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<any>;
106
+ communityUpdateDescription: (jid: any, description: any) => Promise<void>;
107
+ communityInviteCode: (jid: any) => Promise<any>;
108
+ communityRevokeInvite: (jid: any) => Promise<any>;
109
+ communityAcceptInvite: (code: any) => Promise<any>;
110
+ communityRevokeInviteV4: (communityJid: any, invitedJid: any) => Promise<boolean>;
111
+ communityAcceptInviteV4: (...args: any[]) => Promise<any>;
112
+ communityGetInviteInfo: (code: any) => Promise<{
113
+ id: any;
114
+ subject: any;
115
+ subjectOwner: any;
116
+ subjectTime: number;
117
+ size: any;
118
+ creation: number;
119
+ owner: string | undefined;
120
+ desc: any;
121
+ descId: any;
122
+ linkedParent: any;
123
+ restrict: boolean;
124
+ announce: boolean;
125
+ isCommunity: boolean;
126
+ isCommunityAnnounce: boolean;
127
+ joinApprovalMode: boolean;
128
+ memberAddMode: boolean;
129
+ participants: any;
130
+ ephemeralDuration: number | undefined;
131
+ addressingMode: any;
132
+ }>;
133
+ communityToggleEphemeral: (jid: any, ephemeralExpiration: any) => Promise<void>;
134
+ communitySettingUpdate: (jid: any, setting: any) => Promise<void>;
135
+ communityMemberAddMode: (jid: any, mode: any) => Promise<void>;
136
+ communityJoinApprovalMode: (jid: any, mode: any) => Promise<void>;
137
+ communityFetchAllParticipating: () => Promise<{}>;
138
+ logger: any;
139
+ getOrderDetails: (orderId: any, tokenBase64: any) => Promise<{
140
+ price: {
141
+ total: number;
142
+ currency: any;
143
+ };
144
+ products: any;
145
+ }>;
146
+ getCatalog: ({ jid, limit, cursor }: {
147
+ jid: any;
148
+ limit: any;
149
+ cursor: any;
150
+ }) => Promise<{
151
+ products: any;
152
+ nextPageCursor: any;
153
+ }>;
154
+ getCollections: (jid: any, limit?: number) => Promise<{
155
+ collections: any;
156
+ }>;
157
+ productCreate: (create: any) => Promise<{
158
+ id: any;
159
+ imageUrls: {
160
+ requested: any;
161
+ original: any;
162
+ };
163
+ reviewStatus: {
164
+ whatsapp: any;
165
+ };
166
+ availability: string;
167
+ name: any;
168
+ retailerId: any;
169
+ url: any;
170
+ description: any;
171
+ price: number;
172
+ currency: any;
173
+ isHidden: boolean;
174
+ }>;
175
+ productDelete: (productIds: any) => Promise<{
176
+ deleted: number;
177
+ }>;
178
+ productUpdate: (productId: any, update: any) => Promise<{
179
+ id: any;
180
+ imageUrls: {
181
+ requested: any;
182
+ original: any;
183
+ };
184
+ reviewStatus: {
185
+ whatsapp: any;
186
+ };
187
+ availability: string;
188
+ name: any;
189
+ retailerId: any;
190
+ url: any;
191
+ description: any;
192
+ price: number;
193
+ currency: any;
194
+ isHidden: boolean;
195
+ }>;
196
+ updateBussinesProfile: (args: any) => Promise<any>;
197
+ updateBusinessProfile: (args: any) => Promise<any>;
198
+ updateCoverPhoto: (photo: any) => Promise<any>;
199
+ removeCoverPhoto: (id: any) => Promise<any>;
200
+ sendMessageAck: (node: any, errorCode: any) => Promise<void>;
201
+ sendRetryRequest: (node: any, forceIncludeKeys?: boolean) => Promise<void>;
202
+ rejectCall: (callId: any, callFrom: any) => Promise<void>;
203
+ fetchMessageHistory: (count: any, oldestMsgKey: any, oldestMsgTimestamp: any) => Promise<any>;
204
+ requestPlaceholderResend: (messageKey: any, msgData: any) => Promise<any>;
205
+ messageRetryManager: import("../index.js").MessageRetryManager | null;
206
+ userDevicesCache: any;
207
+ devicesMutex: {
208
+ mutex(code: any): any;
209
+ };
210
+ issuePrivacyTokens: (jids: any, timestamp: any) => Promise<any>;
211
+ assertSessions: (jids: any, force: any) => Promise<boolean>;
212
+ relayMessage: (jid: any, message: any, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, addBizAttributes, statusJidList }: {
213
+ messageId: any;
214
+ participant: any;
215
+ additionalAttributes: any;
216
+ additionalNodes: any;
217
+ useUserDevicesCache: any;
218
+ useCachedGroupMetadata: any;
219
+ addBizAttributes: any;
220
+ statusJidList: any;
221
+ }) => Promise<any>;
222
+ sendReceipt: (jid: any, participant: any, messageIds: any, type: any) => Promise<void>;
223
+ sendReceipts: (keys: any, type: any) => Promise<void>;
224
+ readMessages: (keys: any) => Promise<void>;
225
+ refreshMediaConn: (forceGet?: boolean) => Promise<any>;
226
+ getMediaHost: () => string;
227
+ waUploadToServer: (filePath: any, { mediaType, fileEncSha256B64, timeoutMs, newsletter }: {
228
+ mediaType: any;
229
+ fileEncSha256B64: any;
230
+ timeoutMs: any;
231
+ newsletter: any;
232
+ }) => Promise<{
233
+ mediaUrl: any;
234
+ directPath: any;
235
+ meta_hmac: any;
236
+ fbid: any;
237
+ ts: any;
238
+ thumbnailDirectPath: any;
239
+ thumbnailSha256: any;
240
+ }>;
241
+ fetchPrivacySettings: (force?: boolean) => Promise<any>;
242
+ sendPeerDataOperationMessage: (pdoMessage: any) => Promise<any>;
243
+ createParticipantNodes: (recipientJids: any, message: any, extraAttrs: any, dsmMessage: any) => Promise<{
244
+ nodes: any[];
245
+ shouldIncludeDeviceIdentity: boolean;
246
+ }>;
247
+ getUSyncDevices: (jids: any, useCache: any, ignoreZeroDevices: any) => Promise<any[]>;
248
+ updateMemberLabel: (jid: any, memberLabel: any) => Promise<any>;
249
+ updateMediaMessage: (message: any) => Promise<any>;
250
+ sendMessage: (jid: any, content: any, options?: {}) => Promise<any>;
251
+ sendReaction: (jid: any, reaction: any, key: any) => Promise<any>;
252
+ downloadMedia: (message: any, type?: string, options?: {}) => Promise<any>;
253
+ copyNForward: (jid: any, message: any, forceForward?: boolean, options?: {}) => Promise<any>;
254
+ executeWMexQuery: (variables: any, queryId: any, dataPath: any) => Promise<any>;
255
+ newsletterCreate: (name: any, description: any) => Promise<{
256
+ id: any;
257
+ owner: undefined;
258
+ name: any;
259
+ creation_time: number;
260
+ description: any;
261
+ invite: any;
262
+ subscribers: number;
263
+ verification: any;
264
+ picture: {
265
+ id: any;
266
+ directPath: any;
267
+ };
268
+ mute_state: any;
269
+ }>;
270
+ newsletterUpdate: (jid: any, updates: any) => Promise<any>;
271
+ newsletterSubscribers: (jid: any) => Promise<any>;
272
+ newsletterSubscribed: () => Promise<any>;
273
+ newsletterMetadata: (type: any, key: any) => Promise<any>;
274
+ newsletterFollow: (jid: any) => Promise<any>;
275
+ newsletterUnfollow: (jid: any) => Promise<any>;
276
+ newsletterMute: (jid: any) => Promise<any>;
277
+ newsletterUnmute: (jid: any) => Promise<any>;
278
+ newsletterUpdateName: (jid: any, name: any) => Promise<any>;
279
+ newsletterUpdateDescription: (jid: any, description: any) => Promise<any>;
280
+ newsletterUpdatePicture: (jid: any, content: any) => Promise<any>;
281
+ newsletterRemovePicture: (jid: any) => Promise<any>;
282
+ newsletterReactMessage: (jid: any, serverId: any, reaction: any) => Promise<void>;
283
+ newsletterFetchMessages: (type: any, key: any, count: any, after: any, before: any) => Promise<any[]>;
284
+ subscribeNewsletterUpdates: (jid: any) => Promise<{
285
+ duration: any;
286
+ } | null>;
287
+ newsletterAdminCount: (jid: any) => Promise<any>;
288
+ newsletterChangeOwner: (jid: any, newOwnerJid: any) => Promise<void>;
289
+ newsletterDemote: (jid: any, userJid: any) => Promise<void>;
290
+ newsletterDelete: (jid: any) => Promise<void>;
291
+ groupQuery: (jid: any, type: any, content: any) => Promise<any>;
292
+ groupMetadata: (jid: any) => Promise<{
293
+ id: any;
294
+ notify: any;
295
+ addressingMode: any;
296
+ subject: any;
297
+ subjectOwner: any;
298
+ subjectOwnerPn: any;
299
+ subjectOwnerUsername: any;
300
+ subjectTime: number;
301
+ size: any;
302
+ creation: number;
303
+ owner: string | undefined;
304
+ ownerPn: string | undefined;
305
+ ownerUsername: any;
306
+ owner_country_code: any;
307
+ desc: any;
308
+ descId: any;
309
+ descOwner: string | undefined;
310
+ descOwnerPn: string | undefined;
311
+ descOwnerUsername: any;
312
+ descTime: number | undefined;
313
+ linkedParent: any;
314
+ restrict: boolean;
315
+ announce: boolean;
316
+ isCommunity: boolean;
317
+ isCommunityAnnounce: boolean;
318
+ joinApprovalMode: boolean;
319
+ memberAddMode: boolean;
320
+ participants: any;
321
+ ephemeralDuration: number | undefined;
322
+ }>;
323
+ groupCreate: (subject: any, participants: any) => Promise<{
324
+ id: any;
325
+ notify: any;
326
+ addressingMode: any;
327
+ subject: any;
328
+ subjectOwner: any;
329
+ subjectOwnerPn: any;
330
+ subjectOwnerUsername: any;
331
+ subjectTime: number;
332
+ size: any;
333
+ creation: number;
334
+ owner: string | undefined;
335
+ ownerPn: string | undefined;
336
+ ownerUsername: any;
337
+ owner_country_code: any;
338
+ desc: any;
339
+ descId: any;
340
+ descOwner: string | undefined;
341
+ descOwnerPn: string | undefined;
342
+ descOwnerUsername: any;
343
+ descTime: number | undefined;
344
+ linkedParent: any;
345
+ restrict: boolean;
346
+ announce: boolean;
347
+ isCommunity: boolean;
348
+ isCommunityAnnounce: boolean;
349
+ joinApprovalMode: boolean;
350
+ memberAddMode: boolean;
351
+ participants: any;
352
+ ephemeralDuration: number | undefined;
353
+ }>;
354
+ groupLeave: (id: any) => Promise<void>;
355
+ groupUpdateSubject: (jid: any, subject: any) => Promise<void>;
356
+ groupRequestParticipantsList: (jid: any) => Promise<any>;
357
+ groupRequestParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<any>;
358
+ groupParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<any[]>;
359
+ groupUpdateDescription: (jid: any, description: any) => Promise<void>;
360
+ groupInviteCode: (jid: any) => Promise<any>;
361
+ groupRevokeInvite: (jid: any) => Promise<any>;
362
+ groupAcceptInvite: (code: any) => Promise<any>;
363
+ groupRevokeInviteV4: (groupJid: any, invitedJid: any) => Promise<boolean>;
364
+ groupAcceptInviteV4: (...args: any[]) => Promise<any>;
365
+ groupGetInviteInfo: (code: any) => Promise<{
366
+ id: any;
367
+ notify: any;
368
+ addressingMode: any;
369
+ subject: any;
370
+ subjectOwner: any;
371
+ subjectOwnerPn: any;
372
+ subjectOwnerUsername: any;
373
+ subjectTime: number;
374
+ size: any;
375
+ creation: number;
376
+ owner: string | undefined;
377
+ ownerPn: string | undefined;
378
+ ownerUsername: any;
379
+ owner_country_code: any;
380
+ desc: any;
381
+ descId: any;
382
+ descOwner: string | undefined;
383
+ descOwnerPn: string | undefined;
384
+ descOwnerUsername: any;
385
+ descTime: number | undefined;
386
+ linkedParent: any;
387
+ restrict: boolean;
388
+ announce: boolean;
389
+ isCommunity: boolean;
390
+ isCommunityAnnounce: boolean;
391
+ joinApprovalMode: boolean;
392
+ memberAddMode: boolean;
393
+ participants: any;
394
+ ephemeralDuration: number | undefined;
395
+ }>;
396
+ groupToggleEphemeral: (jid: any, ephemeralExpiration: any) => Promise<void>;
397
+ groupSettingUpdate: (jid: any, setting: any) => Promise<void>;
398
+ groupMemberAddMode: (jid: any, mode: any) => Promise<void>;
399
+ groupJoinApprovalMode: (jid: any, mode: any) => Promise<void>;
400
+ groupFetchAllParticipating: () => Promise<{}>;
401
+ findUserId: (pnLid: any) => Promise<{
402
+ lid: undefined;
403
+ phoneNumber: undefined;
404
+ }>;
405
+ serverProps: {
406
+ privacyTokenOn1to1: boolean;
407
+ profilePicPrivacyToken: boolean;
408
+ lidTrustedTokenIssueToLid: boolean;
409
+ };
410
+ createCallLink: (type: any, event: any, timeoutMs: any) => Promise<any>;
411
+ getBotListV2: () => Promise<{
412
+ jid: any;
413
+ personaId: any;
414
+ }[]>;
415
+ messageMutex: {
416
+ mutex(code: any): any;
417
+ };
418
+ receiptMutex: {
419
+ mutex(code: any): any;
420
+ };
421
+ appStatePatchMutex: {
422
+ mutex(code: any): any;
423
+ };
424
+ notificationMutex: {
425
+ mutex(code: any): any;
426
+ };
427
+ upsertMessage: (...args: any[]) => Promise<any>;
428
+ appPatch: (patchCreate: any) => Promise<void>;
429
+ sendPresenceUpdate: (type: any, toJid: any) => Promise<void>;
430
+ presenceSubscribe: (toJid: any) => Promise<void>;
431
+ profilePictureUrl: (jid: any, type?: string, timeoutMs?: number, shouldIncludeTcToken?: boolean) => Promise<any>;
432
+ fetchBlocklist: () => Promise<any>;
433
+ fetchStatus: (...jids: any[]) => Promise<any>;
434
+ fetchDisappearingDuration: (...jids: any[]) => Promise<any>;
435
+ updateProfilePicture: (jid: any, content: any, dimensions: any) => Promise<void>;
436
+ removeProfilePicture: (jid: any) => Promise<void>;
437
+ updateProfileStatus: (status: any) => Promise<void>;
438
+ updateProfileName: (name: any) => Promise<void>;
439
+ updateBlockStatus: (jid: any, action: any) => Promise<void>;
440
+ updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: any) => Promise<void>;
441
+ updateCallPrivacy: (value: any) => Promise<void>;
442
+ updateMessagesPrivacy: (value: any) => Promise<void>;
443
+ updateLastSeenPrivacy: (value: any) => Promise<void>;
444
+ updateOnlinePrivacy: (value: any) => Promise<void>;
445
+ updateProfilePicturePrivacy: (value: any) => Promise<void>;
446
+ updateStatusPrivacy: (value: any) => Promise<void>;
447
+ updateReadReceiptsPrivacy: (value: any) => Promise<void>;
448
+ updateGroupsAddPrivacy: (value: any) => Promise<void>;
449
+ updateDefaultDisappearingMode: (duration: any) => Promise<void>;
450
+ getBusinessProfile: (jid: any) => Promise<{
451
+ wid: any;
452
+ address: any;
453
+ description: any;
454
+ website: any[];
455
+ email: any;
456
+ category: any;
457
+ business_hours: {
458
+ timezone: any;
459
+ business_config: any;
460
+ };
461
+ } | undefined>;
462
+ resyncAppState: (...args: any[]) => Promise<any>;
463
+ chatModify: (mod: any, jid: any) => Promise<void>;
464
+ cleanDirtyBits: (type: any, fromTimestamp: any) => Promise<void>;
465
+ addOrEditContact: (jid: any, contact: any) => Promise<void>;
466
+ removeContact: (jid: any) => Promise<void>;
467
+ placeholderResendCache: any;
468
+ addLabel: (jid: any, labels: any) => Promise<void>;
469
+ addChatLabel: (jid: any, labelId: any) => Promise<void>;
470
+ removeChatLabel: (jid: any, labelId: any) => Promise<void>;
471
+ addMessageLabel: (jid: any, messageId: any, labelId: any) => Promise<void>;
472
+ removeMessageLabel: (jid: any, messageId: any, labelId: any) => Promise<void>;
473
+ star: (jid: any, messages: any, star: any) => Promise<void>;
474
+ addOrEditQuickReply: (quickReply: any) => Promise<void>;
475
+ removeQuickReply: (timestamp: any) => Promise<void>;
476
+ type: string;
477
+ ws: import("./Client/websocket.js").WebSocketClient;
478
+ ev: {
479
+ process(handler: any): () => void;
480
+ emit(event: any, evData: any): any;
481
+ isBuffering(): boolean;
482
+ buffer: () => void;
483
+ flush: () => boolean;
484
+ createBufferedFunction(work: any): (...args: any[]) => Promise<any>;
485
+ on: (...args: any[]) => any;
486
+ off: (...args: any[]) => any;
487
+ removeAllListeners: (...args: any[]) => any;
488
+ destroy(): void;
489
+ };
490
+ authState: {
491
+ creds: any;
492
+ keys: {
493
+ get: (type: any, ids: any) => Promise<any>;
494
+ set: (data: any) => Promise<void>;
495
+ isInTransaction: () => boolean;
496
+ transaction: (work: any, key: any) => Promise<any>;
497
+ };
498
+ };
499
+ signalRepository: any;
500
+ user: any;
501
+ generateMessageTag: () => string;
502
+ query: (node: any, timeoutMs: any) => Promise<any>;
503
+ waitForMessage: (msgId: any, timeoutMs?: any) => Promise<any>;
504
+ waitForSocketOpen: () => Promise<void>;
505
+ sendRawMessage: (data: any) => Promise<void>;
506
+ sendNode: (frame: any) => Promise<void>;
507
+ logout: (msg: any) => Promise<void>;
508
+ end: (error: any) => Promise<void>;
509
+ registerSocketEndHandler: (handler: any) => void;
510
+ onUnexpectedError: (err: any, msg: any) => void;
511
+ uploadPreKeys: (count?: number) => Promise<void>;
512
+ uploadPreKeysToServerIfRequired: () => Promise<void>;
513
+ digestKeyBundle: () => Promise<void>;
514
+ rotateSignedPreKey: () => Promise<void>;
515
+ requestPairingCode: (phoneNumber: any, customPairingCode: any) => Promise<any>;
516
+ updateServerTimeOffset: ({ attrs }: {
517
+ attrs: any;
518
+ }) => void;
519
+ sendUnifiedSession: () => Promise<void>;
520
+ wamBuffer: import("../index.js").BinaryInfo;
521
+ waitForConnectionUpdate: (check: any, timeoutMs: any) => Promise<void>;
522
+ sendWAMBuffer: (wamBuffer: any) => Promise<any>;
523
+ executeUSyncQuery: (usyncQuery: any) => Promise<any>;
524
+ onWhatsApp: (...phoneNumber: any[]) => Promise<any>;
525
+ fetchAccountReachoutTimelock: () => Promise<{
526
+ isActive: boolean;
527
+ timeEnforcementEnds: Date | undefined;
528
+ enforcementType: any;
529
+ }>;
530
+ fetchNewChatMessageCap: () => Promise<any>;
531
+ };