@wsapichat/mcp-server 1.0.5 → 3.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 (91) hide show
  1. package/README.md +58 -339
  2. package/dist/client/index.d.ts +4 -1
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +47 -28
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/config/index.d.ts +19 -54
  7. package/dist/config/index.d.ts.map +1 -1
  8. package/dist/config/index.js +57 -29
  9. package/dist/config/index.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +42 -36
  13. package/dist/index.js.map +1 -1
  14. package/dist/server.d.ts.map +1 -1
  15. package/dist/server.js +127 -59
  16. package/dist/server.js.map +1 -1
  17. package/dist/tools/calls.d.ts +6 -0
  18. package/dist/tools/calls.d.ts.map +1 -0
  19. package/dist/tools/calls.js +26 -0
  20. package/dist/tools/calls.js.map +1 -0
  21. package/dist/tools/chats.d.ts +19 -1
  22. package/dist/tools/chats.d.ts.map +1 -1
  23. package/dist/tools/chats.js +242 -39
  24. package/dist/tools/chats.js.map +1 -1
  25. package/dist/tools/communities.d.ts +36 -0
  26. package/dist/tools/communities.d.ts.map +1 -0
  27. package/dist/tools/communities.js +318 -0
  28. package/dist/tools/communities.js.map +1 -0
  29. package/dist/tools/contacts.d.ts +9 -9
  30. package/dist/tools/contacts.d.ts.map +1 -1
  31. package/dist/tools/contacts.js +68 -158
  32. package/dist/tools/contacts.js.map +1 -1
  33. package/dist/tools/groups.d.ts +33 -1
  34. package/dist/tools/groups.d.ts.map +1 -1
  35. package/dist/tools/groups.js +367 -33
  36. package/dist/tools/groups.js.map +1 -1
  37. package/dist/tools/media.d.ts +6 -0
  38. package/dist/tools/media.d.ts.map +1 -0
  39. package/dist/tools/media.js +39 -0
  40. package/dist/tools/media.js.map +1 -0
  41. package/dist/tools/messaging-advanced.d.ts +1 -1
  42. package/dist/tools/messaging-advanced.d.ts.map +1 -1
  43. package/dist/tools/messaging-advanced.js +135 -281
  44. package/dist/tools/messaging-advanced.js.map +1 -1
  45. package/dist/tools/messaging.d.ts +5 -1
  46. package/dist/tools/messaging.d.ts.map +1 -1
  47. package/dist/tools/messaging.js +241 -319
  48. package/dist/tools/messaging.js.map +1 -1
  49. package/dist/tools/newsletters.d.ts +16 -0
  50. package/dist/tools/newsletters.d.ts.map +1 -0
  51. package/dist/tools/newsletters.js +131 -0
  52. package/dist/tools/newsletters.js.map +1 -0
  53. package/dist/tools/session.d.ts +3 -1
  54. package/dist/tools/session.d.ts.map +1 -1
  55. package/dist/tools/session.js +72 -37
  56. package/dist/tools/session.js.map +1 -1
  57. package/dist/tools/status.d.ts +14 -0
  58. package/dist/tools/status.d.ts.map +1 -0
  59. package/dist/tools/status.js +106 -0
  60. package/dist/tools/status.js.map +1 -0
  61. package/dist/tools/users.d.ts +20 -0
  62. package/dist/tools/users.d.ts.map +1 -0
  63. package/dist/tools/users.js +175 -0
  64. package/dist/tools/users.js.map +1 -0
  65. package/dist/types/api.d.ts +4508 -1726
  66. package/dist/types/api.d.ts.map +1 -1
  67. package/dist/utils/errors.d.ts +1 -1
  68. package/dist/utils/errors.d.ts.map +1 -1
  69. package/dist/utils/errors.js +43 -42
  70. package/dist/utils/errors.js.map +1 -1
  71. package/dist/utils/logger.d.ts +1 -1
  72. package/dist/utils/logger.d.ts.map +1 -1
  73. package/dist/utils/logger.js +22 -22
  74. package/dist/utils/logger.js.map +1 -1
  75. package/dist/validation/schemas.d.ts +310 -651
  76. package/dist/validation/schemas.d.ts.map +1 -1
  77. package/dist/validation/schemas.js +245 -153
  78. package/dist/validation/schemas.js.map +1 -1
  79. package/package.json +25 -25
  80. package/dist/tools/account.d.ts +0 -14
  81. package/dist/tools/account.d.ts.map +0 -1
  82. package/dist/tools/account.js +0 -78
  83. package/dist/tools/account.js.map +0 -1
  84. package/dist/tools/instance.d.ts +0 -12
  85. package/dist/tools/instance.d.ts.map +0 -1
  86. package/dist/tools/instance.js +0 -54
  87. package/dist/tools/instance.js.map +0 -1
  88. package/dist/types/webhooks.d.ts +0 -1001
  89. package/dist/types/webhooks.d.ts.map +0 -1
  90. package/dist/types/webhooks.js +0 -6
  91. package/dist/types/webhooks.js.map +0 -1
