zaileys 2.0.13 → 2.0.15

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.
@@ -0,0 +1,56 @@
1
+ name: Deploy Jekyll with GitHub Pages dependencies preinstalled
2
+
3
+ on:
4
+ # Runs on pushes targeting the default branch
5
+ push:
6
+ branches: ["main"]
7
+
8
+ # Allows you to run this workflow manually from the Actions tab
9
+ workflow_dispatch:
10
+
11
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12
+ permissions:
13
+ contents: read
14
+ pages: write
15
+ id-token: write
16
+
17
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19
+ concurrency:
20
+ group: "pages"
21
+ cancel-in-progress: false
22
+
23
+ jobs:
24
+ # Build job
25
+ build:
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - name: Checkout
29
+ uses: actions/checkout@v4
30
+ - name: Setup Pages
31
+ uses: actions/configure-pages@v5
32
+ - name: Build with Jekyll
33
+ uses: actions/jekyll-build-pages@v1
34
+ with:
35
+ source: ./
36
+ destination: ./_site
37
+
38
+ - name: Inject Google Site Verification Meta Tag
39
+ run: |
40
+ META_TAG='<meta name="google-site-verification" content="D1yM0hOKOz3yT6N4uIb753KAWhGQ1m80hIyCkd8QrTg" />'
41
+ find ./_site -name "*.html" -exec sudo sed -i "s|</head>|$META_TAG\n</head>|g" {} +
42
+
43
+ - name: Upload artifact
44
+ uses: actions/upload-pages-artifact@v3
45
+
46
+ # Deployment job
47
+ deploy:
48
+ environment:
49
+ name: github-pages
50
+ url: ${{ steps.deployment.outputs.page_url }}
51
+ runs-on: ubuntu-latest
52
+ needs: build
53
+ steps:
54
+ - name: Deploy to GitHub Pages
55
+ id: deployment
56
+ uses: actions/deploy-pages@v4
package/README.MD CHANGED
@@ -1,33 +1,37 @@
1
- <div align="center">
2
- <img alt="Zaileys - Simplified WhatsApp Node.js TypeScript/JavaScript API" src="https://socialify.git.ci/zeative/zaileys/image?custom_description=Simplified+WhatsApp+Node.js+TypeScript%2FJavaScript+API&custom_language=TypeScript&description=1&font=Inter&language=1&owner=1&pattern=Charlie+Brown&theme=Auto">
3
-
4
- <h1 align="center">Zaileys - Simplified WhatsApp Node.js TypeScript/JavaScript API</h1>
5
-
6
- <a href="https://www.npmjs.com/package/zaileys"><img src="https://img.shields.io/npm/v/zaileys.svg" alt="NPM Version"></a>
7
- <a href="https://www.npmjs.com/package/zaileys"><img src="https://img.shields.io/npm/dw/zaileys?label=npm&color=%23CB3837" alt="NPM Downloads"></a>
8
- <a href="https://github.com/zeative/zaileys/releases"><img src="https://img.shields.io/npm/dt/zaileys" alt="NPM Downloads"></a>
9
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/languages/code-size/zeative/zaileys" alt="GitHub Code Size"></a>
10
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/issues/zeative/zaileys" alt="GitHub Issues"></a>
11
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/issues-closed/zeative/zaileys" alt="GitHub Closed Issues"></a>
12
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/badge/TypeScript-5.0%2B-blue?style=flat-square&logo=typescript" alt="TypeScript"></a>
13
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/license/zeative/zaileys" alt="GitHub License"></a>
14
- <a href="https://discord.gg/SfnWWYUe"><img alt="Discord" src="https://img.shields.io/discord/1105833273415962654?logo=discord&label=discord&link=https%3A%2F%2Fgithub.com%2Fzeative%2Fzaileys"></a>
15
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/stars/zeative/zaileys" alt="GitHub Stars"></a>
16
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/forks/zeative/zaileys" alt="GitHub Forks"></a>
17
- <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/watchers/zeative/zaileys" alt="GitHub Watchers"></a>
18
- [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/zeative/zaileys)
1
+ <dd align="center">
2
+
3
+ <img alt="Zaileys - Simplified WhatsApp Node.js TypeScript/JavaScript API" src="https://github.com/zeative/zeative/blob/main/libraries/zaileys/zaileys-clean.png?raw=true" width="140">
4
+
5
+ <h1 align="center">Zaileys - Simplified WhatsApp Node.js TypeScript/JavaScript API</h1>
19
6
 
