@wsapichat/mcp-server 1.0.4 → 2.0.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 (81) hide show
  1. package/README.md +52 -337
  2. package/dist/client/index.d.ts +0 -1
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +1 -5
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/config/index.d.ts +18 -53
  7. package/dist/config/index.d.ts.map +1 -1
  8. package/dist/config/index.js +5 -1
  9. package/dist/config/index.js.map +1 -1
  10. package/dist/server.d.ts.map +1 -1
  11. package/dist/server.js +70 -24
  12. package/dist/server.js.map +1 -1
  13. package/dist/tools/calls.d.ts +6 -0
  14. package/dist/tools/calls.d.ts.map +1 -0
  15. package/dist/tools/calls.js +24 -0
  16. package/dist/tools/calls.js.map +1 -0
  17. package/dist/tools/chats.d.ts +18 -0
  18. package/dist/tools/chats.d.ts.map +1 -1
  19. package/dist/tools/chats.js +156 -8
  20. package/dist/tools/chats.js.map +1 -1
  21. package/dist/tools/communities.d.ts +36 -0
  22. package/dist/tools/communities.d.ts.map +1 -0
  23. package/dist/tools/communities.js +263 -0
  24. package/dist/tools/communities.js.map +1 -0
  25. package/dist/tools/contacts.d.ts +8 -8
  26. package/dist/tools/contacts.d.ts.map +1 -1
  27. package/dist/tools/contacts.js +53 -158
  28. package/dist/tools/contacts.js.map +1 -1
  29. package/dist/tools/groups.d.ts +32 -0
  30. package/dist/tools/groups.d.ts.map +1 -1
  31. package/dist/tools/groups.js +272 -11
  32. package/dist/tools/groups.js.map +1 -1
  33. package/dist/tools/media.d.ts +6 -0
  34. package/dist/tools/media.d.ts.map +1 -0
  35. package/dist/tools/media.js +23 -0
  36. package/dist/tools/media.js.map +1 -0
  37. package/dist/tools/messaging-advanced.d.ts.map +1 -1
  38. package/dist/tools/messaging-advanced.js +79 -295
  39. package/dist/tools/messaging-advanced.js.map +1 -1
  40. package/dist/tools/messaging.d.ts +4 -0
  41. package/dist/tools/messaging.d.ts.map +1 -1
  42. package/dist/tools/messaging.js +150 -337
  43. package/dist/tools/messaging.js.map +1 -1
  44. package/dist/tools/newsletters.d.ts +16 -0
  45. package/dist/tools/newsletters.d.ts.map +1 -0
  46. package/dist/tools/newsletters.js +102 -0
  47. package/dist/tools/newsletters.js.map +1 -0
  48. package/dist/tools/session.d.ts +2 -0
  49. package/dist/tools/session.d.ts.map +1 -1
  50. package/dist/tools/session.js +18 -8
  51. package/dist/tools/session.js.map +1 -1
  52. package/dist/tools/status.d.ts +14 -0
  53. package/dist/tools/status.d.ts.map +1 -0
  54. package/dist/tools/status.js +86 -0
  55. package/dist/tools/status.js.map +1 -0
  56. package/dist/tools/users.d.ts +20 -0
  57. package/dist/tools/users.d.ts.map +1 -0
  58. package/dist/tools/users.js +129 -0
  59. package/dist/tools/users.js.map +1 -0
  60. package/dist/types/api.d.ts +4503 -1726
  61. package/dist/types/api.d.ts.map +1 -1
  62. package/dist/utils/logger.js +3 -3
  63. package/dist/utils/logger.js.map +1 -1
  64. package/dist/validation/schemas.d.ts +309 -650
  65. package/dist/validation/schemas.d.ts.map +1 -1
  66. package/dist/validation/schemas.js +209 -144
  67. package/dist/validation/schemas.js.map +1 -1
  68. package/package.json +22 -24
  69. package/CLAUDE.md +0 -96
  70. package/dist/tools/account.d.ts +0 -14
  71. package/dist/tools/account.d.ts.map +0 -1
  72. package/dist/tools/account.js +0 -78
  73. package/dist/tools/account.js.map +0 -1
  74. package/dist/tools/instance.d.ts +0 -12
  75. package/dist/tools/instance.d.ts.map +0 -1
  76. package/dist/tools/instance.js +0 -54
  77. package/dist/tools/instance.js.map +0 -1
  78. package/dist/types/webhooks.d.ts +0 -1001
  79. package/dist/types/webhooks.d.ts.map +0 -1
  80. package/dist/types/webhooks.js +0 -6
  81. package/dist/types/webhooks.js.map +0 -1