@@ -1,380 +1,234 @@
1
- import { wsapiClient } from '../client/index.js';
2
- import { createLogger } from '../utils/logger.js';
3
- import { validateInput, sendAudioMessageSchema, sendVoiceMessageSchema, sendDocumentMessageSchema, sendStickerMessageSchema, sendLocationMessageSchema, sendContactMessageSchema, } from '../validation/schemas.js';
4
- const logger = createLogger('messaging-advanced-tools');
5
- // Send audio message tool
1
+ import { wsapiClient } from "../client/index.js";
2
+ import { createLogger } from "../utils/logger.js";
3
+ import { validateInput, sendMediaMessageSchema, sendDocumentMessageSchema, sendStickerMessageSchema, sendLocationMessageSchema, sendContactMessageSchema, } from "../validation/schemas.js";
4
+ const logger = createLogger("messaging-advanced-tools");
6
5
  export const sendAudioMessage = {
7
- name: 'whatsapp_send_audio',
8
- description: 'Send an audio file message to a WhatsApp contact or group. Can send from URL or base64.',
6
+ name: "whatsapp_send_audio",
7
+ description: "Send an audio file message. Provide either data (base64) or url.",
9
8
  inputSchema: {
10
- type: 'object',
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
- },
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" },
26
14
  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,
15
+ type: "string",
16
+ description: "MIME type (auto-detected if omitted)",
17
+ },
18
+ mentions: { type: "array", items: { type: "string" } },
19
+ replyTo: { type: "string", description: "Message ID to reply to" },
20
+ replyToSenderId: { type: "string" },
21
+ isForwarded: { type: "boolean" },
22
+ viewOnce: { type: "boolean" },
23
+ ephemeralExpiration: {
24
+ type: "string",
25
+ enum: ["off", "24h", "7d", "90d"],
51
26
  },
52
27
  },
53
- required: ['to', 'mimeType'],
28
+ required: ["to"],
54
29
  },
55
30
  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
- });
62
- const result = await wsapiClient.post('/messages/audio', input);
63
- logger.info('Audio message sent successfully', { messageId: result.id });
31
+ const input = validateInput(sendMediaMessageSchema, args);
32
+ logger.info("Sending audio message", { to: input.to });
33
+ const result = await wsapiClient.post("/messages/audio", input);
34
+ logger.info("Audio message sent successfully", { messageId: result.id });
64
35
  return {
65
36
  success: true,
66
37
  messageId: result.id,
67
- message: 'Audio message sent successfully',
38
+ message: "Audio message sent successfully",
68
39
  };
69
40
  },
70
41
  };