7
+ <br>
8
+
9
+ <div align="center">
10
+ <a href="https://www.npmjs.com/package/zaileys"><img src="https://img.shields.io/npm/v/zaileys.svg" alt="NPM Version"></a>
11
+ <a href="https://www.npmjs.com/package/zaileys"><img src="https://img.shields.io/npm/dw/zaileys?label=npm&color=%23CB3837" alt="NPM Downloads"></a>
12
+ <a href="https://github.com/zeative/zaileys/releases"><img src="https://img.shields.io/npm/dt/zaileys" alt="NPM Downloads"></a>
13
+ <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/languages/code-size/zeative/zaileys" alt="GitHub Code Size"></a>
14
+ <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/badge/TypeScript-5.0%2B-blue?style=flat-square&logo=typescript" alt="TypeScript"></a>
20
15
  </div>
21
16
 
22
17
  <div align="center">
23
- <p>
24
- <b>Zaileys</b> is a powerful, type-safe wrapper around <a href="https://github.com/WhiskeySockets/Baileys">Baileys</a>, designed to simplify the development of WhatsApp bots. It provides a robust architecture with built-in state management, middleware support, and easy-to-use event handlers, making it perfect for building scalable and maintainable WhatsApp applications.
25
- </p>
18
+ <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/license/zeative/zaileys" alt="GitHub License"></a>
19
+ <a href="https://discord.gg/SfnWWYUe"><img alt="Discord" src="https://img.shields.io/discord/1105833273415962654?logo=discord&label=discord&link=https%3A%2F%2Fgithub.com%2Fzeative%2Fzaileys"></a>
20
+ <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/stars/zeative/zaileys" alt="GitHub Stars"></a>
21
+ <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/forks/zeative/zaileys" alt="GitHub Forks"></a>
22
+ <a href="https://github.com/zeative/zaileys"><img src="https://img.shields.io/github/watchers/zeative/zaileys" alt="GitHub Watchers"></a>
23
+ <a href="https://deepwiki.com/zeative/zaileys"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
26
24
  </div>
27
25
 
28
26
  <br>
29
27
 
30
- <div align="center">
28
+ <dl align="center">
29
+ <dd>
30
+ <b>Zaileys</b> is a powerful, type-safe wrapper around <a href="https://github.com/WhiskeySockets/Baileys">Baileys</a>, designed to simplify the development of WhatsApp bots. It provides a robust architecture with built-in state management, middleware support, and easy-to-use event handlers, making it perfect for building scalable and maintainable WhatsApp applications.
31
+ </dd>
32
+ </dl>
33
+
34
+ <dd align="center">
31
35
 
