zernio-mcp 1.2.0 → 1.3.1
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 +13 -1
- package/dist/index.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/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/posts.d.ts +210 -0
- package/dist/tools/posts.d.ts.map +1 -0
- package/dist/tools/posts.js +195 -0
- package/dist/tools/posts.js.map +1 -0
- package/dist/tools/profiles.d.ts +127 -0
- package/dist/tools/profiles.d.ts.map +1 -0
- package/dist/tools/profiles.js +109 -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 +236 -0
- package/dist/tools/social.js.map +1 -0
- package/package.json +38 -46
package/dist/index.js
CHANGED
|
@@ -9,9 +9,15 @@ const messages_js_1 = require("./tools/messages.js");
|
|
|
9
9
|
const reviews_js_1 = require("./tools/reviews.js");
|
|
10
10
|
const analytics_js_1 = require("./tools/analytics.js");
|
|
11
11
|
const ads_js_1 = require("./tools/ads.js");
|
|
12
|
+
const contacts_js_1 = require("./tools/contacts.js");
|
|
13
|
+
const broadcasts_js_1 = require("./tools/broadcasts.js");
|
|
14
|
+
const automations_js_1 = require("./tools/automations.js");
|
|
15
|
+
const posts_js_1 = require("./tools/posts.js");
|
|
16
|
+
const profiles_js_1 = require("./tools/profiles.js");
|
|
17
|
+
const social_js_1 = require("./tools/social.js");
|
|
12
18
|
const server = new mcp_js_1.McpServer({
|
|
13
19
|
name: "zernio-mcp",
|
|
14
|
-
version: "1.
|
|
20
|
+
version: "1.3.0",
|
|
15
21
|
});
|
|
16
22
|
// Combine all tool modules
|
|
17
23
|
const allTools = [
|
|
@@ -21,6 +27,12 @@ const allTools = [
|
|
|
21
27
|
...reviews_js_1.reviewTools,
|
|
22
28
|
...analytics_js_1.analyticsTools,
|
|
23
29
|
...ads_js_1.adsTools,
|
|
30
|
+
...contacts_js_1.contactTools,
|
|
31
|
+
...broadcasts_js_1.broadcastTools,
|
|
32
|
+
...automations_js_1.automationTools,
|
|
33
|
+
...posts_js_1.postTools,
|
|
34
|
+
...profiles_js_1.profileTools,
|
|
35
|
+
...social_js_1.socialTools,
|
|
24
36
|
];
|
|
25
37
|
// Register every tool with the MCP server
|
|
26
38
|
for (const tool of allTools) {
|
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;
|
|
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;AAEhD,MAAM,MAAM,GAAG,IAAI,kBAAS,CAAC;IAC3B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,2BAA2B;AAC3B,MAAM,QAAQ,GAAG;IACf,GAAG,0BAAY;IACf,GAAG,0BAAY;IACf,GAAG,0BA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,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"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const automationTools: ({
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: z.ZodObject<{
|
|
6
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
status: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status?: string | undefined;
|
|
10
|
+
accountId?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
status?: string | undefined;
|
|
13
|
+
accountId?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
handler: (args: {
|
|
16
|
+
accountId?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
}) => Promise<unknown>;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
inputSchema: z.ZodObject<{
|
|
23
|
+
automationId: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
automationId: string;
|
|
26
|
+
}, {
|
|
27
|
+
automationId: string;
|
|
28
|
+
}>;
|
|
29
|
+
handler: (args: {
|
|
30
|
+
automationId: string;
|
|
31
|
+
}) => Promise<unknown>;
|
|
32
|
+
} | {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
inputSchema: z.ZodObject<{
|
|
36
|
+
accountId: z.ZodString;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
triggerKeywords: z.ZodArray<z.ZodString, "many">;
|
|
39
|
+
replyMessage: z.ZodString;
|
|
40
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
accountId: string;
|
|
43
|
+
name: string;
|
|
44
|
+
triggerKeywords: string[];
|
|
45
|
+
replyMessage: string;
|
|
46
|
+
isActive?: boolean | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
accountId: string;
|
|
49
|
+
name: string;
|
|
50
|
+
triggerKeywords: string[];
|
|
51
|
+
replyMessage: string;
|
|
52
|
+
isActive?: boolean | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
handler: (args: {
|
|
55
|
+
accountId: string;
|
|
56
|
+
name: string;
|
|
57
|
+
triggerKeywords: string[];
|
|
58
|
+
replyMessage: string;
|
|
59
|
+
isActive?: boolean;
|
|
60
|
+
}) => Promise<unknown>;
|
|
61
|
+
} | {
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
inputSchema: z.ZodObject<{
|
|
65
|
+
automationId: z.ZodString;
|
|
66
|
+
name: z.ZodOptional<z.ZodString>;
|
|
67
|
+
triggerKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
68
|
+
replyMessage: z.ZodOptional<z.ZodString>;
|
|
69
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
automationId: string;
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
triggerKeywords?: string[] | undefined;
|
|
74
|
+
replyMessage?: string | undefined;
|
|
75
|
+
isActive?: boolean | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
automationId: string;
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
triggerKeywords?: string[] | undefined;
|
|
80
|
+
replyMessage?: string | undefined;
|
|
81
|
+
isActive?: boolean | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
handler: (args: {
|
|
84
|
+
automationId: string;
|
|
85
|
+
name?: string;
|
|
86
|
+
triggerKeywords?: string[];
|
|
87
|
+
replyMessage?: string;
|
|
88
|
+
isActive?: boolean;
|
|
89
|
+
}) => Promise<unknown>;
|
|
90
|
+
} | {
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
93
|
+
inputSchema: z.ZodObject<{
|
|
94
|
+
automationId: z.ZodString;
|
|
95
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
automationId: string;
|
|
98
|
+
limit?: number | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
automationId: string;
|
|
101
|
+
limit?: number | undefined;
|
|
102
|
+
}>;
|
|
103
|
+
handler: (args: {
|
|
104
|
+
automationId: string;
|
|
105
|
+
limit?: number;
|
|
106
|
+
}) => Promise<unknown>;
|
|
107
|
+
})[];
|
|
108
|
+
//# sourceMappingURL=automations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/tools/automations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;oBAQF;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;oBAUvC;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;oBAcxB;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;oBAoBxG;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;oBA0B9G;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAIjE,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.automationTools = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_js_1 = require("../client.js");
|
|
6
|
+
exports.automationTools = [
|
|
7
|
+
{
|
|
8
|
+
name: "zernio_list_automations",
|
|
9
|
+
description: "List all comment automations (auto-reply rules for comments).",
|
|
10
|
+
inputSchema: zod_1.z.object({
|
|
11
|
+
accountId: zod_1.z.string().optional().describe("Filter by account ID"),
|
|
12
|
+
status: zod_1.z.string().optional().describe("Filter by status: active, inactive"),
|
|
13
|
+
}),
|
|
14
|
+
handler: async (args) => {
|
|
15
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/automations", undefined, { accountId: args.accountId, status: args.status });
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "zernio_get_automation",
|
|
20
|
+
description: "Get details for a specific comment automation rule.",
|
|
21
|
+
inputSchema: zod_1.z.object({
|
|
22
|
+
automationId: zod_1.z.string().describe("The automation ID"),
|
|
23
|
+
}),
|
|
24
|
+
handler: async (args) => {
|
|
25
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/automations/${args.automationId}`);
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "zernio_create_automation",
|
|
30
|
+
description: "Create a new comment automation rule to auto-reply to comments matching certain keywords.",
|
|
31
|
+
inputSchema: zod_1.z.object({
|
|
32
|
+
accountId: zod_1.z.string().describe("The account ID to create the automation for"),
|
|
33
|
+
name: zod_1.z.string().describe("Automation rule name"),
|
|
34
|
+
triggerKeywords: zod_1.z.array(zod_1.z.string()).describe("Keywords that trigger this automation"),
|
|
35
|
+
replyMessage: zod_1.z.string().describe("Message to reply with when triggered"),
|
|
36
|
+
isActive: zod_1.z.boolean().optional().describe("Whether the automation is active (default true)"),
|
|
37
|
+
}),
|
|
38
|
+
handler: async (args) => {
|
|
39
|
+
return (0, client_js_1.zernioRequest)("POST", "/v1/automations", {
|
|
40
|
+
accountId: args.accountId,
|
|
41
|
+
name: args.name,
|
|
42
|
+
triggerKeywords: args.triggerKeywords,
|
|
43
|
+
replyMessage: args.replyMessage,
|
|
44
|
+
isActive: args.isActive,
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "zernio_update_automation",
|
|
50
|
+
description: "Update an existing comment automation rule.",
|
|
51
|
+
inputSchema: zod_1.z.object({
|
|
52
|
+
automationId: zod_1.z.string().describe("The automation ID to update"),
|
|
53
|
+
name: zod_1.z.string().optional().describe("Updated name"),
|
|
54
|
+
triggerKeywords: zod_1.z.array(zod_1.z.string()).optional().describe("Updated trigger keywords"),
|
|
55
|
+
replyMessage: zod_1.z.string().optional().describe("Updated reply message"),
|
|
56
|
+
isActive: zod_1.z.boolean().optional().describe("Enable or disable the automation"),
|
|
57
|
+
}),
|
|
58
|
+
handler: async (args) => {
|
|
59
|
+
return (0, client_js_1.zernioRequest)("PUT", `/v1/automations/${args.automationId}`, {
|
|
60
|
+
name: args.name,
|
|
61
|
+
triggerKeywords: args.triggerKeywords,
|
|
62
|
+
replyMessage: args.replyMessage,
|
|
63
|
+
isActive: args.isActive,
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "zernio_delete_automation",
|
|
69
|
+
description: "Delete a comment automation rule.",
|
|
70
|
+
inputSchema: zod_1.z.object({
|
|
71
|
+
automationId: zod_1.z.string().describe("The automation ID to delete"),
|
|
72
|
+
}),
|
|
73
|
+
handler: async (args) => {
|
|
74
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/automations/${args.automationId}`);
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "zernio_get_automation_logs",
|
|
79
|
+
description: "Get execution logs for a specific automation to see when and how it triggered.",
|
|
80
|
+
inputSchema: zod_1.z.object({
|
|
81
|
+
automationId: zod_1.z.string().describe("The automation ID"),
|
|
82
|
+
limit: zod_1.z.number().optional().describe("Max log entries to return"),
|
|
83
|
+
}),
|
|
84
|
+
handler: async (args) => {
|
|
85
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/automations/${args.automationId}/logs`, undefined, { limit: args.limit });
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
//# sourceMappingURL=automations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/tools/automations.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,eAAe,GAAG;IAC7B;QACE,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,+DAA+D;QAC5E,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;YACjE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;SAC7E,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA6C,EAAE,EAAE;YAC/D,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAChH,CAAC;KACF;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EA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EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YACtD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;SACnE,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA8C,EAAE,EAAE;YAChE,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,mBAAmB,IAAI,CAAC,YAAY,OAAO,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7G,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const broadcastTools: ({
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: z.ZodObject<{
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
status: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status?: string | undefined;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
status?: string | undefined;
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
handler: (args: {
|
|
16
|
+
limit?: number;
|
|
17
|
+
status?: string;
|
|
18
|
+
}) => Promise<unknown>;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
inputSchema: z.ZodObject<{
|
|
23
|
+
broadcastId: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
broadcastId: string;
|
|
26
|
+
}, {
|
|
27
|
+
broadcastId: string;
|
|
28
|
+
}>;
|
|
29
|
+
handler: (args: {
|
|
30
|
+
broadcastId: string;
|
|
31
|
+
}) => Promise<unknown>;
|
|
32
|
+
} | {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
inputSchema: z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
message: z.ZodString;
|
|
38
|
+
accountId: z.ZodString;
|
|
39
|
+
audienceType: z.ZodOptional<z.ZodString>;
|
|
40
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
message: string;
|
|
43
|
+
accountId: string;
|
|
44
|
+
name: string;
|
|
45
|
+
audienceType?: string | undefined;
|
|
46
|
+
tag?: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
message: string;
|
|
49
|
+
accountId: string;
|
|
50
|
+
name: string;
|
|
51
|
+
audienceType?: string | undefined;
|
|
52
|
+
tag?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
handler: (args: {
|
|
55
|
+
name: string;
|
|
56
|
+
message: string;
|
|
57
|
+
accountId: string;
|
|
58
|
+
audienceType?: string;
|
|
59
|
+
tag?: string;
|
|
60
|
+
}) => Promise<unknown>;
|
|
61
|
+
} | {
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
inputSchema: z.ZodObject<{
|
|
65
|
+
broadcastId: z.ZodString;
|
|
66
|
+
scheduledAt: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
broadcastId: string;
|
|
69
|
+
scheduledAt: string;
|
|
70
|
+
}, {
|
|
71
|
+
broadcastId: string;
|
|
72
|
+
scheduledAt: string;
|
|
73
|
+
}>;
|
|
74
|
+
handler: (args: {
|
|
75
|
+
broadcastId: string;
|
|
76
|
+
scheduledAt: string;
|
|
77
|
+
}) => Promise<unknown>;
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
inputSchema: z.ZodObject<{
|
|
82
|
+
broadcastId: z.ZodString;
|
|
83
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
broadcastId: string;
|
|
86
|
+
limit?: number | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
broadcastId: string;
|
|
89
|
+
limit?: number | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
handler: (args: {
|
|
92
|
+
broadcastId: string;
|
|
93
|
+
limit?: number;
|
|
94
|
+
}) => Promise<unknown>;
|
|
95
|
+
})[];
|
|
96
|
+
//# sourceMappingURL=broadcasts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcasts.d.ts","sourceRoot":"","sources":["../../src/tools/broadcasts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;oBAQD;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;oBAUnC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;oBAcvB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBAiBzF;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBAiC5C;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAIhE,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.broadcastTools = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_js_1 = require("../client.js");
|
|
6
|
+
exports.broadcastTools = [
|
|
7
|
+
{
|
|
8
|
+
name: "zernio_list_broadcasts",
|
|
9
|
+
description: "List all broadcasts (mass messages sent to contact lists).",
|
|
10
|
+
inputSchema: zod_1.z.object({
|
|
11
|
+
limit: zod_1.z.number().optional().describe("Max broadcasts to return"),
|
|
12
|
+
status: zod_1.z.string().optional().describe("Filter by status: draft, scheduled, sent, cancelled"),
|
|
13
|
+
}),
|
|
14
|
+
handler: async (args) => {
|
|
15
|
+
return (0, client_js_1.zernioRequest)("GET", "/v1/broadcasts", undefined, { limit: args.limit, status: args.status });
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "zernio_get_broadcast",
|
|
20
|
+
description: "Get details for a specific broadcast.",
|
|
21
|
+
inputSchema: zod_1.z.object({
|
|
22
|
+
broadcastId: zod_1.z.string().describe("The broadcast ID"),
|
|
23
|
+
}),
|
|
24
|
+
handler: async (args) => {
|
|
25
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/broadcasts/${args.broadcastId}`);
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "zernio_create_broadcast",
|
|
30
|
+
description: "Create a new broadcast message to send to a contact list.",
|
|
31
|
+
inputSchema: zod_1.z.object({
|
|
32
|
+
name: zod_1.z.string().describe("Broadcast name"),
|
|
33
|
+
message: zod_1.z.string().describe("The message content to send"),
|
|
34
|
+
accountId: zod_1.z.string().describe("The social account to send from"),
|
|
35
|
+
audienceType: zod_1.z.string().optional().describe("Target audience type: all, segment, tag"),
|
|
36
|
+
tag: zod_1.z.string().optional().describe("Tag to filter contacts by"),
|
|
37
|
+
}),
|
|
38
|
+
handler: async (args) => {
|
|
39
|
+
return (0, client_js_1.zernioRequest)("POST", "/v1/broadcasts", {
|
|
40
|
+
name: args.name,
|
|
41
|
+
message: args.message,
|
|
42
|
+
accountId: args.accountId,
|
|
43
|
+
audienceType: args.audienceType,
|
|
44
|
+
tag: args.tag,
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "zernio_schedule_broadcast",
|
|
50
|
+
description: "Schedule a broadcast to be sent at a specific date and time.",
|
|
51
|
+
inputSchema: zod_1.z.object({
|
|
52
|
+
broadcastId: zod_1.z.string().describe("The broadcast ID to schedule"),
|
|
53
|
+
scheduledAt: zod_1.z.string().describe("ISO datetime string for when to send the broadcast"),
|
|
54
|
+
}),
|
|
55
|
+
handler: async (args) => {
|
|
56
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/broadcasts/${args.broadcastId}/schedule`, {
|
|
57
|
+
scheduledAt: args.scheduledAt,
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "zernio_send_broadcast",
|
|
63
|
+
description: "Send a broadcast immediately.",
|
|
64
|
+
inputSchema: zod_1.z.object({
|
|
65
|
+
broadcastId: zod_1.z.string().describe("The broadcast ID to send now"),
|
|
66
|
+
}),
|
|
67
|
+
handler: async (args) => {
|
|
68
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/broadcasts/${args.broadcastId}/send`);
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "zernio_cancel_broadcast",
|
|
73
|
+
description: "Cancel a scheduled broadcast before it is sent.",
|
|
74
|
+
inputSchema: zod_1.z.object({
|
|
75
|
+
broadcastId: zod_1.z.string().describe("The broadcast ID to cancel"),
|
|
76
|
+
}),
|
|
77
|
+
handler: async (args) => {
|
|
78
|
+
return (0, client_js_1.zernioRequest)("POST", `/v1/broadcasts/${args.broadcastId}/cancel`);
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "zernio_get_broadcast_recipients",
|
|
83
|
+
description: "Get the list of recipients for a specific broadcast.",
|
|
84
|
+
inputSchema: zod_1.z.object({
|
|
85
|
+
broadcastId: zod_1.z.string().describe("The broadcast ID"),
|
|
86
|
+
limit: zod_1.z.number().optional().describe("Max recipients to return"),
|
|
87
|
+
}),
|
|
88
|
+
handler: async (args) => {
|
|
89
|
+
return (0, client_js_1.zernioRequest)("GET", `/v1/broadcasts/${args.broadcastId}/recipients`, undefined, { limit: args.limit });
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
//# sourceMappingURL=broadcasts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcasts.js","sourceRoot":"","sources":["../../src/tools/broadcasts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,cAAc,GAAG;IAC5B;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,4DAA4D;QACzE,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;YACjE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qDAAqD,CAAC;SAC9F,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAAyC,EAAE,EAAE;YAC3D,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACvG,CAAC;KACF;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;SACrD,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA6B,EAAE,EAAE;YAC/C,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,kBAAkB,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QACpE,CAAC;KACF;IACD;QACE,IAAI,EAAE,yBA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AC;QACjH,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const contactTools: ({
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: z.ZodObject<{
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
search: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
search?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
limit?: number | undefined;
|
|
13
|
+
search?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
handler: (args: {
|
|
16
|
+
limit?: number;
|
|
17
|
+
search?: string;
|
|
18
|
+
}) => Promise<unknown>;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
inputSchema: z.ZodObject<{
|
|
23
|
+
contactId: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
contactId: string;
|
|
26
|
+
}, {
|
|
27
|
+
contactId: string;
|
|
28
|
+
}>;
|
|
29
|
+
handler: (args: {
|
|
30
|
+
contactId: string;
|
|
31
|
+
}) => Promise<unknown>;
|
|
32
|
+
} | {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
inputSchema: z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
email: z.ZodOptional<z.ZodString>;
|
|
38
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
name: string;
|
|
41
|
+
email?: string | undefined;
|
|
42
|
+
phone?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
name: string;
|
|
45
|
+
email?: string | undefined;
|
|
46
|
+
phone?: string | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
handler: (args: {
|
|
49
|
+
name: string;
|
|
50
|
+
email?: string;
|
|
51
|
+
phone?: string;
|
|
52
|
+
}) => Promise<unknown>;
|
|
53
|
+
} | {
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
inputSchema: z.ZodObject<{
|
|
57
|
+
contactId: z.ZodString;
|
|
58
|
+
name: z.ZodOptional<z.ZodString>;
|
|
59
|
+
email: z.ZodOptional<z.ZodString>;
|
|
60
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
contactId: string;
|
|
63
|
+
name?: string | undefined;
|
|
64
|
+
email?: string | undefined;
|
|
65
|
+
phone?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
contactId: string;
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
email?: string | undefined;
|
|
70
|
+
phone?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
handler: (args: {
|
|
73
|
+
contactId: string;
|
|
74
|
+
name?: string;
|
|
75
|
+
email?: string;
|
|
76
|
+
phone?: string;
|
|
77
|
+
}) => Promise<unknown>;
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
inputSchema: z.ZodObject<{
|
|
82
|
+
contacts: z.ZodArray<z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
email: z.ZodOptional<z.ZodString>;
|
|
85
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
name: string;
|
|
88
|
+
email?: string | undefined;
|
|
89
|
+
phone?: string | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
name: string;
|
|
92
|
+
email?: string | undefined;
|
|
93
|
+
phone?: string | undefined;
|
|
94
|
+
}>, "many">;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
contacts: {
|
|
97
|
+
name: string;
|
|
98
|
+
email?: string | undefined;
|
|
99
|
+
phone?: string | undefined;
|
|
100
|
+
}[];
|
|
101
|
+
}, {
|
|
102
|
+
contacts: {
|
|
103
|
+
name: string;
|
|
104
|
+
email?: string | undefined;
|
|
105
|
+
phone?: string | undefined;
|
|
106
|
+
}[];
|
|
107
|
+
}>;
|
|
108
|
+
handler: (args: {
|
|
109
|
+
contacts: Array<{
|
|
110
|
+
name: string;
|
|
111
|
+
email?: string;
|
|
112
|
+
phone?: string;
|
|
113
|
+
}>;
|
|
114
|
+
}) => Promise<unknown>;
|
|
115
|
+
} | {
|
|
116
|
+
name: string;
|
|
117
|
+
description: string;
|
|
118
|
+
inputSchema: z.ZodObject<{
|
|
119
|
+
contactId: z.ZodString;
|
|
120
|
+
fieldSlug: z.ZodString;
|
|
121
|
+
value: z.ZodString;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
value: string;
|
|
124
|
+
contactId: string;
|
|
125
|
+
fieldSlug: string;
|
|
126
|
+
}, {
|
|
127
|
+
value: string;
|
|
128
|
+
contactId: string;
|
|
129
|
+
fieldSlug: string;
|
|
130
|
+
}>;
|
|
131
|
+
handler: (args: {
|
|
132
|
+
contactId: string;
|
|
133
|
+
fieldSlug: string;
|
|
134
|
+
value: string;
|
|
135
|
+
}) => Promise<unknown>;
|
|
136
|
+
} | {
|
|
137
|
+
name: string;
|
|
138
|
+
description: string;
|
|
139
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
140
|
+
handler: (_args: Record<string, never>) => Promise<unknown>;
|
|
141
|
+
} | {
|
|
142
|
+
name: string;
|
|
143
|
+
description: string;
|
|
144
|
+
inputSchema: z.ZodObject<{
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
type: z.ZodString;
|
|
147
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
type: string;
|
|
150
|
+
name: string;
|
|
151
|
+
slug?: string | undefined;
|
|
152
|
+
}, {
|
|
153
|
+
type: string;
|
|
154
|
+
name: string;
|
|
155
|
+
slug?: string | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
handler: (args: {
|
|
158
|
+
name: string;
|
|
159
|
+
type: string;
|
|
160
|
+
slug?: string;
|
|
161
|
+
}) => Promise<unknown>;
|
|
162
|
+
} | {
|
|
163
|
+
name: string;
|
|
164
|
+
description: string;
|
|
165
|
+
inputSchema: z.ZodObject<{
|
|
166
|
+
fieldId: z.ZodString;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
fieldId: string;
|
|
169
|
+
}, {
|
|
170
|
+
fieldId: string;
|
|
171
|
+
}>;
|
|
172
|
+
handler: (args: {
|
|
173
|
+
fieldId: string;
|
|
174
|
+
}) => Promise<unknown>;
|
|
175
|
+
})[];
|
|
176
|
+
//# sourceMappingURL=contacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/tools/contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;oBAQC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;oBAUnC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;oBAYrB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;oBAahD;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwBpE;QAAE,QAAQ,EAAE,KAAK,CAAC;YAAE,IAAI,E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