71
- // Send voice message tool
72
42
  export const sendVoiceMessage = {
73
- name: 'whatsapp_send_voice',
74
- description: 'Send a voice message (PTT) to a WhatsApp contact or group. Can send from URL or base64.',
43
+ name: "whatsapp_send_voice",
44
+ description: "Send a voice message (PTT). Provide either data (base64) or url.",
75
45
  inputSchema: {
76
- type: 'object',
46
+ type: "object",
77
47
  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,
48
+ to: { type: "string", description: "Recipient JID" },
49
+ data: { type: "string", description: "Base64 encoded voice data" },
50
+ url: { type: "string", description: "URL of the voice file" },
51
+ mimeType: {
52
+ type: "string",
53
+ description: "MIME type (auto-detected if omitted)",
54
+ },
55
+ mentions: { type: "array", items: { type: "string" } },
56
+ replyTo: { type: "string" },
57
+ replyToSenderId: { type: "string" },
58
+ isForwarded: { type: "boolean" },
59
+ viewOnce: { type: "boolean" },
60
+ ephemeralExpiration: {
61
+ type: "string",
62
+ enum: ["off", "24h", "7d", "90d"],
112
63
  },
113
64
  },
114
- required: ['to'],
65
+ required: ["to"],
115
66
  },
116
67
  handler: async (args) => {
117
- const input = validateInput(sendVoiceMessageSchema, args);
118
- logger.info('Sending voice message', {
119
- to: input.to,
120
- viewOnce: input.viewOnce,
121
- });
122
- const result = await wsapiClient.post('/messages/voice', input);
123
- logger.info('Voice message sent successfully', { messageId: result.id });
68
+ const input = validateInput(sendMediaMessageSchema, args);
69
+ logger.info("Sending voice message", { to: input.to });
70
+ const result = await wsapiClient.post("/messages/voice", input);
71
+ logger.info("Voice message sent successfully", { messageId: result.id });
124
72
  return {
125
73
  success: true,
126
74
  messageId: result.id,
127
- message: 'Voice message sent successfully',
75
+ message: "Voice message sent successfully",
128
76
  };
129
77
  },
130
78
  };
131
- // Send document message tool
132
79
  export const sendDocumentMessage = {
133
- name: 'whatsapp_send_document',
134
- description: 'Send a document file to a WhatsApp contact or group. Can send from URL or base64.',
80
+ name: "whatsapp_send_document",
81
+ description: "Send a document file. Provide either data (base64) or url. Filename is required.",
135
82
  inputSchema: {
136
- type: 'object',
83
+ type: "object",
137
84
  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,
85
+ to: { type: "string", description: "Recipient JID" },
86
+ data: { type: "string", description: "Base64 encoded document data" },
87
+ url: { type: "string", description: "URL of the document" },
88
+ filename: { type: "string", description: "Filename shown to recipient" },
89
+ mimeType: {
90
+ type: "string",
91
+ description: "MIME type (auto-detected if omitted)",
92
+ },
93
+ caption: { type: "string", description: "Caption for the document" },
94
+ mentions: { type: "array", items: { type: "string" } },
95
+ replyTo: { type: "string" },
96
+ replyToSenderId: { type: "string" },
97
+ isForwarded: { type: "boolean" },
98
+ ephemeralExpiration: {
99
+ type: "string",
100
+ enum: ["off", "24h", "7d", "90d"],
176
101
  },
177
102
  },
178
- required: ['to', 'fileName'],
103
+ required: ["to", "filename"],
179
104
  },
