zernio-mcp 1.3.1 → 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 +7 -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/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/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 +38 -0
- package/dist/tools/posts.d.ts.map +1 -1
- package/dist/tools/posts.js +35 -6
- package/dist/tools/posts.js.map +1 -1
- package/dist/tools/profiles.d.ts +43 -0
- package/dist/tools/profiles.d.ts.map +1 -1
- package/dist/tools/profiles.js +49 -0
- package/dist/tools/profiles.js.map +1 -1
- package/dist/tools/social.d.ts.map +1 -1
- package/dist/tools/social.js +54 -3
- package/dist/tools/social.js.map +1 -1
- 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 -40
package/dist/index.js
CHANGED
|
@@ -15,11 +15,12 @@ const automations_js_1 = require("./tools/automations.js");
|
|
|
15
15
|
const posts_js_1 = require("./tools/posts.js");
|
|
16
16
|
const profiles_js_1 = require("./tools/profiles.js");
|
|
17
17
|
const social_js_1 = require("./tools/social.js");
|
|
18
|
+
const connect_js_1 = require("./tools/connect.js");
|
|
19
|
+
const whatsapp_business_js_1 = require("./tools/whatsapp-business.js");
|
|
18
20
|
const server = new mcp_js_1.McpServer({
|
|
19
21
|
name: "zernio-mcp",
|
|
20
|
-
version: "1.3.
|
|
22
|
+
version: "1.3.2",
|
|
21
23
|
});
|
|
22
|
-
// Combine all tool modules
|
|
23
24
|
const allTools = [
|
|
24
25
|
...accounts_js_1.accountTools,
|
|
25
26
|
...comments_js_1.commentTools,
|
|
@@ -33,22 +34,15 @@ const allTools = [
|
|
|
33
34
|
...posts_js_1.postTools,
|
|
34
35
|
...profiles_js_1.profileTools,
|
|
35
36
|
...social_js_1.socialTools,
|
|
37
|
+
...connect_js_1.connectTools,
|
|
38
|
+
...whatsapp_business_js_1.whatsappBusinessTools,
|
|
36
39
|
];
|
|
37
|
-
// Register every tool with the MCP server
|
|
38
40
|
for (const tool of allTools) {
|
|
39
|
-
server.tool(tool.name, tool.description, tool.inputSchema.shape,
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
|
-
async (args) => {
|
|
41
|
+
server.tool(tool.name, tool.description, tool.inputSchema.shape, async (args) => {
|
|
42
42
|
try {
|
|
43
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
43
|
const result = await tool.handler(args);
|
|
45
44
|
return {
|
|
46
|
-
content: [
|
|
47
|
-
{
|
|
48
|
-
type: "text",
|
|
49
|
-
text: JSON.stringify(result, null, 2),
|
|
50
|
-
},
|
|
51
|
-
],
|
|
45
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
52
46
|
};
|
|
53
47
|
}
|
|
54
48
|
catch (err) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,oEAAoE;AACpE,wEAAiF;AACjF,qDAAmD;AACnD,qDAAmD;AACnD,qDAAmD;AACnD,mDAAiD;AACjD,uDAAsD;AACtD,2CAA0C;AAC1C,qDAAmD;AACnD,yDAAuD;AACvD,2DAAyD;AACzD,+CAA6C;AAC7C,qDAAmD;AACnD,iDAAgD;
|
|
1
|
+
{"version":3,"file":"index.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,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACjE,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,UAAU,OAAO,EAAE,EAAE,CAAC;gBAC/D,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAC7C,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;IACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/tools/accounts.d.ts
CHANGED
|
@@ -11,9 +11,7 @@ export declare const accountTools: ({
|
|
|
11
11
|
}>;
|
|
12
12
|
handler: (args: {
|
|
13
13
|
platform?: string;
|
|
14
|
-
}) => Promise<
|
|
15
|
-
accounts: unknown[];
|
|
16
|
-
}>;
|
|
14
|
+
}) => Promise<unknown>;
|
|
17
15
|
} | {
|
|
18
16
|
name: string;
|
|
19
17
|
description: string;
|
|
@@ -27,6 +25,19 @@ export declare const accountTools: ({
|
|
|
27
25
|
handler: (args: {
|
|
28
26
|
accountId: string;
|
|
29
27
|
}) => Promise<unknown>;
|
|
28
|
+
} | {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
inputSchema: z.ZodObject<{
|
|
32
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
accountId?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
accountId?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
handler: (args: {
|
|
39
|
+
accountId?: string;
|
|
40
|
+
}) => Promise<unknown>;
|
|
30
41
|
} | {
|
|
31
42
|
name: string;
|
|
32
43
|
description: string;
|
|
@@ -48,5 +59,127 @@ export declare const accountTools: ({
|
|
|
48
59
|
dateFrom?: string;
|
|
49
60
|
dateTo?: string;
|
|
50
61
|
}) => Promise<unknown>;
|
|
62
|
+
} | {
|
|
63
|
+
name: string;
|
|
64
|
+
description: string;
|
|
65
|
+
inputSchema: z.ZodObject<{
|
|
66
|
+
accountId: z.ZodString;
|
|
67
|
+
subreddit: z.ZodString;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
accountId: string;
|
|
70
|
+
subreddit: string;
|
|
71
|
+
}, {
|
|
72
|
+
accountId: string;
|
|
73
|
+
subreddit: string;
|
|
74
|
+
}>;
|
|
75
|
+
handler: (args: {
|
|
76
|
+
accountId: string;
|
|
77
|
+
subreddit: string;
|
|
78
|
+
}) => Promise<unknown>;
|
|
79
|
+
} | {
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
inputSchema: z.ZodObject<{
|
|
83
|
+
accountId: z.ZodString;
|
|
84
|
+
menuItems: z.ZodArray<z.ZodObject<{
|
|
85
|
+
title: z.ZodString;
|
|
86
|
+
payload: z.ZodString;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
title: string;
|
|
89
|
+
payload: string;
|
|
90
|
+
}, {
|
|
91
|
+
title: string;
|
|
92
|
+
payload: string;
|
|
93
|
+
}>, "many">;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
accountId: string;
|
|
96
|
+
menuItems: {
|
|
97
|
+
title: string;
|
|
98
|
+
payload: string;
|
|
99
|
+
}[];
|
|
100
|
+
}, {
|
|
101
|
+
accountId: string;
|
|
102
|
+
menuItems: {
|
|
103
|
+
title: string;
|
|
104
|
+
payload: string;
|
|
105
|
+
}[];
|
|
106
|
+
}>;
|
|
107
|
+
handler: (args: {
|
|
108
|
+
accountId: string;
|
|
109
|
+
menuItems: Array<{
|
|
110
|
+
title: string;
|
|
111
|
+
payload: string;
|
|
112
|
+
}>;
|
|
113
|
+
}) => Promise<unknown>;
|
|
114
|
+
} | {
|
|
115
|
+
name: string;
|
|
116
|
+
description: string;
|
|
117
|
+
inputSchema: z.ZodObject<{
|
|
118
|
+
accountId: z.ZodString;
|
|
119
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
120
|
+
command: z.ZodString;
|
|
121
|
+
description: z.ZodString;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
command: string;
|
|
124
|
+
description: string;
|
|
125
|
+
}, {
|
|
126
|
+
command: string;
|
|
127
|
+
description: string;
|
|
128
|
+
}>, "many">;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
accountId: string;
|
|
131
|
+
commands: {
|
|
132
|
+
command: string;
|
|
133
|
+
description: string;
|
|
134
|
+
}[];
|
|
135
|
+
}, {
|
|
136
|
+
accountId: string;
|
|
137
|
+
commands: {
|
|
138
|
+
command: string;
|
|
139
|
+
description: string;
|
|
140
|
+
}[];
|
|
141
|
+
}>;
|
|
142
|
+
handler: (args: {
|
|
143
|
+
accountId: string;
|
|
144
|
+
commands: Array<{
|
|
145
|
+
command: string;
|
|
146
|
+
description: string;
|
|
147
|
+
}>;
|
|
148
|
+
}) => Promise<unknown>;
|
|
149
|
+
} | {
|
|
150
|
+
name: string;
|
|
151
|
+
description: string;
|
|
152
|
+
inputSchema: z.ZodObject<{
|
|
153
|
+
accountId: z.ZodString;
|
|
154
|
+
iceBreakers: z.ZodArray<z.ZodObject<{
|
|
155
|
+
question: z.ZodString;
|
|
156
|
+
payload: z.ZodString;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
payload: string;
|
|
159
|
+
question: string;
|
|
160
|
+
}, {
|
|
161
|
+
payload: string;
|
|
162
|
+
question: string;
|
|
163
|
+
}>, "many">;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
accountId: string;
|
|
166
|
+
iceBreakers: {
|
|
167
|
+
payload: string;
|
|
168
|
+
question: string;
|
|
169
|
+
}[];
|
|
170
|
+
}, {
|
|
171
|
+
accountId: string;
|
|
172
|
+
iceBreakers: {
|
|
173
|
+
payload: string;
|
|
174
|
+
question: string;
|
|
175
|
+
}[];
|
|
176
|
+
}>;
|
|
177
|
+
handler: (args: {
|
|
178
|
+
accountId: string;
|
|
179
|
+
iceBreakers: Array<{
|
|
180
|
+
question: string;
|
|
181
|
+
payload: string;
|
|
182
|
+
}>;
|
|
183
|
+
}) => Promise<unknown>;
|
|
51
184
|
})[];
|
|
52
185
|
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/tools/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/tools/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;;oBAOC;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;oBAUrB;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;oBAUrB;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;oBAYtB;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBA+BzD;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAgExC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkC3E;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,KAAK,CAAC;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkChF;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,KAAK,CAAC;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE;IAczG,CAAC"}
|
package/dist/tools/accounts.js
CHANGED
|
@@ -8,14 +8,10 @@ exports.accountTools = [
|
|
|
8
8
|
name: "zernio_list_accounts",
|
|
9
9
|
description: "List all connected social media accounts in Zernio with their platform, username, follower count, and account ID.",
|
|
10
10
|
inputSchema: zod_1.z.object({
|
|
11
|
-
platform: zod_1.z
|
|
12
|
-
.string()
|
|
13
|
-
.optional()
|
|
14
|
-
.describe("Filter by platform: facebook, instagram, tiktok, twitter, youtube, googlebusiness, linkedin, etc."),
|
|
11
|
+
platform: zod_1.z.string().optional().describe("Filter by platform: facebook, instagram, tiktok, twitter, youtube, googlebusiness, linkedin, etc."),
|
|
15
12
|
}),
|
|
16
13
|
handler: async (args) => {
|
|
17
|
-
|
|
18
|
-
return data;
|
|
14
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/accounts", undefined, { platform: args.platform });
|
|
19
15
|
},
|
|
20
16
|
},
|
|
21
17
|
{
|
|
@@ -25,24 +21,202 @@ exports.accountTools = [
|
|
|
25
21
|
accountId: zod_1.z.string().describe("The Zernio account ID"),
|
|
26
22
|
}),
|
|
27
23
|
handler: async (args) => {
|
|
28
|
-
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/follower-stats`, undefined, {
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/follower-stats`, undefined, { accountIds: args.accountId });
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "zernio_get_account_health",
|
|
29
|
+
description: "Check the health/connection status of a social account -- whether its auth token is still valid and connected.",
|
|
30
|
+
inputSchema: zod_1.z.object({
|
|
31
|
+
accountId: zod_1.z.string().optional().describe("Specific account ID to check (omit to check all accounts)"),
|
|
32
|
+
}),
|
|
33
|
+
handler: async (args) => {
|
|
34
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/accounts/health", undefined, { accountId: args.accountId });
|
|
31
35
|
},
|
|
32
36
|
},
|
|
33
37
|
{
|
|
34
38
|
name: "zernio_get_linkedin_mentions",
|
|
35
|
-
description: "Get LinkedIn mentions
|
|
39
|
+
description: "Get LinkedIn mentions -- posts and comments where your LinkedIn page was tagged or mentioned.",
|
|
36
40
|
inputSchema: zod_1.z.object({
|
|
37
41
|
accountId: zod_1.z.string().describe("The Zernio LinkedIn account ID"),
|
|
38
42
|
dateFrom: zod_1.z.string().optional().describe("Start date (ISO format)"),
|
|
39
43
|
dateTo: zod_1.z.string().optional().describe("End date (ISO format)"),
|
|
40
44
|
}),
|
|
41
45
|
handler: async (args) => {
|
|
42
|
-
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/linkedin-mentions`, undefined, {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/linkedin-mentions`, undefined, { dateFrom: args.dateFrom, dateTo: args.dateTo });
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "zernio_get_facebook_page",
|
|
51
|
+
description: "Get the Facebook Page details linked to a connected Facebook account.",
|
|
52
|
+
inputSchema: zod_1.z.object({
|
|
53
|
+
accountId: zod_1.z.string().describe("The Zernio Facebook account ID"),
|
|
54
|
+
}),
|
|
55
|
+
handler: async (args) => {
|
|
56
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/facebook-page`);
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "zernio_get_linkedin_organizations",
|
|
61
|
+
description: "Get LinkedIn organization pages linked to a connected LinkedIn account (for posting as a company page).",
|
|
62
|
+
inputSchema: zod_1.z.object({
|
|
63
|
+
accountId: zod_1.z.string().describe("The Zernio LinkedIn account ID"),
|
|
64
|
+
}),
|
|
65
|
+
handler: async (args) => {
|
|
66
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/linkedin-organizations`);
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "zernio_get_reddit_flairs",
|
|
71
|
+
description: "Get available post flairs for a subreddit -- required for posting to subreddits that mandate flairs.",
|
|
72
|
+
inputSchema: zod_1.z.object({
|
|
73
|
+
accountId: zod_1.z.string().describe("The Zernio Reddit account ID"),
|
|
74
|
+
subreddit: zod_1.z.string().describe("The subreddit name (without r/)"),
|
|
75
|
+
}),
|
|
76
|
+
handler: async (args) => {
|
|
77
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/reddit-flairs`, undefined, { subreddit: args.subreddit });
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "zernio_get_gmb_locations",
|
|
82
|
+
description: "Get Google My Business locations linked to a connected Google Business account.",
|
|
83
|
+
inputSchema: zod_1.z.object({
|
|
84
|
+
accountId: zod_1.z.string().describe("The Zernio Google Business account ID"),
|
|
85
|
+
}),
|
|
86
|
+
handler: async (args) => {
|
|
87
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/gmb-locations`);
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: "zernio_get_pinterest_boards",
|
|
92
|
+
description: "Get Pinterest boards for a connected Pinterest account -- needed for pinning posts to specific boards.",
|
|
93
|
+
inputSchema: zod_1.z.object({
|
|
94
|
+
accountId: zod_1.z.string().describe("The Zernio Pinterest account ID"),
|
|
95
|
+
}),
|
|
96
|
+
handler: async (args) => {
|
|
97
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/pinterest-boards`);
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "zernio_get_youtube_playlists",
|
|
102
|
+
description: "Get YouTube playlists for a connected YouTube account -- needed for uploading videos to specific playlists.",
|
|
103
|
+
inputSchema: zod_1.z.object({
|
|
104
|
+
accountId: zod_1.z.string().describe("The Zernio YouTube account ID"),
|
|
105
|
+
}),
|
|
106
|
+
handler: async (args) => {
|
|
107
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/youtube-playlists`);
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "zernio_get_tiktok_creator_info",
|
|
112
|
+
description: "Get TikTok creator info for a connected TikTok account -- includes privacy settings and post limits.",
|
|
113
|
+
inputSchema: zod_1.z.object({
|
|
114
|
+
accountId: zod_1.z.string().describe("The Zernio TikTok account ID"),
|
|
115
|
+
}),
|
|
116
|
+
handler: async (args) => {
|
|
117
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/tiktok-creator-info`);
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "zernio_get_messenger_menu",
|
|
122
|
+
description: "Get the Facebook Messenger persistent menu configured for a connected Facebook account.",
|
|
123
|
+
inputSchema: zod_1.z.object({
|
|
124
|
+
accountId: zod_1.z.string().describe("The Zernio Facebook account ID"),
|
|
125
|
+
}),
|
|
126
|
+
handler: async (args) => {
|
|
127
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/messenger-menu`);
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: "zernio_set_messenger_menu",
|
|
132
|
+
description: "Set or update the Facebook Messenger persistent menu -- the quick-action buttons shown in your Messenger chat.",
|
|
133
|
+
inputSchema: zod_1.z.object({
|
|
134
|
+
accountId: zod_1.z.string().describe("The Zernio Facebook account ID"),
|
|
135
|
+
menuItems: zod_1.z.array(zod_1.z.object({
|
|
136
|
+
title: zod_1.z.string().describe("Menu item label"),
|
|
137
|
+
payload: zod_1.z.string().describe("Postback payload sent when user taps this item"),
|
|
138
|
+
})).describe("Menu items to show in the Messenger persistent menu"),
|
|
139
|
+
}),
|
|
140
|
+
handler: async (args) => {
|
|
141
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/accounts/${args.accountId}/messenger-menu`, { menuItems: args.menuItems });
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: "zernio_delete_messenger_menu",
|
|
146
|
+
description: "Remove the Facebook Messenger persistent menu from a connected Facebook account.",
|
|
147
|
+
inputSchema: zod_1.z.object({
|
|
148
|
+
accountId: zod_1.z.string().describe("The Zernio Facebook account ID"),
|
|
149
|
+
}),
|
|
150
|
+
handler: async (args) => {
|
|
151
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/accounts/${args.accountId}/messenger-menu`);
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: "zernio_get_telegram_commands",
|
|
156
|
+
description: "Get the bot commands configured for a connected Telegram bot account.",
|
|
157
|
+
inputSchema: zod_1.z.object({
|
|
158
|
+
accountId: zod_1.z.string().describe("The Zernio Telegram account ID"),
|
|
159
|
+
}),
|
|
160
|
+
handler: async (args) => {
|
|
161
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/telegram-commands`);
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "zernio_set_telegram_commands",
|
|
166
|
+
description: "Set bot commands for a connected Telegram bot (the /command list shown to users).",
|
|
167
|
+
inputSchema: zod_1.z.object({
|
|
168
|
+
accountId: zod_1.z.string().describe("The Zernio Telegram account ID"),
|
|
169
|
+
commands: zod_1.z.array(zod_1.z.object({
|
|
170
|
+
command: zod_1.z.string().describe("Command without slash (e.g. 'start', 'help')"),
|
|
171
|
+
description: zod_1.z.string().describe("Short description shown to users"),
|
|
172
|
+
})).describe("List of bot commands to register"),
|
|
173
|
+
}),
|
|
174
|
+
handler: async (args) => {
|
|
175
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/accounts/${args.accountId}/telegram-commands`, { commands: args.commands });
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "zernio_delete_telegram_commands",
|
|
180
|
+
description: "Remove all bot commands from a connected Telegram bot account.",
|
|
181
|
+
inputSchema: zod_1.z.object({
|
|
182
|
+
accountId: zod_1.z.string().describe("The Zernio Telegram account ID"),
|
|
183
|
+
}),
|
|
184
|
+
handler: async (args) => {
|
|
185
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/accounts/${args.accountId}/telegram-commands`);
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "zernio_get_instagram_ice_breakers",
|
|
190
|
+
description: "Get the Instagram DM ice breaker questions configured for a connected Instagram account.",
|
|
191
|
+
inputSchema: zod_1.z.object({
|
|
192
|
+
accountId: zod_1.z.string().describe("The Zernio Instagram account ID"),
|
|
193
|
+
}),
|
|
194
|
+
handler: async (args) => {
|
|
195
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/accounts/${args.accountId}/instagram-ice-breakers`);
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "zernio_set_instagram_ice_breakers",
|
|
200
|
+
description: "Set Instagram DM ice breaker questions -- suggested questions shown to users who start a new DM conversation.",
|
|
201
|
+
inputSchema: zod_1.z.object({
|
|
202
|
+
accountId: zod_1.z.string().describe("The Zernio Instagram account ID"),
|
|
203
|
+
iceBreakers: zod_1.z.array(zod_1.z.object({
|
|
204
|
+
question: zod_1.z.string().describe("The ice breaker question text"),
|
|
205
|
+
payload: zod_1.z.string().describe("Postback payload when user taps this question"),
|
|
206
|
+
})).describe("Ice breaker questions (max 4)"),
|
|
207
|
+
}),
|
|
208
|
+
handler: async (args) => {
|
|
209
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/accounts/${args.accountId}/instagram-ice-breakers`, { iceBreakers: args.iceBreakers });
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "zernio_delete_instagram_ice_breakers",
|
|
214
|
+
description: "Remove all Instagram DM ice breaker questions from a connected Instagram account.",
|
|
215
|
+
inputSchema: zod_1.z.object({
|
|
216
|
+
accountId: zod_1.z.string().describe("The Zernio Instagram account ID"),
|
|
217
|
+
}),
|
|
218
|
+
handler: async (args) => {
|
|
219
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/accounts/${args.accountId}/instagram-ice-breakers`);
|
|
46
220
|
},
|
|
47
221
|
},
|
|
48
222
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/tools/accounts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,YAAY,GAAG;IAC1B;QACE,IAAI,EAAE,sBAAsB;QAC5B,WAAW,
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/tools/accounts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,YAAY,GAAG;IAC1B;QACE,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,mHAAmH;QAChI,WAAW,E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AC5H,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;YACjE,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC;gBAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;gBAC9D,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;aAC9E,CAAC,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;SAC9C,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAAsF,EAAE,EAAE;YACxG,OAAO,IAAA,yBAAa,EAAC,MAAM,EAAE,gBAAgB,IAAI,CAAC,SAAS,yBAAyB,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAC3H,CAAC;KACF;IACD;QACE,IAAI,EAAE,sCAAsC;QAC5C,WAAW,EAAE,mFAAmF;QAChG,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;SAClE,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA2B,EAAE,EAAE;YAC7C,OAAO,IAAA,yBAAa,EAAC,QAAQ,EAAE,gBAAgB,IAAI,CAAC,SAAS,yBAAyB,CAAC,CAAC;QAC1F,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const connectTools: ({
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: z.ZodObject<{
|
|
6
|
+
platform: z.ZodString;
|
|
7
|
+
profileId: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
platform: string;
|
|
10
|
+
profileId: string;
|
|
11
|
+
}, {
|
|
12
|
+
platform: string;
|
|
13
|
+
profileId: string;
|
|
14
|
+
}>;
|
|
15
|
+
handler: (args: {
|
|
16
|
+
platform: string;
|
|
17
|
+
profileId: string;
|
|
18
|
+
}) => Promise<unknown>;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
inputSchema: z.ZodObject<{
|
|
23
|
+
profileId: z.ZodString;
|
|
24
|
+
username: z.ZodString;
|
|
25
|
+
appPassword: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
profileId: string;
|
|
28
|
+
username: string;
|
|
29
|
+
appPassword: string;
|
|
30
|
+
}, {
|
|
31
|
+
profileId: string;
|
|
32
|
+
username: string;
|
|
33
|
+
appPassword: string;
|
|
34
|
+
}>;
|
|
35
|
+
handler: (args: {
|
|
36
|
+
profileId: string;
|
|
37
|
+
username: string;
|
|
38
|
+
appPassword: string;
|
|
39
|
+
}) => Promise<unknown>;
|
|
40
|
+
} | {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
inputSchema: z.ZodObject<{
|
|
44
|
+
profileId: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
profileId: string;
|
|
47
|
+
}, {
|
|
48
|
+
profileId: string;
|
|
49
|
+
}>;
|
|
50
|
+
handler: (args: {
|
|
51
|
+
profileId: string;
|
|
52
|
+
}) => Promise<unknown>;
|
|
53
|
+
} | {
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
inputSchema: z.ZodObject<{
|
|
57
|
+
profileId: z.ZodString;
|
|
58
|
+
code: z.ZodString;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
code: string;
|
|
61
|
+
profileId: string;
|
|
62
|
+
}, {
|
|
63
|
+
code: string;
|
|
64
|
+
profileId: string;
|
|
65
|
+
}>;
|
|
66
|
+
handler: (args: {
|
|
67
|
+
profileId: string;
|
|
68
|
+
code: string;
|
|
69
|
+
}) => Promise<unknown>;
|
|
70
|
+
} | {
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
inputSchema: z.ZodObject<{
|
|
74
|
+
profileId: z.ZodString;
|
|
75
|
+
accessToken: z.ZodString;
|
|
76
|
+
businessAccountId: z.ZodString;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
profileId: string;
|
|
79
|
+
accessToken: string;
|
|
80
|
+
businessAccountId: string;
|
|
81
|
+
}, {
|
|
82
|
+
profileId: string;
|
|
83
|
+
accessToken: string;
|
|
84
|
+
businessAccountId: string;
|
|
85
|
+
}>;
|
|
86
|
+
handler: (args: {
|
|
87
|
+
profileId: string;
|
|
88
|
+
accessToken: string;
|
|
89
|
+
businessAccountId: string;
|
|
90
|
+
}) => Promise<unknown>;
|
|
91
|
+
} | {
|
|
92
|
+
name: string;
|
|
93
|
+
description: string;
|
|
94
|
+
inputSchema: z.ZodObject<{
|
|
95
|
+
profileId: z.ZodString;
|
|
96
|
+
pageId: z.ZodString;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
profileId: string;
|
|
99
|
+
pageId: string;
|
|
100
|
+
}, {
|
|
101
|
+
profileId: string;
|
|
102
|
+
pageId: string;
|
|
103
|
+
}>;
|
|
104
|
+
handler: (args: {
|
|
105
|
+
profileId: string;
|
|
106
|
+
pageId: string;
|
|
107
|
+
}) => Promise<unknown>;
|
|
108
|
+
} | {
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
inputSchema: z.ZodObject<{
|
|
112
|
+
profileId: z.ZodString;
|
|
113
|
+
snapchatProfileId: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
profileId: string;
|
|
116
|
+
snapchatProfileId: string;
|
|
117
|
+
}, {
|
|
118
|
+
profileId: string;
|
|
119
|
+
snapchatProfileId: string;
|
|
120
|
+
}>;
|
|
121
|
+
handler: (args: {
|
|
122
|
+
profileId: string;
|
|
123
|
+
snapchatProfileId: string;
|
|
124
|
+
}) => Promise<unknown>;
|
|
125
|
+
})[];
|
|
126
|
+
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/tools/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;oBAQC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;oBAYvC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;oBAc5D;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBAWrB;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;oBAsBnC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBAyBrE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBAwBrC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE;IAOzE,CAAC"}
|