@open-wa/schema 5.3.0 → 5.5.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.
Files changed (74) hide show
  1. package/dist/calling-media--BLrFrPc.cjs +113 -0
  2. package/dist/calling-media--BLrFrPc.cjs.map +1 -0
  3. package/dist/calling-media-BNTYvogE.mjs +60 -0
  4. package/dist/calling-media-BNTYvogE.mjs.map +1 -0
  5. package/dist/calling-media-CeGgSzhw.d.cts +48 -0
  6. package/dist/calling-media-CeGgSzhw.d.cts.map +1 -0
  7. package/dist/calling-media-CeGgSzhw.d.mts +48 -0
  8. package/dist/calling-media-CeGgSzhw.d.mts.map +1 -0
  9. package/dist/calling-media.cjs +8 -0
  10. package/dist/calling-media.d.cts +2 -0
  11. package/dist/calling-media.d.mts +2 -0
  12. package/dist/calling-media.mjs +2 -0
  13. package/dist/generated/index.cjs +94 -3
  14. package/dist/generated/index.cjs.map +1 -1
  15. package/dist/generated/index.d.cts +2328 -133
  16. package/dist/generated/index.d.cts.map +1 -1
  17. package/dist/generated/index.d.mts +2328 -133
  18. package/dist/generated/index.d.mts.map +1 -1
  19. package/dist/generated/index.mjs +94 -3
  20. package/dist/generated/index.mjs.map +1 -1
  21. package/dist/{index-C9Ad0lEr.d.cts → index-BWvNXopK.d.cts} +2375 -41
  22. package/dist/index-BWvNXopK.d.cts.map +1 -0
  23. package/dist/{index-D0QN2PaW.d.mts → index-Co8HQxm8.d.mts} +2375 -41
  24. package/dist/index-Co8HQxm8.d.mts.map +1 -0
  25. package/dist/index.cjs +191 -20
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +3 -2
  28. package/dist/index.d.mts +3 -2
  29. package/dist/index.mjs +105 -21
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/methods/index.cjs +34 -1
  32. package/dist/methods/index.d.cts +2 -2
  33. package/dist/methods/index.d.mts +2 -2
  34. package/dist/methods/index.mjs +2 -2
  35. package/dist/{methods-BhLsQNtL.mjs → methods-BH7nDC3z.mjs} +816 -51
  36. package/dist/methods-BH7nDC3z.mjs.map +1 -0
  37. package/dist/{methods-BGmdzjd3.cjs → methods-DpDzgsbe.cjs} +1284 -63
  38. package/dist/methods-DpDzgsbe.cjs.map +1 -0
  39. package/package.json +15 -4
  40. package/src/calling-media.ts +64 -0
  41. package/src/calling-wire.ts +17 -0
  42. package/src/calling.ts +61 -0
  43. package/src/common-types.ts +16 -0
  44. package/src/effect-projection.ts +67 -0
  45. package/src/events/calls.ts +12 -0
  46. package/src/events/groups.ts +30 -6
  47. package/src/events/index.ts +4 -0
  48. package/src/events/messaging.ts +7 -7
  49. package/src/events/polls.ts +11 -0
  50. package/src/events/registry.ts +2 -1
  51. package/src/events/whatsapp-events.ts +13 -0
  52. package/src/generated/AliasMap.ts +30 -1
  53. package/src/generated/BaseClient.ts +153 -8
  54. package/src/generated/BaseNamespacedClient.ts +36 -1
  55. package/src/generated/openapi.json +22999 -12765
  56. package/src/generated/types.ts +87 -0
  57. package/src/index.ts +10 -0
  58. package/src/license.ts +10 -0
  59. package/src/media-options.ts +46 -0
  60. package/src/methods/calls.ts +23 -0
  61. package/src/methods/contacts.ts +10 -1
  62. package/src/methods/groups.ts +9 -3
  63. package/src/methods/index.ts +2 -0
  64. package/src/methods/messaging.ts +159 -45
  65. package/src/methods/session.ts +10 -0
  66. package/src/methods/whatsapp-events.ts +35 -0
  67. package/src/polls.ts +37 -0
  68. package/src/session-refresh.ts +15 -0
  69. package/src/whatsapp-event-registry.ts +17 -0
  70. package/src/whatsapp-events.ts +91 -0
  71. package/dist/index-C9Ad0lEr.d.cts.map +0 -1
  72. package/dist/index-D0QN2PaW.d.mts.map +0 -1
  73. package/dist/methods-BGmdzjd3.cjs.map +0 -1
  74. package/dist/methods-BhLsQNtL.mjs.map +0 -1
@@ -1,7 +1,9 @@
1
- import { $n as getGroupInfo, $r as react, An as addLabel, Ar as getChat, Ba as MessageAck, Bn as postVideoStatus, Br as unpinChat, Ci as starMessage, Cn as isPlugged, Cr as getProfilePicture, Dn as getBusinessProducts, Dr as deleteChat, En as setProfilePicture, Er as clearChat, Fn as deleteStatus, Fr as muteChat, Ga as MessageTypes, Gn as getCommunityParticipantIds, Gr as getMessageById, Hn as getCommunityAdminIds, Hr as deleteMessage, In as getStatus, Ir as pinChat, Jn as approveGroupJoinRequest, Jr as getMyLastMessage, Kn as getCommunityParticipants, Kr as getMessageInfo, Ln as getStories, Lr as setChatEphemeral, Mn as getChatsByLabel, Mr as isChatOnline, Nn as removeLabel, Nr as markAsRead, On as getBusinessProfile, Or as getAllChatIds, Pn as deleteAllStatus, Pr as markAsUnread, Qn as getGroupAdmins, Qr as loadEarlierMessages, Rn as postImageStatus, Rr as unarchiveChat, Si as sendYouTubeLink, Sn as healthCheck, Sr as getNumberProfile, Tn as setMyStatus, Tr as archiveChat, Un as getCommunityAdmins, Ur as forwardMessages, Vn as getAllCommunities, Wn as getCommunityInfo, Wr as getAllMessages, Xn as demoteParticipant, Xr as getUnsentMessages, Yn as createGroup, Yr as getStarredMessages, Zn as getAllGroups, Zr as getVCards, _i as sendSeen, _n as getMe, _r as checkReadReceipts, ai as sendFile, ar as leaveGroup, bi as sendVCard, bn as getUserAgent, br as getCommonGroups, ci as sendLinkWithAutoPreview, cn as sendRawMessage, cr as removeParticipant, di as sendMessageWithThumb, dn as getBatteryLevel, dr as setGroupEditToAdminsOnly, ei as sendAdvancedButtons, er as getGroupInviteLink, fi as sendMultipleContacts, fn as getConnectionState, fr as setGroupIcon, gi as sendReplyWithMentions, gn as getLoadedMessageCount, gr as checkNumberStatus, hi as sendPtt, hn as getLicenseType, hr as blockContact, ii as sendContact, in as index_d_exports, ir as joinGroupViaLink, jn as getAllLabels, jr as getChatWithNonContacts, kn as getOrder, kr as getAllChats, li as sendListMessage, ln as decryptMedia, lr as revokeGroupInviteLink, mi as sendPoll, mn as getHostNumber, mr as setGroupToAdminsOnly, ni as sendBanner, nr as getGroupMembersId, oi as sendFileFromUrl, or as promoteParticipant, pi as sendPaymentRequest, pn as getFeatures, pr as setGroupTitle, qn as addParticipant, qr as getMessagesForLLM, ri as sendButtons, rr as getKickedGroups, si as sendImage, sn as sendInteractive, sr as rejectGroupJoinRequest, ti as sendAudio, tr as getGroupMembers, ui as sendLocation, un as downloadMedia, ur as setGroupDescription, vi as sendText, vn as getProcessStats, vr as getAllContacts, wi as unstarMessage, wn as setMyName, wr as unblockContact, xi as sendVideoAsGif, xn as getWAVersion, xr as getContact, yi as sendTextWithMentions, yn as getSnapshot, yr as getBlockedIds, zn as postTextStatus, zr as unmuteChat } from "../index-D0QN2PaW.mjs";
1
+ import { $a as react, $i as setGroupDescription, $r as getFeatures, Aa as unmuteChat, Ai as getCommunityAdmins, Ar as getEventResponses, Ba as forwardMessages, Bi as getAllGroups, Br as observeCallAudio, Ca as isChatOnline, Ci as getStatus, Co as sendVideoAsGif, Da as pinChat, Di as postVideoStatus, Do as unstarMessage, Dr as cancelEvent, Ea as muteChat, Ei as postTextStatus, Eo as unpinMessage, Er as index_d_exports, Fr as clearCallAudio, Ga as getMessagesForLLM, Gi as getGroupMembersId, Ha as getAllMessages, Hi as getGroupInfo, Hr as setCallMedia, Ii as addParticipant, Ir as endCall, Ja as getStarredMessages, Ji as leaveGroup, Jr as sendRawMessage, Ka as getMyLastMessage, Ki as getKickedGroups, Li as approveGroupJoinRequest, Lr as getActiveCall, Mi as getCommunityParticipantIds, Mr as respondToEvent, Ni as getCommunityParticipants, Nr as sendEvent, Oa as setChatEphemeral, Oi as getAllCommunities, Oo as voteOnPoll, Or as editEvent, Pr as acceptCall, Qa as pinMessage, Qi as revokeGroupInviteLink, Qr as getConnectionState, Ra as deleteMessage, Ri as createGroup, Rr as getCallCapabilities, Sa as getChatWithNonContacts, Si as deleteStatus, So as sendVCard, Ta as markAsUnread, Ti as postImageStatus, To as starMessage, Ua as getMessageById, Ui as getGroupInviteLink, Ur as startCall, Va as getAlbumMessages, Vi as getGroupAdmins, Vr as rejectCall, Wa as getMessageInfo, Wi as getGroupMembers, Wr as stopCallAudioObserver, Ws as MessageAck, Xa as getVCards, Xi as rejectGroupJoinRequest, Xr as downloadMedia, Ya as getUnsentMessages, Yi as promoteParticipant, Yr as decryptMedia, Ys as MessageTypes, Za as loadEarlierMessages, Zi as removeParticipant, Zr as getBatteryLevel, _a as clearChat, _i as addLabel, _o as sendReplyWithMentions, aa as checkNumberStatus, ai as getProcessStats, ao as sendContact, ba as getAllChats, bi as removeLabel, bo as sendText, ca as getBlockedIds, ci as getWAVersion, co as sendImage, da as getNumberProfile, di as setMyName, do as sendLocation, ea as setGroupEditToAdminsOnly, ei as getHostNumber, eo as sendAdvancedButtons, fa as getProfilePicture, fi as setMyStatus, fo as sendMessageWithThumb, ga as archiveChat, gi as getOrder, go as sendPtt, ha as unblockContact, hi as getBusinessProfile, ho as sendPoll, ia as blockContact, ii as getMe, io as sendButtons, ja as unpinChat, ji as getCommunityInfo, jr as getEvents, ka as unarchiveChat, ki as getCommunityAdminIds, kr as getEvent, la as getCommonGroups, li as healthCheck, lo as sendLinkWithAutoPreview, ma as sharePhoneNumber, mi as getBusinessProducts, mo as sendPaymentRequest, na as setGroupTitle, ni as getLicenseType, no as sendAudio, oa as checkReadReceipts, oi as getSnapshot, oo as sendFile, pa as requestPhoneNumber, pi as setProfilePicture, po as sendMultipleContacts, qa as getPollResults, qi as joinGroupViaLink, qr as sendInteractive, ra as setGroupToAdminsOnly, ri as getLoadedMessageCount, ro as sendBanner, sa as getAllContacts, si as getUserAgent, so as sendFileFromUrl, ta as setGroupIcon, ti as getLicenseFeatures, to as sendAlbum, ua as getContact, ui as isPlugged, uo as sendListMessage, va as deleteChat, vi as getAllLabels, vo as sendSeen, wa as markAsRead, wi as getStories, wo as sendYouTubeLink, xa as getChat, xi as deleteAllStatus, xo as sendTextWithMentions, ya as getAllChatIds, yi as getChatsByLabel, yo as sendSticker, za as editMessage, zi as demoteParticipant, zr as muteCall } from "../index-Co8HQxm8.mjs";
2
2
  import * as Zod from "zod";
3
3
  //#region src/generated/AliasMap.d.ts