32
36
  [🚀 Overview](#-overview) &nbsp;&nbsp;•&nbsp;&nbsp;
33
37
  [🪶 Features](#-features) &nbsp;&nbsp;•&nbsp;&nbsp;
@@ -43,8 +47,12 @@
43
47
  [🤝 Contributing](#-contributing)
44
48
 
45
49
  <br>
50
+
46
51
  <a href="https://discord.gg/SfnWWYUe"><img alt="Discord" src="https://discord.com/api/guilds/1105833273415962654/widget.png?style=banner2"></a>
47
- </div>
52
+
53
+ </dd>
54
+
55
+ </dd>
48
56
 
49
57
  <br>
50
58
 
@@ -61,7 +69,7 @@ Targeting **Node.js** and **TypeScript** developers, Zaileys integrates essentia
61
69
  - 🛡️ **Type-Safe** - Full TypeScript + Zod validation with autocomplete
62
70
  - 🏓 **Middleware** - Intercept and process events globally
63
71
  - 🧩 **Plugin System** - Drop-in file-based plugins
64
- - 💾 **State Management** - Built-in `lowdb` for data persistence
72
+ - 💾 **State Management** - Built-in `lowdb` for data persistence with **auto chunking**
65
73
  - 🔔 **Event-Driven** - Clean listeners for `connection`, `messages`, `calls`
66
74
  - 📢 **Rate Limiting** - Anti-spam protection out of the box
67
75
  - 🤖 **Auto-Everything** - Auto-read, auto-reject calls, auto-mentions
@@ -113,12 +121,18 @@ import { Client } from 'zaileys';
113
121
  const { Client } = require('zaileys');
114
122
 
115
123
  const wa = new Client({
124
+ // dynamic session you can change
125
+ session: 'zaileys', // default
126
+
116
127
  // qr code
117
128
  authType: 'qr',
118
129
 
119
130
  // pairing code
120
131
  authType: 'pairing',
121
132
  phoneNumber: 6280000000,
133
+
134
+ // if you want to disable built-in ffmpeg
135
+ // disableFFmpeg: true,
122
136
  });
123
137
 
124
138
  wa.on('messages', async (ctx) => {
@@ -562,7 +576,7 @@ await wa.button(ctx.roomId, {
562
576
 
563
577
  ### Member Label
564
578
 
565
- Labeling user member on group chat (NEW!)
579
+ Labeling user member on group chat.
566
580
 
567
581
  ```typescript
568
582
  await wa.memberLabel(ctx.roomId, 'Fullstack Developer');
@@ -1015,3 +1029,10 @@ Contributions are welcome! Please follow these steps:
1015
1029
  ## 📜 License
1016
1030
 
1017
1031
  Distributed under the **MIT License**. See [`LICENSE`](https://github.com/zeative/zaileys/blob/main/LICENSE) for details.
1032
+
1033
+ <div align="left">
1034
+ <p>
1035
+ <img alt="Zaileys - Simplified WhatsApp Node.js TypeScript/JavaScript API" src="https://github.com/zeative/zeative/blob/main/libraries/zaileys/zaileys-clean.png?raw=true" width="28" align="center">
1036
+ Copyright © 2025 zaadevofc. All rights reserved.
1037
+ </p>
1038
+ </div>
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
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
3
  import * as Stream from 'stream';
4
4
  import Stream__default from 'stream';
5
5
  import z, { z as z$1 } from 'zod';
@@ -130,6 +130,42 @@ declare class Signal {
130
130
  memberLabel(roomId: string, label: string): Promise<string>;
131
131
  }
132
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
+
133
169
  declare class Group {
134
170
  protected client: Client;
135
171
  constructor(client: Client);
@@ -162,6 +198,53 @@ declare class SignalGroup {
162
198
  constructor(glient: Client);
163
199
  }
164
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
+
165
248
  declare const ListenerCallsType: z.ZodObject<{
166
249
  callId: z.ZodString;
167
250
  callerId: z.ZodString;
@@ -572,6 +655,7 @@ declare const ClientBaseType: z$1.ZodObject<{
572
655
  ignoreMe: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
573
656
  showLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
574
657
  syncFullHistory: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
658
+ disableFFmpeg: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
575
659
  autoMarkAI: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
576
660
  autoMentions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
577
661
  autoOnline: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
@@ -614,6 +698,7 @@ declare const ClientOptionsType: z$1.ZodUnion<readonly [z$1.ZodObject<{
614
698
  ignoreMe: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
615
699
  showLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
616
700
  syncFullHistory: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
701
+ disableFFmpeg: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
617
702
  autoMarkAI: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
618
703
  autoMentions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
619
704
  autoOnline: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
@@ -647,6 +732,7 @@ declare const ClientOptionsType: z$1.ZodUnion<readonly [z$1.ZodObject<{
647
732
  ignoreMe: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
648
733
  showLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
649
734
  syncFullHistory: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
735
+ disableFFmpeg: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
650
736
  autoMarkAI: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
651
737
  autoMentions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
652
738
  autoOnline: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
@@ -869,89 +955,6 @@ declare class Plugins {
869
955
  }
870
956
  declare const definePlugins: (handler: PluginsHandlerType, config: PluginsConfigType) => PluginDefinition;
871
957
 
872
- declare class Privacy {
873
- protected client: Client;
874
- constructor(client: Client);
875
- block(senderId: string): Promise<void>;
876
- unblock(senderId: string): Promise<void>;
877
- lastSeen(type: WAPrivacyValue): Promise<void>;
878
- online(type: WAPrivacyOnlineValue): Promise<void>;
879
- picture(type: WAPrivacyValue): Promise<void>;
880
- status(type: WAPrivacyValue): Promise<void>;
881
- readReceipt(type: WAReadReceiptsValue): Promise<void>;
882
- groupsAdd(type: WAPrivacyGroupAddValue): Promise<void>;
883
- ephemeral(type: 'off' | '24h' | '7d' | '90d'): Promise<void>;
884
- blocklist(): Promise<string[]>;
885
- getSettings(): Promise<{
886
- [_: string]: string;
887
- }>;
888
- }
889
- declare class SignalPrivacy {
890
- protected plient: Client;
891
- privacy: Privacy;
892
- constructor(plient: Client);
893
- }
894
-
895
- declare class Newsletter {
896
- protected client: Client;
897
- constructor(client: Client);
898
- create(name: string, description: string): Promise<baileys.NewsletterMetadata>;
899
- action(roomId: string, type: 'follow' | 'unfollow' | 'mute' | 'unmute' | ''): Promise<unknown>;
900
- update(roomId: string, update: string | Buffer, type: 'name' | 'description' | 'picture'): Promise<unknown>;
901
- metadata(roomId: string, type: 'invite' | 'jid'): Promise<baileys.NewsletterMetadata>;
902
- subscribers(roomId: string): Promise<{
903
- subscribers: number;
904
- }>;
905
- reaction(roomId: string, chatId: string, reaction: string): Promise<void>;
906
- fetchMessages(roomId: string, count: number, since: Date, after: Date): Promise<any>;
907
- adminCount(roomId: string): Promise<number>;
908
- changeOwner(roomId: string, owner: string): Promise<void>;
909
- demote(roomId: string, senderId: string): Promise<void>;
910
- delete(roomId: string): Promise<void>;
911
- removePicture(roomId: string): Promise<unknown>;
912
- }
913
- declare class SignalNewsletter {
914
- protected nlient: Client;
915
- newsletter: Newsletter;
916
- constructor(nlient: Client);
917
- }
918
-
919
- declare class Community {
920
- protected client: Client;
921
- constructor(client: Client);
922
- create(subject: string, description: string): Promise<baileys.GroupMetadata>;
923
- createGroup(subject: string, participants: string[], parentId: string): Promise<baileys.GroupMetadata>;
924
- leave(id: string): Promise<void>;
925
- metadata(id: string): Promise<baileys.GroupMetadata>;
926
- update(id: string, type: 'subject' | 'description', value: string): Promise<void>;
927
- group(id: string, type: 'link' | 'unlink' | 'linked', groupJid?: string): Promise<void | {
928
- communityJid: string;
929
- isCommunity: boolean;
930
- linkedGroups: {
931
- id: string | undefined;
932
- subject: string;
933
- creation: number | undefined;
934
- owner: string | undefined;
935
- size: number | undefined;
936
- }[];
937
- }>;
938
- participants(id: string, type: 'list' | 'request-update' | 'update' | 'all', action?: 'add' | 'remove' | 'promote' | 'demote' | 'approve' | 'reject', participants?: string[]): Promise<{
939
- [key: string]: string;
940
- }[] | {
941
- status: string;
942
- jid: string | undefined;
943
- }[] | {
944
- [_: string]: baileys.GroupMetadata;
945
- }>;
946
- invite(target: string | any, type: 'code' | 'revoke' | 'accept' | 'info' | 'revokeV4' | 'acceptV4', ...args: any[]): Promise<any>;
947
- settings(id: string, type: 'ephemeral' | 'update' | 'memberAdd' | 'approval', value?: any): Promise<void>;
948
- }
949
- declare class SignalCommunity {
950
- protected mlient: Client;
951
- community: Community;
952
- constructor(mlient: Client);
953
- }
954
-
955
958
  interface Client extends Signal, SignalGroup, SignalPrivacy, SignalNewsletter, SignalCommunity {
956
959
  }
957
960
  declare class Client {
@@ -971,6 +974,7 @@ declare class Client {
971
974
  db(path: string): Lowdb;
972
975
  on<T extends z.infer<typeof EventEnumType>>(event: T, handler: EventCallbackType[T]): void;
973
976
  use<T>(handler: MiddlewareHandler<T>): this;
977
+ get socket(): ReturnType<typeof baileys__default>;
974
978
  getMessageByChatId(chatId: string): Promise<Partial<{
975
979
  channelId: string;
976
980
  uniqueId: string;
@@ -1056,6 +1060,7 @@ declare class Client {
1056
1060
  };
1057
1061
  }>>;
1058
1062
  getRoomName(roomId: string): Promise<string>;
1063
+ getLabelName(roomId: string): Promise<string>;
1059
1064
  }
1060
1065
 
1061
1066
  declare const registerAuthCreds: (client: Client) => Promise<void>;
@@ -1129,6 +1134,7 @@ declare const getDeepContent: (raw?: proto.IMessage | null) => {
1129
1134
  };
1130
1135
  declare const cleanJid: (jid: string) => number;
1131
1136
 
1137
+ declare const configureFFmpeg: (disable?: boolean) => Promise<void>;
1132
1138
  type MediaInput = string | ArrayBuffer | Buffer;
1133
1139
  type AudioType = 'opus' | 'mp3';
1134
1140
  declare class AudioProcessor {
@@ -1205,4 +1211,4 @@ declare class SessionWatchdog {
1205
1211
  declare const createWatchdog: (options: WatchdogOptions) => SessionWatchdog;
1206
1212
  declare const getWatchdog: () => SessionWatchdog | null;
1207
1213
 
1208
- 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 };
1214
+ 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, configureFFmpeg, 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 };