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.
Files changed (43) hide show
  1. package/dist/index.js +19 -13
  2. package/dist/index.js.map +1 -1
  3. package/dist/tools/accounts.d.ts +136 -3
  4. package/dist/tools/accounts.d.ts.map +1 -1
  5. package/dist/tools/accounts.js +188 -14
  6. package/dist/tools/accounts.js.map +1 -1
  7. package/dist/tools/automations.d.ts +108 -0
  8. package/dist/tools/automations.d.ts.map +1 -0
  9. package/dist/tools/automations.js +89 -0
  10. package/dist/tools/automations.js.map +1 -0
  11. package/dist/tools/broadcasts.d.ts +96 -0
  12. package/dist/tools/broadcasts.d.ts.map +1 -0
  13. package/dist/tools/broadcasts.js +93 -0
  14. package/dist/tools/broadcasts.js.map +1 -0
  15. package/dist/tools/connect.d.ts +126 -0
  16. package/dist/tools/connect.d.ts.map +1 -0
  17. package/dist/tools/connect.js +130 -0
  18. package/dist/tools/connect.js.map +1 -0
  19. package/dist/tools/contacts.d.ts +176 -0
  20. package/dist/tools/contacts.d.ts.map +1 -0
  21. package/dist/tools/contacts.js +130 -0
  22. package/dist/tools/contacts.js.map +1 -0
  23. package/dist/tools/messages.d.ts +26 -5
  24. package/dist/tools/messages.d.ts.map +1 -1
  25. package/dist/tools/messages.js +26 -26
  26. package/dist/tools/messages.js.map +1 -1
  27. package/dist/tools/posts.d.ts +248 -0
  28. package/dist/tools/posts.d.ts.map +1 -0
  29. package/dist/tools/posts.js +224 -0
  30. package/dist/tools/posts.js.map +1 -0
  31. package/dist/tools/profiles.d.ts +170 -0
  32. package/dist/tools/profiles.d.ts.map +1 -0
  33. package/dist/tools/profiles.js +158 -0
  34. package/dist/tools/profiles.js.map +1 -0
  35. package/dist/tools/social.d.ts +272 -0
  36. package/dist/tools/social.d.ts.map +1 -0
  37. package/dist/tools/social.js +287 -0
  38. package/dist/tools/social.js.map +1 -0
  39. package/dist/tools/whatsapp-business.d.ts +292 -0
  40. package/dist/tools/whatsapp-business.d.ts.map +1 -0
  41. package/dist/tools/whatsapp-business.js +267 -0
  42. package/dist/tools/whatsapp-business.js.map +1 -0
  43. package/package.json +1 -39