4
4
  export declare const clientMethodAliasMap: {
5
+ readonly "messages.sendSticker": "sendSticker";
6
+ readonly "messages.sendAlbum": "sendAlbum";
5
7
  readonly "messages.sendText": "sendText";
6
8
  readonly "messages.sendTextWithMentions": "sendTextWithMentions";
7
9
  readonly "messages.sendReplyWithMentions": "sendReplyWithMentions";
@@ -24,6 +26,10 @@ export declare const clientMethodAliasMap: {
24
26
  readonly sendList: "sendListMessage";
25
27
  readonly "messages.sendList": "sendListMessage";
26
28
  readonly "messages.sendPoll": "sendPoll";
29
+ readonly "messages.voteOnPoll": "voteOnPoll";
30
+ readonly "messages.getPollResults": "getPollResults";
31
+ readonly "messages.pin": "pinMessage";
32
+ readonly "messages.unpin": "unpinMessage";
27
33
  readonly "messages.sendBanner": "sendBanner";
28
34
  readonly sendYoutubeLink: "sendYouTubeLink";
29
35
  readonly "messages.sendYouTubeLink": "sendYouTubeLink";
@@ -39,6 +45,7 @@ export declare const clientMethodAliasMap: {
39
45
  readonly getMessage: "getMessageById";
40
46
  readonly "messages.get": "getMessageById";
41
47
  readonly "messages.getById": "getMessageById";
48
+ readonly "messages.getAlbum": "getAlbumMessages";
42
49
  readonly listMessages: "getAllMessages";
43
50
  readonly "messages.getAll": "getAllMessages";
44
51
  readonly "messages.all": "getAllMessages";
@@ -53,6 +60,7 @@ export declare const clientMethodAliasMap: {
53
60
  readonly "messages.getGptArray": "getMessagesForLLM";
54
61
  readonly "messages.star": "starMessage";
55
62
  readonly "messages.unstar": "unstarMessage";
63
+ readonly "messages.edit": "editMessage";
56
64
  readonly "messages.react": "react";
57
65
  readonly "messages.sendSeen": "sendSeen";
58
66
  readonly loadOlderMessages: "loadEarlierMessages";
@@ -84,6 +92,8 @@ export declare const clientMethodAliasMap: {
84
92
  readonly "chats.markAsUnread": "markAsUnread";
85
93
  readonly "chats.setEphemeral": "setChatEphemeral";
86
94
  readonly "chats.isOnline": "isChatOnline";
95
+ readonly "contacts.requestPhoneNumber": "requestPhoneNumber";
96
+ readonly "contacts.sharePhoneNumber": "sharePhoneNumber";
87
97
  readonly listContacts: "getAllContacts";
88
98
  readonly "contacts.getAll": "getAllContacts";
89
99
  readonly "contacts.all": "getAllContacts";
@@ -185,6 +195,7 @@ export declare const clientMethodAliasMap: {
185
195
  readonly "session.getIsPlugged": "isPlugged";
186
196
  readonly "session.getFeatures": "getFeatures";
187
197
  readonly "session.getLicenseType": "getLicenseType";
198
+ readonly "session.getLicenseFeatures": "getLicenseFeatures";
188
199
  readonly getGeneratedUserAgent: "getUserAgent";
189
200
  readonly "session.getUserAgent": "getUserAgent";
190
201
  readonly "session.getGeneratedUserAgent": "getUserAgent";
@@ -211,12 +222,93 @@ export declare const clientMethodAliasMap: {
211
222
  readonly "media.download": "downloadMedia";
212
223
  readonly "messages.sendInteractive": "sendInteractive";
213
224
  readonly "messages.sendRaw": "sendRawMessage";
225
+ readonly "calls.getCallCapabilities": "getCallCapabilities";
226
+ readonly "calls.getActiveCall": "getActiveCall";
227
+ readonly "calls.acceptCall": "acceptCall";
228
+ readonly "calls.startCall": "startCall";
229
+ readonly "calls.rejectCall": "rejectCall";
230
+ readonly "calls.endCall": "endCall";
231
+ readonly "calls.muteCall": "muteCall";
232
+ readonly "calls.clearCallAudio": "clearCallAudio";
233
+ readonly "calls.setCallMedia": "setCallMedia";
234
+ readonly "calls.observeCallAudio": "observeCallAudio";
235
+ readonly "calls.stopCallAudioObserver": "stopCallAudioObserver";
236
+ readonly "events.sendEvent": "sendEvent";
237
+ readonly "events.getEvent": "getEvent";
238
+ readonly "events.get": "getEvents";
239
+ readonly "events.getEventResponses": "getEventResponses";
240
+ readonly "events.editEvent": "editEvent";
241
+ readonly "events.cancelEvent": "cancelEvent";
242
+ readonly "events.respondToEvent": "respondToEvent";
214
243
  };
215
244
  //#endregion
216
245
  //#region src/generated/BaseClient.d.ts
217
246
  export declare abstract class BaseClient {
218
247
  protected abstract execute(method: string, args: any): Promise<any>;
219
248
  protected pup(_func: any, args: any): Promise<any>;
249
+ sendSticker: (...args: any[] | unknown[] | [] | [{
250
+ to: string;
251
+ input: string;
252
+ job?: {
253
+ effects?: (string | {
254
+ name: string;
255
+ options?: Record<string, unknown> | undefined;
256
+ })[] | undefined;
257
+ backend?: "auto" | "browser" | "standalone" | undefined;
258
+ quality?: number | undefined;
259
+ fit?: "contain" | "cover" | undefined;
260
+ circle?: boolean | undefined;
261
+ background?: string | undefined;
262
+ trim?: [number, number] | undefined;
263
+ fps?: number | undefined;
264
+ loopCount?: number | undefined;
265
+ author?: string | undefined;
266
+ pack?: string | undefined;
267
+ quotedMsgId?: string | undefined;
268
+ } | undefined;
269
+ }] | [{
270
+ to: string;
271
+ input: string;
272
+ job?: {
273
+ effects?: (string | {
274
+ name: string;
275
+ options?: Record<string, unknown> | undefined;
276
+ })[] | undefined;
277
+ backend?: "auto" | "browser" | "standalone" | undefined;
278
+ quality?: number | undefined;
279
+ fit?: "contain" | "cover" | undefined;
280
+ circle?: boolean | undefined;
281
+ background?: string | undefined;
282
+ trim?: [number, number] | undefined;
283
+ fps?: number | undefined;
284
+ loopCount?: number | undefined;
285
+ author?: string | undefined;
286
+ pack?: string | undefined;
287
+ quotedMsgId?: string | undefined;
288
+ } | undefined;
289
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
290
+ sendAlbum: (...args: any[] | unknown[] | [] | [{
291
+ to: string;
292
+ media: {
293
+ file: string;
294
+ filename: string;
295
+ isGif?: boolean | undefined;
296
+ }[];
297
+ caption?: string | undefined;
298
+ quotedMsgId?: string | undefined;
299
+ }] | [{
300
+ to: string;
301
+ media: {
302
+ file: string;
303
+ filename: string;
304
+ isGif?: boolean | undefined;
305
+ }[];
306
+ caption?: string | undefined;
307
+ quotedMsgId?: string | undefined;
308
+ }, ...unknown[]]) => Promise<{
309
+ albumId: string & import("zod").$brand<"MessageId">;
310
+ messageIds: (string & import("zod").$brand<"MessageId">)[];
311
+ }>;
220
312
  sendText: (...args: any[] | unknown[] | [] | [{
221
313
  to: string;
222
314
  content: string;
@@ -272,19 +364,67 @@ export declare abstract class BaseClient {
272
364
  } | (string & import("zod").$brand<"MessageId">)>;
273
365
  sendImage: (...args: any[] | unknown[] | [] | [{
274
366
  to: string;
275
- imgData: string | Buffer<ArrayBufferLike>;
367
+ file: string | Buffer<ArrayBufferLike>;
276
368
  filename?: string | undefined;
277
- caption?: string | undefined;
278
- id?: string | undefined;
279
- waitForId?: boolean | undefined;
369
+ options?: {
370
+ quotedMsgId?: string | undefined;
371
+ viewOnce?: boolean | undefined;
372
+ type: "audio";
373
+ ptt?: boolean | undefined;
374
+ } | {
375
+ quotedMsgId?: string | undefined;
376
+ caption?: string | undefined;
377
+ viewOnce?: boolean | undefined;
378
+ type?: "auto" | undefined;
379
+ } | {
380
+ quotedMsgId?: string | undefined;
381
+ caption?: string | undefined;
382
+ viewOnce?: boolean | undefined;
383
+ type: "image";
384
+ } | {
385
+ quotedMsgId?: string | undefined;
386
+ caption?: string | undefined;
387
+ viewOnce?: boolean | undefined;
388
+ type: "video";
389
+ isGif?: boolean | undefined;
390
+ videoNote?: boolean | undefined;
391
+ } | {
392
+ quotedMsgId?: string | undefined;
393
+ caption?: string | undefined;
394
+ type: "document";
395
+ } | undefined;
280
396
  }] | [{
281
397
  to: string;
282
- imgData: string | Buffer<ArrayBufferLike>;
398
+ file: string | Buffer<ArrayBufferLike>;
283
399
  filename?: string | undefined;
284
- caption?: string | undefined;
285
- id?: string | undefined;
286
- waitForId?: boolean | undefined;
287
- }, ...unknown[]]) => Promise<string | boolean | {
400
+ options?: {
401
+ quotedMsgId?: string | undefined;
402
+ viewOnce?: boolean | undefined;
403
+ type: "audio";
404
+ ptt?: boolean | undefined;
405
+ } | {
406
+ quotedMsgId?: string | undefined;
407
+ caption?: string | undefined;
408
+ viewOnce?: boolean | undefined;
409
+ type?: "auto" | undefined;
410
+ } | {
411
+ quotedMsgId?: string | undefined;
412
+ caption?: string | undefined;
413
+ viewOnce?: boolean | undefined;
414
+ type: "image";
415
+ } | {
416
+ quotedMsgId?: string | undefined;
417
+ caption?: string | undefined;
418
+ viewOnce?: boolean | undefined;
419
+ type: "video";
420
+ isGif?: boolean | undefined;
421
+ videoNote?: boolean | undefined;
422
+ } | {
423
+ quotedMsgId?: string | undefined;
424
+ caption?: string | undefined;
425
+ type: "document";
426
+ } | undefined;
427
+ }, ...unknown[]]) => Promise<boolean | {
288
428
  [x: string]: unknown;
289
429
  _serialized: string;
290
430
  } | (string & import("zod").$brand<"MessageId">)>;
@@ -292,13 +432,65 @@ export declare abstract class BaseClient {
292
432
  to: string;
293
433
  file: string | Buffer<ArrayBufferLike>;
294
434
  filename?: string | undefined;
295
- caption?: string | undefined;
435
+ options?: {
436
+ quotedMsgId?: string | undefined;
437
+ viewOnce?: boolean | undefined;
438
+ type: "audio";
439
+ ptt?: boolean | undefined;
440
+ } | {
441
+ quotedMsgId?: string | undefined;
442
+ caption?: string | undefined;
443
+ viewOnce?: boolean | undefined;
444
+ type?: "auto" | undefined;
445
+ } | {
446
+ quotedMsgId?: string | undefined;
447
+ caption?: string | undefined;
448
+ viewOnce?: boolean | undefined;
449
+ type: "image";
450
+ } | {
451
+ quotedMsgId?: string | undefined;
452
+ caption?: string | undefined;
453
+ viewOnce?: boolean | undefined;
454
+ type: "video";
455
+ isGif?: boolean | undefined;
456
+ videoNote?: boolean | undefined;
457
+ } | {
458
+ quotedMsgId?: string | undefined;
459
+ caption?: string | undefined;
460
+ type: "document";
461
+ } | undefined;
296
462
  }] | [{
297
463
  to: string;
298
464
  file: string | Buffer<ArrayBufferLike>;
299
465
  filename?: string | undefined;
300
- caption?: string | undefined;
301
- }, ...unknown[]]) => Promise<string | {
466
+ options?: {
467
+ quotedMsgId?: string | undefined;
468
+ viewOnce?: boolean | undefined;
469
+ type: "audio";
470
+ ptt?: boolean | undefined;
471
+ } | {
472
+ quotedMsgId?: string | undefined;
473
+ caption?: string | undefined;
474
+ viewOnce?: boolean | undefined;
475
+ type?: "auto" | undefined;
476
+ } | {
477
+ quotedMsgId?: string | undefined;
478
+ caption?: string | undefined;
479
+ viewOnce?: boolean | undefined;
480
+ type: "image";
481
+ } | {
482
+ quotedMsgId?: string | undefined;
483
+ caption?: string | undefined;
484
+ viewOnce?: boolean | undefined;
485
+ type: "video";
486
+ isGif?: boolean | undefined;
487
+ videoNote?: boolean | undefined;
488
+ } | {
489
+ quotedMsgId?: string | undefined;
490
+ caption?: string | undefined;
491
+ type: "document";
492
+ } | undefined;
493
+ }, ...unknown[]]) => Promise<boolean | {
302
494
  [x: string]: unknown;
303
495
  _serialized: string;
304
496
  } | (string & import("zod").$brand<"MessageId">)>;
@@ -306,12 +498,16 @@ export declare abstract class BaseClient {
306
498
  to: string;
307
499
  file: string | Buffer<ArrayBufferLike>;
308
500
  filename?: string | undefined;
309
- quotedMsgId?: string | undefined;
501
+ options?: {
502
+ quotedMsgId?: string | undefined;
503
+ } | undefined;
310
504
  }] | [{
311
505
  to: string;
312
506
  file: string | Buffer<ArrayBufferLike>;
313
507
  filename?: string | undefined;
314
- quotedMsgId?: string | undefined;
508
+ options?: {
509
+ quotedMsgId?: string | undefined;
510
+ } | undefined;
315
511
  }, ...unknown[]]) => Promise<boolean | {
316
512
  [x: string]: unknown;
317
513
  _serialized: string;
@@ -319,11 +515,17 @@ export declare abstract class BaseClient {
319
515
  sendPtt: (...args: any[] | unknown[] | [] | [{
320
516
  to: string;
321
517
  file: string | Buffer<ArrayBufferLike>;
322
- quotedMsgId?: string | undefined;
518
+ options?: {
519
+ quotedMsgId?: string | undefined;
520
+ viewOnce?: boolean | undefined;
521
+ } | undefined;
323
522
  }] | [{
324
523
  to: string;
325
524
  file: string | Buffer<ArrayBufferLike>;
326
- quotedMsgId?: string | undefined;
525
+ options?: {
526
+ quotedMsgId?: string | undefined;
527
+ viewOnce?: boolean | undefined;
528
+ } | undefined;
327
529
  }, ...unknown[]]) => Promise<boolean | {
328
530
  [x: string]: unknown;
329
531
  _serialized: string;
@@ -332,14 +534,18 @@ export declare abstract class BaseClient {
332
534
  to: string;
333
535
  file: string | Buffer<ArrayBufferLike>;
334
536
  filename?: string | undefined;
335
- caption?: string | undefined;
336
- quotedMsgId?: string | undefined;
537
+ options?: {
538
+ quotedMsgId?: string | undefined;
539
+ caption?: string | undefined;
540
+ } | undefined;
337
541
  }] | [{
338
542
  to: string;
339
543
  file: string | Buffer<ArrayBufferLike>;
340
544
  filename?: string | undefined;
341
- caption?: string | undefined;
342
- quotedMsgId?: string | undefined;
545
+ options?: {
546
+ quotedMsgId?: string | undefined;
547
+ caption?: string | undefined;
548
+ } | undefined;
343
549
  }, ...unknown[]]) => Promise<boolean | {
344
550
  [x: string]: unknown;
345
551
  _serialized: string;
@@ -372,14 +578,20 @@ export declare abstract class BaseClient {
372
578
  vcard: string;
373
579
  contactName?: string | undefined;
374
580
  contactNumber?: string | undefined;
375
- }, ...unknown[]]) => Promise<boolean>;
581
+ }, ...unknown[]]) => Promise<boolean | {
582
+ [x: string]: unknown;
583
+ _serialized: string;
584
+ } | (string & import("zod").$brand<"MessageId">)>;
376
585
  sendContact: (...args: any[] | unknown[] | [] | [{
377
586
  to: string;
378
587
  contactId: string | string[];
379
588
  }] | [{
380
589
  to: string;
381
590
  contactId: string | string[];
382
- }, ...unknown[]]) => Promise<void | boolean | {
591
+ }, ...unknown[]]) => Promise<boolean | (boolean | {
592
+ [x: string]: unknown;
593
+ _serialized: string;
594
+ } | (string & import("zod").$brand<"MessageId">))[] | {
383
595
  [x: string]: unknown;
384
596
  _serialized: string;
385
597
  } | (string & import("zod").$brand<"MessageId">)>;
@@ -447,16 +659,75 @@ export declare abstract class BaseClient {
447
659
  to: string;
448
660
  name: string;
449
661
  options: string[];
450
- selectableCount?: number | undefined;
662
+ config?: {
663
+ selectableCount?: number | undefined;
664
+ quotedMsgId?: string | undefined;
665
+ endTime?: number | undefined;
666
+ hideVoterNames?: boolean | undefined;
667
+ } | undefined;
451
668
  }] | [{
452
669
  to: string;
453
670
  name: string;
454
671
  options: string[];
455
- selectableCount?: number | undefined;
672
+ config?: {
673
+ selectableCount?: number | undefined;
674
+ quotedMsgId?: string | undefined;
675
+ endTime?: number | undefined;
676
+ hideVoterNames?: boolean | undefined;
677
+ } | undefined;
456
678
  }, ...unknown[]]) => Promise<boolean | {
457
679
  [x: string]: unknown;
458
680
  _serialized: string;
459
681
  } | (string & import("zod").$brand<"MessageId">)>;