@@ -1,380 +1,164 @@
1
1
  import { wsapiClient } from '../client/index.js';
2
2
  import { createLogger } from '../utils/logger.js';
3
- import { validateInput, sendAudioMessageSchema, sendVoiceMessageSchema, sendDocumentMessageSchema, sendStickerMessageSchema, sendLocationMessageSchema, sendContactMessageSchema, } from '../validation/schemas.js';
3
+ import { validateInput, sendMediaMessageSchema, sendDocumentMessageSchema, sendStickerMessageSchema, sendLocationMessageSchema, sendContactMessageSchema, } from '../validation/schemas.js';
4
4
  const logger = createLogger('messaging-advanced-tools');
5
- // Send audio message tool
6
5
  export const sendAudioMessage = {
7
6
  name: 'whatsapp_send_audio',
8
- description: 'Send an audio file message to a WhatsApp contact or group. Can send from URL or base64.',
7
+ description: 'Send an audio file message. Provide either data (base64) or url.',
9
8
  inputSchema: {
10
9
  type: 'object',
11
10
  properties: {
12
- to: {
13
- type: 'string',
14
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
15
- },
16
- audioBase64: {
17
- type: 'string',
18
- description: 'Base64 encoded audio data (alternative to audioURL)',
19
- optional: true,
20
- },
21
- audioURL: {
22
- type: 'string',
23
- description: 'URL of the audio file to send (alternative to audioBase64)',
24
- optional: true,
25
- },
26
- mimeType: {
27
- type: 'string',
28
- enum: ['audio/mpeg', 'audio/mp3', 'audio/ogg', 'audio/wav'],
29
- description: 'MIME type of the audio file',
30
- },
31
- mentions: {
32
- type: 'array',
33
- items: { type: 'string' },
34
- description: 'List of phone numbers to mention',
35
- optional: true,
36
- },
37
- replyTo: {
38
- type: 'string',
39
- description: 'ID of the message being replied to',
40
- optional: true,
41
- },
42
- isForwarded: {
43
- type: 'boolean',
44
- description: 'Whether the message should be marked as forwarded',
45
- optional: true,
46
- },
47
- viewOnce: {
48
- type: 'boolean',
49
- description: 'Whether the audio should be sent as view-once',
50
- optional: true,
51
- },
11
+ to: { type: 'string', description: 'Recipient JID' },
12
+ data: { type: 'string', description: 'Base64 encoded audio data' },
13
+ url: { type: 'string', description: 'URL of the audio file' },
14
+ mimeType: { type: 'string', description: 'MIME type (auto-detected if omitted)' },
15
+ mentions: { type: 'array', items: { type: 'string' } },
16
+ replyTo: { type: 'string', description: 'Message ID to reply to' },
17
+ replyToSenderId: { type: 'string' },
18
+ isForwarded: { type: 'boolean' },
19
+ viewOnce: { type: 'boolean' },
20
+ ephemeralExpiration: { type: 'string', enum: ['off', '24h', '7d', '90d'] },
52
21
  },
53
- required: ['to', 'mimeType'],
22
+ required: ['to'],
54
23
  },
55
24
  handler: async (args) => {
56
- const input = validateInput(sendAudioMessageSchema, args);
57
- logger.info('Sending audio message', {
58
- to: input.to,
59
- mimeType: input.mimeType,
60
- viewOnce: input.viewOnce,
61
- });
25
+ const input = validateInput(sendMediaMessageSchema, args);
26
+ logger.info('Sending audio message', { to: input.to });
62
27
  const result = await wsapiClient.post('/messages/audio', input);
63
28
  logger.info('Audio message sent successfully', { messageId: result.id });
64
- return {
65
- success: true,
66
- messageId: result.id,
67
- message: 'Audio message sent successfully',
68
- };
29
+ return { success: true, messageId: result.id, message: 'Audio message sent successfully' };
69
30
  },
70
31
  };
