zernio-mcp 1.3.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +545 -166
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/tools/accounts.d.ts +199 -91
- package/dist/tools/accounts.d.ts.map +1 -1
- package/dist/tools/accounts.js +258 -0
- package/dist/tools/accounts.js.map +1 -1
- package/dist/tools/ads.d.ts +106 -96
- package/dist/tools/ads.d.ts.map +1 -1
- package/dist/tools/ads.js +100 -0
- package/dist/tools/ads.js.map +1 -1
- package/dist/tools/analytics.d.ts +8 -70
- package/dist/tools/analytics.d.ts.map +1 -1
- package/dist/tools/automations.d.ts +7 -47
- package/dist/tools/automations.d.ts.map +1 -1
- package/dist/tools/broadcasts.d.ts +5 -39
- package/dist/tools/broadcasts.d.ts.map +1 -1
- package/dist/tools/comments.d.ts +19 -37
- package/dist/tools/comments.d.ts.map +1 -1
- package/dist/tools/comments.js +14 -0
- package/dist/tools/comments.js.map +1 -1
- package/dist/tools/connect.d.ts +43 -49
- package/dist/tools/connect.d.ts.map +1 -1
- package/dist/tools/connect.js +80 -0
- package/dist/tools/connect.js.map +1 -1
- package/dist/tools/contacts.d.ts +10 -78
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/messages.d.ts +40 -60
- package/dist/tools/messages.d.ts.map +1 -1
- package/dist/tools/messages.js +23 -0
- package/dist/tools/messages.js.map +1 -1
- package/dist/tools/posts.d.ts +101 -109
- package/dist/tools/posts.d.ts.map +1 -1
- package/dist/tools/posts.js +84 -0
- package/dist/tools/posts.js.map +1 -1
- package/dist/tools/profiles.d.ts +35 -69
- package/dist/tools/profiles.d.ts.map +1 -1
- package/dist/tools/profiles.js +50 -0
- package/dist/tools/profiles.js.map +1 -1
- package/dist/tools/queue.d.ts +65 -0
- package/dist/tools/queue.d.ts.map +1 -0
- package/dist/tools/queue.js +86 -0
- package/dist/tools/queue.js.map +1 -0
- package/dist/tools/reddit.d.ts +33 -0
- package/dist/tools/reddit.d.ts.map +1 -0
- package/dist/tools/reddit.js +44 -0
- package/dist/tools/reddit.js.map +1 -0
- package/dist/tools/reviews.d.ts +7 -32
- package/dist/tools/reviews.d.ts.map +1 -1
- package/dist/tools/social.d.ts +96 -108
- package/dist/tools/social.d.ts.map +1 -1
- package/dist/tools/social.js +118 -0
- package/dist/tools/social.js.map +1 -1
- package/dist/tools/validation.d.ts +45 -0
- package/dist/tools/validation.d.ts.map +1 -0
- package/dist/tools/validation.js +60 -0
- package/dist/tools/validation.js.map +1 -0
- package/dist/tools/whatsapp-business.d.ts +223 -127
- package/dist/tools/whatsapp-business.d.ts.map +1 -1
- package/dist/tools/whatsapp-business.js +352 -0
- package/dist/tools/whatsapp-business.js.map +1 -1
- package/package.json +50 -39
package/dist/tools/contacts.d.ts
CHANGED
|
@@ -5,13 +5,7 @@ export declare const contactTools: ({
|
|
|
5
5
|
inputSchema: z.ZodObject<{
|
|
6
6
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
search: z.ZodOptional<z.ZodString>;
|
|
8
|
-
},
|
|
9
|
-
limit?: number | undefined;
|
|
10
|
-
search?: string | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
limit?: number | undefined;
|
|
13
|
-
search?: string | undefined;
|
|
14
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
15
9
|
handler: (args: {
|
|
16
10
|
limit?: number;
|
|
17
11
|
search?: string;
|
|
@@ -21,11 +15,7 @@ export declare const contactTools: ({
|
|
|
21
15
|
description: string;
|
|
22
16
|
inputSchema: z.ZodObject<{
|
|
23
17
|
contactId: z.ZodString;
|
|
24
|
-
},
|
|
25
|
-
contactId: string;
|
|
26
|
-
}, {
|
|
27
|
-
contactId: string;
|
|
28
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
29
19
|
handler: (args: {
|
|
30
20
|
contactId: string;
|
|
31
21
|
}) => Promise<unknown>;
|
|
@@ -36,15 +26,7 @@ export declare const contactTools: ({
|
|
|
36
26
|
name: z.ZodString;
|
|
37
27
|
email: z.ZodOptional<z.ZodString>;
|
|
38
28
|
phone: z.ZodOptional<z.ZodString>;
|
|
39
|
-
},
|
|
40
|
-
name: string;
|
|
41
|
-
email?: string | undefined;
|
|
42
|
-
phone?: string | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
name: string;
|
|
45
|
-
email?: string | undefined;
|
|
46
|
-
phone?: string | undefined;
|
|
47
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
48
30
|
handler: (args: {
|
|
49
31
|
name: string;
|
|
50
32
|
email?: string;
|
|
@@ -58,17 +40,7 @@ export declare const contactTools: ({
|
|
|
58
40
|
name: z.ZodOptional<z.ZodString>;
|
|
59
41
|
email: z.ZodOptional<z.ZodString>;
|
|
60
42
|
phone: z.ZodOptional<z.ZodString>;
|
|
61
|
-
},
|
|
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
|
-
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
72
44
|
handler: (args: {
|
|
73
45
|
contactId: string;
|
|
74
46
|
name?: string;
|
|
@@ -83,28 +55,8 @@ export declare const contactTools: ({
|
|
|
83
55
|
name: z.ZodString;
|
|
84
56
|
email: z.ZodOptional<z.ZodString>;
|
|
85
57
|
phone: z.ZodOptional<z.ZodString>;
|
|
86
|
-
},
|
|
87
|
-
|
|
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
|
-
}>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
108
60
|
handler: (args: {
|
|
109
61
|
contacts: Array<{
|
|
110
62
|
name: string;
|
|
@@ -119,15 +71,7 @@ export declare const contactTools: ({
|
|
|
119
71
|
contactId: z.ZodString;
|
|
120
72
|
fieldSlug: z.ZodString;
|
|
121
73
|
value: z.ZodString;
|
|
122
|
-
},
|
|
123
|
-
value: string;
|
|
124
|
-
contactId: string;
|
|
125
|
-
fieldSlug: string;
|
|
126
|
-
}, {
|
|
127
|
-
value: string;
|
|
128
|
-
contactId: string;
|
|
129
|
-
fieldSlug: string;
|
|
130
|
-
}>;
|
|
74
|
+
}, z.core.$strip>;
|
|
131
75
|
handler: (args: {
|
|
132
76
|
contactId: string;
|
|
133
77
|
fieldSlug: string;
|
|
@@ -136,7 +80,7 @@ export declare const contactTools: ({
|
|
|
136
80
|
} | {
|
|
137
81
|
name: string;
|
|
138
82
|
description: string;
|
|
139
|
-
inputSchema: z.ZodObject<{},
|
|
83
|
+
inputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
140
84
|
handler: (_args: Record<string, never>) => Promise<unknown>;
|
|
141
85
|
} | {
|
|
142
86
|
name: string;
|
|
@@ -145,15 +89,7 @@ export declare const contactTools: ({
|
|
|
145
89
|
name: z.ZodString;
|
|
146
90
|
type: z.ZodString;
|
|
147
91
|
slug: z.ZodOptional<z.ZodString>;
|
|
148
|
-
},
|
|
149
|
-
type: string;
|
|
150
|
-
name: string;
|
|
151
|
-
slug?: string | undefined;
|
|
152
|
-
}, {
|
|
153
|
-
type: string;
|
|
154
|
-
name: string;
|
|
155
|
-
slug?: string | undefined;
|
|
156
|
-
}>;
|
|
92
|
+
}, z.core.$strip>;
|
|
157
93
|
handler: (args: {
|
|
158
94
|
name: string;
|
|
159
95
|
type: string;
|
|
@@ -164,11 +100,7 @@ export declare const contactTools: ({
|
|
|
164
100
|
description: string;
|
|
165
101
|
inputSchema: z.ZodObject<{
|
|
166
102
|
fieldId: z.ZodString;
|
|
167
|
-
},
|
|
168
|
-
fieldId: string;
|
|
169
|
-
}, {
|
|
170
|
-
fieldId: string;
|
|
171
|
-
}>;
|
|
103
|
+
}, z.core.$strip>;
|
|
172
104
|
handler: (args: {
|
|
173
105
|
fieldId: string;
|
|
174
106
|
}) => Promise<unknown>;
|
|
@@ -1 +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
|
|
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,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE;;;;;;;;;oBAsBrE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;qBAQtD,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;;;;;;;;;oBAYtB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;oBAU7C;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;IAI5C,CAAC"}
|
package/dist/tools/messages.d.ts
CHANGED
|
@@ -6,15 +6,7 @@ export declare const messageTools: ({
|
|
|
6
6
|
accountId: z.ZodOptional<z.ZodString>;
|
|
7
7
|
platform: z.ZodOptional<z.ZodString>;
|
|
8
8
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
},
|
|
10
|
-
platform?: string | undefined;
|
|
11
|
-
accountId?: string | undefined;
|
|
12
|
-
limit?: number | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
platform?: string | undefined;
|
|
15
|
-
accountId?: string | undefined;
|
|
16
|
-
limit?: number | undefined;
|
|
17
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
18
10
|
handler: (args: {
|
|
19
11
|
accountId?: string;
|
|
20
12
|
platform?: string;
|
|
@@ -25,11 +17,7 @@ export declare const messageTools: ({
|
|
|
25
17
|
description: string;
|
|
26
18
|
inputSchema: z.ZodObject<{
|
|
27
19
|
conversationId: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
conversationId: string;
|
|
30
|
-
}, {
|
|
31
|
-
conversationId: string;
|
|
32
|
-
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
33
21
|
handler: (args: {
|
|
34
22
|
conversationId: string;
|
|
35
23
|
}) => Promise<unknown>;
|
|
@@ -39,13 +27,7 @@ export declare const messageTools: ({
|
|
|
39
27
|
inputSchema: z.ZodObject<{
|
|
40
28
|
conversationId: z.ZodString;
|
|
41
29
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
},
|
|
43
|
-
conversationId: string;
|
|
44
|
-
limit?: number | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
conversationId: string;
|
|
47
|
-
limit?: number | undefined;
|
|
48
|
-
}>;
|
|
30
|
+
}, z.core.$strip>;
|
|
49
31
|
handler: (args: {
|
|
50
32
|
conversationId: string;
|
|
51
33
|
limit?: number;
|
|
@@ -57,15 +39,7 @@ export declare const messageTools: ({
|
|
|
57
39
|
conversationId: z.ZodString;
|
|
58
40
|
accountId: z.ZodString;
|
|
59
41
|
message: z.ZodString;
|
|
60
|
-
},
|
|
61
|
-
message: string;
|
|
62
|
-
accountId: string;
|
|
63
|
-
conversationId: string;
|
|
64
|
-
}, {
|
|
65
|
-
message: string;
|
|
66
|
-
accountId: string;
|
|
67
|
-
conversationId: string;
|
|
68
|
-
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
69
43
|
handler: (args: {
|
|
70
44
|
conversationId: string;
|
|
71
45
|
accountId: string;
|
|
@@ -79,17 +53,7 @@ export declare const messageTools: ({
|
|
|
79
53
|
contactId: z.ZodOptional<z.ZodString>;
|
|
80
54
|
recipientId: z.ZodOptional<z.ZodString>;
|
|
81
55
|
message: z.ZodString;
|
|
82
|
-
},
|
|
83
|
-
message: string;
|
|
84
|
-
accountId: string;
|
|
85
|
-
contactId?: string | undefined;
|
|
86
|
-
recipientId?: string | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
message: string;
|
|
89
|
-
accountId: string;
|
|
90
|
-
contactId?: string | undefined;
|
|
91
|
-
recipientId?: string | undefined;
|
|
92
|
-
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
93
57
|
handler: (args: {
|
|
94
58
|
accountId: string;
|
|
95
59
|
contactId?: string;
|
|
@@ -103,18 +67,11 @@ export declare const messageTools: ({
|
|
|
103
67
|
conversationId: z.ZodString;
|
|
104
68
|
messageId: z.ZodString;
|
|
105
69
|
emoji: z.ZodString;
|
|
106
|
-
action: z.ZodEnum<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
action: "add" | "remove";
|
|
112
|
-
}, {
|
|
113
|
-
conversationId: string;
|
|
114
|
-
messageId: string;
|
|
115
|
-
emoji: string;
|
|
116
|
-
action: "add" | "remove";
|
|
117
|
-
}>;
|
|
70
|
+
action: z.ZodEnum<{
|
|
71
|
+
add: "add";
|
|
72
|
+
remove: "remove";
|
|
73
|
+
}>;
|
|
74
|
+
}, z.core.$strip>;
|
|
118
75
|
handler: (args: {
|
|
119
76
|
conversationId: string;
|
|
120
77
|
messageId: string;
|
|
@@ -126,17 +83,40 @@ export declare const messageTools: ({
|
|
|
126
83
|
description: string;
|
|
127
84
|
inputSchema: z.ZodObject<{
|
|
128
85
|
conversationId: z.ZodString;
|
|
129
|
-
status: z.ZodEnum<
|
|
130
|
-
|
|
131
|
-
|
|
86
|
+
status: z.ZodEnum<{
|
|
87
|
+
read: "read";
|
|
88
|
+
unread: "unread";
|
|
89
|
+
archived: "archived";
|
|
90
|
+
unarchived: "unarchived";
|
|
91
|
+
}>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
handler: (args: {
|
|
132
94
|
conversationId: string;
|
|
133
|
-
|
|
134
|
-
|
|
95
|
+
status: string;
|
|
96
|
+
}) => Promise<unknown>;
|
|
97
|
+
} | {
|
|
98
|
+
name: string;
|
|
99
|
+
description: string;
|
|
100
|
+
inputSchema: z.ZodObject<{
|
|
101
|
+
conversationId: z.ZodString;
|
|
102
|
+
messageId: z.ZodString;
|
|
103
|
+
message: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
handler: (args: {
|
|
135
106
|
conversationId: string;
|
|
136
|
-
|
|
107
|
+
messageId: string;
|
|
108
|
+
message: string;
|
|
109
|
+
}) => Promise<unknown>;
|
|
110
|
+
} | {
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
inputSchema: z.ZodObject<{
|
|
114
|
+
conversationId: z.ZodString;
|
|
115
|
+
messageId: z.ZodString;
|
|
116
|
+
}, z.core.$strip>;
|
|
137
117
|
handler: (args: {
|
|
138
118
|
conversationId: string;
|
|
139
|
-
|
|
119
|
+
messageId: string;
|
|
140
120
|
}) => Promise<unknown>;
|
|
141
121
|
})[];
|
|
142
122
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/tools/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/tools/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;oBASC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;oBAczD;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE;;;;;;;;oBAW1B;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;oBAY1C;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;oBAgB9D;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;oBA4BhF;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;oBAe5E;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;;;;;;;;;oBAY1C;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;;;;oBAW9D;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;IAItE,CAAC"}
|
package/dist/tools/messages.js
CHANGED
|
@@ -108,5 +108,28 @@ exports.messageTools = [
|
|
|
108
108
|
return (0, client_js_1.zernioRequest)("PUT", `/v1/inbox/conversations/${args.conversationId}`, { status: args.status });
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
name: "zernio_edit_message",
|
|
113
|
+
description: "Edit a message in a conversation.",
|
|
114
|
+
inputSchema: zod_1.z.object({
|
|
115
|
+
conversationId: zod_1.z.string().describe("The conversation ID"),
|
|
116
|
+
messageId: zod_1.z.string().describe("The message ID to edit"),
|
|
117
|
+
message: zod_1.z.string().describe("The updated message text"),
|
|
118
|
+
}),
|
|
119
|
+
handler: async (args) => {
|
|
120
|
+
return (0, client_js_1.zernioRequest)("PATCH", `/v1/inbox/conversations/${args.conversationId}/messages/${args.messageId}`, { message: args.message });
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "zernio_delete_message",
|
|
125
|
+
description: "Delete a message from a conversation.",
|
|
126
|
+
inputSchema: zod_1.z.object({
|
|
127
|
+
conversationId: zod_1.z.string().describe("The conversation ID"),
|
|
128
|
+
messageId: zod_1.z.string().describe("The message ID to delete"),
|
|
129
|
+
}),
|
|
130
|
+
handler: async (args) => {
|
|
131
|
+
return (0, client_js_1.zernioRequest)("DELETE", `/v1/inbox/conversations/${args.conversationId}/messages/${args.messageId}`);
|
|
132
|
+
},
|
|
133
|
+
},
|
|
111
134
|
];
|
|
112
135
|
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/tools/messages.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,YAAY,GAAG;IAC1B;QACE,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,oIAAoI;QACjJ,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;YAC1E,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;YAClG,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;SAClF,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA+D,EAAE,EAAE;YACjF,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,yBAAyB,EAAE,SAAS,EAAE;gBAChE,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,uDAAuD;QACpE,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;SAC3D,CAAC;QACF,OAAO,EAAE,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AAI,CAAC,cAAc,aAAa,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACxI,CAAC;KACF;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;YAC1D,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;SAC3D,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAAmD,EAAE,EAAE;YACrE,OAAO,IAAA,yBAAa,EAAC,QAAQ,EAAE,2BAA2B,IAAI,CAAC,cAAc,aAAa,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QAC9G,CAAC;KACF;CACF,CAAC"}
|
package/dist/tools/posts.d.ts
CHANGED
|
@@ -8,19 +8,7 @@ export declare const postTools: ({
|
|
|
8
8
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
10
10
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
11
|
-
},
|
|
12
|
-
status?: string | undefined;
|
|
13
|
-
accountId?: string | undefined;
|
|
14
|
-
dateFrom?: string | undefined;
|
|
15
|
-
dateTo?: string | undefined;
|
|
16
|
-
limit?: number | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
status?: string | undefined;
|
|
19
|
-
accountId?: string | undefined;
|
|
20
|
-
dateFrom?: string | undefined;
|
|
21
|
-
dateTo?: string | undefined;
|
|
22
|
-
limit?: number | undefined;
|
|
23
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
24
12
|
handler: (args: {
|
|
25
13
|
accountId?: string;
|
|
26
14
|
status?: string;
|
|
@@ -33,11 +21,7 @@ export declare const postTools: ({
|
|
|
33
21
|
description: string;
|
|
34
22
|
inputSchema: z.ZodObject<{
|
|
35
23
|
postId: z.ZodString;
|
|
36
|
-
},
|
|
37
|
-
postId: string;
|
|
38
|
-
}, {
|
|
39
|
-
postId: string;
|
|
40
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
41
25
|
handler: (args: {
|
|
42
26
|
postId: string;
|
|
43
27
|
}) => Promise<unknown>;
|
|
@@ -45,24 +29,12 @@ export declare const postTools: ({
|
|
|
45
29
|
name: string;
|
|
46
30
|
description: string;
|
|
47
31
|
inputSchema: z.ZodObject<{
|
|
48
|
-
accountIds: z.ZodArray<z.ZodString
|
|
32
|
+
accountIds: z.ZodArray<z.ZodString>;
|
|
49
33
|
content: z.ZodString;
|
|
50
34
|
scheduledAt: z.ZodOptional<z.ZodString>;
|
|
51
|
-
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString
|
|
52
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
53
|
-
},
|
|
54
|
-
accountIds: string[];
|
|
55
|
-
content: string;
|
|
56
|
-
scheduledAt?: string | undefined;
|
|
57
|
-
mediaIds?: string[] | undefined;
|
|
58
|
-
tags?: string[] | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
accountIds: string[];
|
|
61
|
-
content: string;
|
|
62
|
-
scheduledAt?: string | undefined;
|
|
63
|
-
mediaIds?: string[] | undefined;
|
|
64
|
-
tags?: string[] | undefined;
|
|
65
|
-
}>;
|
|
35
|
+
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
66
38
|
handler: (args: {
|
|
67
39
|
accountIds: string[];
|
|
68
40
|
content: string;
|
|
@@ -77,21 +49,9 @@ export declare const postTools: ({
|
|
|
77
49
|
postId: z.ZodString;
|
|
78
50
|
content: z.ZodOptional<z.ZodString>;
|
|
79
51
|
scheduledAt: z.ZodOptional<z.ZodString>;
|
|
80
|
-
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString
|
|
81
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
82
|
-
},
|
|
83
|
-
postId: string;
|
|
84
|
-
scheduledAt?: string | undefined;
|
|
85
|
-
content?: string | undefined;
|
|
86
|
-
mediaIds?: string[] | undefined;
|
|
87
|
-
tags?: string[] | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
postId: string;
|
|
90
|
-
scheduledAt?: string | undefined;
|
|
91
|
-
content?: string | undefined;
|
|
92
|
-
mediaIds?: string[] | undefined;
|
|
93
|
-
tags?: string[] | undefined;
|
|
94
|
-
}>;
|
|
52
|
+
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
95
55
|
handler: (args: {
|
|
96
56
|
postId: string;
|
|
97
57
|
content?: string;
|
|
@@ -105,13 +65,7 @@ export declare const postTools: ({
|
|
|
105
65
|
inputSchema: z.ZodObject<{
|
|
106
66
|
accountId: z.ZodOptional<z.ZodString>;
|
|
107
67
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
108
|
-
},
|
|
109
|
-
accountId?: string | undefined;
|
|
110
|
-
limit?: number | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
accountId?: string | undefined;
|
|
113
|
-
limit?: number | undefined;
|
|
114
|
-
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
115
69
|
handler: (args: {
|
|
116
70
|
accountId?: string;
|
|
117
71
|
limit?: number;
|
|
@@ -123,15 +77,7 @@ export declare const postTools: ({
|
|
|
123
77
|
url: z.ZodString;
|
|
124
78
|
type: z.ZodString;
|
|
125
79
|
altText: z.ZodOptional<z.ZodString>;
|
|
126
|
-
},
|
|
127
|
-
type: string;
|
|
128
|
-
url: string;
|
|
129
|
-
altText?: string | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
type: string;
|
|
132
|
-
url: string;
|
|
133
|
-
altText?: string | undefined;
|
|
134
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
135
81
|
handler: (args: {
|
|
136
82
|
url: string;
|
|
137
83
|
type: string;
|
|
@@ -143,13 +89,7 @@ export declare const postTools: ({
|
|
|
143
89
|
inputSchema: z.ZodObject<{
|
|
144
90
|
filename: z.ZodString;
|
|
145
91
|
contentType: z.ZodString;
|
|
146
|
-
},
|
|
147
|
-
filename: string;
|
|
148
|
-
contentType: string;
|
|
149
|
-
}, {
|
|
150
|
-
filename: string;
|
|
151
|
-
contentType: string;
|
|
152
|
-
}>;
|
|
92
|
+
}, z.core.$strip>;
|
|
153
93
|
handler: (args: {
|
|
154
94
|
filename: string;
|
|
155
95
|
contentType: string;
|
|
@@ -160,13 +100,7 @@ export declare const postTools: ({
|
|
|
160
100
|
inputSchema: z.ZodObject<{
|
|
161
101
|
type: z.ZodOptional<z.ZodString>;
|
|
162
102
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
163
|
-
},
|
|
164
|
-
type?: string | undefined;
|
|
165
|
-
limit?: number | undefined;
|
|
166
|
-
}, {
|
|
167
|
-
type?: string | undefined;
|
|
168
|
-
limit?: number | undefined;
|
|
169
|
-
}>;
|
|
103
|
+
}, z.core.$strip>;
|
|
170
104
|
handler: (args: {
|
|
171
105
|
type?: string;
|
|
172
106
|
limit?: number;
|
|
@@ -176,18 +110,14 @@ export declare const postTools: ({
|
|
|
176
110
|
description: string;
|
|
177
111
|
inputSchema: z.ZodObject<{
|
|
178
112
|
mediaId: z.ZodString;
|
|
179
|
-
},
|
|
180
|
-
mediaId: string;
|
|
181
|
-
}, {
|
|
182
|
-
mediaId: string;
|
|
183
|
-
}>;
|
|
113
|
+
}, z.core.$strip>;
|
|
184
114
|
handler: (args: {
|
|
185
115
|
mediaId: string;
|
|
186
116
|
}) => Promise<unknown>;
|
|
187
117
|
} | {
|
|
188
118
|
name: string;
|
|
189
119
|
description: string;
|
|
190
|
-
inputSchema: z.ZodObject<{},
|
|
120
|
+
inputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
191
121
|
handler: (_args: Record<string, never>) => Promise<unknown>;
|
|
192
122
|
} | {
|
|
193
123
|
name: string;
|
|
@@ -195,13 +125,7 @@ export declare const postTools: ({
|
|
|
195
125
|
inputSchema: z.ZodObject<{
|
|
196
126
|
postId: z.ZodString;
|
|
197
127
|
note: z.ZodOptional<z.ZodString>;
|
|
198
|
-
},
|
|
199
|
-
postId: string;
|
|
200
|
-
note?: string | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
postId: string;
|
|
203
|
-
note?: string | undefined;
|
|
204
|
-
}>;
|
|
128
|
+
}, z.core.$strip>;
|
|
205
129
|
handler: (args: {
|
|
206
130
|
postId: string;
|
|
207
131
|
note?: string;
|
|
@@ -212,13 +136,7 @@ export declare const postTools: ({
|
|
|
212
136
|
inputSchema: z.ZodObject<{
|
|
213
137
|
postId: z.ZodString;
|
|
214
138
|
reason: z.ZodOptional<z.ZodString>;
|
|
215
|
-
},
|
|
216
|
-
postId: string;
|
|
217
|
-
reason?: string | undefined;
|
|
218
|
-
}, {
|
|
219
|
-
postId: string;
|
|
220
|
-
reason?: string | undefined;
|
|
221
|
-
}>;
|
|
139
|
+
}, z.core.$strip>;
|
|
222
140
|
handler: (args: {
|
|
223
141
|
postId: string;
|
|
224
142
|
reason?: string;
|
|
@@ -229,20 +147,94 @@ export declare const postTools: ({
|
|
|
229
147
|
inputSchema: z.ZodObject<{
|
|
230
148
|
content: z.ZodString;
|
|
231
149
|
platform: z.ZodString;
|
|
232
|
-
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString
|
|
233
|
-
},
|
|
234
|
-
platform: string;
|
|
235
|
-
content: string;
|
|
236
|
-
mediaIds?: string[] | undefined;
|
|
237
|
-
}, {
|
|
238
|
-
platform: string;
|
|
239
|
-
content: string;
|
|
240
|
-
mediaIds?: string[] | undefined;
|
|
241
|
-
}>;
|
|
150
|
+
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
151
|
+
}, z.core.$strip>;
|
|
242
152
|
handler: (args: {
|
|
243
153
|
content: string;
|
|
244
154
|
platform: string;
|
|
245
155
|
mediaIds?: string[];
|
|
246
156
|
}) => Promise<unknown>;
|
|
157
|
+
} | {
|
|
158
|
+
name: string;
|
|
159
|
+
description: string;
|
|
160
|
+
inputSchema: z.ZodObject<{
|
|
161
|
+
posts: z.ZodArray<z.ZodObject<{
|
|
162
|
+
accountIds: z.ZodArray<z.ZodString>;
|
|
163
|
+
content: z.ZodString;
|
|
164
|
+
scheduledAt: z.ZodOptional<z.ZodString>;
|
|
165
|
+
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
handler: (args: {
|
|
170
|
+
posts: Array<{
|
|
171
|
+
accountIds: string[];
|
|
172
|
+
content: string;
|
|
173
|
+
scheduledAt?: string;
|
|
174
|
+
mediaIds?: string[];
|
|
175
|
+
tags?: string[];
|
|
176
|
+
}>;
|
|
177
|
+
}) => Promise<unknown>;
|
|
178
|
+
} | {
|
|
179
|
+
name: string;
|
|
180
|
+
description: string;
|
|
181
|
+
inputSchema: z.ZodObject<{
|
|
182
|
+
postId: z.ZodString;
|
|
183
|
+
content: z.ZodOptional<z.ZodString>;
|
|
184
|
+
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
handler: (args: {
|
|
187
|
+
postId: string;
|
|
188
|
+
content?: string;
|
|
189
|
+
mediaIds?: string[];
|
|
190
|
+
}) => Promise<unknown>;
|
|
191
|
+
} | {
|
|
192
|
+
name: string;
|
|
193
|
+
description: string;
|
|
194
|
+
inputSchema: z.ZodObject<{
|
|
195
|
+
postId: z.ZodString;
|
|
196
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
197
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
handler: (args: {
|
|
200
|
+
postId: string;
|
|
201
|
+
tags?: string[];
|
|
202
|
+
labels?: string[];
|
|
203
|
+
}) => Promise<unknown>;
|
|
204
|
+
} | {
|
|
205
|
+
name: string;
|
|
206
|
+
description: string;
|
|
207
|
+
inputSchema: z.ZodObject<{
|
|
208
|
+
postId: z.ZodString;
|
|
209
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
handler: (args: {
|
|
212
|
+
postId: string;
|
|
213
|
+
limit?: number;
|
|
214
|
+
}) => Promise<unknown>;
|
|
215
|
+
} | {
|
|
216
|
+
name: string;
|
|
217
|
+
description: string;
|
|
218
|
+
inputSchema: z.ZodObject<{
|
|
219
|
+
since: z.ZodOptional<z.ZodString>;
|
|
220
|
+
until: z.ZodOptional<z.ZodString>;
|
|
221
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
handler: (args: {
|
|
224
|
+
since?: string;
|
|
225
|
+
until?: string;
|
|
226
|
+
limit?: number;
|
|
227
|
+
}) => Promise<unknown>;
|
|
228
|
+
} | {
|
|
229
|
+
name: string;
|
|
230
|
+
description: string;
|
|
231
|
+
inputSchema: z.ZodObject<{
|
|
232
|
+
accountId: z.ZodString;
|
|
233
|
+
file: z.ZodString;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
handler: (args: {
|
|
236
|
+
accountId: string;
|
|
237
|
+
file: string;
|
|
238
|
+
}) => Promise<unknown>;
|
|
247
239
|
})[];
|
|
248
240
|
//# sourceMappingURL=posts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/tools/posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,M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