682
+ voteOnPoll: (...args: any[] | unknown[] | [] | [{
683
+ messageId: string;
684
+ optionIds: number[];
685
+ }] | [{
686
+ messageId: string;
687
+ optionIds: number[];
688
+ }, ...unknown[]]) => Promise<boolean>;
689
+ getPollResults: (...args: any[] | unknown[] | [] | [{
690
+ messageId: string;
691
+ }] | [{
692
+ messageId: string;
693
+ }, ...unknown[]]) => Promise<{
694
+ pollId: string & import("zod").$brand<"MessageId">;
695
+ chatId: string & import("zod").$brand<"ChatId">;
696
+ name: string;
697
+ selectableCount: number;
698
+ endTime?: number | undefined;
699
+ isClosed: boolean;
700
+ hideVoterNames: boolean;
701
+ options: {
702
+ id: number;
703
+ name: string;
704
+ count: number;
705
+ }[];
706
+ voterCount: number;
707
+ votes?: {
708
+ pollId: string & import("zod").$brand<"MessageId">;
709
+ chatId: string & import("zod").$brand<"ChatId">;
710
+ id?: (string & import("zod").$brand<"MessageId">) | undefined;
711
+ senderId?: (string & import("zod").$brand<"ContactId">) | undefined;
712
+ selectedOptionIds: number[];
713
+ timestamp: number;
714
+ fromMe: boolean;
715
+ hideVoterNames: boolean;
716
+ }[] | undefined;
717
+ scope: "synced";
718
+ }>;
719
+ pinMessage: (...args: any[] | unknown[] | [] | [{
720
+ messageId: string;
721
+ duration?: "OneDay" | "SevenDays" | "ThirtyDays" | undefined;
722
+ }] | [{
723
+ messageId: string;
724
+ duration?: "OneDay" | "SevenDays" | "ThirtyDays" | undefined;
725
+ }, ...unknown[]]) => Promise<boolean>;
726
+ unpinMessage: (...args: any[] | unknown[] | [] | [{
727
+ messageId: string;
728
+ }] | [{
729
+ messageId: string;
730
+ }, ...unknown[]]) => Promise<boolean>;
460
731
  sendBanner: (...args: any[] | unknown[] | [] | [{
461
732
  to: string;
462
733
  base64: string;
@@ -588,6 +859,31 @@ export declare abstract class BaseClient {
588
859
  labels?: string[] | undefined;
589
860
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
590
861
  caption?: string | undefined;
862
+ event?: {
863
+ readonly id: string;
864
+ readonly chatId: string;
865
+ readonly creatorId: string;
866
+ readonly name: string;
867
+ readonly startTime: number;
868
+ readonly endTime?: number | undefined;
869
+ readonly description?: string | undefined;
870
+ readonly location?: {
871
+ readonly name?: string | undefined;
872
+ readonly latitude?: number | undefined;
873
+ readonly longitude?: number | undefined;
874
+ } | undefined;
875
+ readonly joinLink?: string | undefined;
876
+ readonly isScheduledCall?: boolean | undefined;
877
+ readonly extraGuestsAllowed?: boolean | undefined;
878
+ readonly isCanceled: boolean;
879
+ readonly fromMe: boolean;
880
+ readonly timestamp: number;
881
+ } | undefined;
882
+ expectedImageCount?: number | null | undefined;
883
+ expectedVideoCount?: number | null | undefined;
884
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
885
+ associationType?: string | null | undefined;
886
+ isGif?: boolean | undefined;
591
887
  timestamp: number;
592
888
  content: string;
593
889
  isGroupMsg: boolean;
@@ -707,6 +1003,174 @@ export declare abstract class BaseClient {
707
1003
  ack?: any;
708
1004
  };
709
1005
  } | null>;
1006
+ getAlbumMessages: (...args: any[] | unknown[] | [] | [{
1007
+ messageId: string;
1008
+ }] | [{
1009
+ messageId: string;
1010
+ }, ...unknown[]]) => Promise<false | {
1011
+ [x: string]: unknown;
1012
+ id: string & import("zod").$brand<"MessageId">;
1013
+ body: string;
1014
+ type: MessageTypes;
1015
+ t: number;
1016
+ notifyName?: string | undefined;
1017
+ from: string & import("zod").$brand<"ChatId">;
1018
+ to: string & import("zod").$brand<"ChatId">;
1019
+ self: "in" | "out";
1020
+ ack: MessageAck;
1021
+ invis?: boolean | undefined;
1022
+ isNewMsg?: boolean | undefined;
1023
+ star?: boolean | undefined;
1024
+ recvFresh?: boolean | undefined;
1025
+ broadcast?: boolean | undefined;
1026
+ isForwarded?: boolean | undefined;
1027
+ labels?: string[] | undefined;
1028
+ mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
1029
+ caption?: string | undefined;
1030
+ event?: {
1031
+ readonly id: string;
1032
+ readonly chatId: string;
1033
+ readonly creatorId: string;
1034
+ readonly name: string;
1035
+ readonly startTime: number;
1036
+ readonly endTime?: number | undefined;
1037
+ readonly description?: string | undefined;
1038
+ readonly location?: {
1039
+ readonly name?: string | undefined;
1040
+ readonly latitude?: number | undefined;
1041
+ readonly longitude?: number | undefined;
1042
+ } | undefined;
1043
+ readonly joinLink?: string | undefined;
1044
+ readonly isScheduledCall?: boolean | undefined;
1045
+ readonly extraGuestsAllowed?: boolean | undefined;
1046
+ readonly isCanceled: boolean;
1047
+ readonly fromMe: boolean;
1048
+ readonly timestamp: number;
1049
+ } | undefined;
1050
+ expectedImageCount?: number | null | undefined;
1051
+ expectedVideoCount?: number | null | undefined;
1052
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
1053
+ associationType?: string | null | undefined;
1054
+ isGif?: boolean | undefined;
1055
+ timestamp: number;
1056
+ content: string;
1057
+ isGroupMsg: boolean;
1058
+ isMMS?: boolean | undefined;
1059
+ isMedia: boolean;
1060
+ isNotification: boolean;
1061
+ isPSA?: boolean | undefined;
1062
+ fromMe: boolean;
1063
+ chatId: string & import("zod").$brand<"ChatId">;
1064
+ author?: string | undefined;
1065
+ clientUrl?: string | undefined;
1066
+ deprecatedMms3Url?: string | undefined;
1067
+ isQuotedMsgAvailable: boolean;
1068
+ quotedMsg?: any;
1069
+ quotedMsgObj?: any;
1070
+ senderId?: string | undefined;
1071
+ sender: {
1072
+ [x: string]: unknown;
1073
+ id: string & import("zod").$brand<"ContactId">;
1074
+ name?: string | undefined;
1075
+ shortName?: string | undefined;
1076
+ pushname?: string | undefined;
1077
+ formattedName?: string | undefined;
1078
+ isBusiness?: boolean | undefined;
1079
+ isEnterprise?: boolean | undefined;
1080
+ isMe?: boolean | undefined;
1081
+ isMyContact?: boolean | undefined;
1082
+ isPSA?: boolean | undefined;
1083
+ isUser?: boolean | undefined;
1084
+ isWAContact?: boolean | undefined;
1085
+ labels?: string[] | undefined;
1086
+ msgs?: unknown[] | null | undefined;
1087
+ profilePicThumbObj?: {
1088
+ eurl?: string | undefined;
1089
+ id?: {
1090
+ server: string;
1091
+ user: string;
1092
+ _serialized: string;
1093
+ } | undefined;
1094
+ img?: string | undefined;
1095
+ imgFull?: string | undefined;
1096
+ tag?: string | undefined;
1097
+ } | undefined;
1098
+ statusMute?: boolean | undefined;
1099
+ type?: string | undefined;
1100
+ verifiedLevel?: number | undefined;
1101
+ verifiedName?: string | undefined;
1102
+ isOnline?: boolean | undefined;
1103
+ lastSeen?: number | undefined;
1104
+ };
1105
+ chat: {
1106
+ [x: string]: unknown;
1107
+ id: string & import("zod").$brand<"ChatId">;
1108
+ name?: string | undefined;
1109
+ formattedTitle?: string | undefined;
1110
+ isGroup: boolean;
1111
+ contact: {
1112
+ [x: string]: unknown;
1113
+ id: string & import("zod").$brand<"ContactId">;
1114
+ name?: string | undefined;
1115
+ shortName?: string | undefined;
1116
+ pushname?: string | undefined;
1117
+ formattedName?: string | undefined;
1118
+ isBusiness?: boolean | undefined;
1119
+ isEnterprise?: boolean | undefined;
1120
+ isMe?: boolean | undefined;
1121
+ isMyContact?: boolean | undefined;
1122
+ isPSA?: boolean | undefined;
1123
+ isUser?: boolean | undefined;
1124
+ isWAContact?: boolean | undefined;
1125
+ labels?: string[] | undefined;
1126
+ msgs?: unknown[] | null | undefined;
1127
+ profilePicThumbObj?: {
1128
+ eurl?: string | undefined;
1129
+ id?: {
1130
+ server: string;
1131
+ user: string;
1132
+ _serialized: string;
1133
+ } | undefined;
1134
+ img?: string | undefined;
1135
+ imgFull?: string | undefined;
1136
+ tag?: string | undefined;
1137
+ } | undefined;
1138
+ statusMute?: boolean | undefined;
1139
+ type?: string | undefined;
1140
+ verifiedLevel?: number | undefined;
1141
+ verifiedName?: string | undefined;
1142
+ isOnline?: boolean | undefined;
1143
+ lastSeen?: number | undefined;
1144
+ } | null;
1145
+ groupMetadata?: {
1146
+ [x: string]: unknown;
1147
+ id: string & import("zod").$brand<"GroupId">;
1148
+ subject: string;
1149
+ creation: number;
1150
+ owner?: (string & import("zod").$brand<"ContactId">) | undefined;
1151
+ desc?: string | undefined;
1152
+ descTime?: number | undefined;
1153
+ descOwner?: (string & import("zod").$brand<"ContactId">) | undefined;
1154
+ restrict?: boolean | undefined;
1155
+ announce?: boolean | undefined;
1156
+ participants: {
1157
+ id: string & import("zod").$brand<"ContactId">;
1158
+ isAdmin: boolean;
1159
+ isSuperAdmin?: boolean | undefined;
1160
+ }[];
1161
+ } | null | undefined;
1162
+ presence?: Record<string, unknown> | null | undefined;
1163
+ t?: number | undefined;
1164
+ unreadCount?: number | undefined;
1165
+ lastReceivedKey?: any;
1166
+ msgs?: unknown[] | null | undefined;
1167
+ isReadOnly?: boolean | undefined;
1168
+ muteExpiration?: number | undefined;
1169
+ notSpam?: boolean | undefined;
1170
+ pin?: number | undefined;
1171
+ ack?: any;
1172
+ };
1173
+ }[]>;
710
1174
  getAllMessages: (...args: any[] | unknown[] | [] | [{
711
1175
  chatId?: string | undefined;
712
1176
  includeMe?: boolean | undefined;
@@ -735,6 +1199,31 @@ export declare abstract class BaseClient {
735
1199
  labels?: string[] | undefined;
736
1200
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
737
1201
  caption?: string | undefined;
1202
+ event?: {
1203
+ readonly id: string;
1204
+ readonly chatId: string;
1205
+ readonly creatorId: string;
1206
+ readonly name: string;
1207
+ readonly startTime: number;
1208
+ readonly endTime?: number | undefined;
1209
+ readonly description?: string | undefined;
1210
+ readonly location?: {
1211
+ readonly name?: string | undefined;
1212
+ readonly latitude?: number | undefined;
1213
+ readonly longitude?: number | undefined;
1214
+ } | undefined;
1215
+ readonly joinLink?: string | undefined;
1216
+ readonly isScheduledCall?: boolean | undefined;
1217
+ readonly extraGuestsAllowed?: boolean | undefined;
1218
+ readonly isCanceled: boolean;
1219
+ readonly fromMe: boolean;
1220
+ readonly timestamp: number;
1221
+ } | undefined;
1222
+ expectedImageCount?: number | null | undefined;
1223
+ expectedVideoCount?: number | null | undefined;
1224
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
1225
+ associationType?: string | null | undefined;
1226
+ isGif?: boolean | undefined;
738
1227
  timestamp: number;
739
1228
  content: string;
740
1229
  isGroupMsg: boolean;
@@ -878,6 +1367,31 @@ export declare abstract class BaseClient {
878
1367
  labels?: string[] | undefined;
879
1368
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
880
1369
  caption?: string | undefined;
1370
+ event?: {
1371
+ readonly id: string;
1372
+ readonly chatId: string;
1373
+ readonly creatorId: string;
1374
+ readonly name: string;
1375
+ readonly startTime: number;
1376
+ readonly endTime?: number | undefined;
1377
+ readonly description?: string | undefined;
1378
+ readonly location?: {
1379
+ readonly name?: string | undefined;
1380
+ readonly latitude?: number | undefined;
1381
+ readonly longitude?: number | undefined;
1382
+ } | undefined;
1383
+ readonly joinLink?: string | undefined;
1384
+ readonly isScheduledCall?: boolean | undefined;
1385
+ readonly extraGuestsAllowed?: boolean | undefined;
1386
+ readonly isCanceled: boolean;
1387
+ readonly fromMe: boolean;
1388
+ readonly timestamp: number;
1389
+ } | undefined;
1390
+ expectedImageCount?: number | null | undefined;
1391
+ expectedVideoCount?: number | null | undefined;
1392
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
1393
+ associationType?: string | null | undefined;
1394
+ isGif?: boolean | undefined;
881
1395
  timestamp: number;
882
1396
  content: string;
883
1397
  isGroupMsg: boolean;
@@ -1021,6 +1535,31 @@ export declare abstract class BaseClient {
1021
1535
  labels?: string[] | undefined;
1022
1536
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
1023
1537
  caption?: string | undefined;
1538
+ event?: {
1539
+ readonly id: string;
1540
+ readonly chatId: string;
1541
+ readonly creatorId: string;
1542
+ readonly name: string;
1543
+ readonly startTime: number;
1544
+ readonly endTime?: number | undefined;
1545
+ readonly description?: string | undefined;
1546
+ readonly location?: {
1547
+ readonly name?: string | undefined;
1548
+ readonly latitude?: number | undefined;
1549
+ readonly longitude?: number | undefined;
1550
+ } | undefined;
1551
+ readonly joinLink?: string | undefined;
1552
+ readonly isScheduledCall?: boolean | undefined;
1553
+ readonly extraGuestsAllowed?: boolean | undefined;
1554
+ readonly isCanceled: boolean;
1555
+ readonly fromMe: boolean;
1556
+ readonly timestamp: number;
1557
+ } | undefined;
1558
+ expectedImageCount?: number | null | undefined;
1559
+ expectedVideoCount?: number | null | undefined;
1560
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
1561
+ associationType?: string | null | undefined;
1562
+ isGif?: boolean | undefined;
1024
1563
  timestamp: number;
1025
1564
  content: string;
1026
1565
  isGroupMsg: boolean;
@@ -1160,6 +1699,31 @@ export declare abstract class BaseClient {
1160
1699
  labels?: string[] | undefined;
1161
1700
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
1162
1701
  caption?: string | undefined;
1702
+ event?: {
1703
+ readonly id: string;
1704
+ readonly chatId: string;
1705
+ readonly creatorId: string;
1706
+ readonly name: string;
1707
+ readonly startTime: number;
1708
+ readonly endTime?: number | undefined;
1709
+ readonly description?: string | undefined;
1710
+ readonly location?: {
1711
+ readonly name?: string | undefined;
1712
+ readonly latitude?: number | undefined;
1713
+ readonly longitude?: number | undefined;
1714
+ } | undefined;
1715
+ readonly joinLink?: string | undefined;
1716
+ readonly isScheduledCall?: boolean | undefined;
1717
+ readonly extraGuestsAllowed?: boolean | undefined;
1718
+ readonly isCanceled: boolean;
1719
+ readonly fromMe: boolean;
1720
+ readonly timestamp: number;
1721
+ } | undefined;
1722
+ expectedImageCount?: number | null | undefined;
1723
+ expectedVideoCount?: number | null | undefined;
1724
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
1725
+ associationType?: string | null | undefined;
1726
+ isGif?: boolean | undefined;
1163
1727
  timestamp: number;
1164
1728
  content: string;
1165
1729
  isGroupMsg: boolean;
@@ -1327,6 +1891,13 @@ export declare abstract class BaseClient {
1327
1891
  }] | [{
1328
1892
  messageId: string;
1329
1893
  }, ...unknown[]]) => Promise<boolean>;
1894
+ editMessage: (...args: any[] | unknown[] | [] | [{
1895
+ messageId: string;
1896
+ newContent: string;
1897
+ }] | [{
1898
+ messageId: string;
1899
+ newContent: string;
1900
+ }, ...unknown[]]) => Promise<boolean>;
1330
1901
  react: (...args: any[] | unknown[] | [] | [{
1331
1902
  messageId: string;
1332
1903
  emoji: string;
@@ -1367,6 +1938,31 @@ export declare abstract class BaseClient {
1367
1938
  labels?: string[] | undefined;
1368
1939
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
1369
1940
  caption?: string | undefined;
1941
+ event?: {
1942
+ readonly id: string;
1943
+ readonly chatId: string;
1944
+ readonly creatorId: string;
1945
+ readonly name: string;
1946
+ readonly startTime: number;
1947
+ readonly endTime?: number | undefined;
1948
+ readonly description?: string | undefined;
1949
+ readonly location?: {
1950
+ readonly name?: string | undefined;
1951
+ readonly latitude?: number | undefined;
1952
+ readonly longitude?: number | undefined;
1953
+ } | undefined;
1954
+ readonly joinLink?: string | undefined;
1955
+ readonly isScheduledCall?: boolean | undefined;
1956
+ readonly extraGuestsAllowed?: boolean | undefined;
1957
+ readonly isCanceled: boolean;
1958
+ readonly fromMe: boolean;
1959
+ readonly timestamp: number;
1960
+ } | undefined;
1961
+ expectedImageCount?: number | null | undefined;
1962
+ expectedVideoCount?: number | null | undefined;
1963
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
1964
+ associationType?: string | null | undefined;
1965
+ isGif?: boolean | undefined;
1370
1966
  timestamp: number;
1371
1967
  content: string;
1372
1968
  isGroupMsg: boolean;
@@ -1489,16 +2085,71 @@ export declare abstract class BaseClient {
1489
2085
  sendFileFromUrl: (...args: any[] | unknown[] | [] | [{
1490
2086
  to: string;
1491
2087
  url: string;
1492
- filename: string;
1493
- caption?: string | undefined;
2088
+ filename?: string | undefined;
2089
+ options?: {
2090
+ quotedMsgId?: string | undefined;
2091
+ viewOnce?: boolean | undefined;
2092
+ type: "audio";
2093
+ ptt?: boolean | undefined;
2094
+ } | {
2095
+ quotedMsgId?: string | undefined;
2096
+ caption?: string | undefined;
2097
+ viewOnce?: boolean | undefined;
2098
+ type?: "auto" | undefined;
2099
+ } | {
2100
+ quotedMsgId?: string | undefined;
2101
+ caption?: string | undefined;
2102
+ viewOnce?: boolean | undefined;
2103
+ type: "image";
2104
+ } | {
2105
+ quotedMsgId?: string | undefined;
2106
+ caption?: string | undefined;
2107
+ viewOnce?: boolean | undefined;
2108
+ type: "video";
2109
+ isGif?: boolean | undefined;
2110
+ videoNote?: boolean | undefined;
2111
+ } | {
2112
+ quotedMsgId?: string | undefined;
2113
+ caption?: string | undefined;
2114
+ type: "document";
2115
+ } | undefined;
1494
2116
  headers?: Record<string, string> | undefined;
1495
2117
  }] | [{
1496
2118
  to: string;
1497
2119
  url: string;
1498
- filename: string;
1499
- caption?: string | undefined;
2120
+ filename?: string | undefined;
2121
+ options?: {
2122
+ quotedMsgId?: string | undefined;
2123
+ viewOnce?: boolean | undefined;
2124
+ type: "audio";
2125
+ ptt?: boolean | undefined;
2126
+ } | {
2127
+ quotedMsgId?: string | undefined;
2128
+ caption?: string | undefined;
2129
+ viewOnce?: boolean | undefined;
2130
+ type?: "auto" | undefined;
2131
+ } | {
2132
+ quotedMsgId?: string | undefined;
2133
+ caption?: string | undefined;
2134
+ viewOnce?: boolean | undefined;
2135
+ type: "image";
2136
+ } | {
2137
+ quotedMsgId?: string | undefined;
2138
+ caption?: string | undefined;
2139
+ viewOnce?: boolean | undefined;
2140
+ type: "video";
2141
+ isGif?: boolean | undefined;
2142
+ videoNote?: boolean | undefined;
2143
+ } | {
2144
+ quotedMsgId?: string | undefined;
2145
+ caption?: string | undefined;
2146
+ type: "document";
2147
+ } | undefined;
1500
2148
  headers?: Record<string, string> | undefined;
1501
- }, ...unknown[]]) => Promise<string | boolean>;
2149
+ }, ...unknown[]]) => Promise<string | boolean | {
2150
+ [x: string]: unknown;
2151
+ _serialized: string;
2152
+ } | (string & import("zod").$brand<"MessageId">)>;
1502
2153
  getAllChats: (...args: any[] | unknown[] | [] | [{
1503
2154
  withNewMessagesOnly?: boolean | undefined;
1504
2155
  }] | [{
@@ -1742,6 +2393,16 @@ export declare abstract class BaseClient {
1742
2393
  }] | [{
1743
2394
  chatId: string;
1744
2395
  }, ...unknown[]]) => Promise<string | boolean>;
2396
+ requestPhoneNumber: (...args: any[] | unknown[] | [] | [{
2397
+ to: string;
2398
+ }] | [{
2399
+ to: string;
2400
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
2401
+ sharePhoneNumber: (...args: any[] | unknown[] | [] | [{
2402
+ to: string;
2403
+ }] | [{
2404
+ to: string;
2405
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
1745
2406
  getAllContacts: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<{
1746
2407
  [x: string]: unknown;
1747
2408
  id: string & import("zod").$brand<"ContactId">;
@@ -2017,22 +2678,10 @@ export declare abstract class BaseClient {
2017
2678
  groupId: string;
2018
2679
  }] | [{
2019
2680
  groupId: string;
2020
- }, ...unknown[]]) => Promise<{
2681
+ }, ...unknown[]]) => Promise<string | {
2021
2682
  [x: string]: unknown;
2022
- id: string & import("zod").$brand<"GroupId">;
2023
- subject: string;
2024
- creation: number;
2025
- owner?: (string & import("zod").$brand<"ContactId">) | undefined;
2026
- desc?: string | undefined;
2027
- descTime?: number | undefined;
2028
- descOwner?: (string & import("zod").$brand<"ContactId">) | undefined;
2029
- restrict?: boolean | undefined;
2030
- announce?: boolean | undefined;
2031
- participants: {
2032
- id: string & import("zod").$brand<"ContactId">;
2033
- isAdmin: boolean;
2034
- isSuperAdmin?: boolean | undefined;
2035
- }[];
2683
+ title: string;
2684
+ description?: string | null | undefined;
2036
2685
  } | null>;
2037
2686
  getGroupAdmins: (...args: any[] | unknown[] | [] | [{
2038
2687
  groupId: string;
@@ -2410,6 +3059,31 @@ export declare abstract class BaseClient {
2410
3059
  labels?: string[] | undefined;
2411
3060
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
2412
3061
  caption?: string | undefined;
3062
+ event?: {
3063
+ readonly id: string;
3064
+ readonly chatId: string;
3065
+ readonly creatorId: string;
3066
+ readonly name: string;
3067
+ readonly startTime: number;
3068
+ readonly endTime?: number | undefined;
3069
+ readonly description?: string | undefined;
3070
+ readonly location?: {
3071
+ readonly name?: string | undefined;
3072
+ readonly latitude?: number | undefined;
3073
+ readonly longitude?: number | undefined;
3074
+ } | undefined;
3075
+ readonly joinLink?: string | undefined;
3076
+ readonly isScheduledCall?: boolean | undefined;
3077
+ readonly extraGuestsAllowed?: boolean | undefined;
3078
+ readonly isCanceled: boolean;
3079
+ readonly fromMe: boolean;
3080
+ readonly timestamp: number;
3081
+ } | undefined;
3082
+ expectedImageCount?: number | null | undefined;
3083
+ expectedVideoCount?: number | null | undefined;
3084
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
3085
+ associationType?: string | null | undefined;
3086
+ isGif?: boolean | undefined;
2413
3087
  timestamp: number;
2414
3088
  content: string;
2415
3089
  isGroupMsg: boolean;
@@ -2737,6 +3411,31 @@ export declare abstract class BaseClient {
2737
3411
  labels?: string[] | undefined;
2738
3412
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
2739
3413
  caption?: string | undefined;
3414
+ event?: {
3415
+ readonly id: string;
3416
+ readonly chatId: string;
3417
+ readonly creatorId: string;
3418
+ readonly name: string;
3419
+ readonly startTime: number;
3420
+ readonly endTime?: number | undefined;
3421
+ readonly description?: string | undefined;
3422
+ readonly location?: {
3423
+ readonly name?: string | undefined;
3424
+ readonly latitude?: number | undefined;
3425
+ readonly longitude?: number | undefined;
3426
+ } | undefined;
3427
+ readonly joinLink?: string | undefined;
3428
+ readonly isScheduledCall?: boolean | undefined;
3429
+ readonly extraGuestsAllowed?: boolean | undefined;
3430
+ readonly isCanceled: boolean;
3431
+ readonly fromMe: boolean;
3432
+ readonly timestamp: number;
3433
+ } | undefined;
3434
+ expectedImageCount?: number | null | undefined;
3435
+ expectedVideoCount?: number | null | undefined;
3436
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
3437
+ associationType?: string | null | undefined;
3438
+ isGif?: boolean | undefined;
2740
3439
  timestamp: number;
2741
3440
  content: string;
2742
3441
  isGroupMsg: boolean;
@@ -2872,6 +3571,14 @@ export declare abstract class BaseClient {
2872
3571
  isPlugged: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<boolean>;
2873
3572
  getFeatures: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<Record<string, unknown>>;
2874
3573
  getLicenseType: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<"B2B_RESTRICTED_VOLUME_LICENSE" | "CUSTOM" | "Image Story License Key" | "Insiders Program" | "NONE" | "Premium License Key" | "Text Story License Key" | "Video Story License Key" | false>;
3574
+ getLicenseFeatures: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<{
3575
+ readonly status: "expired" | "invalid" | "metadata_only" | "missing" | "valid";
3576
+ readonly keyType: string | null;
3577
+ readonly expiresAt: number | null;
3578
+ readonly features: {
3579
+ readonly [x: string]: boolean;
3580
+ };
3581
+ }>;
2875
3582
  getUserAgent: (...args: any[] | unknown[] | [] | [{
2876
3583
  userAgent?: string | undefined;
2877
3584
  }] | [{
@@ -2936,6 +3643,31 @@ export declare abstract class BaseClient {
2936
3643
  labels?: string[] | undefined;
2937
3644
  mentionedJidList?: string[] | undefined;
2938
3645
  caption?: string | undefined;
3646
+ event?: {
3647
+ readonly id: string;
3648
+ readonly chatId: string;
3649
+ readonly creatorId: string;
3650
+ readonly name: string;
3651
+ readonly startTime: number;
3652
+ readonly endTime?: number | undefined;
3653
+ readonly description?: string | undefined;
3654
+ readonly location?: {
3655
+ readonly name?: string | undefined;
3656
+ readonly latitude?: number | undefined;
3657
+ readonly longitude?: number | undefined;
3658
+ } | undefined;
3659
+ readonly joinLink?: string | undefined;
3660
+ readonly isScheduledCall?: boolean | undefined;
3661
+ readonly extraGuestsAllowed?: boolean | undefined;
3662
+ readonly isCanceled: boolean;
3663
+ readonly fromMe: boolean;
3664
+ readonly timestamp: number;
3665
+ } | undefined;
3666
+ expectedImageCount?: number | null | undefined;
3667
+ expectedVideoCount?: number | null | undefined;
3668
+ parentMsgKey?: string | null | undefined;
3669
+ associationType?: string | null | undefined;
3670
+ isGif?: boolean | undefined;
2939
3671
  timestamp: number;
2940
3672
  content: string;
2941
3673
  isGroupMsg: boolean;
@@ -3076,6 +3808,31 @@ export declare abstract class BaseClient {
3076
3808
  labels?: string[] | undefined;
3077
3809
  mentionedJidList?: string[] | undefined;
3078
3810
  caption?: string | undefined;
3811
+ event?: {
3812
+ readonly id: string;
3813
+ readonly chatId: string;
3814
+ readonly creatorId: string;
3815
+ readonly name: string;
3816
+ readonly startTime: number;
3817
+ readonly endTime?: number | undefined;
3818
+ readonly description?: string | undefined;
3819
+ readonly location?: {
3820
+ readonly name?: string | undefined;
3821
+ readonly latitude?: number | undefined;
3822
+ readonly longitude?: number | undefined;
3823
+ } | undefined;
3824
+ readonly joinLink?: string | undefined;
3825
+ readonly isScheduledCall?: boolean | undefined;
3826
+ readonly extraGuestsAllowed?: boolean | undefined;
3827
+ readonly isCanceled: boolean;
3828
+ readonly fromMe: boolean;
3829
+ readonly timestamp: number;
3830
+ } | undefined;
3831
+ expectedImageCount?: number | null | undefined;
3832
+ expectedVideoCount?: number | null | undefined;
3833
+ parentMsgKey?: string | null | undefined;
3834
+ associationType?: string | null | undefined;
3835
+ isGif?: boolean | undefined;
3079
3836
  timestamp: number;
3080
3837
  content: string;
3081
3838
  isGroupMsg: boolean;
@@ -3217,6 +3974,31 @@ export declare abstract class BaseClient {
3217
3974
  labels?: string[] | undefined;
3218
3975
  mentionedJidList?: string[] | undefined;
3219
3976
  caption?: string | undefined;
3977
+ event?: {
3978
+ readonly id: string;
3979
+ readonly chatId: string;
3980
+ readonly creatorId: string;
3981
+ readonly name: string;
3982
+ readonly startTime: number;
3983
+ readonly endTime?: number | undefined;
3984
+ readonly description?: string | undefined;
3985
+ readonly location?: {
3986
+ readonly name?: string | undefined;
3987
+ readonly latitude?: number | undefined;
3988
+ readonly longitude?: number | undefined;
3989
+ } | undefined;
3990
+ readonly joinLink?: string | undefined;
3991
+ readonly isScheduledCall?: boolean | undefined;
3992
+ readonly extraGuestsAllowed?: boolean | undefined;
3993
+ readonly isCanceled: boolean;
3994
+ readonly fromMe: boolean;
3995
+ readonly timestamp: number;
3996
+ } | undefined;
3997
+ expectedImageCount?: number | null | undefined;
3998
+ expectedVideoCount?: number | null | undefined;
3999
+ parentMsgKey?: string | null | undefined;
4000
+ associationType?: string | null | undefined;
4001
+ isGif?: boolean | undefined;
3220
4002
  timestamp: number;
3221
4003
  content: string;
3222
4004
  isGroupMsg: boolean;
@@ -3358,6 +4140,31 @@ export declare abstract class BaseClient {
3358
4140
  labels?: string[] | undefined;
3359
4141
  mentionedJidList?: string[] | undefined;
3360
4142
  caption?: string | undefined;
4143
+ event?: {
4144
+ readonly id: string;
4145
+ readonly chatId: string;
4146
+ readonly creatorId: string;
4147
+ readonly name: string;
4148
+ readonly startTime: number;
4149
+ readonly endTime?: number | undefined;
4150
+ readonly description?: string | undefined;
4151
+ readonly location?: {
4152
+ readonly name?: string | undefined;
4153
+ readonly latitude?: number | undefined;
4154
+ readonly longitude?: number | undefined;
4155
+ } | undefined;
4156
+ readonly joinLink?: string | undefined;
4157
+ readonly isScheduledCall?: boolean | undefined;
4158
+ readonly extraGuestsAllowed?: boolean | undefined;
4159
+ readonly isCanceled: boolean;
4160
+ readonly fromMe: boolean;
4161
+ readonly timestamp: number;
4162
+ } | undefined;
4163
+ expectedImageCount?: number | null | undefined;
4164
+ expectedVideoCount?: number | null | undefined;
4165
+ parentMsgKey?: string | null | undefined;
4166
+ associationType?: string | null | undefined;
4167
+ isGif?: boolean | undefined;
3361
4168
  timestamp: number;
3362
4169
  content: string;
3363
4170
  isGroupMsg: boolean;
@@ -3819,28 +4626,177 @@ export declare abstract class BaseClient {
3819
4626
  title?: string | undefined;
3820
4627
  type: "document";
3821
4628
  } | undefined;
3822
- actions: {
3823
- name: string;
3824
- parameters?: Record<string, unknown> | undefined;
3825
- }[];
3826
- parameters?: Record<string, unknown> | undefined;
4629
+ actions: {
4630
+ name: string;
4631
+ parameters?: Record<string, unknown> | undefined;
4632
+ }[];
4633
+ parameters?: Record<string, unknown> | undefined;
4634
+ };
4635
+ }, ...unknown[]]) => Promise<string>;
4636
+ sendRawMessage: (...args: any[] | unknown[] | [] | [{
4637
+ to: string;
4638
+ payload: Record<string, unknown>;
4639
+ }] | [{
4640
+ to: string;
4641
+ payload: Record<string, unknown>;
4642
+ }, ...unknown[]]) => Promise<string>;
4643
+ getCallCapabilities: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4644
+ getActiveCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4645
+ acceptCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4646
+ startCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4647
+ rejectCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4648
+ endCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4649
+ muteCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4650
+ clearCallAudio: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4651
+ setCallMedia: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4652
+ observeCallAudio: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4653
+ stopCallAudioObserver: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
4654
+ sendEvent: (...args: any[] | unknown[] | [] | [{
4655
+ to: string;
4656
+ event: {
4657
+ readonly name: string;
4658
+ readonly startTime: number;
4659
+ readonly endTime?: number | undefined;
4660
+ readonly description?: string | undefined;
4661
+ readonly location?: string | undefined;
4662
+ readonly extraGuestsAllowed?: boolean | undefined;
4663
+ readonly callType?: "video" | "voice" | undefined;
4664
+ readonly isScheduledCall?: boolean | undefined;
4665
+ readonly requireApproval?: boolean | undefined;
4666
+ readonly quotedMsgId?: string | undefined;
4667
+ };
4668
+ }] | [{
4669
+ to: string;
4670
+ event: {
4671
+ readonly name: string;
4672
+ readonly startTime: number;
4673
+ readonly endTime?: number | undefined;
4674
+ readonly description?: string | undefined;
4675
+ readonly location?: string | undefined;
4676
+ readonly extraGuestsAllowed?: boolean | undefined;
4677
+ readonly callType?: "video" | "voice" | undefined;
4678
+ readonly isScheduledCall?: boolean | undefined;
4679
+ readonly requireApproval?: boolean | undefined;
4680
+ readonly quotedMsgId?: string | undefined;
4681
+ };
4682
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
4683
+ getEvent: (...args: any[] | unknown[] | [] | [{
4684
+ eventId: string;
4685
+ }] | [{
4686
+ eventId: string;
4687
+ }, ...unknown[]]) => Promise<{
4688
+ readonly id: string;
4689
+ readonly chatId: string;
4690
+ readonly creatorId: string;
4691
+ readonly name: string;
4692
+ readonly startTime: number;
4693
+ readonly endTime?: number | undefined;
4694
+ readonly description?: string | undefined;
4695
+ readonly location?: {
4696
+ readonly name?: string | undefined;
4697
+ readonly latitude?: number | undefined;
4698
+ readonly longitude?: number | undefined;
4699
+ } | undefined;
4700
+ readonly joinLink?: string | undefined;
4701
+ readonly isScheduledCall?: boolean | undefined;
4702
+ readonly extraGuestsAllowed?: boolean | undefined;
4703
+ readonly isCanceled: boolean;
4704
+ readonly fromMe: boolean;
4705
+ readonly timestamp: number;
4706
+ } | null>;
4707
+ getEvents: (...args: any[] | unknown[] | [] | [{
4708
+ chatId: string;
4709
+ options?: {
4710
+ readonly limit?: number | undefined;
4711
+ readonly before?: string | undefined;
4712
+ } | undefined;
4713
+ }] | [{
4714
+ chatId: string;
4715
+ options?: {
4716
+ readonly limit?: number | undefined;
4717
+ readonly before?: string | undefined;
4718
+ } | undefined;
4719
+ }, ...unknown[]]) => Promise<{
4720
+ readonly events: readonly {
4721
+ readonly id: string;
4722
+ readonly chatId: string;
4723
+ readonly creatorId: string;
4724
+ readonly name: string;
4725
+ readonly startTime: number;
4726
+ readonly endTime?: number | undefined;
4727
+ readonly description?: string | undefined;
4728
+ readonly location?: {
4729
+ readonly name?: string | undefined;
4730
+ readonly latitude?: number | undefined;
4731
+ readonly longitude?: number | undefined;
4732
+ } | undefined;
4733
+ readonly joinLink?: string | undefined;
4734
+ readonly isScheduledCall?: boolean | undefined;
4735
+ readonly extraGuestsAllowed?: boolean | undefined;
4736
+ readonly isCanceled: boolean;
4737
+ readonly fromMe: boolean;
4738
+ readonly timestamp: number;
4739
+ }[];
4740
+ readonly nextCursor: string | null;
4741
+ }>;
4742
+ getEventResponses: (...args: any[] | unknown[] | [] | [{
4743
+ eventId: string;
4744
+ }] | [{
4745
+ eventId: string;
4746
+ }, ...unknown[]]) => Promise<{
4747
+ readonly id: string;
4748
+ readonly eventId: string;
4749
+ readonly chatId: string;
4750
+ readonly senderId: string;
4751
+ readonly response: "going" | "maybe" | "notGoing" | "unknown";
4752
+ readonly timestamp: number;
4753
+ readonly fromMe: boolean;
4754
+ }[]>;
4755
+ editEvent: (...args: any[] | unknown[] | [] | [{
4756
+ eventId: string;
4757
+ changes: {
4758
+ readonly name?: string | undefined;
4759
+ readonly startTime?: number | undefined;
4760
+ readonly endTime?: number | null | undefined;
4761
+ readonly description?: string | undefined;
4762
+ readonly location?: string | undefined;
3827
4763
  };
3828
- }, ...unknown[]]) => Promise<string>;
3829
- sendRawMessage: (...args: any[] | unknown[] | [] | [{
3830
- to: string;
3831
- payload: Record<string, unknown>;
3832
4764
  }] | [{
3833
- to: string;
3834
- payload: Record<string, unknown>;
3835
- }, ...unknown[]]) => Promise<string>;
4765
+ eventId: string;
4766
+ changes: {
4767
+ readonly name?: string | undefined;
4768
+ readonly startTime?: number | undefined;
4769
+ readonly endTime?: number | null | undefined;
4770
+ readonly description?: string | undefined;
4771
+ readonly location?: string | undefined;
4772
+ };
4773
+ }, ...unknown[]]) => Promise<boolean>;
4774
+ cancelEvent: (...args: any[] | unknown[] | [] | [{
4775
+ eventId: string;
4776
+ }] | [{
4777
+ eventId: string;
4778
+ }, ...unknown[]]) => Promise<boolean>;
4779
+ respondToEvent: (...args: any[] | unknown[] | [] | [{
4780
+ eventId: string;
4781
+ response: "going" | "maybe" | "notGoing";
4782
+ }] | [{
4783
+ eventId: string;
4784
+ response: "going" | "maybe" | "notGoing";
4785
+ }, ...unknown[]]) => Promise<boolean>;
3836
4786
  sendVoiceNote: (...args: any[] | unknown[] | [] | [{
3837
4787
  to: string;
3838
4788
  file: string | Buffer<ArrayBufferLike>;
3839
- quotedMsgId?: string | undefined;
4789
+ options?: {
4790
+ quotedMsgId?: string | undefined;
4791
+ viewOnce?: boolean | undefined;
4792
+ } | undefined;
3840
4793
  }] | [{
3841
4794
  to: string;
3842
4795
  file: string | Buffer<ArrayBufferLike>;
3843
- quotedMsgId?: string | undefined;
4796
+ options?: {
4797
+ quotedMsgId?: string | undefined;
4798
+ viewOnce?: boolean | undefined;
4799
+ } | undefined;
3844
4800
  }, ...unknown[]]) => Promise<boolean | {
3845
4801
  [x: string]: unknown;
3846
4802
  _serialized: string;
@@ -3971,6 +4927,31 @@ export declare abstract class BaseClient {
3971
4927
  labels?: string[] | undefined;
3972
4928
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
3973
4929
  caption?: string | undefined;
4930
+ event?: {
4931
+ readonly id: string;
4932
+ readonly chatId: string;
4933
+ readonly creatorId: string;
4934
+ readonly name: string;
4935
+ readonly startTime: number;
4936
+ readonly endTime?: number | undefined;
4937
+ readonly description?: string | undefined;
4938
+ readonly location?: {
4939
+ readonly name?: string | undefined;
4940
+ readonly latitude?: number | undefined;
4941
+ readonly longitude?: number | undefined;
4942
+ } | undefined;
4943
+ readonly joinLink?: string | undefined;
4944
+ readonly isScheduledCall?: boolean | undefined;
4945
+ readonly extraGuestsAllowed?: boolean | undefined;
4946
+ readonly isCanceled: boolean;
4947
+ readonly fromMe: boolean;
4948
+ readonly timestamp: number;
4949
+ } | undefined;
4950
+ expectedImageCount?: number | null | undefined;
4951
+ expectedVideoCount?: number | null | undefined;
4952
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
4953
+ associationType?: string | null | undefined;
4954
+ isGif?: boolean | undefined;
3974
4955
  timestamp: number;
3975
4956
  content: string;
3976
4957
  isGroupMsg: boolean;
@@ -4118,6 +5099,31 @@ export declare abstract class BaseClient {
4118
5099
  labels?: string[] | undefined;
4119
5100
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
4120
5101
  caption?: string | undefined;
5102
+ event?: {
5103
+ readonly id: string;
5104
+ readonly chatId: string;
5105
+ readonly creatorId: string;
5106
+ readonly name: string;
5107
+ readonly startTime: number;
5108
+ readonly endTime?: number | undefined;
5109
+ readonly description?: string | undefined;
5110
+ readonly location?: {
5111
+ readonly name?: string | undefined;
5112
+ readonly latitude?: number | undefined;
5113
+ readonly longitude?: number | undefined;
5114
+ } | undefined;
5115
+ readonly joinLink?: string | undefined;
5116
+ readonly isScheduledCall?: boolean | undefined;
5117
+ readonly extraGuestsAllowed?: boolean | undefined;
5118
+ readonly isCanceled: boolean;
5119
+ readonly fromMe: boolean;
5120
+ readonly timestamp: number;
5121
+ } | undefined;
5122
+ expectedImageCount?: number | null | undefined;
5123
+ expectedVideoCount?: number | null | undefined;
5124
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
5125
+ associationType?: string | null | undefined;
5126
+ isGif?: boolean | undefined;
4121
5127
  timestamp: number;
4122
5128
  content: string;
4123
5129
  isGroupMsg: boolean;
@@ -4275,6 +5281,31 @@ export declare abstract class BaseClient {
4275
5281
  labels?: string[] | undefined;
4276
5282
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
4277
5283
  caption?: string | undefined;
5284
+ event?: {
5285
+ readonly id: string;
5286
+ readonly chatId: string;
5287
+ readonly creatorId: string;
5288
+ readonly name: string;
5289
+ readonly startTime: number;
5290
+ readonly endTime?: number | undefined;
5291
+ readonly description?: string | undefined;
5292
+ readonly location?: {
5293
+ readonly name?: string | undefined;
5294
+ readonly latitude?: number | undefined;
5295
+ readonly longitude?: number | undefined;
5296
+ } | undefined;
5297
+ readonly joinLink?: string | undefined;
5298
+ readonly isScheduledCall?: boolean | undefined;
5299
+ readonly extraGuestsAllowed?: boolean | undefined;
5300
+ readonly isCanceled: boolean;
5301
+ readonly fromMe: boolean;
5302
+ readonly timestamp: number;
5303
+ } | undefined;
5304
+ expectedImageCount?: number | null | undefined;
5305
+ expectedVideoCount?: number | null | undefined;
5306
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
5307
+ associationType?: string | null | undefined;
5308
+ isGif?: boolean | undefined;
4278
5309
  timestamp: number;
4279
5310
  content: string;
4280
5311
  isGroupMsg: boolean;
@@ -4793,6 +5824,31 @@ export declare abstract class BaseClient {
4793
5824
  labels?: string[] | undefined;
4794
5825
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
4795
5826
  caption?: string | undefined;
5827
+ event?: {
5828
+ readonly id: string;
5829
+ readonly chatId: string;
5830
+ readonly creatorId: string;
5831
+ readonly name: string;
5832
+ readonly startTime: number;
5833
+ readonly endTime?: number | undefined;
5834
+ readonly description?: string | undefined;
5835
+ readonly location?: {
5836
+ readonly name?: string | undefined;
5837
+ readonly latitude?: number | undefined;
5838
+ readonly longitude?: number | undefined;
5839
+ } | undefined;
5840
+ readonly joinLink?: string | undefined;
5841
+ readonly isScheduledCall?: boolean | undefined;
5842
+ readonly extraGuestsAllowed?: boolean | undefined;
5843
+ readonly isCanceled: boolean;
5844
+ readonly fromMe: boolean;
5845
+ readonly timestamp: number;
5846
+ } | undefined;
5847
+ expectedImageCount?: number | null | undefined;
5848
+ expectedVideoCount?: number | null | undefined;
5849
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
5850
+ associationType?: string | null | undefined;
5851
+ isGif?: boolean | undefined;
4796
5852
  timestamp: number;
4797
5853
  content: string;
4798
5854
  isGroupMsg: boolean;
@@ -5020,6 +6076,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
5020
6076
  labels?: string[] | undefined;
5021
6077
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
5022
6078
  caption?: string | undefined;
6079
+ event?: {
6080
+ readonly id: string;
6081
+ readonly chatId: string;
6082
+ readonly creatorId: string;
6083
+ readonly name: string;
6084
+ readonly startTime: number;
6085
+ readonly endTime?: number | undefined;
6086
+ readonly description?: string | undefined;
6087
+ readonly location?: {
6088
+ readonly name?: string | undefined;
6089
+ readonly latitude?: number | undefined;
6090
+ readonly longitude?: number | undefined;
6091
+ } | undefined;
6092
+ readonly joinLink?: string | undefined;
6093
+ readonly isScheduledCall?: boolean | undefined;
6094
+ readonly extraGuestsAllowed?: boolean | undefined;
6095
+ readonly isCanceled: boolean;
6096
+ readonly fromMe: boolean;
6097
+ readonly timestamp: number;
6098
+ } | undefined;
6099
+ expectedImageCount?: number | null | undefined;
6100
+ expectedVideoCount?: number | null | undefined;
6101
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
6102
+ associationType?: string | null | undefined;
6103
+ isGif?: boolean | undefined;
5023
6104
  timestamp: number;
5024
6105
  content: string;
5025
6106
  isGroupMsg: boolean;
@@ -5223,6 +6304,19 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
5223
6304
  t?: number | undefined;
5224
6305
  }[]>;
5225
6306
  };
6307
+ calls: {
6308
+ acceptCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6309
+ clearCallAudio: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6310
+ endCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6311
+ getActiveCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6312
+ getCallCapabilities: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6313
+ muteCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6314
+ observeCallAudio: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6315
+ rejectCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6316
+ setCallMedia: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6317
+ startCall: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6318
+ stopCallAudioObserver: (...args: any[] | unknown[] | [] | [Record<string, unknown>] | [Record<string, unknown>, ...unknown[]]) => Promise<unknown>;
6319
+ };
5226
6320
  chatIds: {
5227
6321
  all: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<(string & import("zod").$brand<"ChatId">)[]>;
5228
6322
  getAll: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<(string & import("zod").$brand<"ChatId">)[]>;
@@ -6073,12 +7167,156 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
6073
7167
  isOnline?: boolean | undefined;
6074
7168
  lastSeen?: number | undefined;
6075
7169
  }[]>;
7170
+ requestPhoneNumber: (...args: any[] | unknown[] | [] | [{
7171
+ to: string;
7172
+ }] | [{
7173
+ to: string;
7174
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
7175
+ sharePhoneNumber: (...args: any[] | unknown[] | [] | [{
7176
+ to: string;
7177
+ }] | [{
7178
+ to: string;
7179
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
6076
7180
  unblock: (...args: any[] | unknown[] | [] | [{
6077
7181
  contactId: string;
6078
7182
  }] | [{
6079
7183
  contactId: string;
6080
7184
  }, ...unknown[]]) => Promise<boolean>;
6081
7185
  };
7186
+ events: {
7187
+ cancelEvent: (...args: any[] | unknown[] | [] | [{
7188
+ eventId: string;
7189
+ }] | [{
7190
+ eventId: string;
7191
+ }, ...unknown[]]) => Promise<boolean>;
7192
+ editEvent: (...args: any[] | unknown[] | [] | [{
7193
+ eventId: string;
7194
+ changes: {
7195
+ readonly name?: string | undefined;
7196
+ readonly startTime?: number | undefined;
7197
+ readonly endTime?: number | null | undefined;
7198
+ readonly description?: string | undefined;
7199
+ readonly location?: string | undefined;
7200
+ };
7201
+ }] | [{
7202
+ eventId: string;
7203
+ changes: {
7204
+ readonly name?: string | undefined;
7205
+ readonly startTime?: number | undefined;
7206
+ readonly endTime?: number | null | undefined;
7207
+ readonly description?: string | undefined;
7208
+ readonly location?: string | undefined;
7209
+ };
7210
+ }, ...unknown[]]) => Promise<boolean>;
7211
+ get: (...args: any[] | unknown[] | [] | [{
7212
+ chatId: string;
7213
+ options?: {
7214
+ readonly limit?: number | undefined;
7215
+ readonly before?: string | undefined;
7216
+ } | undefined;
7217
+ }] | [{
7218
+ chatId: string;
7219
+ options?: {
7220
+ readonly limit?: number | undefined;
7221
+ readonly before?: string | undefined;
7222
+ } | undefined;
7223
+ }, ...unknown[]]) => Promise<{
7224
+ readonly events: readonly {
7225
+ readonly id: string;
7226
+ readonly chatId: string;
7227
+ readonly creatorId: string;
7228
+ readonly name: string;
7229
+ readonly startTime: number;
7230
+ readonly endTime?: number | undefined;
7231
+ readonly description?: string | undefined;
7232
+ readonly location?: {
7233
+ readonly name?: string | undefined;
7234
+ readonly latitude?: number | undefined;
7235
+ readonly longitude?: number | undefined;
7236
+ } | undefined;
7237
+ readonly joinLink?: string | undefined;
7238
+ readonly isScheduledCall?: boolean | undefined;
7239
+ readonly extraGuestsAllowed?: boolean | undefined;
7240
+ readonly isCanceled: boolean;
7241
+ readonly fromMe: boolean;
7242
+ readonly timestamp: number;
7243
+ }[];
7244
+ readonly nextCursor: string | null;
7245
+ }>;
7246
+ getEvent: (...args: any[] | unknown[] | [] | [{
7247
+ eventId: string;
7248
+ }] | [{
7249
+ eventId: string;
7250
+ }, ...unknown[]]) => Promise<{
7251
+ readonly id: string;
7252
+ readonly chatId: string;
7253
+ readonly creatorId: string;
7254
+ readonly name: string;
7255
+ readonly startTime: number;
7256
+ readonly endTime?: number | undefined;
7257
+ readonly description?: string | undefined;
7258
+ readonly location?: {
7259
+ readonly name?: string | undefined;
7260
+ readonly latitude?: number | undefined;
7261
+ readonly longitude?: number | undefined;
7262
+ } | undefined;
7263
+ readonly joinLink?: string | undefined;
7264
+ readonly isScheduledCall?: boolean | undefined;
7265
+ readonly extraGuestsAllowed?: boolean | undefined;
7266
+ readonly isCanceled: boolean;
7267
+ readonly fromMe: boolean;
7268
+ readonly timestamp: number;
7269
+ } | null>;
7270
+ getEventResponses: (...args: any[] | unknown[] | [] | [{
7271
+ eventId: string;
7272
+ }] | [{
7273
+ eventId: string;
7274
+ }, ...unknown[]]) => Promise<{
7275
+ readonly id: string;
7276
+ readonly eventId: string;
7277
+ readonly chatId: string;
7278
+ readonly senderId: string;
7279
+ readonly response: "going" | "maybe" | "notGoing" | "unknown";
7280
+ readonly timestamp: number;
7281
+ readonly fromMe: boolean;
7282
+ }[]>;
7283
+ respondToEvent: (...args: any[] | unknown[] | [] | [{
7284
+ eventId: string;
7285
+ response: "going" | "maybe" | "notGoing";
7286
+ }] | [{
7287
+ eventId: string;
7288
+ response: "going" | "maybe" | "notGoing";
7289
+ }, ...unknown[]]) => Promise<boolean>;
7290
+ sendEvent: (...args: any[] | unknown[] | [] | [{
7291
+ to: string;
7292
+ event: {
7293
+ readonly name: string;
7294
+ readonly startTime: number;
7295
+ readonly endTime?: number | undefined;
7296
+ readonly description?: string | undefined;
7297
+ readonly location?: string | undefined;
7298
+ readonly extraGuestsAllowed?: boolean | undefined;
7299
+ readonly callType?: "video" | "voice" | undefined;
7300
+ readonly isScheduledCall?: boolean | undefined;
7301
+ readonly requireApproval?: boolean | undefined;
7302
+ readonly quotedMsgId?: string | undefined;
7303
+ };
7304
+ }] | [{
7305
+ to: string;
7306
+ event: {
7307
+ readonly name: string;
7308
+ readonly startTime: number;
7309
+ readonly endTime?: number | undefined;
7310
+ readonly description?: string | undefined;
7311
+ readonly location?: string | undefined;
7312
+ readonly extraGuestsAllowed?: boolean | undefined;
7313
+ readonly callType?: "video" | "voice" | undefined;
7314
+ readonly isScheduledCall?: boolean | undefined;
7315
+ readonly requireApproval?: boolean | undefined;
7316
+ readonly quotedMsgId?: string | undefined;
7317
+ };
7318
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
7319
+ };
6082
7320
  groups: {
6083
7321
  addParticipant: (...args: any[] | unknown[] | [] | [{
6084
7322
  groupId: string;
@@ -6274,22 +7512,10 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
6274
7512
  groupId: string;
6275
7513
  }] | [{
6276
7514
  groupId: string;
6277
- }, ...unknown[]]) => Promise<{
7515
+ }, ...unknown[]]) => Promise<string | {
6278
7516
  [x: string]: unknown;
6279
- id: string & import("zod").$brand<"GroupId">;
6280
- subject: string;
6281
- creation: number;
6282
- owner?: (string & import("zod").$brand<"ContactId">) | undefined;
6283
- desc?: string | undefined;
6284
- descTime?: number | undefined;
6285
- descOwner?: (string & import("zod").$brand<"ContactId">) | undefined;
6286
- restrict?: boolean | undefined;
6287
- announce?: boolean | undefined;
6288
- participants: {
6289
- id: string & import("zod").$brand<"ContactId">;
6290
- isAdmin: boolean;
6291
- isSuperAdmin?: boolean | undefined;
6292
- }[];
7517
+ title: string;
7518
+ description?: string | null | undefined;
6293
7519
  } | null>;
6294
7520
  getInviteLink: (...args: any[] | unknown[] | [] | [{
6295
7521
  groupId: string;
@@ -6855,6 +8081,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
6855
8081
  labels?: string[] | undefined;
6856
8082
  mentionedJidList?: string[] | undefined;
6857
8083
  caption?: string | undefined;
8084
+ event?: {
8085
+ readonly id: string;
8086
+ readonly chatId: string;
8087
+ readonly creatorId: string;
8088
+ readonly name: string;
8089
+ readonly startTime: number;
8090
+ readonly endTime?: number | undefined;
8091
+ readonly description?: string | undefined;
8092
+ readonly location?: {
8093
+ readonly name?: string | undefined;
8094
+ readonly latitude?: number | undefined;
8095
+ readonly longitude?: number | undefined;
8096
+ } | undefined;
8097
+ readonly joinLink?: string | undefined;
8098
+ readonly isScheduledCall?: boolean | undefined;
8099
+ readonly extraGuestsAllowed?: boolean | undefined;
8100
+ readonly isCanceled: boolean;
8101
+ readonly fromMe: boolean;
8102
+ readonly timestamp: number;
8103
+ } | undefined;
8104
+ expectedImageCount?: number | null | undefined;
8105
+ expectedVideoCount?: number | null | undefined;
8106
+ parentMsgKey?: string | null | undefined;
8107
+ associationType?: string | null | undefined;
8108
+ isGif?: boolean | undefined;
6858
8109
  timestamp: number;
6859
8110
  content: string;
6860
8111
  isGroupMsg: boolean;
@@ -6995,6 +8246,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
6995
8246
  labels?: string[] | undefined;
6996
8247
  mentionedJidList?: string[] | undefined;
6997
8248
  caption?: string | undefined;
8249
+ event?: {
8250
+ readonly id: string;
8251
+ readonly chatId: string;
8252
+ readonly creatorId: string;
8253
+ readonly name: string;
8254
+ readonly startTime: number;
8255
+ readonly endTime?: number | undefined;
8256
+ readonly description?: string | undefined;
8257
+ readonly location?: {
8258
+ readonly name?: string | undefined;
8259
+ readonly latitude?: number | undefined;
8260
+ readonly longitude?: number | undefined;
8261
+ } | undefined;
8262
+ readonly joinLink?: string | undefined;
8263
+ readonly isScheduledCall?: boolean | undefined;
8264
+ readonly extraGuestsAllowed?: boolean | undefined;
8265
+ readonly isCanceled: boolean;
8266
+ readonly fromMe: boolean;
8267
+ readonly timestamp: number;
8268
+ } | undefined;
8269
+ expectedImageCount?: number | null | undefined;
8270
+ expectedVideoCount?: number | null | undefined;
8271
+ parentMsgKey?: string | null | undefined;
8272
+ associationType?: string | null | undefined;
8273
+ isGif?: boolean | undefined;
6998
8274
  timestamp: number;
6999
8275
  content: string;
7000
8276
  isGroupMsg: boolean;
@@ -7136,6 +8412,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7136
8412
  labels?: string[] | undefined;
7137
8413
  mentionedJidList?: string[] | undefined;
7138
8414
  caption?: string | undefined;
8415
+ event?: {
8416
+ readonly id: string;
8417
+ readonly chatId: string;
8418
+ readonly creatorId: string;
8419
+ readonly name: string;
8420
+ readonly startTime: number;
8421
+ readonly endTime?: number | undefined;
8422
+ readonly description?: string | undefined;
8423
+ readonly location?: {
8424
+ readonly name?: string | undefined;
8425
+ readonly latitude?: number | undefined;
8426
+ readonly longitude?: number | undefined;
8427
+ } | undefined;
8428
+ readonly joinLink?: string | undefined;
8429
+ readonly isScheduledCall?: boolean | undefined;
8430
+ readonly extraGuestsAllowed?: boolean | undefined;
8431
+ readonly isCanceled: boolean;
8432
+ readonly fromMe: boolean;
8433
+ readonly timestamp: number;
8434
+ } | undefined;
8435
+ expectedImageCount?: number | null | undefined;
8436
+ expectedVideoCount?: number | null | undefined;
8437
+ parentMsgKey?: string | null | undefined;
8438
+ associationType?: string | null | undefined;
8439
+ isGif?: boolean | undefined;
7139
8440
  timestamp: number;
7140
8441
  content: string;
7141
8442
  isGroupMsg: boolean;
@@ -7277,6 +8578,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7277
8578
  labels?: string[] | undefined;
7278
8579
  mentionedJidList?: string[] | undefined;
7279
8580
  caption?: string | undefined;
8581
+ event?: {
8582
+ readonly id: string;
8583
+ readonly chatId: string;
8584
+ readonly creatorId: string;
8585
+ readonly name: string;
8586
+ readonly startTime: number;
8587
+ readonly endTime?: number | undefined;
8588
+ readonly description?: string | undefined;
8589
+ readonly location?: {
8590
+ readonly name?: string | undefined;
8591
+ readonly latitude?: number | undefined;
8592
+ readonly longitude?: number | undefined;
8593
+ } | undefined;
8594
+ readonly joinLink?: string | undefined;
8595
+ readonly isScheduledCall?: boolean | undefined;
8596
+ readonly extraGuestsAllowed?: boolean | undefined;
8597
+ readonly isCanceled: boolean;
8598
+ readonly fromMe: boolean;
8599
+ readonly timestamp: number;
8600
+ } | undefined;
8601
+ expectedImageCount?: number | null | undefined;
8602
+ expectedVideoCount?: number | null | undefined;
8603
+ parentMsgKey?: string | null | undefined;
8604
+ associationType?: string | null | undefined;
8605
+ isGif?: boolean | undefined;
7280
8606
  timestamp: number;
7281
8607
  content: string;
7282
8608
  isGroupMsg: boolean;
@@ -7405,10 +8731,206 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7405
8731
  includeMe?: boolean | undefined;
7406
8732
  includeNotifications?: boolean | undefined;
7407
8733
  }] | [{
7408
- chatId?: string | undefined;
7409
- includeMe?: boolean | undefined;
7410
- includeNotifications?: boolean | undefined;
7411
- }, ...unknown[]]) => Promise<{
8734
+ chatId?: string | undefined;
8735
+ includeMe?: boolean | undefined;
8736
+ includeNotifications?: boolean | undefined;
8737
+ }, ...unknown[]]) => Promise<{
8738
+ [x: string]: unknown;
8739
+ id: string & import("zod").$brand<"MessageId">;
8740
+ body: string;
8741
+ type: MessageTypes;
8742
+ t: number;
8743
+ notifyName?: string | undefined;
8744
+ from: string & import("zod").$brand<"ChatId">;
8745
+ to: string & import("zod").$brand<"ChatId">;
8746
+ self: "in" | "out";
8747
+ ack: MessageAck;
8748
+ invis?: boolean | undefined;
8749
+ isNewMsg?: boolean | undefined;
8750
+ star?: boolean | undefined;
8751
+ recvFresh?: boolean | undefined;
8752
+ broadcast?: boolean | undefined;
8753
+ isForwarded?: boolean | undefined;
8754
+ labels?: string[] | undefined;
8755
+ mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
8756
+ caption?: string | undefined;
8757
+ event?: {
8758
+ readonly id: string;
8759
+ readonly chatId: string;
8760
+ readonly creatorId: string;
8761
+ readonly name: string;
8762
+ readonly startTime: number;
8763
+ readonly endTime?: number | undefined;
8764
+ readonly description?: string | undefined;
8765
+ readonly location?: {
8766
+ readonly name?: string | undefined;
8767
+ readonly latitude?: number | undefined;
8768
+ readonly longitude?: number | undefined;
8769
+ } | undefined;
8770
+ readonly joinLink?: string | undefined;
8771
+ readonly isScheduledCall?: boolean | undefined;
8772
+ readonly extraGuestsAllowed?: boolean | undefined;
8773
+ readonly isCanceled: boolean;
8774
+ readonly fromMe: boolean;
8775
+ readonly timestamp: number;
8776
+ } | undefined;
8777
+ expectedImageCount?: number | null | undefined;
8778
+ expectedVideoCount?: number | null | undefined;
8779
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
8780
+ associationType?: string | null | undefined;
8781
+ isGif?: boolean | undefined;
8782
+ timestamp: number;
8783
+ content: string;
8784
+ isGroupMsg: boolean;
8785
+ isMMS?: boolean | undefined;
8786
+ isMedia: boolean;
8787
+ isNotification: boolean;
8788
+ isPSA?: boolean | undefined;
8789
+ fromMe: boolean;
8790
+ chatId: string & import("zod").$brand<"ChatId">;
8791
+ author?: string | undefined;
8792
+ clientUrl?: string | undefined;
8793
+ deprecatedMms3Url?: string | undefined;
8794
+ isQuotedMsgAvailable: boolean;
8795
+ quotedMsg?: any;
8796
+ quotedMsgObj?: any;
8797
+ senderId?: string | undefined;
8798
+ sender: {
8799
+ [x: string]: unknown;
8800
+ id: string & import("zod").$brand<"ContactId">;
8801
+ name?: string | undefined;
8802
+ shortName?: string | undefined;
8803
+ pushname?: string | undefined;
8804
+ formattedName?: string | undefined;
8805
+ isBusiness?: boolean | undefined;
8806
+ isEnterprise?: boolean | undefined;
8807
+ isMe?: boolean | undefined;
8808
+ isMyContact?: boolean | undefined;
8809
+ isPSA?: boolean | undefined;
8810
+ isUser?: boolean | undefined;
8811
+ isWAContact?: boolean | undefined;
8812
+ labels?: string[] | undefined;
8813
+ msgs?: unknown[] | null | undefined;
8814
+ profilePicThumbObj?: {
8815
+ eurl?: string | undefined;
8816
+ id?: {
8817
+ server: string;
8818
+ user: string;
8819
+ _serialized: string;
8820
+ } | undefined;
8821
+ img?: string | undefined;
8822
+ imgFull?: string | undefined;
8823
+ tag?: string | undefined;
8824
+ } | undefined;
8825
+ statusMute?: boolean | undefined;
8826
+ type?: string | undefined;
8827
+ verifiedLevel?: number | undefined;
8828
+ verifiedName?: string | undefined;
8829
+ isOnline?: boolean | undefined;
8830
+ lastSeen?: number | undefined;
8831
+ };
8832
+ chat: {
8833
+ [x: string]: unknown;
8834
+ id: string & import("zod").$brand<"ChatId">;
8835
+ name?: string | undefined;
8836
+ formattedTitle?: string | undefined;
8837
+ isGroup: boolean;
8838
+ contact: {
8839
+ [x: string]: unknown;
8840
+ id: string & import("zod").$brand<"ContactId">;
8841
+ name?: string | undefined;
8842
+ shortName?: string | undefined;
8843
+ pushname?: string | undefined;
8844
+ formattedName?: string | undefined;
8845
+ isBusiness?: boolean | undefined;
8846
+ isEnterprise?: boolean | undefined;
8847
+ isMe?: boolean | undefined;
8848
+ isMyContact?: boolean | undefined;
8849
+ isPSA?: boolean | undefined;
8850
+ isUser?: boolean | undefined;
8851
+ isWAContact?: boolean | undefined;
8852
+ labels?: string[] | undefined;
8853
+ msgs?: unknown[] | null | undefined;
8854
+ profilePicThumbObj?: {
8855
+ eurl?: string | undefined;
8856
+ id?: {
8857
+ server: string;
8858
+ user: string;
8859
+ _serialized: string;
8860
+ } | undefined;
8861
+ img?: string | undefined;
8862
+ imgFull?: string | undefined;
8863
+ tag?: string | undefined;
8864
+ } | undefined;
8865
+ statusMute?: boolean | undefined;
8866
+ type?: string | undefined;
8867
+ verifiedLevel?: number | undefined;
8868
+ verifiedName?: string | undefined;
8869
+ isOnline?: boolean | undefined;
8870
+ lastSeen?: number | undefined;
8871
+ } | null;
8872
+ groupMetadata?: {
8873
+ [x: string]: unknown;
8874
+ id: string & import("zod").$brand<"GroupId">;
8875
+ subject: string;
8876
+ creation: number;
8877
+ owner?: (string & import("zod").$brand<"ContactId">) | undefined;
8878
+ desc?: string | undefined;
8879
+ descTime?: number | undefined;
8880
+ descOwner?: (string & import("zod").$brand<"ContactId">) | undefined;
8881
+ restrict?: boolean | undefined;
8882
+ announce?: boolean | undefined;
8883
+ participants: {
8884
+ id: string & import("zod").$brand<"ContactId">;
8885
+ isAdmin: boolean;
8886
+ isSuperAdmin?: boolean | undefined;
8887
+ }[];
8888
+ } | null | undefined;
8889
+ presence?: Record<string, unknown> | null | undefined;
8890
+ t?: number | undefined;
8891
+ unreadCount?: number | undefined;
8892
+ lastReceivedKey?: any;
8893
+ msgs?: unknown[] | null | undefined;
8894
+ isReadOnly?: boolean | undefined;
8895
+ muteExpiration?: number | undefined;
8896
+ notSpam?: boolean | undefined;
8897
+ pin?: number | undefined;
8898
+ ack?: any;
8899
+ };
8900
+ }[]>;
8901
+ delete: (...args: any[] | unknown[] | [] | [{
8902
+ chatId: string;
8903
+ messageId: string | string[];
8904
+ onlyLocal?: boolean | undefined;
8905
+ }] | [{
8906
+ chatId: string;
8907
+ messageId: string | string[];
8908
+ onlyLocal?: boolean | undefined;
8909
+ }, ...unknown[]]) => Promise<boolean>;
8910
+ edit: (...args: any[] | unknown[] | [] | [{
8911
+ messageId: string;
8912
+ newContent: string;
8913
+ }] | [{
8914
+ messageId: string;
8915
+ newContent: string;
8916
+ }, ...unknown[]]) => Promise<boolean>;
8917
+ forward: (...args: any[] | unknown[] | [] | [{
8918
+ to: string;
8919
+ messages: string | string[];
8920
+ skipMyMessages?: boolean | undefined;
8921
+ }] | [{
8922
+ to: string;
8923
+ messages: string | string[];
8924
+ skipMyMessages?: boolean | undefined;
8925
+ }, ...unknown[]]) => Promise<boolean | ({
8926
+ [x: string]: unknown;
8927
+ _serialized: string;
8928
+ } | (string & import("zod").$brand<"MessageId">))[]>;
8929
+ get: (...args: any[] | unknown[] | [] | [{
8930
+ messageId: string;
8931
+ }] | [{
8932
+ messageId: string;
8933
+ }, ...unknown[]]) => Promise<false | {
7412
8934
  [x: string]: unknown;
7413
8935
  id: string & import("zod").$brand<"MessageId">;
7414
8936
  body: string;
@@ -7428,6 +8950,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7428
8950
  labels?: string[] | undefined;
7429
8951
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
7430
8952
  caption?: string | undefined;
8953
+ event?: {
8954
+ readonly id: string;
8955
+ readonly chatId: string;
8956
+ readonly creatorId: string;
8957
+ readonly name: string;
8958
+ readonly startTime: number;
8959
+ readonly endTime?: number | undefined;
8960
+ readonly description?: string | undefined;
8961
+ readonly location?: {
8962
+ readonly name?: string | undefined;
8963
+ readonly latitude?: number | undefined;
8964
+ readonly longitude?: number | undefined;
8965
+ } | undefined;
8966
+ readonly joinLink?: string | undefined;
8967
+ readonly isScheduledCall?: boolean | undefined;
8968
+ readonly extraGuestsAllowed?: boolean | undefined;
8969
+ readonly isCanceled: boolean;
8970
+ readonly fromMe: boolean;
8971
+ readonly timestamp: number;
8972
+ } | undefined;
8973
+ expectedImageCount?: number | null | undefined;
8974
+ expectedVideoCount?: number | null | undefined;
8975
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
8976
+ associationType?: string | null | undefined;
8977
+ isGif?: boolean | undefined;
7431
8978
  timestamp: number;
7432
8979
  content: string;
7433
8980
  isGroupMsg: boolean;
@@ -7546,29 +9093,8 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7546
9093
  pin?: number | undefined;
7547
9094
  ack?: any;
7548
9095
  };
7549
- }[]>;
7550
- delete: (...args: any[] | unknown[] | [] | [{
7551
- chatId: string;
7552
- messageId: string | string[];
7553
- onlyLocal?: boolean | undefined;
7554
- }] | [{
7555
- chatId: string;
7556
- messageId: string | string[];
7557
- onlyLocal?: boolean | undefined;
7558
- }, ...unknown[]]) => Promise<boolean>;
7559
- forward: (...args: any[] | unknown[] | [] | [{
7560
- to: string;
7561
- messages: string | string[];
7562
- skipMyMessages?: boolean | undefined;
7563
- }] | [{
7564
- to: string;
7565
- messages: string | string[];
7566
- skipMyMessages?: boolean | undefined;
7567
- }, ...unknown[]]) => Promise<boolean | ({
7568
- [x: string]: unknown;
7569
- _serialized: string;
7570
- } | (string & import("zod").$brand<"MessageId">))[]>;
7571
- get: (...args: any[] | unknown[] | [] | [{
9096
+ } | null>;
9097
+ getAlbum: (...args: any[] | unknown[] | [] | [{
7572
9098
  messageId: string;
7573
9099
  }] | [{
7574
9100
  messageId: string;
@@ -7592,6 +9118,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7592
9118
  labels?: string[] | undefined;
7593
9119
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
7594
9120
  caption?: string | undefined;
9121
+ event?: {
9122
+ readonly id: string;
9123
+ readonly chatId: string;
9124
+ readonly creatorId: string;
9125
+ readonly name: string;
9126
+ readonly startTime: number;
9127
+ readonly endTime?: number | undefined;
9128
+ readonly description?: string | undefined;
9129
+ readonly location?: {
9130
+ readonly name?: string | undefined;
9131
+ readonly latitude?: number | undefined;
9132
+ readonly longitude?: number | undefined;
9133
+ } | undefined;
9134
+ readonly joinLink?: string | undefined;
9135
+ readonly isScheduledCall?: boolean | undefined;
9136
+ readonly extraGuestsAllowed?: boolean | undefined;
9137
+ readonly isCanceled: boolean;
9138
+ readonly fromMe: boolean;
9139
+ readonly timestamp: number;
9140
+ } | undefined;
9141
+ expectedImageCount?: number | null | undefined;
9142
+ expectedVideoCount?: number | null | undefined;
9143
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
9144
+ associationType?: string | null | undefined;
9145
+ isGif?: boolean | undefined;
7595
9146
  timestamp: number;
7596
9147
  content: string;
7597
9148
  isGroupMsg: boolean;
@@ -7710,7 +9261,7 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7710
9261
  pin?: number | undefined;
7711
9262
  ack?: any;
7712
9263
  };
7713
- } | null>;
9264
+ }[]>;
7714
9265
  getAll: (...args: any[] | unknown[] | [] | [{
7715
9266
  chatId?: string | undefined;
7716
9267
  includeMe?: boolean | undefined;
@@ -7739,6 +9290,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7739
9290
  labels?: string[] | undefined;
7740
9291
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
7741
9292
  caption?: string | undefined;
9293
+ event?: {
9294
+ readonly id: string;
9295
+ readonly chatId: string;
9296
+ readonly creatorId: string;
9297
+ readonly name: string;
9298
+ readonly startTime: number;
9299
+ readonly endTime?: number | undefined;
9300
+ readonly description?: string | undefined;
9301
+ readonly location?: {
9302
+ readonly name?: string | undefined;
9303
+ readonly latitude?: number | undefined;
9304
+ readonly longitude?: number | undefined;
9305
+ } | undefined;
9306
+ readonly joinLink?: string | undefined;
9307
+ readonly isScheduledCall?: boolean | undefined;
9308
+ readonly extraGuestsAllowed?: boolean | undefined;
9309
+ readonly isCanceled: boolean;
9310
+ readonly fromMe: boolean;
9311
+ readonly timestamp: number;
9312
+ } | undefined;
9313
+ expectedImageCount?: number | null | undefined;
9314
+ expectedVideoCount?: number | null | undefined;
9315
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
9316
+ associationType?: string | null | undefined;
9317
+ isGif?: boolean | undefined;
7742
9318
  timestamp: number;
7743
9319
  content: string;
7744
9320
  isGroupMsg: boolean;
@@ -7882,6 +9458,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
7882
9458
  labels?: string[] | undefined;
7883
9459
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
7884
9460
  caption?: string | undefined;
9461
+ event?: {
9462
+ readonly id: string;
9463
+ readonly chatId: string;
9464
+ readonly creatorId: string;
9465
+ readonly name: string;
9466
+ readonly startTime: number;
9467
+ readonly endTime?: number | undefined;
9468
+ readonly description?: string | undefined;
9469
+ readonly location?: {
9470
+ readonly name?: string | undefined;
9471
+ readonly latitude?: number | undefined;
9472
+ readonly longitude?: number | undefined;
9473
+ } | undefined;
9474
+ readonly joinLink?: string | undefined;
9475
+ readonly isScheduledCall?: boolean | undefined;
9476
+ readonly extraGuestsAllowed?: boolean | undefined;
9477
+ readonly isCanceled: boolean;
9478
+ readonly fromMe: boolean;
9479
+ readonly timestamp: number;
9480
+ } | undefined;
9481
+ expectedImageCount?: number | null | undefined;
9482
+ expectedVideoCount?: number | null | undefined;
9483
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
9484
+ associationType?: string | null | undefined;
9485
+ isGif?: boolean | undefined;
7885
9486
  timestamp: number;
7886
9487
  content: string;
7887
9488
  isGroupMsg: boolean;
@@ -8068,6 +9669,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8068
9669
  labels?: string[] | undefined;
8069
9670
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
8070
9671
  caption?: string | undefined;
9672
+ event?: {
9673
+ readonly id: string;
9674
+ readonly chatId: string;
9675
+ readonly creatorId: string;
9676
+ readonly name: string;
9677
+ readonly startTime: number;
9678
+ readonly endTime?: number | undefined;
9679
+ readonly description?: string | undefined;
9680
+ readonly location?: {
9681
+ readonly name?: string | undefined;
9682
+ readonly latitude?: number | undefined;
9683
+ readonly longitude?: number | undefined;
9684
+ } | undefined;
9685
+ readonly joinLink?: string | undefined;
9686
+ readonly isScheduledCall?: boolean | undefined;
9687
+ readonly extraGuestsAllowed?: boolean | undefined;
9688
+ readonly isCanceled: boolean;
9689
+ readonly fromMe: boolean;
9690
+ readonly timestamp: number;
9691
+ } | undefined;
9692
+ expectedImageCount?: number | null | undefined;
9693
+ expectedVideoCount?: number | null | undefined;
9694
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
9695
+ associationType?: string | null | undefined;
9696
+ isGif?: boolean | undefined;
8071
9697
  timestamp: number;
8072
9698
  content: string;
8073
9699
  isGroupMsg: boolean;
@@ -8187,6 +9813,36 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8187
9813
  ack?: any;
8188
9814
  };
8189
9815
  } | undefined>;
9816
+ getPollResults: (...args: any[] | unknown[] | [] | [{
9817
+ messageId: string;
9818
+ }] | [{
9819
+ messageId: string;
9820
+ }, ...unknown[]]) => Promise<{
9821
+ pollId: string & import("zod").$brand<"MessageId">;
9822
+ chatId: string & import("zod").$brand<"ChatId">;
9823
+ name: string;
9824
+ selectableCount: number;
9825
+ endTime?: number | undefined;
9826
+ isClosed: boolean;
9827
+ hideVoterNames: boolean;
9828
+ options: {
9829
+ id: number;
9830
+ name: string;
9831
+ count: number;
9832
+ }[];
9833
+ voterCount: number;
9834
+ votes?: {
9835
+ pollId: string & import("zod").$brand<"MessageId">;
9836
+ chatId: string & import("zod").$brand<"ChatId">;
9837
+ id?: (string & import("zod").$brand<"MessageId">) | undefined;
9838
+ senderId?: (string & import("zod").$brand<"ContactId">) | undefined;
9839
+ selectedOptionIds: number[];
9840
+ timestamp: number;
9841
+ fromMe: boolean;
9842
+ hideVoterNames: boolean;
9843
+ }[] | undefined;
9844
+ scope: "synced";
9845
+ }>;
8190
9846
  getStarred: (...args: any[] | unknown[] | [] | [{
8191
9847
  chatId?: string | undefined;
8192
9848
  }] | [{
@@ -8211,6 +9867,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8211
9867
  labels?: string[] | undefined;
8212
9868
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
8213
9869
  caption?: string | undefined;
9870
+ event?: {
9871
+ readonly id: string;
9872
+ readonly chatId: string;
9873
+ readonly creatorId: string;
9874
+ readonly name: string;
9875
+ readonly startTime: number;
9876
+ readonly endTime?: number | undefined;
9877
+ readonly description?: string | undefined;
9878
+ readonly location?: {
9879
+ readonly name?: string | undefined;
9880
+ readonly latitude?: number | undefined;
9881
+ readonly longitude?: number | undefined;
9882
+ } | undefined;
9883
+ readonly joinLink?: string | undefined;
9884
+ readonly isScheduledCall?: boolean | undefined;
9885
+ readonly extraGuestsAllowed?: boolean | undefined;
9886
+ readonly isCanceled: boolean;
9887
+ readonly fromMe: boolean;
9888
+ readonly timestamp: number;
9889
+ } | undefined;
9890
+ expectedImageCount?: number | null | undefined;
9891
+ expectedVideoCount?: number | null | undefined;
9892
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
9893
+ associationType?: string | null | undefined;
9894
+ isGif?: boolean | undefined;
8214
9895
  timestamp: number;
8215
9896
  content: string;
8216
9897
  isGroupMsg: boolean;
@@ -8350,6 +10031,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8350
10031
  labels?: string[] | undefined;
8351
10032
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
8352
10033
  caption?: string | undefined;
10034
+ event?: {
10035
+ readonly id: string;
10036
+ readonly chatId: string;
10037
+ readonly creatorId: string;
10038
+ readonly name: string;
10039
+ readonly startTime: number;
10040
+ readonly endTime?: number | undefined;
10041
+ readonly description?: string | undefined;
10042
+ readonly location?: {
10043
+ readonly name?: string | undefined;
10044
+ readonly latitude?: number | undefined;
10045
+ readonly longitude?: number | undefined;
10046
+ } | undefined;
10047
+ readonly joinLink?: string | undefined;
10048
+ readonly isScheduledCall?: boolean | undefined;
10049
+ readonly extraGuestsAllowed?: boolean | undefined;
10050
+ readonly isCanceled: boolean;
10051
+ readonly fromMe: boolean;
10052
+ readonly timestamp: number;
10053
+ } | undefined;
10054
+ expectedImageCount?: number | null | undefined;
10055
+ expectedVideoCount?: number | null | undefined;
10056
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
10057
+ associationType?: string | null | undefined;
10058
+ isGif?: boolean | undefined;
8353
10059
  timestamp: number;
8354
10060
  content: string;
8355
10061
  isGroupMsg: boolean;
@@ -8502,6 +10208,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8502
10208
  labels?: string[] | undefined;
8503
10209
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
8504
10210
  caption?: string | undefined;
10211
+ event?: {
10212
+ readonly id: string;
10213
+ readonly chatId: string;
10214
+ readonly creatorId: string;
10215
+ readonly name: string;
10216
+ readonly startTime: number;
10217
+ readonly endTime?: number | undefined;
10218
+ readonly description?: string | undefined;
10219
+ readonly location?: {
10220
+ readonly name?: string | undefined;
10221
+ readonly latitude?: number | undefined;
10222
+ readonly longitude?: number | undefined;
10223
+ } | undefined;
10224
+ readonly joinLink?: string | undefined;
10225
+ readonly isScheduledCall?: boolean | undefined;
10226
+ readonly extraGuestsAllowed?: boolean | undefined;
10227
+ readonly isCanceled: boolean;
10228
+ readonly fromMe: boolean;
10229
+ readonly timestamp: number;
10230
+ } | undefined;
10231
+ expectedImageCount?: number | null | undefined;
10232
+ expectedVideoCount?: number | null | undefined;
10233
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
10234
+ associationType?: string | null | undefined;
10235
+ isGif?: boolean | undefined;
8505
10236
  timestamp: number;
8506
10237
  content: string;
8507
10238
  isGroupMsg: boolean;
@@ -8649,6 +10380,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8649
10380
  labels?: string[] | undefined;
8650
10381
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
8651
10382
  caption?: string | undefined;
10383
+ event?: {
10384
+ readonly id: string;
10385
+ readonly chatId: string;
10386
+ readonly creatorId: string;
10387
+ readonly name: string;
10388
+ readonly startTime: number;
10389
+ readonly endTime?: number | undefined;
10390
+ readonly description?: string | undefined;
10391
+ readonly location?: {
10392
+ readonly name?: string | undefined;
10393
+ readonly latitude?: number | undefined;
10394
+ readonly longitude?: number | undefined;
10395
+ } | undefined;
10396
+ readonly joinLink?: string | undefined;
10397
+ readonly isScheduledCall?: boolean | undefined;
10398
+ readonly extraGuestsAllowed?: boolean | undefined;
10399
+ readonly isCanceled: boolean;
10400
+ readonly fromMe: boolean;
10401
+ readonly timestamp: number;
10402
+ } | undefined;
10403
+ expectedImageCount?: number | null | undefined;
10404
+ expectedVideoCount?: number | null | undefined;
10405
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
10406
+ associationType?: string | null | undefined;
10407
+ isGif?: boolean | undefined;
8652
10408
  timestamp: number;
8653
10409
  content: string;
8654
10410
  isGroupMsg: boolean;
@@ -8796,6 +10552,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8796
10552
  labels?: string[] | undefined;
8797
10553
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
8798
10554
  caption?: string | undefined;
10555
+ event?: {
10556
+ readonly id: string;
10557
+ readonly chatId: string;
10558
+ readonly creatorId: string;
10559
+ readonly name: string;
10560
+ readonly startTime: number;
10561
+ readonly endTime?: number | undefined;
10562
+ readonly description?: string | undefined;
10563
+ readonly location?: {
10564
+ readonly name?: string | undefined;
10565
+ readonly latitude?: number | undefined;
10566
+ readonly longitude?: number | undefined;
10567
+ } | undefined;
10568
+ readonly joinLink?: string | undefined;
10569
+ readonly isScheduledCall?: boolean | undefined;
10570
+ readonly extraGuestsAllowed?: boolean | undefined;
10571
+ readonly isCanceled: boolean;
10572
+ readonly fromMe: boolean;
10573
+ readonly timestamp: number;
10574
+ } | undefined;
10575
+ expectedImageCount?: number | null | undefined;
10576
+ expectedVideoCount?: number | null | undefined;
10577
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
10578
+ associationType?: string | null | undefined;
10579
+ isGif?: boolean | undefined;
8799
10580
  timestamp: number;
8800
10581
  content: string;
8801
10582
  isGroupMsg: boolean;
@@ -8915,6 +10696,13 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8915
10696
  ack?: any;
8916
10697
  };
8917
10698
  }[]>;
10699
+ pin: (...args: any[] | unknown[] | [] | [{
10700
+ messageId: string;
10701
+ duration?: "OneDay" | "SevenDays" | "ThirtyDays" | undefined;
10702
+ }] | [{
10703
+ messageId: string;
10704
+ duration?: "OneDay" | "SevenDays" | "ThirtyDays" | undefined;
10705
+ }, ...unknown[]]) => Promise<boolean>;
8918
10706
  react: (...args: any[] | unknown[] | [] | [{
8919
10707
  messageId: string;
8920
10708
  emoji: string;
@@ -8940,16 +10728,42 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8940
10728
  [x: string]: unknown;
8941
10729
  _serialized: string;
8942
10730
  } | (string & import("zod").$brand<"MessageId">)>;
10731
+ sendAlbum: (...args: any[] | unknown[] | [] | [{
10732
+ to: string;
10733
+ media: {
10734
+ file: string;
10735
+ filename: string;
10736
+ isGif?: boolean | undefined;
10737
+ }[];
10738
+ caption?: string | undefined;
10739
+ quotedMsgId?: string | undefined;
10740
+ }] | [{
10741
+ to: string;
10742
+ media: {
10743
+ file: string;
10744
+ filename: string;
10745
+ isGif?: boolean | undefined;
10746
+ }[];
10747
+ caption?: string | undefined;
10748
+ quotedMsgId?: string | undefined;
10749
+ }, ...unknown[]]) => Promise<{
10750
+ albumId: string & import("zod").$brand<"MessageId">;
10751
+ messageIds: (string & import("zod").$brand<"MessageId">)[];
10752
+ }>;
8943
10753
  sendAudio: (...args: any[] | unknown[] | [] | [{
8944
10754
  to: string;
8945
10755
  file: string | Buffer<ArrayBufferLike>;
8946
10756
  filename?: string | undefined;
8947
- quotedMsgId?: string | undefined;
10757
+ options?: {
10758
+ quotedMsgId?: string | undefined;
10759
+ } | undefined;
8948
10760
  }] | [{
8949
10761
  to: string;
8950
10762
  file: string | Buffer<ArrayBufferLike>;
8951
10763
  filename?: string | undefined;
8952
- quotedMsgId?: string | undefined;
10764
+ options?: {
10765
+ quotedMsgId?: string | undefined;
10766
+ } | undefined;
8953
10767
  }, ...unknown[]]) => Promise<boolean | {
8954
10768
  [x: string]: unknown;
8955
10769
  _serialized: string;
@@ -8986,7 +10800,10 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
8986
10800
  }] | [{
8987
10801
  to: string;
8988
10802
  contactId: string | string[];
8989
- }, ...unknown[]]) => Promise<void | boolean | {
10803
+ }, ...unknown[]]) => Promise<boolean | (boolean | {
10804
+ [x: string]: unknown;
10805
+ _serialized: string;
10806
+ } | (string & import("zod").$brand<"MessageId">))[] | {
8990
10807
  [x: string]: unknown;
8991
10808
  _serialized: string;
8992
10809
  } | (string & import("zod").$brand<"MessageId">)>;
@@ -9004,44 +10821,199 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9004
10821
  to: string;
9005
10822
  file: string | Buffer<ArrayBufferLike>;
9006
10823
  filename?: string | undefined;
9007
- caption?: string | undefined;
10824
+ options?: {
10825
+ quotedMsgId?: string | undefined;
10826
+ viewOnce?: boolean | undefined;
10827
+ type: "audio";
10828
+ ptt?: boolean | undefined;
10829
+ } | {
10830
+ quotedMsgId?: string | undefined;
10831
+ caption?: string | undefined;
10832
+ viewOnce?: boolean | undefined;
10833
+ type?: "auto" | undefined;
10834
+ } | {
10835
+ quotedMsgId?: string | undefined;
10836
+ caption?: string | undefined;
10837
+ viewOnce?: boolean | undefined;
10838
+ type: "image";
10839
+ } | {
10840
+ quotedMsgId?: string | undefined;
10841
+ caption?: string | undefined;
10842
+ viewOnce?: boolean | undefined;
10843
+ type: "video";
10844
+ isGif?: boolean | undefined;
10845
+ videoNote?: boolean | undefined;
10846
+ } | {
10847
+ quotedMsgId?: string | undefined;
10848
+ caption?: string | undefined;
10849
+ type: "document";
10850
+ } | undefined;
9008
10851
  }] | [{
9009
10852
  to: string;
9010
10853
  file: string | Buffer<ArrayBufferLike>;
9011
10854
  filename?: string | undefined;
9012
- caption?: string | undefined;
9013
- }, ...unknown[]]) => Promise<string | {
10855
+ options?: {
10856
+ quotedMsgId?: string | undefined;
10857
+ viewOnce?: boolean | undefined;
10858
+ type: "audio";
10859
+ ptt?: boolean | undefined;
10860
+ } | {
10861
+ quotedMsgId?: string | undefined;
10862
+ caption?: string | undefined;
10863
+ viewOnce?: boolean | undefined;
10864
+ type?: "auto" | undefined;
10865
+ } | {
10866
+ quotedMsgId?: string | undefined;
10867
+ caption?: string | undefined;
10868
+ viewOnce?: boolean | undefined;
10869
+ type: "image";
10870
+ } | {
10871
+ quotedMsgId?: string | undefined;
10872
+ caption?: string | undefined;
10873
+ viewOnce?: boolean | undefined;
10874
+ type: "video";
10875
+ isGif?: boolean | undefined;
10876
+ videoNote?: boolean | undefined;
10877
+ } | {
10878
+ quotedMsgId?: string | undefined;
10879
+ caption?: string | undefined;
10880
+ type: "document";
10881
+ } | undefined;
10882
+ }, ...unknown[]]) => Promise<boolean | {
9014
10883
  [x: string]: unknown;
9015
10884
  _serialized: string;
9016
10885
  } | (string & import("zod").$brand<"MessageId">)>;
9017
10886
  sendFileFromUrl: (...args: any[] | unknown[] | [] | [{
9018
10887
  to: string;
9019
10888
  url: string;
9020
- filename: string;
9021
- caption?: string | undefined;
10889
+ filename?: string | undefined;
10890
+ options?: {
10891
+ quotedMsgId?: string | undefined;
10892
+ viewOnce?: boolean | undefined;
10893
+ type: "audio";
10894
+ ptt?: boolean | undefined;
10895
+ } | {
10896
+ quotedMsgId?: string | undefined;
10897
+ caption?: string | undefined;
10898
+ viewOnce?: boolean | undefined;
10899
+ type?: "auto" | undefined;
10900
+ } | {
10901
+ quotedMsgId?: string | undefined;
10902
+ caption?: string | undefined;
10903
+ viewOnce?: boolean | undefined;
10904
+ type: "image";
10905
+ } | {
10906
+ quotedMsgId?: string | undefined;
10907
+ caption?: string | undefined;
10908
+ viewOnce?: boolean | undefined;
10909
+ type: "video";
10910
+ isGif?: boolean | undefined;
10911
+ videoNote?: boolean | undefined;
10912
+ } | {
10913
+ quotedMsgId?: string | undefined;
10914
+ caption?: string | undefined;
10915
+ type: "document";
10916
+ } | undefined;
9022
10917
  headers?: Record<string, string> | undefined;
9023
10918
  }] | [{
9024
10919
  to: string;
9025
10920
  url: string;
9026
- filename: string;
9027
- caption?: string | undefined;
10921
+ filename?: string | undefined;
10922
+ options?: {
10923
+ quotedMsgId?: string | undefined;
10924
+ viewOnce?: boolean | undefined;
10925
+ type: "audio";
10926
+ ptt?: boolean | undefined;
10927
+ } | {
10928
+ quotedMsgId?: string | undefined;
10929
+ caption?: string | undefined;
10930
+ viewOnce?: boolean | undefined;
10931
+ type?: "auto" | undefined;
10932
+ } | {
10933
+ quotedMsgId?: string | undefined;
10934
+ caption?: string | undefined;
10935
+ viewOnce?: boolean | undefined;
10936
+ type: "image";
10937
+ } | {
10938
+ quotedMsgId?: string | undefined;
10939
+ caption?: string | undefined;
10940
+ viewOnce?: boolean | undefined;
10941
+ type: "video";
10942
+ isGif?: boolean | undefined;
10943
+ videoNote?: boolean | undefined;
10944
+ } | {
10945
+ quotedMsgId?: string | undefined;
10946
+ caption?: string | undefined;
10947
+ type: "document";
10948
+ } | undefined;
9028
10949
  headers?: Record<string, string> | undefined;
9029
- }, ...unknown[]]) => Promise<string | boolean>;
10950
+ }, ...unknown[]]) => Promise<string | boolean | {
10951
+ [x: string]: unknown;
10952
+ _serialized: string;
10953
+ } | (string & import("zod").$brand<"MessageId">)>;
9030
10954
  sendImage: (...args: any[] | unknown[] | [] | [{
9031
10955
  to: string;
9032
- imgData: string | Buffer<ArrayBufferLike>;
10956
+ file: string | Buffer<ArrayBufferLike>;
9033
10957
  filename?: string | undefined;
9034
- caption?: string | undefined;
9035
- id?: string | undefined;
9036
- waitForId?: boolean | undefined;
10958
+ options?: {
10959
+ quotedMsgId?: string | undefined;
10960
+ viewOnce?: boolean | undefined;
10961
+ type: "audio";
10962
+ ptt?: boolean | undefined;
10963
+ } | {
10964
+ quotedMsgId?: string | undefined;
10965
+ caption?: string | undefined;
10966
+ viewOnce?: boolean | undefined;
10967
+ type?: "auto" | undefined;
10968
+ } | {
10969
+ quotedMsgId?: string | undefined;
10970
+ caption?: string | undefined;
10971
+ viewOnce?: boolean | undefined;
10972
+ type: "image";
10973
+ } | {
10974
+ quotedMsgId?: string | undefined;
10975
+ caption?: string | undefined;
10976
+ viewOnce?: boolean | undefined;
10977
+ type: "video";
10978
+ isGif?: boolean | undefined;
10979
+ videoNote?: boolean | undefined;
10980
+ } | {
10981
+ quotedMsgId?: string | undefined;
10982
+ caption?: string | undefined;
10983
+ type: "document";
10984
+ } | undefined;
9037
10985
  }] | [{
9038
10986
  to: string;
9039
- imgData: string | Buffer<ArrayBufferLike>;
10987
+ file: string | Buffer<ArrayBufferLike>;
9040
10988
  filename?: string | undefined;
9041
- caption?: string | undefined;
9042
- id?: string | undefined;
9043
- waitForId?: boolean | undefined;
9044
- }, ...unknown[]]) => Promise<string | boolean | {
10989
+ options?: {
10990
+ quotedMsgId?: string | undefined;
10991
+ viewOnce?: boolean | undefined;
10992
+ type: "audio";
10993
+ ptt?: boolean | undefined;
10994
+ } | {
10995
+ quotedMsgId?: string | undefined;
10996
+ caption?: string | undefined;
10997
+ viewOnce?: boolean | undefined;
10998
+ type?: "auto" | undefined;
10999
+ } | {
11000
+ quotedMsgId?: string | undefined;
11001
+ caption?: string | undefined;
11002
+ viewOnce?: boolean | undefined;
11003
+ type: "image";
11004
+ } | {
11005
+ quotedMsgId?: string | undefined;
11006
+ caption?: string | undefined;
11007
+ viewOnce?: boolean | undefined;
11008
+ type: "video";
11009
+ isGif?: boolean | undefined;
11010
+ videoNote?: boolean | undefined;
11011
+ } | {
11012
+ quotedMsgId?: string | undefined;
11013
+ caption?: string | undefined;
11014
+ type: "document";
11015
+ } | undefined;
11016
+ }, ...unknown[]]) => Promise<boolean | {
9045
11017
  [x: string]: unknown;
9046
11018
  _serialized: string;
9047
11019
  } | (string & import("zod").$brand<"MessageId">)>;
@@ -9530,12 +11502,22 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9530
11502
  to: string;
9531
11503
  name: string;
9532
11504
  options: string[];
9533
- selectableCount?: number | undefined;
11505
+ config?: {
11506
+ selectableCount?: number | undefined;
11507
+ quotedMsgId?: string | undefined;
11508
+ endTime?: number | undefined;
11509
+ hideVoterNames?: boolean | undefined;
11510
+ } | undefined;
9534
11511
  }] | [{
9535
11512
  to: string;
9536
11513
  name: string;
9537
11514
  options: string[];
9538
- selectableCount?: number | undefined;
11515
+ config?: {
11516
+ selectableCount?: number | undefined;
11517
+ quotedMsgId?: string | undefined;
11518
+ endTime?: number | undefined;
11519
+ hideVoterNames?: boolean | undefined;
11520
+ } | undefined;
9539
11521
  }, ...unknown[]]) => Promise<boolean | {
9540
11522
  [x: string]: unknown;
9541
11523
  _serialized: string;
@@ -9543,11 +11525,17 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9543
11525
  sendPtt: (...args: any[] | unknown[] | [] | [{
9544
11526
  to: string;
9545
11527
  file: string | Buffer<ArrayBufferLike>;
9546
- quotedMsgId?: string | undefined;
11528
+ options?: {
11529
+ quotedMsgId?: string | undefined;
11530
+ viewOnce?: boolean | undefined;
11531
+ } | undefined;
9547
11532
  }] | [{
9548
11533
  to: string;
9549
11534
  file: string | Buffer<ArrayBufferLike>;
9550
- quotedMsgId?: string | undefined;
11535
+ options?: {
11536
+ quotedMsgId?: string | undefined;
11537
+ viewOnce?: boolean | undefined;
11538
+ } | undefined;
9551
11539
  }, ...unknown[]]) => Promise<boolean | {
9552
11540
  [x: string]: unknown;
9553
11541
  _serialized: string;
@@ -9580,6 +11568,47 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9580
11568
  }] | [{
9581
11569
  chatId: string;
9582
11570
  }, ...unknown[]]) => Promise<boolean>;
11571
+ sendSticker: (...args: any[] | unknown[] | [] | [{
11572
+ to: string;
11573
+ input: string;
11574
+ job?: {
11575
+ effects?: (string | {
11576
+ name: string;
11577
+ options?: Record<string, unknown> | undefined;
11578
+ })[] | undefined;
11579
+ backend?: "auto" | "browser" | "standalone" | undefined;
11580
+ quality?: number | undefined;
11581
+ fit?: "contain" | "cover" | undefined;
11582
+ circle?: boolean | undefined;
11583
+ background?: string | undefined;
11584
+ trim?: [number, number] | undefined;
11585
+ fps?: number | undefined;
11586
+ loopCount?: number | undefined;
11587
+ author?: string | undefined;
11588
+ pack?: string | undefined;
11589
+ quotedMsgId?: string | undefined;
11590
+ } | undefined;
11591
+ }] | [{
11592
+ to: string;
11593
+ input: string;
11594
+ job?: {
11595
+ effects?: (string | {
11596
+ name: string;
11597
+ options?: Record<string, unknown> | undefined;
11598
+ })[] | undefined;
11599
+ backend?: "auto" | "browser" | "standalone" | undefined;
11600
+ quality?: number | undefined;
11601
+ fit?: "contain" | "cover" | undefined;
11602
+ circle?: boolean | undefined;
11603
+ background?: string | undefined;
11604
+ trim?: [number, number] | undefined;
11605
+ fps?: number | undefined;
11606
+ loopCount?: number | undefined;
11607
+ author?: string | undefined;
11608
+ pack?: string | undefined;
11609
+ quotedMsgId?: string | undefined;
11610
+ } | undefined;
11611
+ }, ...unknown[]]) => Promise<string & import("zod").$brand<"MessageId">>;
9583
11612
  sendText: (...args: any[] | unknown[] | [] | [{
9584
11613
  to: string;
9585
11614
  content: string;
@@ -9613,19 +11642,26 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9613
11642
  vcard: string;
9614
11643
  contactName?: string | undefined;
9615
11644
  contactNumber?: string | undefined;
9616
- }, ...unknown[]]) => Promise<boolean>;
11645
+ }, ...unknown[]]) => Promise<boolean | {
11646
+ [x: string]: unknown;
11647
+ _serialized: string;
11648
+ } | (string & import("zod").$brand<"MessageId">)>;
9617
11649
  sendVideoAsGif: (...args: any[] | unknown[] | [] | [{
9618
11650
  to: string;
9619
11651
  file: string | Buffer<ArrayBufferLike>;
9620
11652
  filename?: string | undefined;
9621
- caption?: string | undefined;
9622
- quotedMsgId?: string | undefined;
11653
+ options?: {
11654
+ quotedMsgId?: string | undefined;
11655
+ caption?: string | undefined;
11656
+ } | undefined;
9623
11657
  }] | [{
9624
11658
  to: string;
9625
11659
  file: string | Buffer<ArrayBufferLike>;
9626
11660
  filename?: string | undefined;
9627
- caption?: string | undefined;
9628
- quotedMsgId?: string | undefined;
11661
+ options?: {
11662
+ quotedMsgId?: string | undefined;
11663
+ caption?: string | undefined;
11664
+ } | undefined;
9629
11665
  }, ...unknown[]]) => Promise<boolean | {
9630
11666
  [x: string]: unknown;
9631
11667
  _serialized: string;
@@ -9633,11 +11669,17 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9633
11669
  sendVoiceNote: (...args: any[] | unknown[] | [] | [{
9634
11670
  to: string;
9635
11671
  file: string | Buffer<ArrayBufferLike>;
9636
- quotedMsgId?: string | undefined;
11672
+ options?: {
11673
+ quotedMsgId?: string | undefined;
11674
+ viewOnce?: boolean | undefined;
11675
+ } | undefined;
9637
11676
  }] | [{
9638
11677
  to: string;
9639
11678
  file: string | Buffer<ArrayBufferLike>;
9640
- quotedMsgId?: string | undefined;
11679
+ options?: {
11680
+ quotedMsgId?: string | undefined;
11681
+ viewOnce?: boolean | undefined;
11682
+ } | undefined;
9641
11683
  }, ...unknown[]]) => Promise<boolean | {
9642
11684
  [x: string]: unknown;
9643
11685
  _serialized: string;
@@ -9723,11 +11765,23 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9723
11765
  }] | [{
9724
11766
  messageId: string;
9725
11767
  }, ...unknown[]]) => Promise<boolean>;
11768
+ unpin: (...args: any[] | unknown[] | [] | [{
11769
+ messageId: string;
11770
+ }] | [{
11771
+ messageId: string;
11772
+ }, ...unknown[]]) => Promise<boolean>;
9726
11773
  unstar: (...args: any[] | unknown[] | [] | [{
9727
11774
  messageId: string;
9728
11775
  }] | [{
9729
11776
  messageId: string;
9730
11777
  }, ...unknown[]]) => Promise<boolean>;
11778
+ voteOnPoll: (...args: any[] | unknown[] | [] | [{
11779
+ messageId: string;
11780
+ optionIds: number[];
11781
+ }] | [{
11782
+ messageId: string;
11783
+ optionIds: number[];
11784
+ }, ...unknown[]]) => Promise<boolean>;
9731
11785
  };
9732
11786
  mystatus: {
9733
11787
  getStatus: (...args: any[] | unknown[] | [] | [{
@@ -9751,6 +11805,14 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9751
11805
  }, ...unknown[]]) => Promise<string>;
9752
11806
  getHostNumber: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string>;
9753
11807
  getIsPlugged: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<boolean>;
11808
+ getLicenseFeatures: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<{
11809
+ readonly status: "expired" | "invalid" | "metadata_only" | "missing" | "valid";
11810
+ readonly keyType: string | null;
11811
+ readonly expiresAt: number | null;
11812
+ readonly features: {
11813
+ readonly [x: string]: boolean;
11814
+ };
11815
+ }>;
9754
11816
  getLicenseType: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<"B2B_RESTRICTED_VOLUME_LICENSE" | "CUSTOM" | "Image Story License Key" | "Insiders Program" | "NONE" | "Premium License Key" | "Text Story License Key" | "Video Story License Key" | false>;
9755
11817
  getLoadedMessageCount: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<number>;
9756
11818
  getMe: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<{
@@ -9868,6 +11930,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
9868
11930
  labels?: string[] | undefined;
9869
11931
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
9870
11932
  caption?: string | undefined;
11933
+ event?: {
11934
+ readonly id: string;
11935
+ readonly chatId: string;
11936
+ readonly creatorId: string;
11937
+ readonly name: string;
11938
+ readonly startTime: number;
11939
+ readonly endTime?: number | undefined;
11940
+ readonly description?: string | undefined;
11941
+ readonly location?: {
11942
+ readonly name?: string | undefined;
11943
+ readonly latitude?: number | undefined;
11944
+ readonly longitude?: number | undefined;
11945
+ } | undefined;
11946
+ readonly joinLink?: string | undefined;
11947
+ readonly isScheduledCall?: boolean | undefined;
11948
+ readonly extraGuestsAllowed?: boolean | undefined;
11949
+ readonly isCanceled: boolean;
11950
+ readonly fromMe: boolean;
11951
+ readonly timestamp: number;
11952
+ } | undefined;
11953
+ expectedImageCount?: number | null | undefined;
11954
+ expectedVideoCount?: number | null | undefined;
11955
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
11956
+ associationType?: string | null | undefined;
11957
+ isGif?: boolean | undefined;
9871
11958
  timestamp: number;
9872
11959
  content: string;
9873
11960
  isGroupMsg: boolean;
@@ -10007,6 +12094,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
10007
12094
  labels?: string[] | undefined;
10008
12095
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
10009
12096
  caption?: string | undefined;
12097
+ event?: {
12098
+ readonly id: string;
12099
+ readonly chatId: string;
12100
+ readonly creatorId: string;
12101
+ readonly name: string;
12102
+ readonly startTime: number;
12103
+ readonly endTime?: number | undefined;
12104
+ readonly description?: string | undefined;
12105
+ readonly location?: {
12106
+ readonly name?: string | undefined;
12107
+ readonly latitude?: number | undefined;
12108
+ readonly longitude?: number | undefined;
12109
+ } | undefined;
12110
+ readonly joinLink?: string | undefined;
12111
+ readonly isScheduledCall?: boolean | undefined;
12112
+ readonly extraGuestsAllowed?: boolean | undefined;
12113
+ readonly isCanceled: boolean;
12114
+ readonly fromMe: boolean;
12115
+ readonly timestamp: number;
12116
+ } | undefined;
12117
+ expectedImageCount?: number | null | undefined;
12118
+ expectedVideoCount?: number | null | undefined;
12119
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
12120
+ associationType?: string | null | undefined;
12121
+ isGif?: boolean | undefined;
10010
12122
  timestamp: number;
10011
12123
  content: string;
10012
12124
  isGroupMsg: boolean;
@@ -10146,6 +12258,31 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
10146
12258
  labels?: string[] | undefined;
10147
12259
  mentionedJidList?: (string & import("zod").$brand<"ContactId">)[] | undefined;
10148
12260
  caption?: string | undefined;
12261
+ event?: {
12262
+ readonly id: string;
12263
+ readonly chatId: string;
12264
+ readonly creatorId: string;
12265
+ readonly name: string;
12266
+ readonly startTime: number;
12267
+ readonly endTime?: number | undefined;
12268
+ readonly description?: string | undefined;
12269
+ readonly location?: {
12270
+ readonly name?: string | undefined;
12271
+ readonly latitude?: number | undefined;
12272
+ readonly longitude?: number | undefined;
12273
+ } | undefined;
12274
+ readonly joinLink?: string | undefined;
12275
+ readonly isScheduledCall?: boolean | undefined;
12276
+ readonly extraGuestsAllowed?: boolean | undefined;
12277
+ readonly isCanceled: boolean;
12278
+ readonly fromMe: boolean;
12279
+ readonly timestamp: number;
12280
+ } | undefined;
12281
+ expectedImageCount?: number | null | undefined;
12282
+ expectedVideoCount?: number | null | undefined;
12283
+ parentMsgKey?: (string & import("zod").$brand<"MessageId">) | null | undefined;
12284
+ associationType?: string | null | undefined;
12285
+ isGif?: boolean | undefined;
10149
12286
  timestamp: number;
10150
12287
  content: string;
10151
12288
  isGroupMsg: boolean;
@@ -10292,6 +12429,10 @@ export declare abstract class BaseNamespacedClient extends BaseClient {
10292
12429
  }
10293
12430
  //#endregion
10294
12431
  //#region src/generated/types.d.ts
12432
+ export type SendStickerInput = Zod.input<typeof sendSticker.openWAInput>;
12433
+ export type SendStickerOutput = Zod.output<typeof sendSticker.openWAOutput>;
12434
+ export type SendAlbumInput = Zod.input<typeof sendAlbum.openWAInput>;
12435
+ export type SendAlbumOutput = Zod.output<typeof sendAlbum.openWAOutput>;
10295
12436
  export type SendTextInput = Zod.input<typeof sendText.openWAInput>;
10296
12437
  export type SendTextOutput = Zod.output<typeof sendText.openWAOutput>;
10297
12438
  export type SendTextWithMentionsInput = Zod.input<typeof sendTextWithMentions.openWAInput>;
@@ -10326,6 +12467,14 @@ export type SendListMessageInput = Zod.input<typeof sendListMessage.openWAInput>
10326
12467
  export type SendListMessageOutput = Zod.output<typeof sendListMessage.openWAOutput>;
10327
12468
  export type SendPollInput = Zod.input<typeof sendPoll.openWAInput>;
10328
12469
  export type SendPollOutput = Zod.output<typeof sendPoll.openWAOutput>;
12470
+ export type VoteOnPollInput = Zod.input<typeof voteOnPoll.openWAInput>;
12471
+ export type VoteOnPollOutput = Zod.output<typeof voteOnPoll.openWAOutput>;
12472
+ export type GetPollResultsInput = Zod.input<typeof getPollResults.openWAInput>;
12473
+ export type GetPollResultsOutput = Zod.output<typeof getPollResults.openWAOutput>;
12474
+ export type PinMessageInput = Zod.input<typeof pinMessage.openWAInput>;
12475
+ export type PinMessageOutput = Zod.output<typeof pinMessage.openWAOutput>;
12476
+ export type UnpinMessageInput = Zod.input<typeof unpinMessage.openWAInput>;
12477
+ export type UnpinMessageOutput = Zod.output<typeof unpinMessage.openWAOutput>;
10329
12478
  export type SendBannerInput = Zod.input<typeof sendBanner.openWAInput>;
10330
12479
  export type SendBannerOutput = Zod.output<typeof sendBanner.openWAOutput>;
10331
12480
  export type SendYouTubeLinkInput = Zod.input<typeof sendYouTubeLink.openWAInput>;
@@ -10340,6 +12489,8 @@ export type DeleteMessageInput = Zod.input<typeof deleteMessage.openWAInput>;
10340
12489
  export type DeleteMessageOutput = Zod.output<typeof deleteMessage.openWAOutput>;
10341
12490
  export type GetMessageByIdInput = Zod.input<typeof getMessageById.openWAInput>;
10342
12491
  export type GetMessageByIdOutput = Zod.output<typeof getMessageById.openWAOutput>;
12492
+ export type GetAlbumMessagesInput = Zod.input<typeof getAlbumMessages.openWAInput>;
12493
+ export type GetAlbumMessagesOutput = Zod.output<typeof getAlbumMessages.openWAOutput>;
10343
12494
  export type GetAllMessagesInput = Zod.input<typeof getAllMessages.openWAInput>;
10344
12495
  export type GetAllMessagesOutput = Zod.output<typeof getAllMessages.openWAOutput>;
10345
12496
  export type GetMyLastMessageInput = Zod.input<typeof getMyLastMessage.openWAInput>;
@@ -10358,6 +12509,8 @@ export type StarMessageInput = Zod.input<typeof starMessage.openWAInput>;
10358
12509
  export type StarMessageOutput = Zod.output<typeof starMessage.openWAOutput>;
10359
12510
  export type UnstarMessageInput = Zod.input<typeof unstarMessage.openWAInput>;
10360
12511
  export type UnstarMessageOutput = Zod.output<typeof unstarMessage.openWAOutput>;
12512
+ export type EditMessageInput = Zod.input<typeof editMessage.openWAInput>;
12513
+ export type EditMessageOutput = Zod.output<typeof editMessage.openWAOutput>;
10361
12514
  export type ReactInput = Zod.input<typeof react.openWAInput>;
10362
12515
  export type ReactOutput = Zod.output<typeof react.openWAOutput>;
10363
12516
  export type SendSeenInput = Zod.input<typeof sendSeen.openWAInput>;
@@ -10398,6 +12551,10 @@ export type SetChatEphemeralInput = Zod.input<typeof setChatEphemeral.openWAInpu
10398
12551
  export type SetChatEphemeralOutput = Zod.output<typeof setChatEphemeral.openWAOutput>;
10399
12552
  export type IsChatOnlineInput = Zod.input<typeof isChatOnline.openWAInput>;
10400
12553
  export type IsChatOnlineOutput = Zod.output<typeof isChatOnline.openWAOutput>;
12554
+ export type RequestPhoneNumberInput = Zod.input<typeof requestPhoneNumber.openWAInput>;
12555
+ export type RequestPhoneNumberOutput = Zod.output<typeof requestPhoneNumber.openWAOutput>;
12556
+ export type SharePhoneNumberInput = Zod.input<typeof sharePhoneNumber.openWAInput>;
12557
+ export type SharePhoneNumberOutput = Zod.output<typeof sharePhoneNumber.openWAOutput>;
10401
12558
  export type GetAllContactsInput = Zod.input<typeof getAllContacts.openWAInput>;
10402
12559
  export type GetAllContactsOutput = Zod.output<typeof getAllContacts.openWAOutput>;
10403
12560
  export type GetContactInput = Zod.input<typeof getContact.openWAInput>;
@@ -10518,6 +12675,8 @@ export type GetFeaturesInput = Zod.input<typeof getFeatures.openWAInput>;
10518
12675
  export type GetFeaturesOutput = Zod.output<typeof getFeatures.openWAOutput>;
10519
12676
  export type GetLicenseTypeInput = Zod.input<typeof getLicenseType.openWAInput>;
10520
12677
  export type GetLicenseTypeOutput = Zod.output<typeof getLicenseType.openWAOutput>;
12678
+ export type GetLicenseFeaturesInput = Zod.input<typeof getLicenseFeatures.openWAInput>;
12679
+ export type GetLicenseFeaturesOutput = Zod.output<typeof getLicenseFeatures.openWAOutput>;
10521
12680
  export type GetUserAgentInput = Zod.input<typeof getUserAgent.openWAInput>;
10522
12681
  export type GetUserAgentOutput = Zod.output<typeof getUserAgent.openWAOutput>;
10523
12682
  export type GetProcessStatsInput = Zod.input<typeof getProcessStats.openWAInput>;
@@ -10542,5 +12701,41 @@ export type SendInteractiveInput = Zod.input<typeof sendInteractive.openWAInput>
10542
12701
  export type SendInteractiveOutput = Zod.output<typeof sendInteractive.openWAOutput>;
10543
12702
  export type SendRawMessageInput = Zod.input<typeof sendRawMessage.openWAInput>;
10544
12703
  export type SendRawMessageOutput = Zod.output<typeof sendRawMessage.openWAOutput>;
12704
+ export type GetCallCapabilitiesInput = Zod.input<typeof getCallCapabilities.openWAInput>;
12705
+ export type GetCallCapabilitiesOutput = Zod.output<typeof getCallCapabilities.openWAOutput>;
12706
+ export type GetActiveCallInput = Zod.input<typeof getActiveCall.openWAInput>;
12707
+ export type GetActiveCallOutput = Zod.output<typeof getActiveCall.openWAOutput>;
12708
+ export type AcceptCallInput = Zod.input<typeof acceptCall.openWAInput>;
12709
+ export type AcceptCallOutput = Zod.output<typeof acceptCall.openWAOutput>;
12710
+ export type StartCallInput = Zod.input<typeof startCall.openWAInput>;
12711
+ export type StartCallOutput = Zod.output<typeof startCall.openWAOutput>;
12712
+ export type RejectCallInput = Zod.input<typeof rejectCall.openWAInput>;
12713
+ export type RejectCallOutput = Zod.output<typeof rejectCall.openWAOutput>;
12714
+ export type EndCallInput = Zod.input<typeof endCall.openWAInput>;
12715
+ export type EndCallOutput = Zod.output<typeof endCall.openWAOutput>;
12716
+ export type MuteCallInput = Zod.input<typeof muteCall.openWAInput>;
12717
+ export type MuteCallOutput = Zod.output<typeof muteCall.openWAOutput>;
12718
+ export type ClearCallAudioInput = Zod.input<typeof clearCallAudio.openWAInput>;
12719
+ export type ClearCallAudioOutput = Zod.output<typeof clearCallAudio.openWAOutput>;
12720
+ export type SetCallMediaInput = Zod.input<typeof setCallMedia.openWAInput>;
12721
+ export type SetCallMediaOutput = Zod.output<typeof setCallMedia.openWAOutput>;
12722
+ export type ObserveCallAudioInput = Zod.input<typeof observeCallAudio.openWAInput>;
12723
+ export type ObserveCallAudioOutput = Zod.output<typeof observeCallAudio.openWAOutput>;
12724
+ export type StopCallAudioObserverInput = Zod.input<typeof stopCallAudioObserver.openWAInput>;
12725
+ export type StopCallAudioObserverOutput = Zod.output<typeof stopCallAudioObserver.openWAOutput>;
12726
+ export type SendEventInput = Zod.input<typeof sendEvent.openWAInput>;
12727
+ export type SendEventOutput = Zod.output<typeof sendEvent.openWAOutput>;
12728
+ export type GetEventInput = Zod.input<typeof getEvent.openWAInput>;
12729
+ export type GetEventOutput = Zod.output<typeof getEvent.openWAOutput>;
12730
+ export type GetEventsInput = Zod.input<typeof getEvents.openWAInput>;
12731
+ export type GetEventsOutput = Zod.output<typeof getEvents.openWAOutput>;
12732
+ export type GetEventResponsesInput = Zod.input<typeof getEventResponses.openWAInput>;
12733
+ export type GetEventResponsesOutput = Zod.output<typeof getEventResponses.openWAOutput>;
12734
+ export type EditEventInput = Zod.input<typeof editEvent.openWAInput>;
12735
+ export type EditEventOutput = Zod.output<typeof editEvent.openWAOutput>;
12736
+ export type CancelEventInput = Zod.input<typeof cancelEvent.openWAInput>;
12737
+ export type CancelEventOutput = Zod.output<typeof cancelEvent.openWAOutput>;
12738
+ export type RespondToEventInput = Zod.input<typeof respondToEvent.openWAInput>;
12739
+ export type RespondToEventOutput = Zod.output<typeof respondToEvent.openWAOutput>;
10545
12740
  //#endregion
10546
12741
  //# sourceMappingURL=index.d.mts.map