71
- // Send voice message tool
72
32
  export const sendVoiceMessage = {
73
33
  name: 'whatsapp_send_voice',
74
- description: 'Send a voice message (PTT) to a WhatsApp contact or group. Can send from URL or base64.',
34
+ description: 'Send a voice message (PTT). Provide either data (base64) or url.',
75
35
  inputSchema: {
76
36
  type: 'object',
77
37
  properties: {
78
- to: {
79
- type: 'string',
80
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
81
- },
82
- voiceBase64: {
83
- type: 'string',
84
- description: 'Base64 encoded voice data (alternative to voiceURL)',
85
- optional: true,
86
- },
87
- voiceURL: {
88
- type: 'string',
89
- description: 'URL of the voice file to send (alternative to voiceBase64)',
90
- optional: true,
91
- },
92
- mentions: {
93
- type: 'array',
94
- items: { type: 'string' },
95
- description: 'List of phone numbers to mention',
96
- optional: true,
97
- },
98
- replyTo: {
99
- type: 'string',
100
- description: 'ID of the message being replied to',
101
- optional: true,
102
- },
103
- isForwarded: {
104
- type: 'boolean',
105
- description: 'Whether the message should be marked as forwarded',
106
- optional: true,
107
- },
108
- viewOnce: {
109
- type: 'boolean',
110
- description: 'Whether the voice message should be sent as view-once',
111
- optional: true,
112
- },
38
+ to: { type: 'string', description: 'Recipient JID' },
39
+ data: { type: 'string', description: 'Base64 encoded voice data' },
40
+ url: { type: 'string', description: 'URL of the voice file' },
41
+ mimeType: { type: 'string', description: 'MIME type (auto-detected if omitted)' },
42
+ mentions: { type: 'array', items: { type: 'string' } },
43
+ replyTo: { type: 'string' },
44
+ replyToSenderId: { type: 'string' },
45
+ isForwarded: { type: 'boolean' },
46
+ viewOnce: { type: 'boolean' },
47
+ ephemeralExpiration: { type: 'string', enum: ['off', '24h', '7d', '90d'] },
113
48
  },
114
49
  required: ['to'],
115
50
  },
116
51
  handler: async (args) => {
117
- const input = validateInput(sendVoiceMessageSchema, args);
118
- logger.info('Sending voice message', {
119
- to: input.to,
120
- viewOnce: input.viewOnce,
121
- });
52
+ const input = validateInput(sendMediaMessageSchema, args);
53
+ logger.info('Sending voice message', { to: input.to });
122
54
  const result = await wsapiClient.post('/messages/voice', input);
123
55
  logger.info('Voice message sent successfully', { messageId: result.id });
124
- return {
125
- success: true,
126
- messageId: result.id,
127
- message: 'Voice message sent successfully',
128
- };
56
+ return { success: true, messageId: result.id, message: 'Voice message sent successfully' };
129
57
  },
130
58
  };