180
105
  handler: async (args) => {
181
106
  const input = validateInput(sendDocumentMessageSchema, args);
182
- logger.info('Sending document message', {
107
+ logger.info("Sending document message", {
183
108
  to: input.to,
184
- fileName: input.fileName,
185
- hasCaption: !!input.caption,
109
+ filename: input.filename,
186
110
  });
187
- const result = await wsapiClient.post('/messages/document', input);
188
- logger.info('Document message sent successfully', { messageId: result.id });
111
+ const result = await wsapiClient.post("/messages/document", input);
112
+ logger.info("Document message sent successfully", { messageId: result.id });
189
113
  return {
190
114
  success: true,
191
115
  messageId: result.id,
192
- message: 'Document message sent successfully',
116
+ message: "Document message sent successfully",
193
117
  };
194
118
  },
195
119
  };
196
- // Send sticker message tool
197
120
  export const sendStickerMessage = {
198
- name: 'whatsapp_send_sticker',
199
- description: 'Send a sticker message to a WhatsApp contact or group. Can send from URL or base64.',
121
+ name: "whatsapp_send_sticker",
122
+ description: "Send a sticker message (WebP format). Provide either data (base64) or url.",
200
123
  inputSchema: {
201
- type: 'object',
124
+ type: "object",
202
125
  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
- },
126
+ to: { type: "string", description: "Recipient JID" },
127
+ data: { type: "string", description: "Base64 encoded sticker data" },
128
+ url: { type: "string", description: "URL of the sticker" },
222
129
  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,
130
+ type: "boolean",
131
+ description: "Whether the sticker is animated",
237
132
  },
238
- isForwarded: {
239
- type: 'boolean',
240
- description: 'Whether the message should be marked as forwarded',
241
- optional: true,
133
+ mentions: { type: "array", items: { type: "string" } },
134
+ replyTo: { type: "string" },
135
+ replyToSenderId: { type: "string" },
136
+ isForwarded: { type: "boolean" },
137
+ ephemeralExpiration: {
138
+ type: "string",
139
+ enum: ["off", "24h", "7d", "90d"],
242
140
  },
243
141
  },
244
- required: ['to', 'mimeType'],
142
+ required: ["to"],
245
143
  },
246
144
  handler: async (args) => {
247
145
  const input = validateInput(sendStickerMessageSchema, args);
248
- logger.info('Sending sticker message', {
249
- to: input.to,
250
- mimeType: input.mimeType,
251
- isAnimated: input.isAnimated,
252
- });
253
- const result = await wsapiClient.post('/messages/sticker', input);
254
- logger.info('Sticker message sent successfully', { messageId: result.id });
146
+ logger.info("Sending sticker message", { to: input.to });
147
+ const result = await wsapiClient.post("/messages/sticker", input);
148
+ logger.info("Sticker message sent successfully", { messageId: result.id });
255
149
  return {
256
150
  success: true,
257
151
  messageId: result.id,
258
- message: 'Sticker message sent successfully',
152
+ message: "Sticker message sent successfully",
259
153
  };
260
154
  },
261
155
  };
262
- // Send location message tool
263
156
  export const sendLocationMessage = {
264
- name: 'whatsapp_send_location',
265
- description: 'Send a location message to a WhatsApp contact or group.',
157
+ name: "whatsapp_send_location",
158
+ description: "Send a location message.",
266
159
  inputSchema: {
267
- type: 'object',
160
+ type: "object",
268
161
  properties: {
269
- to: {
270
- type: 'string',
271
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
272
- },
162
+ to: { type: "string", description: "Recipient JID" },
273
163
  latitude: {
274
- type: 'number',
164
+ type: "number",
275
165
  minimum: -90,
276
166
  maximum: 90,
277
- description: 'Latitude coordinate',
167
+ description: "Latitude",
278
168
  },
279
169
  longitude: {
280
- type: 'number',
170
+ type: "number",
281
171
  minimum: -180,
282
172
  maximum: 180,
283
- description: 'Longitude coordinate',
173
+ description: "Longitude",
284
174
  },
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,
175
+ name: { type: "string", description: "Location name" },
176
+ address: { type: "string", description: "Location address" },
177
+ url: { type: "string", description: "Location URL" },
178
+ ephemeralExpiration: {
179
+ type: "string",
180
+ enum: ["off", "24h", "7d", "90d"],
299
181
  },
300
182
  },
301
- required: ['to', 'latitude', 'longitude'],
183
+ required: ["to", "latitude", "longitude"],
302
184
  },
303
185
  handler: async (args) => {
304
186
  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
- });
312
- const result = await wsapiClient.post('/messages/location', input);
313
- logger.info('Location message sent successfully', { messageId: result.id });
187
+ logger.info("Sending location message", { to: input.to });
188
+ const result = await wsapiClient.post("/messages/location", input);
189
+ logger.info("Location message sent successfully", { messageId: result.id });
314
190
  return {
315
191
  success: true,
316
192
  messageId: result.id,
317
- message: 'Location message sent successfully',
193
+ message: "Location message sent successfully",
318
194
  };
