zaileys 2.0.12 → 2.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as baileys from 'baileys';
2
- import { AuthenticationState, WAMessage, proto, ParticipantAction, WAPrivacyValue, WAPrivacyOnlineValue, WAReadReceiptsValue, WAPrivacyGroupAddValue } from 'baileys';
2
+ import baileys__default, { AuthenticationState, WAMessage, proto, ParticipantAction, WAPrivacyValue, WAPrivacyOnlineValue, WAReadReceiptsValue, WAPrivacyGroupAddValue } from 'baileys';
3
+ import * as Stream from 'stream';
4
+ import Stream__default from 'stream';
3
5
  import z, { z as z$1 } from 'zod';
4
6
  import _ from 'lodash';
5
7
 
@@ -128,6 +130,42 @@ declare class Signal {
128
130
  memberLabel(roomId: string, label: string): Promise<string>;
129
131
  }
130
132
 
133
+ declare class Community {
134
+ protected client: Client;
135
+ constructor(client: Client);
136
+ create(subject: string, description: string): Promise<baileys.GroupMetadata>;
137
+ createGroup(subject: string, participants: string[], parentId: string): Promise<baileys.GroupMetadata>;
138
+ leave(id: string): Promise<void>;
139
+ metadata(id: string): Promise<baileys.GroupMetadata>;
140
+ update(id: string, type: 'subject' | 'description', value: string): Promise<void>;
141
+ group(id: string, type: 'link' | 'unlink' | 'linked', groupJid?: string): Promise<void | {
142
+ communityJid: string;
143
+ isCommunity: boolean;
144
+ linkedGroups: {
145
+ id: string | undefined;
146
+ subject: string;
147
+ creation: number | undefined;
148
+ owner: string | undefined;
149
+ size: number | undefined;
150
+ }[];
151
+ }>;
152
+ participants(id: string, type: 'list' | 'request-update' | 'update' | 'all', action?: 'add' | 'remove' | 'promote' | 'demote' | 'approve' | 'reject', participants?: string[]): Promise<{
153
+ [key: string]: string;
154
+ }[] | {
155
+ status: string;
156
+ jid: string | undefined;
157
+ }[] | {
158
+ [_: string]: baileys.GroupMetadata;
159
+ }>;
160
+ invite(target: string | any, type: 'code' | 'revoke' | 'accept' | 'info' | 'revokeV4' | 'acceptV4', ...args: any[]): Promise<any>;
161
+ settings(id: string, type: 'ephemeral' | 'update' | 'memberAdd' | 'approval', value?: any): Promise<void>;
162
+ }
163
+ declare class SignalCommunity {
164
+ protected mlient: Client;
165
+ community: Community;
166
+ constructor(mlient: Client);
167
+ }
168
+
131
169
  declare class Group {
132
170
  protected client: Client;
133
171
  constructor(client: Client);
@@ -160,6 +198,53 @@ declare class SignalGroup {
160
198
  constructor(glient: Client);
161
199
  }
162
200
 
201
+ declare class Newsletter {
202
+ protected client: Client;
203
+ constructor(client: Client);
204
+ create(name: string, description: string): Promise<baileys.NewsletterMetadata>;
205
+ action(roomId: string, type: 'follow' | 'unfollow' | 'mute' | 'unmute' | ''): Promise<unknown>;
206
+ update(roomId: string, update: string | Buffer, type: 'name' | 'description' | 'picture'): Promise<unknown>;
207
+ metadata(roomId: string, type: 'invite' | 'jid'): Promise<baileys.NewsletterMetadata>;
208
+ subscribers(roomId: string): Promise<{
209
+ subscribers: number;
210
+ }>;
211
+ reaction(roomId: string, chatId: string, reaction: string): Promise<void>;
212
+ fetchMessages(roomId: string, count: number, since: Date, after: Date): Promise<any>;
213
+ adminCount(roomId: string): Promise<number>;
214
+ changeOwner(roomId: string, owner: string): Promise<void>;
215
+ demote(roomId: string, senderId: string): Promise<void>;
216
+ delete(roomId: string): Promise<void>;
217
+ removePicture(roomId: string): Promise<unknown>;
218
+ }
219
+ declare class SignalNewsletter {
220
+ protected nlient: Client;
221
+ newsletter: Newsletter;
222
+ constructor(nlient: Client);
223
+ }
224
+
225
+ declare class Privacy {
226
+ protected client: Client;
227
+ constructor(client: Client);
228
+ block(senderId: string): Promise<void>;
229
+ unblock(senderId: string): Promise<void>;
230
+ lastSeen(type: WAPrivacyValue): Promise<void>;
231
+ online(type: WAPrivacyOnlineValue): Promise<void>;
232
+ picture(type: WAPrivacyValue): Promise<void>;
233
+ status(type: WAPrivacyValue): Promise<void>;
234
+ readReceipt(type: WAReadReceiptsValue): Promise<void>;
235
+ groupsAdd(type: WAPrivacyGroupAddValue): Promise<void>;
236
+ ephemeral(type: 'off' | '24h' | '7d' | '90d'): Promise<void>;
237
+ blocklist(): Promise<string[]>;
238
+ getSettings(): Promise<{
239
+ [_: string]: string;
240
+ }>;
241
+ }
242
+ declare class SignalPrivacy {
243
+ protected plient: Client;
244
+ privacy: Privacy;
245
+ constructor(plient: Client);
246
+ }
247
+
163
248
  declare const ListenerCallsType: z.ZodObject<{
164
249
  callId: z.ZodString;
165
250
  callerId: z.ZodString;
@@ -179,6 +264,7 @@ declare const ListenerCallsType: z.ZodObject<{
179
264
  isVideo: z.ZodBoolean;
180
265
  isGroup: z.ZodBoolean;
181
266
  }, z.core.$strip>;
267
+ type CallsContext = z.infer<typeof ListenerCallsType>;
182
268
 
183
269
  declare const ListenerConnectionType: z.ZodObject<{
184
270
  status: z.ZodEnum<{
@@ -198,6 +284,7 @@ declare const ListenerConnectionType: z.ZodObject<{
198
284
  qr: z.ZodOptional<z.ZodString>;
199
285
  code: z.ZodOptional<z.ZodString>;
200
286
  }, z.core.$strip>;
287
+ type ConnectionContext = z.infer<typeof ListenerConnectionType>;
201
288
 
202
289
  declare const DEVICE_ENUM_TYPES: z.ZodEnum<{
203
290
  unknown: "unknown";
@@ -255,6 +342,101 @@ declare const MESSAGE_ENUM_TYPES: z.ZodEnum<{
255
342
  placeholder: "placeholder";
256
343
  encEventUpdate: "encEventUpdate";
257
344
  }>;
345
+ declare const BaseMessagesType: z.ZodObject<{
346
+ channelId: z.ZodString;
347
+ uniqueId: z.ZodString;
348
+ chatId: z.ZodString;
349
+ chatType: z.ZodEnum<{
350
+ text: "text";
351
+ image: "image";
352
+ contact: "contact";
353
+ location: "location";
354
+ document: "document";
355
+ audio: "audio";
356
+ video: "video";
357
+ protocol: "protocol";
358
+ contacts: "contacts";
359
+ highlyStructured: "highlyStructured";
360
+ sendPayment: "sendPayment";
361
+ requestPayment: "requestPayment";
362
+ declinePaymentRequest: "declinePaymentRequest";
363
+ cancelPaymentRequest: "cancelPaymentRequest";
364
+ template: "template";
365
+ sticker: "sticker";
366
+ groupInvite: "groupInvite";
367
+ product: "product";
368
+ deviceSent: "deviceSent";
369
+ lists: "lists";
370
+ viewOnce: "viewOnce";
371
+ order: "order";
372
+ ephemeral: "ephemeral";
373
+ invoice: "invoice";
374
+ buttons: "buttons";
375
+ paymentInvite: "paymentInvite";
376
+ interactive: "interactive";
377
+ reaction: "reaction";
378
+ interactiveResponse: "interactiveResponse";
379
+ pollCreation: "pollCreation";
380
+ pollUpdate: "pollUpdate";
381
+ keepInChat: "keepInChat";
382
+ requestPhoneNumber: "requestPhoneNumber";
383
+ scheduledCallCreation: "scheduledCallCreation";
384
+ groupMentioned: "groupMentioned";
385
+ pinInChat: "pinInChat";
386
+ scheduledCallEdit: "scheduledCallEdit";
387
+ ptv: "ptv";
388
+ botInvoke: "botInvoke";
389
+ callLog: "callLog";
390
+ encComment: "encComment";
391
+ bcall: "bcall";
392
+ lottieSticker: "lottieSticker";
393
+ event: "event";
394
+ comment: "comment";
395
+ placeholder: "placeholder";
396
+ encEventUpdate: "encEventUpdate";
397
+ }>;
398
+ receiverId: z.ZodString;
399
+ receiverName: z.ZodString;
400
+ roomId: z.ZodString;
401
+ roomName: z.ZodString;
402
+ senderLid: z.ZodString;
403
+ senderId: z.ZodString;
404
+ senderName: z.ZodString;
405
+ senderDevice: z.ZodEnum<{
406
+ unknown: "unknown";
407
+ android: "android";
408
+ ios: "ios";
409
+ desktop: "desktop";
410
+ web: "web";
411
+ }>;
412
+ timestamp: z.ZodNumber;
413
+ text: z.ZodNullable<z.ZodString>;
414
+ mentions: z.ZodArray<z.ZodString>;
415
+ links: z.ZodArray<z.ZodString>;
416
+ isBot: z.ZodBoolean;
417
+ isFromMe: z.ZodBoolean;
418
+ isPrefix: z.ZodBoolean;
419
+ isSpam: z.ZodBoolean;
420
+ isTagMe: z.ZodBoolean;
421
+ isGroup: z.ZodBoolean;
422
+ isNewsletter: z.ZodBoolean;
423
+ isQuestion: z.ZodBoolean;
424
+ isStory: z.ZodBoolean;
425
+ isViewOnce: z.ZodBoolean;
426
+ isEdited: z.ZodBoolean;
427
+ isDeleted: z.ZodBoolean;
428
+ isPinned: z.ZodBoolean;
429
+ isUnPinned: z.ZodBoolean;
430
+ isBroadcast: z.ZodBoolean;
431
+ isEphemeral: z.ZodBoolean;
432
+ isForwarded: z.ZodBoolean;
433
+ citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>>;
434
+ media: z.ZodNullable<z.ZodObject<{
435
+ buffer: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
436
+ stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream__default, Stream__default>>>;
437
+ }, z.core.$loose>>;
438
+ message: z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodCustom<WAMessage, WAMessage>>;
439
+ }, z.core.$strip>;
258
440
  declare const ListenerMessagesType: z.ZodObject<{
259
441
  channelId: z.ZodString;
260
442
  uniqueId: z.ZodString;
@@ -345,12 +527,107 @@ declare const ListenerMessagesType: z.ZodObject<{
345
527
  isForwarded: z.ZodBoolean;
346
528
  citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>>;
347
529
  media: z.ZodNullable<z.ZodObject<{
348
- buffer: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
349
- stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
530
+ buffer: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
531
+ stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream__default, Stream__default>>>;
350
532
  }, z.core.$loose>>;
351
533
  message: z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodCustom<WAMessage, WAMessage>>;
352
- replied: z.ZodNullable<z.ZodObject</*elided*/ any, z.core.$strip>>;
534
+ replied: z.ZodNullable<z.ZodObject<{
535
+ channelId: z.ZodString;
536
+ uniqueId: z.ZodString;
537
+ chatId: z.ZodString;
538
+ chatType: z.ZodEnum<{
539
+ text: "text";
540
+ image: "image";
541
+ contact: "contact";
542
+ location: "location";
543
+ document: "document";
544
+ audio: "audio";
545
+ video: "video";
546
+ protocol: "protocol";
547
+ contacts: "contacts";
548
+ highlyStructured: "highlyStructured";
549
+ sendPayment: "sendPayment";
550
+ requestPayment: "requestPayment";
551
+ declinePaymentRequest: "declinePaymentRequest";
552
+ cancelPaymentRequest: "cancelPaymentRequest";
553
+ template: "template";
554
+ sticker: "sticker";
555
+ groupInvite: "groupInvite";
556
+ product: "product";
557
+ deviceSent: "deviceSent";
558
+ lists: "lists";
559
+ viewOnce: "viewOnce";
560
+ order: "order";
561
+ ephemeral: "ephemeral";
562
+ invoice: "invoice";
563
+ buttons: "buttons";
564
+ paymentInvite: "paymentInvite";
565
+ interactive: "interactive";
566
+ reaction: "reaction";
567
+ interactiveResponse: "interactiveResponse";
568
+ pollCreation: "pollCreation";
569
+ pollUpdate: "pollUpdate";
570
+ keepInChat: "keepInChat";
571
+ requestPhoneNumber: "requestPhoneNumber";
572
+ scheduledCallCreation: "scheduledCallCreation";
573
+ groupMentioned: "groupMentioned";
574
+ pinInChat: "pinInChat";
575
+ scheduledCallEdit: "scheduledCallEdit";
576
+ ptv: "ptv";
577
+ botInvoke: "botInvoke";
578
+ callLog: "callLog";
579
+ encComment: "encComment";
580
+ bcall: "bcall";
581
+ lottieSticker: "lottieSticker";
582
+ event: "event";
583
+ comment: "comment";
584
+ placeholder: "placeholder";
585
+ encEventUpdate: "encEventUpdate";
586
+ }>;
587
+ receiverId: z.ZodString;
588
+ receiverName: z.ZodString;
589
+ roomId: z.ZodString;
590
+ roomName: z.ZodString;
591
+ senderLid: z.ZodString;
592
+ senderId: z.ZodString;
593
+ senderName: z.ZodString;
594
+ senderDevice: z.ZodEnum<{
595
+ unknown: "unknown";
596
+ android: "android";
597
+ ios: "ios";
598
+ desktop: "desktop";
599
+ web: "web";
600
+ }>;
601
+ timestamp: z.ZodNumber;
602
+ text: z.ZodNullable<z.ZodString>;
603
+ mentions: z.ZodArray<z.ZodString>;
604
+ links: z.ZodArray<z.ZodString>;
605
+ isBot: z.ZodBoolean;
606
+ isFromMe: z.ZodBoolean;
607
+ isPrefix: z.ZodBoolean;
608
+ isSpam: z.ZodBoolean;
609
+ isTagMe: z.ZodBoolean;
610
+ isGroup: z.ZodBoolean;
611
+ isNewsletter: z.ZodBoolean;
612
+ isQuestion: z.ZodBoolean;
613
+ isStory: z.ZodBoolean;
614
+ isViewOnce: z.ZodBoolean;
615
+ isEdited: z.ZodBoolean;
616
+ isDeleted: z.ZodBoolean;
617
+ isPinned: z.ZodBoolean;
618
+ isUnPinned: z.ZodBoolean;
619
+ isBroadcast: z.ZodBoolean;
620
+ isEphemeral: z.ZodBoolean;
621
+ isForwarded: z.ZodBoolean;
622
+ citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>>;
623
+ media: z.ZodNullable<z.ZodObject<{
624
+ buffer: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
625
+ stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream__default, Stream__default>>>;
626
+ }, z.core.$loose>>;
627
+ message: z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodCustom<WAMessage, WAMessage>>;
628
+ }, z.core.$strip>>;
353
629
  }, z.core.$strip>;
630
+ type MessagesContext = z.infer<typeof ListenerMessagesType>;
354
631
 
355
632
  declare const LimiterType: z$1.ZodOptional<z$1.ZodObject<{
356
633
  maxMessages: z$1.ZodDefault<z$1.ZodNumber>;
@@ -486,9 +763,9 @@ declare const EventEnumType: z$1.ZodEnum<{
486
763
  calls: "calls";
487
764
  }>;
488
765
  type EventCallbackType = {
489
- connection: (ctx: z$1.infer<typeof ListenerConnectionType>) => void;
490
- messages: (ctx: z$1.infer<typeof ListenerMessagesType>) => void;
491
- calls: (ctx: z$1.infer<typeof ListenerCallsType>) => void;
766
+ connection: (ctx: ConnectionContext) => void;
767
+ messages: (ctx: MessagesContext) => void;
768
+ calls: (ctx: CallsContext) => void;
492
769
  };
493
770
 
494
771
  declare const ButtonInteractiveReplyType: z.ZodObject<{
@@ -606,7 +883,7 @@ declare const ButtonType: z.ZodUnion<readonly [z.ZodObject<{
606
883
  }, z.core.$strip>]>>;
607
884
  }, z.core.$strip>]>;
608
885
 
609
- type ParsedMessage = Partial<z.infer<typeof ListenerMessagesType>>;
886
+ type ParsedMessage = Partial<MessagesContext>;
610
887
  type CollectorFilter = (msg: ParsedMessage) => boolean;
611
888
  type CollectorCallback = (messages: ParsedMessage[]) => void;
612
889
  interface CollectorOptions {
@@ -629,13 +906,13 @@ declare class Logs {
629
906
  constructor(client: Client);
630
907
  getRoomColor(validator: any): "lime" | "orange" | "dimgray" | "blue";
631
908
  initialize(): void;
632
- message(message: Partial<z.infer<typeof ListenerMessagesType>>): void;
633
- call(call: Partial<z.infer<typeof ListenerCallsType>>): void;
909
+ message(message: Partial<MessagesContext>): void;
910
+ call(call: Partial<CallsContext>): void;
634
911
  }
635
912
 
636
913
  type MiddlewareContextType = {
637
- messages?: Partial<z.infer<typeof ListenerMessagesType>>;
638
- calls?: Partial<z.infer<typeof ListenerCallsType>>;
914
+ messages?: Partial<MessagesContext>;
915
+ calls?: Partial<CallsContext>;
639
916
  };
640
917
 
641
918
  type MiddlewareNext = () => Promise<void> | void;
@@ -675,89 +952,6 @@ declare class Plugins {
675
952
  }
676
953
  declare const definePlugins: (handler: PluginsHandlerType, config: PluginsConfigType) => PluginDefinition;
677
954
 
678
- declare class Privacy {
679
- protected client: Client;
680
- constructor(client: Client);
681
- block(senderId: string): Promise<void>;
682
- unblock(senderId: string): Promise<void>;
683
- lastSeen(type: WAPrivacyValue): Promise<void>;
684
- online(type: WAPrivacyOnlineValue): Promise<void>;
685
- picture(type: WAPrivacyValue): Promise<void>;
686
- status(type: WAPrivacyValue): Promise<void>;
687
- readReceipt(type: WAReadReceiptsValue): Promise<void>;
688
- groupsAdd(type: WAPrivacyGroupAddValue): Promise<void>;
689
- ephemeral(type: 'off' | '24h' | '7d' | '90d'): Promise<void>;
690
- blocklist(): Promise<string[]>;
691
- getSettings(): Promise<{
692
- [_: string]: string;
693
- }>;
694
- }
695
- declare class SignalPrivacy {
696
- protected plient: Client;
697
- privacy: Privacy;
698
- constructor(plient: Client);
699
- }
700
-
701
- declare class Newsletter {
702
- protected client: Client;
703
- constructor(client: Client);
704
- create(name: string, description: string): Promise<baileys.NewsletterMetadata>;
705
- action(roomId: string, type: 'follow' | 'unfollow' | 'mute' | 'unmute' | ''): Promise<unknown>;
706
- update(roomId: string, update: string | Buffer, type: 'name' | 'description' | 'picture'): Promise<unknown>;
707
- metadata(roomId: string, type: 'invite' | 'jid'): Promise<baileys.NewsletterMetadata>;
708
- subscribers(roomId: string): Promise<{
709
- subscribers: number;
710
- }>;
711
- reaction(roomId: string, chatId: string, reaction: string): Promise<void>;
712
- fetchMessages(roomId: string, count: number, since: Date, after: Date): Promise<any>;
713
- adminCount(roomId: string): Promise<number>;
714
- changeOwner(roomId: string, owner: string): Promise<void>;
715
- demote(roomId: string, senderId: string): Promise<void>;
716
- delete(roomId: string): Promise<void>;
717
- removePicture(roomId: string): Promise<unknown>;
718
- }
719
- declare class SignalNewsletter {
720
- protected nlient: Client;
721
- newsletter: Newsletter;
722
- constructor(nlient: Client);
723
- }
724
-
725
- declare class Community {
726
- protected client: Client;
727
- constructor(client: Client);
728
- create(subject: string, description: string): Promise<baileys.GroupMetadata>;
729
- createGroup(subject: string, participants: string[], parentId: string): Promise<baileys.GroupMetadata>;
730
- leave(id: string): Promise<void>;
731
- metadata(id: string): Promise<baileys.GroupMetadata>;
732
- update(id: string, type: 'subject' | 'description', value: string): Promise<void>;
733
- group(id: string, type: 'link' | 'unlink' | 'linked', groupJid?: string): Promise<void | {
734
- communityJid: string;
735
- isCommunity: boolean;
736
- linkedGroups: {
737
- id: string | undefined;
738
- subject: string;
739
- creation: number | undefined;
740
- owner: string | undefined;
741
- size: number | undefined;
742
- }[];
743
- }>;
744
- participants(id: string, type: 'list' | 'request-update' | 'update' | 'all', action?: 'add' | 'remove' | 'promote' | 'demote' | 'approve' | 'reject', participants?: string[]): Promise<{
745
- [key: string]: string;
746
- }[] | {
747
- status: string;
748
- jid: string | undefined;
749
- }[] | {
750
- [_: string]: baileys.GroupMetadata;
751
- }>;
752
- invite(target: string | any, type: 'code' | 'revoke' | 'accept' | 'info' | 'revokeV4' | 'acceptV4', ...args: any[]): Promise<any>;
753
- settings(id: string, type: 'ephemeral' | 'update' | 'memberAdd' | 'approval', value?: any): Promise<void>;
754
- }
755
- declare class SignalCommunity {
756
- protected mlient: Client;
757
- community: Community;
758
- constructor(mlient: Client);
759
- }
760
-
761
955
  interface Client extends Signal, SignalGroup, SignalPrivacy, SignalNewsletter, SignalCommunity {
762
956
  }
763
957
  declare class Client {
@@ -777,6 +971,7 @@ declare class Client {
777
971
  db(path: string): Lowdb;
778
972
  on<T extends z.infer<typeof EventEnumType>>(event: T, handler: EventCallbackType[T]): void;
779
973
  use<T>(handler: MiddlewareHandler<T>): this;
974
+ get socket(): ReturnType<typeof baileys__default>;
780
975
  getMessageByChatId(chatId: string): Promise<Partial<{
781
976
  channelId: string;
782
977
  uniqueId: string;
@@ -815,8 +1010,8 @@ declare class Client {
815
1010
  citation?: Record<string, z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>;
816
1011
  media?: {
817
1012
  [x: string]: unknown;
818
- buffer: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
819
- stream: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1013
+ buffer: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1014
+ stream: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream, Stream>>>;
820
1015
  };
821
1016
  replied?: {
822
1017
  channelId: string;
@@ -856,13 +1051,13 @@ declare class Client {
856
1051
  citation?: Record<string, z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>;
857
1052
  media?: {
858
1053
  [x: string]: unknown;
859
- buffer: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
860
- stream: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1054
+ buffer: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
1055
+ stream: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream, Stream>>>;
861
1056
  };
862
- replied?: /*elided*/ any;
863
1057
  };
864
1058
  }>>;
865
1059
  getRoomName(roomId: string): Promise<string>;
1060
+ getLabelName(roomId: string): Promise<string>;
866
1061
  }
867
1062
 
868
1063
  declare const registerAuthCreds: (client: Client) => Promise<void>;
@@ -1012,4 +1207,4 @@ declare class SessionWatchdog {
1012
1207
  declare const createWatchdog: (options: WatchdogOptions) => SessionWatchdog;
1013
1208
  declare const getWatchdog: () => SessionWatchdog | null;
1014
1209
 
1015
- export { AudioProcessor, type AudioType, ButtonInteractiveCallType, ButtonInteractiveCopyType, ButtonInteractiveReplyType, ButtonInteractiveSingleSelectType, ButtonInteractiveType, ButtonInteractiveUrlType, ButtonSimpleType, ButtonType, CitationType, Client, ClientAuthPairingType, ClientAuthQRType, ClientBaseType, ClientOptionsType, DEVICE_ENUM_TYPES, DocumentProcessor, type EventCallbackType, EventEnumType, FakeReplyType, ImageProcessor, LimiterType, ListenerCallsType, ListenerConnectionType, ListenerMessagesType, Lowdb, MESSAGE_ENUM_TYPES, MediaProcessor, type PluginDefinition, Plugins, type PluginsConfigType, type PluginsHandlerType, SessionWatchdog, StickerMetadataType, StickerProcessor, VideoProcessor, cleanJid, cleanMediaObject, cleanupSocket, createLowdb, createWatchdog, definePlugins, extractJids, extractUrls, findGlobalWord, findNestedByKeys, generateId, getDeepContent, getExistingSocket, getLatestLibVersion, getMediaThumbnail, getUsersMentions, getVideoDuration, getVideoThumbnail, getWaAudio, getWaDocument, getWaSticker, getWatchdog, ignoreLint, logColor, modifyFn, normalizeText, numbersToJids, pickKeysFromArray, randomize, registerAuthCreds, removeAuthCreds, repairSessionKeys, shuffleString, toBuffer, toJson, toString, useAuthState };
1210
+ export { AudioProcessor, type AudioType, BaseMessagesType, ButtonInteractiveCallType, ButtonInteractiveCopyType, ButtonInteractiveReplyType, ButtonInteractiveSingleSelectType, ButtonInteractiveType, ButtonInteractiveUrlType, ButtonSimpleType, ButtonType, type CallsContext, CitationType, Client, ClientAuthPairingType, ClientAuthQRType, ClientBaseType, ClientOptionsType, type ConnectionContext, DEVICE_ENUM_TYPES, DocumentProcessor, type EventCallbackType, EventEnumType, FakeReplyType, ImageProcessor, LimiterType, ListenerCallsType, ListenerConnectionType, ListenerMessagesType, Lowdb, MESSAGE_ENUM_TYPES, MediaProcessor, type MessagesContext, type PluginDefinition, Plugins, type PluginsConfigType, type PluginsHandlerType, SessionWatchdog, StickerMetadataType, StickerProcessor, VideoProcessor, cleanJid, cleanMediaObject, cleanupSocket, createLowdb, createWatchdog, definePlugins, extractJids, extractUrls, findGlobalWord, findNestedByKeys, generateId, getDeepContent, getExistingSocket, getLatestLibVersion, getMediaThumbnail, getUsersMentions, getVideoDuration, getVideoThumbnail, getWaAudio, getWaDocument, getWaSticker, getWatchdog, ignoreLint, logColor, modifyFn, normalizeText, numbersToJids, pickKeysFromArray, randomize, registerAuthCreds, removeAuthCreds, repairSessionKeys, shuffleString, toBuffer, toJson, toString, useAuthState };