131
- // Send document message tool
132
59
  export const sendDocumentMessage = {
133
60
  name: 'whatsapp_send_document',
134
- description: 'Send a document file to a WhatsApp contact or group. Can send from URL or base64.',
61
+ description: 'Send a document file. Provide either data (base64) or url. Filename is required.',
135
62
  inputSchema: {
136
63
  type: 'object',
137
64
  properties: {
138
- to: {
139
- type: 'string',
140
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
141
- },
142
- documentBase64: {
143
- type: 'string',
144
- description: 'Base64 encoded document data (alternative to documentURL)',
145
- optional: true,
146
- },
147
- documentURL: {
148
- type: 'string',
149
- description: 'URL of the document to send (alternative to documentBase64)',
150
- optional: true,
151
- },
152
- fileName: {
153
- type: 'string',
154
- description: 'Name of the document file (max 255 characters)',
155
- },
156
- caption: {
157
- type: 'string',
158
- description: 'Caption for the document (max 1024 characters)',
159
- optional: true,
160
- },
161
- mentions: {
162
- type: 'array',
163
- items: { type: 'string' },
164
- description: 'List of phone numbers to mention in the caption',
165
- optional: true,
166
- },
167
- replyTo: {
168
- type: 'string',
169
- description: 'ID of the message being replied to',
170
- optional: true,
171
- },
172
- isForwarded: {
173
- type: 'boolean',
174
- description: 'Whether the message should be marked as forwarded',
175
- optional: true,
176
- },
65
+ to: { type: 'string', description: 'Recipient JID' },
66
+ data: { type: 'string', description: 'Base64 encoded document data' },
67
+ url: { type: 'string', description: 'URL of the document' },
68
+ filename: { type: 'string', description: 'Filename shown to recipient' },
69
+ mimeType: { type: 'string', description: 'MIME type (auto-detected if omitted)' },
70
+ caption: { type: 'string', description: 'Caption for the document' },
71
+ mentions: { type: 'array', items: { type: 'string' } },
72
+ replyTo: { type: 'string' },
73
+ replyToSenderId: { type: 'string' },
74
+ isForwarded: { type: 'boolean' },
75
+ ephemeralExpiration: { type: 'string', enum: ['off', '24h', '7d', '90d'] },
177
76
  },
178
- required: ['to', 'fileName'],
77
+ required: ['to', 'filename'],
179
78
  },
180
79
  handler: async (args) => {
181
80
  const input = validateInput(sendDocumentMessageSchema, args);
182
- logger.info('Sending document message', {
183
- to: input.to,
184
- fileName: input.fileName,
185
- hasCaption: !!input.caption,
186
- });
81
+ logger.info('Sending document message', { to: input.to, filename: input.filename });
187
82
  const result = await wsapiClient.post('/messages/document', input);
188
83
  logger.info('Document message sent successfully', { messageId: result.id });
189
- return {
190
- success: true,
191
- messageId: result.id,
192
- message: 'Document message sent successfully',
193
- };
84
+ return { success: true, messageId: result.id, message: 'Document message sent successfully' };
194
85
  },
195
86
  };
196
- // Send sticker message tool
197
87
  export const sendStickerMessage = {
198
88
  name: 'whatsapp_send_sticker',
199
- description: 'Send a sticker message to a WhatsApp contact or group. Can send from URL or base64.',
89
+ description: 'Send a sticker message (WebP format). Provide either data (base64) or url.',
200
90
  inputSchema: {
201
91
  type: 'object',
202
92
  properties: {
203
- to: {
204
- type: 'string',
205
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
206
- },
207
- stickerBase64: {
208
- type: 'string',
209
- description: 'Base64 encoded sticker data (alternative to stickerURL)',
210
- optional: true,
211
- },
212
- stickerURL: {
213
- type: 'string',
214
- description: 'URL of the sticker to send (alternative to stickerBase64)',
215
- optional: true,
216
- },
217
- mimeType: {
218
- type: 'string',
219
- enum: ['image/webp'],
220
- description: 'MIME type of the sticker (must be image/webp)',
221
- },
222
- isAnimated: {
223
- type: 'boolean',
224
- description: 'Whether the sticker is animated',
225
- optional: true,
226
- },
227
- mentions: {
228
- type: 'array',
229
- items: { type: 'string' },
230
- description: 'List of phone numbers to mention',
231
- optional: true,
232
- },
233
- replyTo: {
234
- type: 'string',
235
- description: 'ID of the message being replied to',
236
- optional: true,
237
- },
238
- isForwarded: {
239
- type: 'boolean',
240
- description: 'Whether the message should be marked as forwarded',
241
- optional: true,
242
- },
93
+ to: { type: 'string', description: 'Recipient JID' },
94
+ data: { type: 'string', description: 'Base64 encoded sticker data' },
95
+ url: { type: 'string', description: 'URL of the sticker' },
96
+ isAnimated: { type: 'boolean', description: 'Whether the sticker is animated' },
97
+ mentions: { type: 'array', items: { type: 'string' } },
98
+ replyTo: { type: 'string' },
99
+ replyToSenderId: { type: 'string' },
100
+ isForwarded: { type: 'boolean' },
101
+ ephemeralExpiration: { type: 'string', enum: ['off', '24h', '7d', '90d'] },
243
102
  },
244
- required: ['to', 'mimeType'],
103
+ required: ['to'],
245
104
  },
246
105
  handler: async (args) => {
247
106
  const input = validateInput(sendStickerMessageSchema, args);
248
- logger.info('Sending sticker message', {
249
- to: input.to,
250
- mimeType: input.mimeType,
251
- isAnimated: input.isAnimated,
252
- });
107
+ logger.info('Sending sticker message', { to: input.to });
253
108
  const result = await wsapiClient.post('/messages/sticker', input);
254
109
  logger.info('Sticker message sent successfully', { messageId: result.id });
255
- return {
256
- success: true,
257
- messageId: result.id,
258
- message: 'Sticker message sent successfully',
259
- };
110
+ return { success: true, messageId: result.id, message: 'Sticker message sent successfully' };
260
111
  },
261
112
  };
