zernio-mcp 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +19 -13
- package/dist/index.js.map +1 -1
- package/dist/tools/accounts.d.ts +136 -3
- package/dist/tools/accounts.d.ts.map +1 -1
- package/dist/tools/accounts.js +188 -14
- package/dist/tools/accounts.js.map +1 -1
- package/dist/tools/automations.d.ts +108 -0
- package/dist/tools/automations.d.ts.map +1 -0
- package/dist/tools/automations.js +89 -0
- package/dist/tools/automations.js.map +1 -0
- package/dist/tools/broadcasts.d.ts +96 -0
- package/dist/tools/broadcasts.d.ts.map +1 -0
- package/dist/tools/broadcasts.js +93 -0
- package/dist/tools/broadcasts.js.map +1 -0
- package/dist/tools/connect.d.ts +126 -0
- package/dist/tools/connect.d.ts.map +1 -0
- package/dist/tools/connect.js +130 -0
- package/dist/tools/connect.js.map +1 -0
- package/dist/tools/contacts.d.ts +176 -0
- package/dist/tools/contacts.d.ts.map +1 -0
- package/dist/tools/contacts.js +130 -0
- package/dist/tools/contacts.js.map +1 -0
- package/dist/tools/messages.d.ts +26 -5
- package/dist/tools/messages.d.ts.map +1 -1
- package/dist/tools/messages.js +26 -26
- package/dist/tools/messages.js.map +1 -1
- package/dist/tools/posts.d.ts +248 -0
- package/dist/tools/posts.d.ts.map +1 -0
- package/dist/tools/posts.js +224 -0
- package/dist/tools/posts.js.map +1 -0
- package/dist/tools/profiles.d.ts +170 -0
- package/dist/tools/profiles.d.ts.map +1 -0
- package/dist/tools/profiles.js +158 -0
- package/dist/tools/profiles.js.map +1 -0
- package/dist/tools/social.d.ts +272 -0
- package/dist/tools/social.d.ts.map +1 -0
- package/dist/tools/social.js +287 -0
- package/dist/tools/social.js.map +1 -0
- package/dist/tools/whatsapp-business.d.ts +292 -0
- package/dist/tools/whatsapp-business.d.ts.map +1 -0
- package/dist/tools/whatsapp-business.js +267 -0
- package/dist/tools/whatsapp-business.js.map +1 -0
- package/package.json +1 -39
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.socialTools = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_js_1 = require("../client.js");
|
|
6
|
+
exports.socialTools = [
|
|
7
|
+
// Twitter / X actions
|
|
8
|
+
{
|
|
9
|
+
name: "zernio_twitter_retweet",
|
|
10
|
+
description: "Retweet a tweet from a connected Twitter/X account.",
|
|
11
|
+
inputSchema: zod_1.z.object({
|
|
12
|
+
accountId: zod_1.z.string().describe("The Twitter account ID to retweet from"),
|
|
13
|
+
tweetId: zod_1.z.string().describe("The tweet ID to retweet"),
|
|
14
|
+
}),
|
|
15
|
+
handler: async (args) => {
|
|
16
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/twitter/retweet`, { accountId: args.accountId, tweetId: args.tweetId });
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "zernio_twitter_unretweet",
|
|
21
|
+
description: "Undo a retweet from a connected Twitter/X account.",
|
|
22
|
+
inputSchema: zod_1.z.object({
|
|
23
|
+
accountId: zod_1.z.string().describe("The Twitter account ID"),
|
|
24
|
+
tweetId: zod_1.z.string().describe("The tweet ID to un-retweet"),
|
|
25
|
+
}),
|
|
26
|
+
handler: async (args) => {
|
|
27
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/twitter/retweet`, { accountId: args.accountId, tweetId: args.tweetId });
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "zernio_twitter_like",
|
|
32
|
+
description: "Like a tweet from a connected Twitter/X account.",
|
|
33
|
+
inputSchema: zod_1.z.object({
|
|
34
|
+
accountId: zod_1.z.string().describe("The Twitter account ID to like from"),
|
|
35
|
+
tweetId: zod_1.z.string().describe("The tweet ID to like"),
|
|
36
|
+
}),
|
|
37
|
+
handler: async (args) => {
|
|
38
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/twitter/like`, { accountId: args.accountId, tweetId: args.tweetId });
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "zernio_twitter_bookmark",
|
|
43
|
+
description: "Bookmark a tweet on a connected Twitter/X account.",
|
|
44
|
+
inputSchema: zod_1.z.object({
|
|
45
|
+
accountId: zod_1.z.string().describe("The Twitter account ID"),
|
|
46
|
+
tweetId: zod_1.z.string().describe("The tweet ID to bookmark"),
|
|
47
|
+
}),
|
|
48
|
+
handler: async (args) => {
|
|
49
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/twitter/bookmark`, { accountId: args.accountId, tweetId: args.tweetId });
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "zernio_twitter_remove_bookmark",
|
|
54
|
+
description: "Remove a bookmarked tweet on a connected Twitter/X account.",
|
|
55
|
+
inputSchema: zod_1.z.object({
|
|
56
|
+
accountId: zod_1.z.string().describe("The Twitter account ID"),
|
|
57
|
+
tweetId: zod_1.z.string().describe("The tweet ID to un-bookmark"),
|
|
58
|
+
}),
|
|
59
|
+
handler: async (args) => {
|
|
60
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/twitter/bookmark`, { accountId: args.accountId, tweetId: args.tweetId });
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "zernio_twitter_follow",
|
|
65
|
+
description: "Follow a Twitter/X user from a connected account.",
|
|
66
|
+
inputSchema: zod_1.z.object({
|
|
67
|
+
accountId: zod_1.z.string().describe("The Twitter account ID to follow from"),
|
|
68
|
+
targetUserId: zod_1.z.string().describe("The Twitter user ID to follow"),
|
|
69
|
+
}),
|
|
70
|
+
handler: async (args) => {
|
|
71
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/twitter/follow`, { accountId: args.accountId, targetUserId: args.targetUserId });
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "zernio_twitter_unfollow",
|
|
76
|
+
description: "Unfollow a Twitter/X user from a connected account.",
|
|
77
|
+
inputSchema: zod_1.z.object({
|
|
78
|
+
accountId: zod_1.z.string().describe("The Twitter account ID"),
|
|
79
|
+
targetUserId: zod_1.z.string().describe("The Twitter user ID to unfollow"),
|
|
80
|
+
}),
|
|
81
|
+
handler: async (args) => {
|
|
82
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/twitter/follow`, { accountId: args.accountId, targetUserId: args.targetUserId });
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
// Reddit actions
|
|
86
|
+
{
|
|
87
|
+
name: "zernio_reddit_upvote",
|
|
88
|
+
description: "Upvote a Reddit post or comment from a connected Reddit account.",
|
|
89
|
+
inputSchema: zod_1.z.object({
|
|
90
|
+
accountId: zod_1.z.string().describe("The Reddit account ID"),
|
|
91
|
+
targetId: zod_1.z.string().describe("The Reddit post or comment ID to upvote"),
|
|
92
|
+
}),
|
|
93
|
+
handler: async (args) => {
|
|
94
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/social/reddit/upvote`, { accountId: args.accountId, targetId: args.targetId });
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "zernio_reddit_submit_post",
|
|
99
|
+
description: "Submit a new post to a Reddit subreddit from a connected account.",
|
|
100
|
+
inputSchema: zod_1.z.object({
|
|
101
|
+
accountId: zod_1.z.string().describe("The Reddit account ID to post from"),
|
|
102
|
+
subreddit: zod_1.z.string().describe("The subreddit to post to (without r/)"),
|
|
103
|
+
title: zod_1.z.string().describe("The post title"),
|
|
104
|
+
content: zod_1.z.string().optional().describe("Text content for text posts"),
|
|
105
|
+
url: zod_1.z.string().optional().describe("URL for link posts"),
|
|
106
|
+
}),
|
|
107
|
+
handler: async (args) => {
|
|
108
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/social/reddit/submit`, {
|
|
109
|
+
accountId: args.accountId,
|
|
110
|
+
subreddit: args.subreddit,
|
|
111
|
+
title: args.title,
|
|
112
|
+
content: args.content,
|
|
113
|
+
url: args.url,
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
// Sequences
|
|
118
|
+
{
|
|
119
|
+
name: "zernio_list_sequences",
|
|
120
|
+
description: "List all message sequences (drip campaigns) for automated follow-up messaging.",
|
|
121
|
+
inputSchema: zod_1.z.object({
|
|
122
|
+
accountId: zod_1.z.string().optional().describe("Filter by account ID"),
|
|
123
|
+
}),
|
|
124
|
+
handler: async (args) => {
|
|
125
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/sequences", undefined, { accountId: args.accountId });
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "zernio_get_sequence",
|
|
130
|
+
description: "Get details for a specific message sequence including its steps.",
|
|
131
|
+
inputSchema: zod_1.z.object({
|
|
132
|
+
sequenceId: zod_1.z.string().describe("The sequence ID"),
|
|
133
|
+
}),
|
|
134
|
+
handler: async (args) => {
|
|
135
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/sequences/${args.sequenceId}`);
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "zernio_create_sequence",
|
|
140
|
+
description: "Create a new message sequence (drip campaign) with automated follow-up steps.",
|
|
141
|
+
inputSchema: zod_1.z.object({
|
|
142
|
+
name: zod_1.z.string().describe("Sequence name"),
|
|
143
|
+
accountId: zod_1.z.string().describe("The account ID to send from"),
|
|
144
|
+
steps: zod_1.z.array(zod_1.z.object({
|
|
145
|
+
message: zod_1.z.string().describe("Message content for this step"),
|
|
146
|
+
delayDays: zod_1.z.number().describe("Days to wait after previous step before sending"),
|
|
147
|
+
})).describe("The sequence steps in order"),
|
|
148
|
+
}),
|
|
149
|
+
handler: async (args) => {
|
|
150
|
+
return (0, client_js_1.zernioRequest)("POST", "/v1/sequences", { name: args.name, accountId: args.accountId, steps: args.steps });
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "zernio_enroll_contact_in_sequence",
|
|
155
|
+
description: "Enroll a contact into a message sequence to start receiving automated follow-ups.",
|
|
156
|
+
inputSchema: zod_1.z.object({
|
|
157
|
+
sequenceId: zod_1.z.string().describe("The sequence ID"),
|
|
158
|
+
contactId: zod_1.z.string().describe("The contact ID to enroll"),
|
|
159
|
+
}),
|
|
160
|
+
handler: async (args) => {
|
|
161
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/sequences/${args.sequenceId}/enroll`, { contactId: args.contactId });
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "zernio_unenroll_contact_from_sequence",
|
|
166
|
+
description: "Remove a contact from a message sequence to stop their automated follow-ups.",
|
|
167
|
+
inputSchema: zod_1.z.object({
|
|
168
|
+
sequenceId: zod_1.z.string().describe("The sequence ID"),
|
|
169
|
+
contactId: zod_1.z.string().describe("The contact ID to unenroll"),
|
|
170
|
+
}),
|
|
171
|
+
handler: async (args) => {
|
|
172
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/sequences/${args.sequenceId}/enroll/${args.contactId}`);
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
// Webhooks
|
|
176
|
+
{
|
|
177
|
+
name: "zernio_list_webhooks",
|
|
178
|
+
description: "List all configured webhooks for receiving Zernio event notifications.",
|
|
179
|
+
inputSchema: zod_1.z.object({}),
|
|
180
|
+
handler: async (_args) => {
|
|
181
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/webhooks");
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "zernio_create_webhook",
|
|
186
|
+
description: "Create a new webhook to receive real-time event notifications from Zernio.",
|
|
187
|
+
inputSchema: zod_1.z.object({
|
|
188
|
+
url: zod_1.z.string().describe("The HTTPS URL to send webhook events to"),
|
|
189
|
+
events: zod_1.z.array(zod_1.z.string()).describe("Event types to subscribe to (e.g. 'message.received', 'comment.created')"),
|
|
190
|
+
secret: zod_1.z.string().optional().describe("Secret key for webhook signature verification"),
|
|
191
|
+
}),
|
|
192
|
+
handler: async (args) => {
|
|
193
|
+
return (0, client_js_1.zernioRequest)("POST", "/v1/webhooks", { url: args.url, events: args.events, secret: args.secret });
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "zernio_delete_webhook",
|
|
198
|
+
description: "Delete a webhook subscription.",
|
|
199
|
+
inputSchema: zod_1.z.object({
|
|
200
|
+
webhookId: zod_1.z.string().describe("The webhook ID to delete"),
|
|
201
|
+
}),
|
|
202
|
+
handler: async (args) => {
|
|
203
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/webhooks/${args.webhookId}`);
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
// WhatsApp flows
|
|
207
|
+
{
|
|
208
|
+
name: "zernio_list_whatsapp_flows",
|
|
209
|
+
description: "List all WhatsApp flows for automating WhatsApp Business conversations.",
|
|
210
|
+
inputSchema: zod_1.z.object({
|
|
211
|
+
accountId: zod_1.z.string().optional().describe("Filter by WhatsApp account ID"),
|
|
212
|
+
}),
|
|
213
|
+
handler: async (args) => {
|
|
214
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/whatsapp/flows", undefined, { accountId: args.accountId });
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: "zernio_get_whatsapp_flow",
|
|
219
|
+
description: "Get details for a specific WhatsApp flow.",
|
|
220
|
+
inputSchema: zod_1.z.object({
|
|
221
|
+
flowId: zod_1.z.string().describe("The WhatsApp flow ID"),
|
|
222
|
+
}),
|
|
223
|
+
handler: async (args) => {
|
|
224
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/whatsapp/flows/${args.flowId}`);
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "zernio_trigger_whatsapp_flow",
|
|
229
|
+
description: "Trigger a WhatsApp flow for a specific contact.",
|
|
230
|
+
inputSchema: zod_1.z.object({
|
|
231
|
+
flowId: zod_1.z.string().describe("The WhatsApp flow ID"),
|
|
232
|
+
contactId: zod_1.z.string().describe("The contact ID to trigger the flow for"),
|
|
233
|
+
}),
|
|
234
|
+
handler: async (args) => {
|
|
235
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/whatsapp/flows/${args.flowId}/trigger`, { contactId: args.contactId });
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
// Post validation
|
|
239
|
+
{
|
|
240
|
+
name: "zernio_validate_post_content",
|
|
241
|
+
description: "Validate post content against platform rules before publishing (character limits, media requirements, etc.).",
|
|
242
|
+
inputSchema: zod_1.z.object({
|
|
243
|
+
content: zod_1.z.string().describe("The post content to validate"),
|
|
244
|
+
platform: zod_1.z.string().describe("The target platform: facebook, instagram, twitter, linkedin, etc."),
|
|
245
|
+
mediaIds: zod_1.z.array(zod_1.z.string()).optional().describe("Media IDs to include in validation"),
|
|
246
|
+
}),
|
|
247
|
+
handler: async (args) => {
|
|
248
|
+
return (0, client_js_1.zernioRequest)("POST", "/v1/posts/validate", {
|
|
249
|
+
content: args.content,
|
|
250
|
+
platform: args.platform,
|
|
251
|
+
mediaIds: args.mediaIds,
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
// Contact tags
|
|
256
|
+
{
|
|
257
|
+
name: "zernio_list_contact_tags",
|
|
258
|
+
description: "List all contact tags used to segment and organize contacts.",
|
|
259
|
+
inputSchema: zod_1.z.object({}),
|
|
260
|
+
handler: async (_args) => {
|
|
261
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/contacts/tags");
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "zernio_add_contact_tag",
|
|
266
|
+
description: "Add a tag to a contact for segmentation.",
|
|
267
|
+
inputSchema: zod_1.z.object({
|
|
268
|
+
contactId: zod_1.z.string().describe("The contact ID"),
|
|
269
|
+
tag: zod_1.z.string().describe("The tag to add"),
|
|
270
|
+
}),
|
|
271
|
+
handler: async (args) => {
|
|
272
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/contacts/${args.contactId}/tags`, { tag: args.tag });
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: "zernio_remove_contact_tag",
|
|
277
|
+
description: "Remove a tag from a contact.",
|
|
278
|
+
inputSchema: zod_1.z.object({
|
|
279
|
+
contactId: zod_1.z.string().describe("The contact ID"),
|
|
280
|
+
tag: zod_1.z.string().describe("The tag to remove"),
|
|
281
|
+
}),
|
|
282
|
+
handler: async (args) => {
|
|
283
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/contacts/${args.contactId}/tags/${args.tag}`);
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
];
|
|
287
|
+
//# sourceMappingURL=social.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/tools/social.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,WAAW,GAAG;IACzB,sBAAsB;IACtB;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;YACxE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;SACxD,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA4C,EAAE,EAAE;YAC9D,OAAO,IAAA,yBAAa,EAAC,MAAM,EAAE,qBAAqB,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAC5G,CAAC;KACF;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,WAA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|
+
accountId: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
accountId: string;
|
|
9
|
+
}, {
|
|
10
|
+
accountId: string;
|
|
11
|
+
}>;
|
|
12
|
+
handler: (args: {
|
|
13
|
+
accountId: string;
|
|
14
|
+
}) => Promise<unknown>;
|
|
15
|
+
} | {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
inputSchema: z.ZodObject<{
|
|
19
|
+
accountId: z.ZodString;
|
|
20
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
21
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22
|
+
website: z.ZodOptional<z.ZodString>;
|
|
23
|
+
category: z.ZodOptional<z.ZodString>;
|
|
24
|
+
email: z.ZodOptional<z.ZodString>;
|
|
25
|
+
address: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
accountId: string;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
email?: string | undefined;
|
|
30
|
+
displayName?: string | undefined;
|
|
31
|
+
website?: string | undefined;
|
|
32
|
+
category?: string | undefined;
|
|
33
|
+
address?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
accountId: string;
|
|
36
|
+
description?: string | undefined;
|
|
37
|
+
email?: string | undefined;
|
|
38
|
+
displayName?: string | undefined;
|
|
39
|
+
website?: string | undefined;
|
|
40
|
+
category?: string | undefined;
|
|
41
|
+
address?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
handler: (args: {
|
|
44
|
+
accountId: string;
|
|
45
|
+
displayName?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
website?: string;
|
|
48
|
+
category?: string;
|
|
49
|
+
email?: string;
|
|
50
|
+
address?: string;
|
|
51
|
+
}) => Promise<unknown>;
|
|
52
|
+
} | {
|
|
53
|
+
name: string;
|
|
54
|
+
description: string;
|
|
55
|
+
inputSchema: z.ZodObject<{
|
|
56
|
+
accountId: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
category: z.ZodString;
|
|
59
|
+
language: z.ZodString;
|
|
60
|
+
body: z.ZodString;
|
|
61
|
+
header: z.ZodOptional<z.ZodString>;
|
|
62
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
accountId: string;
|
|
65
|
+
name: string;
|
|
66
|
+
category: string;
|
|
67
|
+
language: string;
|
|
68
|
+
body: string;
|
|
69
|
+
header?: string | undefined;
|
|
70
|
+
footer?: string | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
accountId: string;
|
|
73
|
+
name: string;
|
|
74
|
+
category: string;
|
|
75
|
+
language: string;
|
|
76
|
+
body: string;
|
|
77
|
+
header?: string | undefined;
|
|
78
|
+
footer?: string | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
handler: (args: {
|
|
81
|
+
accountId: string;
|
|
82
|
+
name: string;
|
|
83
|
+
category: string;
|
|
84
|
+
language: string;
|
|
85
|
+
body: string;
|
|
86
|
+
header?: string;
|
|
87
|
+
footer?: string;
|
|
88
|
+
}) => Promise<unknown>;
|
|
89
|
+
} | {
|
|
90
|
+
name: string;
|
|
91
|
+
description: string;
|
|
92
|
+
inputSchema: z.ZodObject<{
|
|
93
|
+
accountId: z.ZodString;
|
|
94
|
+
countryCode: z.ZodString;
|
|
95
|
+
areaCode: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
accountId: string;
|
|
98
|
+
countryCode: string;
|
|
99
|
+
areaCode?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
accountId: string;
|
|
102
|
+
countryCode: string;
|
|
103
|
+
areaCode?: string | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
handler: (args: {
|
|
106
|
+
accountId: string;
|
|
107
|
+
countryCode: string;
|
|
108
|
+
areaCode?: string;
|
|
109
|
+
}) => Promise<unknown>;
|
|
110
|
+
} | {
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
inputSchema: z.ZodObject<{
|
|
114
|
+
accountId: z.ZodString;
|
|
115
|
+
phoneNumberId: z.ZodString;
|
|
116
|
+
method: z.ZodEnum<["sms", "voice"]>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
accountId: string;
|
|
119
|
+
phoneNumberId: string;
|
|
120
|
+
method: "sms" | "voice";
|
|
121
|
+
}, {
|
|
122
|
+
accountId: string;
|
|
123
|
+
phoneNumberId: string;
|
|
124
|
+
method: "sms" | "voice";
|
|
125
|
+
}>;
|
|
126
|
+
handler: (args: {
|
|
127
|
+
accountId: string;
|
|
128
|
+
phoneNumberId: string;
|
|
129
|
+
method: "sms" | "voice";
|
|
130
|
+
}) => Promise<unknown>;
|
|
131
|
+
} | {
|
|
132
|
+
name: string;
|
|
133
|
+
description: string;
|
|
134
|
+
inputSchema: z.ZodObject<{
|
|
135
|
+
accountId: z.ZodString;
|
|
136
|
+
phoneNumberId: z.ZodString;
|
|
137
|
+
code: z.ZodString;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
code: string;
|
|
140
|
+
accountId: string;
|
|
141
|
+
phoneNumberId: string;
|
|
142
|
+
}, {
|
|
143
|
+
code: string;
|
|
144
|
+
accountId: string;
|
|
145
|
+
phoneNumberId: string;
|
|
146
|
+
}>;
|
|
147
|
+
handler: (args: {
|
|
148
|
+
accountId: string;
|
|
149
|
+
phoneNumberId: string;
|
|
150
|
+
code: string;
|
|
151
|
+
}) => Promise<unknown>;
|
|
152
|
+
} | {
|
|
153
|
+
name: string;
|
|
154
|
+
description: string;
|
|
155
|
+
inputSchema: z.ZodObject<{
|
|
156
|
+
accountId: z.ZodString;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
categories: z.ZodArray<z.ZodString, "many">;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
accountId: string;
|
|
161
|
+
name: string;
|
|
162
|
+
categories: string[];
|
|
163
|
+
}, {
|
|
164
|
+
accountId: string;
|
|
165
|
+
name: string;
|
|
166
|
+
categories: string[];
|
|
167
|
+
}>;
|
|
168
|
+
handler: (args: {
|
|
169
|
+
accountId: string;
|
|
170
|
+
name: string;
|
|
171
|
+
categories: string[];
|
|
172
|
+
}) => Promise<unknown>;
|
|
173
|
+
} | {
|
|
174
|
+
name: string;
|
|
175
|
+
description: string;
|
|
176
|
+
inputSchema: z.ZodObject<{
|
|
177
|
+
flowId: z.ZodString;
|
|
178
|
+
accountId: z.ZodString;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
accountId: string;
|
|
181
|
+
flowId: string;
|
|
182
|
+
}, {
|
|
183
|
+
accountId: string;
|
|
184
|
+
flowId: string;
|
|
185
|
+
}>;
|
|
186
|
+
handler: (args: {
|
|
187
|
+
flowId: string;
|
|
188
|
+
accountId: string;
|
|
189
|
+
}) => Promise<unknown>;
|
|
190
|
+
} | {
|
|
191
|
+
name: string;
|
|
192
|
+
description: string;
|
|
193
|
+
inputSchema: z.ZodObject<{
|
|
194
|
+
flowId: z.ZodString;
|
|
195
|
+
accountId: z.ZodString;
|
|
196
|
+
flowJson: z.ZodString;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
accountId: string;
|
|
199
|
+
flowId: string;
|
|
200
|
+
flowJson: string;
|
|
201
|
+
}, {
|
|
202
|
+
accountId: string;
|
|
203
|
+
flowId: string;
|
|
204
|
+
flowJson: string;
|
|
205
|
+
}>;
|
|
206
|
+
handler: (args: {
|
|
207
|
+
flowId: string;
|
|
208
|
+
accountId: string;
|
|
209
|
+
flowJson: string;
|
|
210
|
+
}) => Promise<unknown>;
|
|
211
|
+
} | {
|
|
212
|
+
name: string;
|
|
213
|
+
description: string;
|
|
214
|
+
inputSchema: z.ZodObject<{
|
|
215
|
+
accountId: z.ZodString;
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
participants: z.ZodArray<z.ZodString, "many">;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
accountId: string;
|
|
220
|
+
name: string;
|
|
221
|
+
participants: string[];
|
|
222
|
+
}, {
|
|
223
|
+
accountId: string;
|
|
224
|
+
name: string;
|
|
225
|
+
participants: string[];
|
|
226
|
+
}>;
|
|
227
|
+
handler: (args: {
|
|
228
|
+
accountId: string;
|
|
229
|
+
name: string;
|
|
230
|
+
participants: string[];
|
|
231
|
+
}) => Promise<unknown>;
|
|
232
|
+
} | {
|
|
233
|
+
name: string;
|
|
234
|
+
description: string;
|
|
235
|
+
inputSchema: z.ZodObject<{
|
|
236
|
+
groupId: z.ZodString;
|
|
237
|
+
accountId: z.ZodString;
|
|
238
|
+
participants: z.ZodArray<z.ZodString, "many">;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
accountId: string;
|
|
241
|
+
groupId: string;
|
|
242
|
+
participants: string[];
|
|
243
|
+
}, {
|
|
244
|
+
accountId: string;
|
|
245
|
+
groupId: string;
|
|
246
|
+
participants: string[];
|
|
247
|
+
}>;
|
|
248
|
+
handler: (args: {
|
|
249
|
+
groupId: string;
|
|
250
|
+
accountId: string;
|
|
251
|
+
participants: string[];
|
|
252
|
+
}) => Promise<unknown>;
|
|
253
|
+
} | {
|
|
254
|
+
name: string;
|
|
255
|
+
description: string;
|
|
256
|
+
inputSchema: z.ZodObject<{
|
|
257
|
+
groupId: z.ZodString;
|
|
258
|
+
accountId: z.ZodString;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
accountId: string;
|
|
261
|
+
groupId: string;
|
|
262
|
+
}, {
|
|
263
|
+
accountId: string;
|
|
264
|
+
groupId: string;
|
|
265
|
+
}>;
|
|
266
|
+
handler: (args: {
|
|
267
|
+
groupId: string;
|
|
268
|
+
accountId: string;
|
|
269
|
+
}) => Promise<unknown>;
|
|
270
|
+
} | {
|
|
271
|
+
name: string;
|
|
272
|
+
description: string;
|
|
273
|
+
inputSchema: z.ZodObject<{
|
|
274
|
+
groupId: z.ZodString;
|
|
275
|
+
accountId: z.ZodString;
|
|
276
|
+
requestIds: z.ZodArray<z.ZodString, "many">;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
accountId: string;
|
|
279
|
+
groupId: string;
|
|
280
|
+
requestIds: string[];
|
|
281
|
+
}, {
|
|
282
|
+
accountId: string;
|
|
283
|
+
groupId: string;
|
|
284
|
+
requestIds: string[];
|
|
285
|
+
}>;
|
|
286
|
+
handler: (args: {
|
|
287
|
+
groupId: string;
|
|
288
|
+
accountId: string;
|
|
289
|
+
requestIds: string[];
|
|
290
|
+
}) => Promise<unknown>;
|
|
291
|
+
})[];
|
|
292
|
+
//# sourceMappingURL=whatsapp-business.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp-business.d.ts","sourceRoot":"","sources":["../../src/tools/whatsapp-business.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;oBAOR;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAgBrB;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkCxI;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;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