@@ -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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AAC,eAAe;gBACrC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,mCAAmC;QAChD,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;SACjE,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA8B,EAAE,EAAE;YAChD,OAAO,IAAA,yBAAa,EAAC,QAAQ,EAAE,mBAAmB,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QACzE,CAAC;KACF;IACD;QACE,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,gFAAgF;QAC7F,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,YAAY,EAAE,OAAC,CAAC,MAAM,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,E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AAsD;QACnE,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;YACpD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;SAClE,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA6C,EAAE,EAAE;YAC/D,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,kBAAkB,IAAI,CAAC,WAAW,aAAa,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACjH,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"}
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.connectTools = void 0;
4
+ const zod_1 = require("zod");
5
+ const client_js_1 = require("../client.js");
6
+ exports.connectTools = [
7
+ {
8
+ name: "zernio_get_connect_url",
9
+ description: "Get the OAuth authorization URL for connecting a social media account to a Zernio profile. Returns a URL the user must open in their browser to authorize.",
10
+ inputSchema: zod_1.z.object({
11
+ platform: zod_1.z.string().describe("Platform to connect: twitter, instagram, facebook, linkedin, tiktok, youtube, pinterest, reddit, bluesky, threads, googlebusiness, telegram, snapchat, whatsapp"),
12
+ profileId: zod_1.z.string().describe("The Zernio profile ID to attach the account to"),
13
+ }),
14
+ handler: async (args) => {
15
+ return (0, client_js_1.zernioRequest)("GET", `/v1/connect/${args.platform}`, undefined, { profileId: args.profileId });
16
+ },
17
+ },
18
+ {
19
+ name: "zernio_connect_bluesky",
20
+ description: "Connect a Bluesky account using username and app password (Bluesky uses credentials instead of OAuth).",
21
+ inputSchema: zod_1.z.object({
22
+ profileId: zod_1.z.string().describe("The Zernio profile ID to attach the account to"),
23
+ username: zod_1.z.string().describe("Bluesky username/handle (e.g. user.bsky.social)"),
24
+ appPassword: zod_1.z.string().describe("Bluesky app password (generate in Bluesky Settings -> App Passwords)"),
25
+ }),
26
+ handler: async (args) => {
27
+ return (0, client_js_1.zernioRequest)("POST", "/v1/connect/bluesky/credentials", {
28
+ profileId: args.profileId,
29
+ username: args.username,
30
+ appPassword: args.appPassword,
31
+ });
32
+ },
33
+ },
34
+ {
35
+ name: "zernio_connect_telegram_start",
36
+ description: "Start Telegram bot connection -- returns a Zernio bot connection code that the user must send to the Zernio Telegram bot to authorize.",
37
+ inputSchema: zod_1.z.object({
38
+ profileId: zod_1.z.string().describe("The Zernio profile ID to attach the Telegram account to"),
39
+ }),
40
+ handler: async (args) => {
41
+ return (0, client_js_1.zernioRequest)("GET", "/v1/connect/telegram", undefined, { profileId: args.profileId });
42
+ },
43
+ },
44
+ {
45
+ name: "zernio_connect_telegram_verify",
46
+ description: "Complete Telegram bot connection by submitting the verification code after the user has messaged the Zernio bot.",
47
+ inputSchema: zod_1.z.object({
48
+ profileId: zod_1.z.string().describe("The Zernio profile ID"),
49
+ code: zod_1.z.string().describe("The verification code returned by the Zernio Telegram bot"),
50
+ }),
51
+ handler: async (args) => {
52
+ return (0, client_js_1.zernioRequest)("PATCH", `/v1/connect/telegram`, { profileId: args.profileId, code: args.code });
53
+ },
54
+ },
55
+ {
56
+ name: "zernio_check_telegram_connection",
57
+ description: "Check if a Telegram account has been successfully connected after starting the connection flow.",
58
+ inputSchema: zod_1.z.object({
59
+ profileId: zod_1.z.string().describe("The Zernio profile ID to check"),
60
+ }),
61
+ handler: async (args) => {
62
+ return (0, client_js_1.zernioRequest)("POST", "/v1/connect/telegram", { profileId: args.profileId });
63
+ },
64
+ },
65
+ {
66
+ name: "zernio_connect_whatsapp",
67
+ description: "Connect a WhatsApp Business account by providing Meta Business credentials.",
68
+ inputSchema: zod_1.z.object({
69
+ profileId: zod_1.z.string().describe("The Zernio profile ID to attach WhatsApp to"),
70
+ accessToken: zod_1.z.string().describe("Meta/WhatsApp Business access token"),
71
+ businessAccountId: zod_1.z.string().describe("WhatsApp Business Account ID (WABA ID)"),
72
+ }),
73
+ handler: async (args) => {
74
+ return (0, client_js_1.zernioRequest)("POST", "/v1/connect/whatsapp/credentials", {
75
+ profileId: args.profileId,
76
+ accessToken: args.accessToken,
77
+ businessAccountId: args.businessAccountId,
78
+ });
79
+ },
80
+ },
81
+ {
82
+ name: "zernio_list_facebook_pages_for_connect",
83
+ description: "After starting Facebook OAuth, list available Facebook Pages to choose which one to connect.",
84
+ inputSchema: zod_1.z.object({
85
+ profileId: zod_1.z.string().describe("The Zernio profile ID from the OAuth flow"),
86
+ }),
87
+ handler: async (args) => {
88
+ return (0, client_js_1.zernioRequest)("GET", "/v1/connect/facebook/select-page", undefined, { profileId: args.profileId });
89
+ },
90
+ },
91
+ {
92
+ name: "zernio_select_facebook_page",
93
+ description: "Select a specific Facebook Page to connect after the OAuth flow lists available pages.",
94
+ inputSchema: zod_1.z.object({
95
+ profileId: zod_1.z.string().describe("The Zernio profile ID"),
96
+ pageId: zod_1.z.string().describe("The Facebook Page ID to connect"),
97
+ }),
98
+ handler: async (args) => {
99
+ return (0, client_js_1.zernioRequest)("POST", "/v1/connect/facebook/select-page", {
100
+ profileId: args.profileId,
101
+ pageId: args.pageId,
102
+ });
103
+ },
104
+ },
105
+ {
106
+ name: "zernio_list_snapchat_profiles_for_connect",
107
+ description: "After starting Snapchat OAuth, list available Snapchat profiles/accounts to choose which one to connect.",
108
+ inputSchema: zod_1.z.object({
109
+ profileId: zod_1.z.string().describe("The Zernio profile ID from the OAuth flow"),
110
+ }),
111
+ handler: async (args) => {
112
+ return (0, client_js_1.zernioRequest)("GET", "/v1/connect/snapchat/select-profile", undefined, { profileId: args.profileId });
113
+ },
114
+ },
115
+ {
116
+ name: "zernio_select_snapchat_profile",
117
+ description: "Select a specific Snapchat profile to connect after the OAuth flow lists available profiles.",
118
+ inputSchema: zod_1.z.object({
119
+ profileId: zod_1.z.string().describe("The Zernio profile ID"),
120
+ snapchatProfileId: zod_1.z.string().describe("The Snapchat profile/account ID to connect"),
121
+ }),
122
+ handler: async (args) => {
123
+ return (0, client_js_1.zernioRequest)("POST", "/v1/connect/snapchat/select-profile", {
124
+ profileId: args.profileId,
125
+ snapchatProfileId: args.snapchatProfileId,
126
+ });
127
+ },
128
+ },
129
+ ];
130
+ //# sourceMappingURL=connect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/tools/connect.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,YAAY,GAAG;IAC1B;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,4JAA4J;QACzK,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iKAAiK,CAAC;YAChM,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;SACjF,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA6C,EAAE,EAAE;YAC/D,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,eAAe,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACxG,CAAC;KACF;IACD;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,wGAAwG;QACrH,WAAW,EAAE,OAAC,CA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