262
- // Send location message tool
263
113
  export const sendLocationMessage = {
264
114
  name: 'whatsapp_send_location',
265
- description: 'Send a location message to a WhatsApp contact or group.',
115
+ description: 'Send a location message.',
266
116
  inputSchema: {
267
117
  type: 'object',
268
118
  properties: {
269
- to: {
270
- type: 'string',
271
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
272
- },
273
- latitude: {
274
- type: 'number',
275
- minimum: -90,
276
- maximum: 90,
277
- description: 'Latitude coordinate',
278
- },
279
- longitude: {
280
- type: 'number',
281
- minimum: -180,
282
- maximum: 180,
283
- description: 'Longitude coordinate',
284
- },
285
- name: {
286
- type: 'string',
287
- description: 'Name of the location (max 1000 characters)',
288
- optional: true,
289
- },
290
- address: {
291
- type: 'string',
292
- description: 'Address of the location (max 1000 characters)',
293
- optional: true,
294
- },
295
- url: {
296
- type: 'string',
297
- description: 'URL related to the location (e.g., Google Maps link)',
298
- optional: true,
299
- },
119
+ to: { type: 'string', description: 'Recipient JID' },
120
+ latitude: { type: 'number', minimum: -90, maximum: 90, description: 'Latitude' },
121
+ longitude: { type: 'number', minimum: -180, maximum: 180, description: 'Longitude' },
122
+ name: { type: 'string', description: 'Location name' },
123
+ address: { type: 'string', description: 'Location address' },
124
+ url: { type: 'string', description: 'Location URL' },
125
+ ephemeralExpiration: { type: 'string', enum: ['off', '24h', '7d', '90d'] },
300
126
  },
301
127
  required: ['to', 'latitude', 'longitude'],
302
128
  },
303
129
  handler: async (args) => {
304
130
  const input = validateInput(sendLocationMessageSchema, args);
305
- logger.info('Sending location message', {
306
- to: input.to,
307
- latitude: input.latitude,
308
- longitude: input.longitude,
309
- hasName: !!input.name,
310
- hasAddress: !!input.address,
311
- });
131
+ logger.info('Sending location message', { to: input.to });
312
132
  const result = await wsapiClient.post('/messages/location', input);
313
133
  logger.info('Location message sent successfully', { messageId: result.id });
314
- return {
315
- success: true,
316
- messageId: result.id,
317
- message: 'Location message sent successfully',
318
- };
134
+ return { success: true, messageId: result.id, message: 'Location message sent successfully' };
319
135
  },
320
136
  };