319
195
  },
320
196
  };
321
- // Send contact message tool
322
197
  export const sendContactMessage = {
323
- name: 'whatsapp_send_contact',
324
- description: 'Send a contact (vCard) message to a WhatsApp contact or group.',
198
+ name: "whatsapp_send_contact",
199
+ description: "Send a contact (vCard) message. Provide either displayName or vcard.",
325
200
  inputSchema: {
326
- type: 'object',
201
+ type: "object",
327
202
  properties: {
328
- to: {
329
- type: 'string',
330
- description: 'Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)',
331
- },
203
+ to: { type: "string", description: "Recipient JID" },
332
204
  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,
205
+ type: "string",
206
+ description: "Display name (auto-generates vCard)",
207
+ },
208
+ vcard: { type: "string", description: "Raw vCard string" },
209
+ mentions: { type: "array", items: { type: "string" } },
210
+ replyTo: { type: "string" },
211
+ replyToSenderId: { type: "string" },
212
+ isForwarded: { type: "boolean" },
213
+ ephemeralExpiration: {
214
+ type: "string",
215
+ enum: ["off", "24h", "7d", "90d"],
357
216
  },
358
217
  },
359
- required: ['to'],
218
+ required: ["to"],
360
219
  },
361
220
  handler: async (args) => {
362
221
  const input = validateInput(sendContactMessageSchema, args);
363
- logger.info('Sending contact message', {
364
- to: input.to,
365
- hasDisplayName: !!input.displayName,
366
- hasVCard: !!input.vCard,
367
- });
368
- const result = await wsapiClient.post('/messages/contact', input);
369
- logger.info('Contact message sent successfully', { messageId: result.id });
222
+ logger.info("Sending contact message", { to: input.to });
223
+ const result = await wsapiClient.post("/messages/contact", input);
224
+ logger.info("Contact message sent successfully", { messageId: result.id });
370
225
  return {
371
226
  success: true,
372
227
  messageId: result.id,
373
- message: 'Contact message sent successfully',
228
+ message: "Contact message sent successfully",
374
229
  };
375
230
  },
376
231
  };
377
- // Export all advanced messaging tools
378
232
  export const advancedMessagingTools = {
379
233
  sendAudioMessage,
380
234
  sendVoiceMessage,
@@ -1 +1 @@
1
- {"version":3,"file":"messaging-advanced.js","sourceRoot":"","sources":["../../src/tools/messaging-advanced.ts"],"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,EAAE;YAChC,mBAAmB,EAAE;gBACnB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC;aAClC;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,OAAO,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;QAC3B,MAAM,KAAK,GAAG,aAAa,CACzB,wBAAwB,EACxB,IAAI,CACsB,CAAC;QAC7B,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACzD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;QAClE,MAAM,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;QAC3E,OAAO;YACL,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,MAAM,CAAC,EAAE;YACpB,OAAO,EAAE,mCAAmC;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;CACnB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ToolHandler } from '../server.js';
1
+ import type { ToolHandler } from "../server.js";
2
2
  export declare const sendTextMessage: ToolHandler;
3
3
  export declare const sendImageMessage: ToolHandler;
4
4
  export declare const sendVideoMessage: ToolHandler;
@@ -6,8 +6,10 @@ 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":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAuBhD,eAAO,MAAM,eAAe,EAAE,WAmD7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAkD9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WA2C9B,CAAC;A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