@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.
- package/README.md +58 -339
- package/dist/client/index.d.ts +4 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +47 -28
- package/dist/client/index.js.map +1 -1
- package/dist/config/index.d.ts +19 -54
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +57 -29
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -36
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +127 -59
- package/dist/server.js.map +1 -1
- package/dist/tools/calls.d.ts +6 -0
- package/dist/tools/calls.d.ts.map +1 -0
- package/dist/tools/calls.js +26 -0
- package/dist/tools/calls.js.map +1 -0
- package/dist/tools/chats.d.ts +19 -1
- package/dist/tools/chats.d.ts.map +1 -1
- package/dist/tools/chats.js +242 -39
- package/dist/tools/chats.js.map +1 -1
- package/dist/tools/communities.d.ts +36 -0
- package/dist/tools/communities.d.ts.map +1 -0
- package/dist/tools/communities.js +318 -0
- package/dist/tools/communities.js.map +1 -0
- package/dist/tools/contacts.d.ts +9 -9
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/contacts.js +68 -158
- package/dist/tools/contacts.js.map +1 -1
- package/dist/tools/groups.d.ts +33 -1
- package/dist/tools/groups.d.ts.map +1 -1
- package/dist/tools/groups.js +367 -33
- package/dist/tools/groups.js.map +1 -1
- package/dist/tools/media.d.ts +6 -0
- package/dist/tools/media.d.ts.map +1 -0
- package/dist/tools/media.js +39 -0
- package/dist/tools/media.js.map +1 -0
- package/dist/tools/messaging-advanced.d.ts +1 -1
- package/dist/tools/messaging-advanced.d.ts.map +1 -1
- package/dist/tools/messaging-advanced.js +135 -281
- package/dist/tools/messaging-advanced.js.map +1 -1
- package/dist/tools/messaging.d.ts +5 -1
- package/dist/tools/messaging.d.ts.map +1 -1
- package/dist/tools/messaging.js +241 -319
- package/dist/tools/messaging.js.map +1 -1
- package/dist/tools/newsletters.d.ts +16 -0
- package/dist/tools/newsletters.d.ts.map +1 -0
- package/dist/tools/newsletters.js +131 -0
- package/dist/tools/newsletters.js.map +1 -0
- package/dist/tools/session.d.ts +3 -1
- package/dist/tools/session.d.ts.map +1 -1
- package/dist/tools/session.js +72 -37
- package/dist/tools/session.js.map +1 -1
- package/dist/tools/status.d.ts +14 -0
- package/dist/tools/status.d.ts.map +1 -0
- package/dist/tools/status.js +106 -0
- package/dist/tools/status.js.map +1 -0
- package/dist/tools/users.d.ts +20 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +175 -0
- package/dist/tools/users.js.map +1 -0
- package/dist/types/api.d.ts +4508 -1726
- package/dist/types/api.d.ts.map +1 -1
- package/dist/utils/errors.d.ts +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +43 -42
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +22 -22
- package/dist/utils/logger.js.map +1 -1
- package/dist/validation/schemas.d.ts +310 -651
- package/dist/validation/schemas.d.ts.map +1 -1
- package/dist/validation/schemas.js +245 -153
- package/dist/validation/schemas.js.map +1 -1
- package/package.json +25 -25
- package/dist/tools/account.d.ts +0 -14
- package/dist/tools/account.d.ts.map +0 -1
- package/dist/tools/account.js +0 -78
- package/dist/tools/account.js.map +0 -1
- package/dist/tools/instance.d.ts +0 -12
- package/dist/tools/instance.d.ts.map +0 -1
- package/dist/tools/instance.js +0 -54
- package/dist/tools/instance.js.map +0 -1
- package/dist/types/webhooks.d.ts +0 -1001
- package/dist/types/webhooks.d.ts.map +0 -1
- package/dist/types/webhooks.js +0 -6
- package/dist/types/webhooks.js.map +0 -1
|
@@ -1,380 +1,234 @@
|
|
|
1
|
-
import { wsapiClient } from
|
|
2
|
-
import { createLogger } from
|
|
3
|
-
import { validateInput,
|
|
4
|
-
const logger = createLogger(
|
|
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:
|
|
8
|
-
description:
|
|
6
|
+
name: "whatsapp_send_audio",
|
|
7
|
+
description: "Send an audio file message. Provide either data (base64) or url.",
|
|
9
8
|
inputSchema: {
|
|
10
|
-
type:
|
|
9
|
+
type: "object",
|
|
11
10
|
properties: {
|
|
12
|
-
to: {
|
|
13
|
-
|
|
14
|
-
|
|
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:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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: [
|
|
28
|
+
required: ["to"],
|
|
54
29
|
},
|
|
55
30
|
handler: async (args) => {
|
|
56
|
-
const input = validateInput(
|
|
57
|
-
logger.info(
|
|
58
|
-
|
|
59
|
-
|
|
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:
|
|
38
|
+
message: "Audio message sent successfully",
|
|
68
39
|
};
|
|
69
40
|
},
|
|
70
41
|
};
|
|
71
|
-
// Send voice message tool
|
|
72
42
|
export const sendVoiceMessage = {
|
|
73
|
-
name:
|
|
74
|
-
description:
|
|
43
|
+
name: "whatsapp_send_voice",
|
|
44
|
+
description: "Send a voice message (PTT). Provide either data (base64) or url.",
|
|
75
45
|
inputSchema: {
|
|
76
|
-
type:
|
|
46
|
+
type: "object",
|
|
77
47
|
properties: {
|
|
78
|
-
to: {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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: [
|
|
65
|
+
required: ["to"],
|
|
115
66
|
},
|
|
116
67
|
handler: async (args) => {
|
|
117
|
-
const input = validateInput(
|
|
118
|
-
logger.info(
|
|
119
|
-
|
|
120
|
-
|
|
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:
|
|
75
|
+
message: "Voice message sent successfully",
|
|
128
76
|
};
|
|
129
77
|
},
|
|
130
78
|
};
|
|
131
|
-
// Send document message tool
|
|
132
79
|
export const sendDocumentMessage = {
|
|
133
|
-
name:
|
|
134
|
-
description:
|
|
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:
|
|
83
|
+
type: "object",
|
|
137
84
|
properties: {
|
|
138
|
-
to: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
type:
|
|
144
|
-
description:
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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: [
|
|
103
|
+
required: ["to", "filename"],
|
|
179
104
|
},
|
|
180
105
|
handler: async (args) => {
|
|
181
106
|
const input = validateInput(sendDocumentMessageSchema, args);
|
|
182
|
-
logger.info(
|
|
107
|
+
logger.info("Sending document message", {
|
|
183
108
|
to: input.to,
|
|
184
|
-
|
|
185
|
-
hasCaption: !!input.caption,
|
|
109
|
+
filename: input.filename,
|
|
186
110
|
});
|
|
187
|
-
const result = await wsapiClient.post(
|
|
188
|
-
logger.info(
|
|
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:
|
|
116
|
+
message: "Document message sent successfully",
|
|
193
117
|
};
|
|
194
118
|
},
|
|
195
119
|
};
|
|
196
|
-
// Send sticker message tool
|
|
197
120
|
export const sendStickerMessage = {
|
|
198
|
-
name:
|
|
199
|
-
description:
|
|
121
|
+
name: "whatsapp_send_sticker",
|
|
122
|
+
description: "Send a sticker message (WebP format). Provide either data (base64) or url.",
|
|
200
123
|
inputSchema: {
|
|
201
|
-
type:
|
|
124
|
+
type: "object",
|
|
202
125
|
properties: {
|
|
203
|
-
to: {
|
|
204
|
-
|
|
205
|
-
|
|
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:
|
|
224
|
-
description:
|
|
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
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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: [
|
|
142
|
+
required: ["to"],
|
|
245
143
|
},
|
|
246
144
|
handler: async (args) => {
|
|
247
145
|
const input = validateInput(sendStickerMessageSchema, args);
|
|
248
|
-
logger.info(
|
|
249
|
-
|
|
250
|
-
|
|
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:
|
|
152
|
+
message: "Sticker message sent successfully",
|
|
259
153
|
};
|
|
260
154
|
},
|
|
261
155
|
};
|
|
262
|
-
// Send location message tool
|
|
263
156
|
export const sendLocationMessage = {
|
|
264
|
-
name:
|
|
265
|
-
description:
|
|
157
|
+
name: "whatsapp_send_location",
|
|
158
|
+
description: "Send a location message.",
|
|
266
159
|
inputSchema: {
|
|
267
|
-
type:
|
|
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:
|
|
164
|
+
type: "number",
|
|
275
165
|
minimum: -90,
|
|
276
166
|
maximum: 90,
|
|
277
|
-
description:
|
|
167
|
+
description: "Latitude",
|
|
278
168
|
},
|
|
279
169
|
longitude: {
|
|
280
|
-
type:
|
|
170
|
+
type: "number",
|
|
281
171
|
minimum: -180,
|
|
282
172
|
maximum: 180,
|
|
283
|
-
description:
|
|
173
|
+
description: "Longitude",
|
|
284
174
|
},
|
|
285
|
-
name: {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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: [
|
|
183
|
+
required: ["to", "latitude", "longitude"],
|
|
302
184
|
},
|
|
303
185
|
handler: async (args) => {
|
|
304
186
|
const input = validateInput(sendLocationMessageSchema, args);
|
|
305
|
-
logger.info(
|
|
306
|
-
|
|
307
|
-
|
|
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:
|
|
193
|
+
message: "Location message sent successfully",
|
|
318
194
|
};
|
|
319
195
|
},
|
|
320
196
|
};
|
|
321
|
-
// Send contact message tool
|
|
322
197
|
export const sendContactMessage = {
|
|
323
|
-
name:
|
|
324
|
-
description:
|
|
198
|
+
name: "whatsapp_send_contact",
|
|
199
|
+
description: "Send a contact (vCard) message. Provide either displayName or vcard.",
|
|
325
200
|
inputSchema: {
|
|
326
|
-
type:
|
|
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:
|
|
334
|
-
description:
|
|
335
|
-
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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: [
|
|
218
|
+
required: ["to"],
|
|
360
219
|
},
|
|
361
220
|
handler: async (args) => {
|
|
362
221
|
const input = validateInput(sendContactMessageSchema, args);
|
|
363
|
-
logger.info(
|
|
364
|
-
|
|
365
|
-
|
|
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:
|
|
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"],"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,
|
|
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,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,GAMzB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,GAAG,Y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C;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
|
|
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;
|
|
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;AAEF,eAAO,MAAM,eAAe,EAAE,WAwC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,WA+CjC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAoCzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAsB3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAgChC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,WA2B/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WA0BzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,WA4BxB,CAAC;AAIF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;CAa1B,CAAC"}
|