321
- // Send contact message tool
322
137
  export const sendContactMessage = {
323
138
  name: 'whatsapp_send_contact',
324
- description: 'Send a contact (vCard) message to a WhatsApp contact or group.',
139
+ description: 'Send a contact (vCard) message. Provide either displayName or vcard.',
325
140
  inputSchema: {
326
141
  type: 'object',
327
142
  properties: {
328
- to: {
329
- type: 'string',
330
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
331
- },
332
- displayName: {
333
- type: 'string',
334
- description: 'Display name for the contact (alternative to vCard)',
335
- optional: true,
336
- },
337
- vCard: {
338
- type: 'string',
339
- description: 'Raw vCard string (alternative to displayName)',
340
- optional: true,
341
- },
342
- mentions: {
343
- type: 'array',
344
- items: { type: 'string' },
345
- description: 'List of phone numbers to mention',
346
- optional: true,
347
- },
348
- replyTo: {
349
- type: 'string',
350
- description: 'ID of the message being replied to',
351
- optional: true,
352
- },
353
- isForwarded: {
354
- type: 'boolean',
355
- description: 'Whether the message should be marked as forwarded',
356
- optional: true,
357
- },
143
+ to: { type: 'string', description: 'Recipient JID' },
144
+ displayName: { type: 'string', description: 'Display name (auto-generates vCard)' },
145
+ vcard: { type: 'string', description: 'Raw vCard string' },
146
+ mentions: { type: 'array', items: { type: 'string' } },
147
+ replyTo: { type: 'string' },
148
+ replyToSenderId: { type: 'string' },
149
+ isForwarded: { type: 'boolean' },
150
+ ephemeralExpiration: { type: 'string', enum: ['off', '24h', '7d', '90d'] },
358
151
  },
359
152
  required: ['to'],
360
153
  },
361
154
  handler: async (args) => {
362
155
  const input = validateInput(sendContactMessageSchema, args);
363
- logger.info('Sending contact message', {
364
- to: input.to,
365
- hasDisplayName: !!input.displayName,
366
- hasVCard: !!input.vCard,
367
- });
156
+ logger.info('Sending contact message', { to: input.to });
368
157
  const result = await wsapiClient.post('/messages/contact', input);
369
158
  logger.info('Contact message sent successfully', { messageId: result.id });
370
- return {
371
- success: true,
372
- messageId: result.id,
373
- message: 'Contact message sent successfully',
374
- };
159
+ return { success: true, messageId: result.id, message: 'Contact message sent successfully' };
375
160
  },
376
161
  };
377
- // Export all advanced messaging tools
378
162
  export const advancedMessagingTools = {
379
163
  sendAudioMessage,
380
164
  sendVoiceMessage,
@@ -1 +1 @@
1
- {"version":3,"file":"messaging-advanced.js","sourceRoot":"","sources":["../../src/tools/messaging-advanced.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,GAOzB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,GAAG,YAAY,CAAC,0BAA0B,CAAC,CAAC;AAExD,0BAA0B;AAC1B,MAAM,CAAC,MAAM,gBAAgB,GAAgB;IAC3C,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,yFAAyF;IACtG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wEAAwE;aACtF;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qDAAqD;gBAClE,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4DAA4D;gBACzE,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC;gBAC3D,WAAW,EAAE,6BAA6B;aAC3C;YACD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@@ export declare const sendLinkMessage: ToolHandler;
6
6
  export declare const sendReactionMessage: ToolHandler;
7
7
  export declare const editMessage: ToolHandler;
8
8
  export declare const deleteMessage: ToolHandler;
9
+ export declare const deleteMessageForMe: ToolHandler;
9
10
  export declare const markMessageAsRead: ToolHandler;
10
11
  export declare const starMessage: ToolHandler;
12
+ export declare const pinMessage: ToolHandler;
11
13
  export declare const messagingTools: {
12
14
  sendAudioMessage: ToolHandler;
13
15
  sendVoiceMessage: ToolHandler;
@@ -22,7 +24,9 @@ export declare const messagingTools: {
22
24
  sendReactionMessage: ToolHandler;
23
25
  editMessage: ToolHandler;
24
26
  deleteMessage: ToolHandler;
27
+ deleteMessageForMe: ToolHandler;
25
28
  markMessageAsRead: ToolHandler;
26
29
  starMessage: ToolHandler;
30
+ pinMessage: ToolHandler;
27
31
  };
28
32
  //# sourceMappingURL=messaging.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/tools/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAwBhD,eAAO,MAAM,eAAe,EAAE,WAgD7B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,WA0E9B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,WA0E9B,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,WAwE7B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,WAgDjC,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,WA2CzB,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,WAyC3B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,WAgD/B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,WAyCzB,CAAC;AAMF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAW1B,CAAC"}
1
+ {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/tools/messaging.ts"],"names":[],"mapp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