@voxburst/mcp-server 0.2.2 → 0.3.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/dist/__tests__/tools.test.js +13 -6
- package/dist/__tests__/tools.test.js.map +1 -1
- package/dist/client.d.ts +134 -14
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +49 -3
- package/dist/client.js.map +1 -1
- package/dist/index.js +29 -8
- package/dist/index.js.map +1 -1
- package/dist/middleware/auth.d.ts +2 -6
- package/dist/middleware/auth.d.ts.map +1 -1
- package/dist/middleware/auth.js +2 -4
- package/dist/middleware/auth.js.map +1 -1
- package/dist/resources/accounts.d.ts +2 -1
- package/dist/resources/accounts.d.ts.map +1 -1
- package/dist/resources/accounts.js +30 -18
- package/dist/resources/accounts.js.map +1 -1
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +3 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/posts.d.ts +2 -1
- package/dist/resources/posts.d.ts.map +1 -1
- package/dist/resources/posts.js +32 -23
- package/dist/resources/posts.js.map +1 -1
- package/dist/tools/accounts.js +2 -2
- package/dist/tools/accounts.js.map +1 -1
- package/dist/tools/analytics.d.ts +35 -1
- package/dist/tools/analytics.d.ts.map +1 -1
- package/dist/tools/analytics.js +31 -1
- package/dist/tools/analytics.js.map +1 -1
- package/dist/tools/index.d.ts +131 -5
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +5 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/posts.d.ts +198 -14
- package/dist/tools/posts.d.ts.map +1 -1
- package/dist/tools/posts.js +174 -22
- package/dist/tools/posts.js.map +1 -1
- package/package.json +2 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tool Registry - Exports all MCP tools
|
|
3
3
|
*/
|
|
4
|
-
export { getPostTools, handleCreatePost, handleListPosts, handleGetPost, handleDeletePost, handleValidateContent } from './posts.js';
|
|
4
|
+
export { getPostTools, handleCreatePost, handleListPosts, handleGetPost, handleDeletePost, handleValidateContent, handleCancelPost, handleUpdatePost, handleRetryPost } from './posts.js';
|
|
5
5
|
export { getAccountTools, handleListAccounts, handleGetAccount } from './accounts.js';
|
|
6
|
-
export { getAnalyticsTools, handleGetPostMetrics, handleGetAccountMetrics } from './analytics.js';
|
|
6
|
+
export { getAnalyticsTools, handleGetPostMetrics, handleGetAccountMetrics, handleGetAnalyticsOverview } from './analytics.js';
|
|
7
7
|
/**
|
|
8
8
|
* Get all available tools
|
|
9
9
|
*/
|
|
@@ -24,6 +24,13 @@ export declare function getAllTools(): ({
|
|
|
24
24
|
};
|
|
25
25
|
description: string;
|
|
26
26
|
};
|
|
27
|
+
mediaIds: {
|
|
28
|
+
type: string;
|
|
29
|
+
items: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
27
34
|
accountIds: {
|
|
28
35
|
type: string;
|
|
29
36
|
items: {
|
|
@@ -35,11 +42,60 @@ export declare function getAllTools(): ({
|
|
|
35
42
|
type: string;
|
|
36
43
|
description: string;
|
|
37
44
|
};
|
|
45
|
+
saveAsDraft: {
|
|
46
|
+
type: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
contentType: {
|
|
50
|
+
type: string;
|
|
51
|
+
enum: string[];
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
firstComment: {
|
|
55
|
+
type: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
firstCommentDelay: {
|
|
59
|
+
type: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
38
62
|
status?: undefined;
|
|
39
63
|
accountId?: undefined;
|
|
40
64
|
limit?: undefined;
|
|
41
|
-
|
|
65
|
+
cursor?: undefined;
|
|
42
66
|
postId?: undefined;
|
|
67
|
+
platforms?: undefined;
|
|
68
|
+
media?: undefined;
|
|
69
|
+
platformOverrides?: undefined;
|
|
70
|
+
};
|
|
71
|
+
required: string[];
|
|
72
|
+
};
|
|
73
|
+
} | {
|
|
74
|
+
name: string;
|
|
75
|
+
description: string;
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: "object";
|
|
78
|
+
properties: {
|
|
79
|
+
postId: {
|
|
80
|
+
type: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
content?: undefined;
|
|
84
|
+
mediaUrls?: undefined;
|
|
85
|
+
mediaIds?: undefined;
|
|
86
|
+
accountIds?: undefined;
|
|
87
|
+
scheduledFor?: undefined;
|
|
88
|
+
saveAsDraft?: undefined;
|
|
89
|
+
contentType?: undefined;
|
|
90
|
+
firstComment?: undefined;
|
|
91
|
+
firstCommentDelay?: undefined;
|
|
92
|
+
status?: undefined;
|
|
93
|
+
accountId?: undefined;
|
|
94
|
+
limit?: undefined;
|
|
95
|
+
cursor?: undefined;
|
|
96
|
+
platforms?: undefined;
|
|
97
|
+
media?: undefined;
|
|
98
|
+
platformOverrides?: undefined;
|
|
43
99
|
};
|
|
44
100
|
required: string[];
|
|
45
101
|
};
|
|
@@ -53,7 +109,7 @@ export declare function getAllTools(): ({
|
|
|
53
109
|
type: string;
|
|
54
110
|
description: string;
|
|
55
111
|
};
|
|
56
|
-
|
|
112
|
+
platforms: {
|
|
57
113
|
type: string;
|
|
58
114
|
items: {
|
|
59
115
|
type: string;
|
|
@@ -61,12 +117,80 @@ export declare function getAllTools(): ({
|
|
|
61
117
|
description: string;
|
|
62
118
|
};
|
|
63
119
|
mediaUrls?: undefined;
|
|
120
|
+
mediaIds?: undefined;
|
|
121
|
+
accountIds?: undefined;
|
|
64
122
|
scheduledFor?: undefined;
|
|
123
|
+
saveAsDraft?: undefined;
|
|
124
|
+
contentType?: undefined;
|
|
125
|
+
firstComment?: undefined;
|
|
126
|
+
firstCommentDelay?: undefined;
|
|
65
127
|
status?: undefined;
|
|
66
128
|
accountId?: undefined;
|
|
67
129
|
limit?: undefined;
|
|
68
|
-
|
|
130
|
+
cursor?: undefined;
|
|
69
131
|
postId?: undefined;
|
|
132
|
+
media?: undefined;
|
|
133
|
+
platformOverrides?: undefined;
|
|
134
|
+
};
|
|
135
|
+
required: string[];
|
|
136
|
+
};
|
|
137
|
+
} | {
|
|
138
|
+
name: string;
|
|
139
|
+
description: string;
|
|
140
|
+
inputSchema: {
|
|
141
|
+
type: "object";
|
|
142
|
+
properties: {
|
|
143
|
+
postId: {
|
|
144
|
+
type: string;
|
|
145
|
+
description: string;
|
|
146
|
+
};
|
|
147
|
+
content: {
|
|
148
|
+
type: string;
|
|
149
|
+
description: string;
|
|
150
|
+
};
|
|
151
|
+
scheduledFor: {
|
|
152
|
+
type: string;
|
|
153
|
+
description: string;
|
|
154
|
+
};
|
|
155
|
+
accountIds: {
|
|
156
|
+
type: string;
|
|
157
|
+
items: {
|
|
158
|
+
type: string;
|
|
159
|
+
};
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
contentType: {
|
|
163
|
+
type: string;
|
|
164
|
+
enum: string[];
|
|
165
|
+
description: string;
|
|
166
|
+
};
|
|
167
|
+
firstComment: {
|
|
168
|
+
type: string;
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
firstCommentDelay: {
|
|
172
|
+
type: string;
|
|
173
|
+
description: string;
|
|
174
|
+
};
|
|
175
|
+
media: {
|
|
176
|
+
type: string;
|
|
177
|
+
items: {
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
platformOverrides: {
|
|
183
|
+
type: string;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
mediaUrls?: undefined;
|
|
187
|
+
mediaIds?: undefined;
|
|
188
|
+
saveAsDraft?: undefined;
|
|
189
|
+
status?: undefined;
|
|
190
|
+
accountId?: undefined;
|
|
191
|
+
limit?: undefined;
|
|
192
|
+
cursor?: undefined;
|
|
193
|
+
platforms?: undefined;
|
|
70
194
|
};
|
|
71
195
|
required: string[];
|
|
72
196
|
};
|
|
@@ -104,6 +228,8 @@ export declare function getAllTools(): ({
|
|
|
104
228
|
description: string;
|
|
105
229
|
};
|
|
106
230
|
accountId?: undefined;
|
|
231
|
+
startDate?: undefined;
|
|
232
|
+
endDate?: undefined;
|
|
107
233
|
};
|
|
108
234
|
required: string[];
|
|
109
235
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC1L,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAM9H;;GAEG;AACH,wBAAgB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM1B"}
|
package/dist/tools/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Tool Registry - Exports all MCP tools
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.handleGetAccountMetrics = exports.handleGetPostMetrics = exports.getAnalyticsTools = exports.handleGetAccount = exports.handleListAccounts = exports.getAccountTools = exports.handleValidateContent = exports.handleDeletePost = exports.handleGetPost = exports.handleListPosts = exports.handleCreatePost = exports.getPostTools = void 0;
|
|
6
|
+
exports.handleGetAnalyticsOverview = exports.handleGetAccountMetrics = exports.handleGetPostMetrics = exports.getAnalyticsTools = exports.handleGetAccount = exports.handleListAccounts = exports.getAccountTools = exports.handleRetryPost = exports.handleUpdatePost = exports.handleCancelPost = exports.handleValidateContent = exports.handleDeletePost = exports.handleGetPost = exports.handleListPosts = exports.handleCreatePost = exports.getPostTools = void 0;
|
|
7
7
|
exports.getAllTools = getAllTools;
|
|
8
8
|
var posts_js_1 = require("./posts.js");
|
|
9
9
|
Object.defineProperty(exports, "getPostTools", { enumerable: true, get: function () { return posts_js_1.getPostTools; } });
|
|
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "handleListPosts", { enumerable: true, get: funct
|
|
|
12
12
|
Object.defineProperty(exports, "handleGetPost", { enumerable: true, get: function () { return posts_js_1.handleGetPost; } });
|
|
13
13
|
Object.defineProperty(exports, "handleDeletePost", { enumerable: true, get: function () { return posts_js_1.handleDeletePost; } });
|
|
14
14
|
Object.defineProperty(exports, "handleValidateContent", { enumerable: true, get: function () { return posts_js_1.handleValidateContent; } });
|
|
15
|
+
Object.defineProperty(exports, "handleCancelPost", { enumerable: true, get: function () { return posts_js_1.handleCancelPost; } });
|
|
16
|
+
Object.defineProperty(exports, "handleUpdatePost", { enumerable: true, get: function () { return posts_js_1.handleUpdatePost; } });
|
|
17
|
+
Object.defineProperty(exports, "handleRetryPost", { enumerable: true, get: function () { return posts_js_1.handleRetryPost; } });
|
|
15
18
|
var accounts_js_1 = require("./accounts.js");
|
|
16
19
|
Object.defineProperty(exports, "getAccountTools", { enumerable: true, get: function () { return accounts_js_1.getAccountTools; } });
|
|
17
20
|
Object.defineProperty(exports, "handleListAccounts", { enumerable: true, get: function () { return accounts_js_1.handleListAccounts; } });
|
|
@@ -20,6 +23,7 @@ var analytics_js_1 = require("./analytics.js");
|
|
|
20
23
|
Object.defineProperty(exports, "getAnalyticsTools", { enumerable: true, get: function () { return analytics_js_1.getAnalyticsTools; } });
|
|
21
24
|
Object.defineProperty(exports, "handleGetPostMetrics", { enumerable: true, get: function () { return analytics_js_1.handleGetPostMetrics; } });
|
|
22
25
|
Object.defineProperty(exports, "handleGetAccountMetrics", { enumerable: true, get: function () { return analytics_js_1.handleGetAccountMetrics; } });
|
|
26
|
+
Object.defineProperty(exports, "handleGetAnalyticsOverview", { enumerable: true, get: function () { return analytics_js_1.handleGetAnalyticsOverview; } });
|
|
23
27
|
const posts_js_2 = require("./posts.js");
|
|
24
28
|
const accounts_js_2 = require("./accounts.js");
|
|
25
29
|
const analytics_js_2 = require("./analytics.js");
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAaH,kCAMC;AAjBD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAaH,kCAMC;AAjBD,uCAA0L;AAAjL,wGAAA,YAAY,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,2GAAA,eAAe,OAAA;AAAE,yGAAA,aAAa,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,iHAAA,qBAAqB,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,2GAAA,eAAe,OAAA;AACrK,6CAAsF;AAA7E,8GAAA,eAAe,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AAC9D,+CAA8H;AAArH,iHAAA,iBAAiB,OAAA;AAAE,oHAAA,oBAAoB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,0HAAA,0BAA0B,OAAA;AAErG,yCAA0C;AAC1C,+CAAgD;AAChD,iDAAmD;AAEnD;;GAEG;AACH,SAAgB,WAAW;IACzB,OAAO;QACL,GAAG,IAAA,uBAAY,GAAE;QACjB,GAAG,IAAA,6BAAe,GAAE;QACpB,GAAG,IAAA,gCAAiB,GAAE;KACvB,CAAC;AACJ,CAAC"}
|
package/dist/tools/posts.d.ts
CHANGED
|
@@ -6,34 +6,49 @@ import type { VoxBurstClient, Post, ValidationResult } from '../client.js';
|
|
|
6
6
|
export declare const CreatePostSchema: z.ZodObject<{
|
|
7
7
|
content: z.ZodString;
|
|
8
8
|
mediaUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
mediaIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
10
|
accountIds: z.ZodArray<z.ZodString, "many">;
|
|
10
11
|
scheduledFor: z.ZodOptional<z.ZodString>;
|
|
12
|
+
saveAsDraft: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
contentType: z.ZodOptional<z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "CAROUSEL", "THREAD", "STORY", "REEL"]>>;
|
|
14
|
+
firstComment: z.ZodOptional<z.ZodString>;
|
|
15
|
+
firstCommentDelay: z.ZodOptional<z.ZodNumber>;
|
|
11
16
|
}, "strip", z.ZodTypeAny, {
|
|
12
17
|
content: string;
|
|
13
18
|
accountIds: string[];
|
|
14
19
|
mediaUrls?: string[] | undefined;
|
|
20
|
+
mediaIds?: string[] | undefined;
|
|
15
21
|
scheduledFor?: string | undefined;
|
|
22
|
+
saveAsDraft?: boolean | undefined;
|
|
23
|
+
contentType?: "TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL" | "THREAD" | "STORY" | "REEL" | undefined;
|
|
24
|
+
firstComment?: string | undefined;
|
|
25
|
+
firstCommentDelay?: number | undefined;
|
|
16
26
|
}, {
|
|
17
27
|
content: string;
|
|
18
28
|
accountIds: string[];
|
|
19
29
|
mediaUrls?: string[] | undefined;
|
|
30
|
+
mediaIds?: string[] | undefined;
|
|
20
31
|
scheduledFor?: string | undefined;
|
|
32
|
+
saveAsDraft?: boolean | undefined;
|
|
33
|
+
contentType?: "TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL" | "THREAD" | "STORY" | "REEL" | undefined;
|
|
34
|
+
firstComment?: string | undefined;
|
|
35
|
+
firstCommentDelay?: number | undefined;
|
|
21
36
|
}>;
|
|
22
37
|
export declare const ListPostsSchema: z.ZodObject<{
|
|
23
|
-
status: z.ZodOptional<z.ZodEnum<["draft", "scheduled", "published", "failed"]>>;
|
|
38
|
+
status: z.ZodOptional<z.ZodEnum<["draft", "approved", "scheduled", "publishing", "published", "failed", "partial", "cancelled", "unpublished", "archived", "all"]>>;
|
|
24
39
|
accountId: z.ZodOptional<z.ZodString>;
|
|
25
40
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
26
|
-
|
|
41
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
27
42
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
status?: "draft" | "scheduled" | "published" | "failed" | undefined;
|
|
43
|
+
status?: "draft" | "approved" | "scheduled" | "publishing" | "published" | "failed" | "partial" | "cancelled" | "unpublished" | "archived" | "all" | undefined;
|
|
29
44
|
accountId?: string | undefined;
|
|
30
45
|
limit?: number | undefined;
|
|
31
|
-
|
|
46
|
+
cursor?: string | undefined;
|
|
32
47
|
}, {
|
|
33
|
-
status?: "draft" | "scheduled" | "published" | "failed" | undefined;
|
|
48
|
+
status?: "draft" | "approved" | "scheduled" | "publishing" | "published" | "failed" | "partial" | "cancelled" | "unpublished" | "archived" | "all" | undefined;
|
|
34
49
|
accountId?: string | undefined;
|
|
35
50
|
limit?: number | undefined;
|
|
36
|
-
|
|
51
|
+
cursor?: string | undefined;
|
|
37
52
|
}>;
|
|
38
53
|
export declare const GetPostSchema: z.ZodObject<{
|
|
39
54
|
postId: z.ZodString;
|
|
@@ -51,13 +66,68 @@ export declare const DeletePostSchema: z.ZodObject<{
|
|
|
51
66
|
}>;
|
|
52
67
|
export declare const ValidateContentSchema: z.ZodObject<{
|
|
53
68
|
content: z.ZodString;
|
|
54
|
-
|
|
69
|
+
platforms: z.ZodArray<z.ZodString, "many">;
|
|
55
70
|
}, "strip", z.ZodTypeAny, {
|
|
56
71
|
content: string;
|
|
57
|
-
|
|
72
|
+
platforms: string[];
|
|
58
73
|
}, {
|
|
59
74
|
content: string;
|
|
60
|
-
|
|
75
|
+
platforms: string[];
|
|
76
|
+
}>;
|
|
77
|
+
export declare const CancelPostSchema: z.ZodObject<{
|
|
78
|
+
postId: z.ZodString;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
postId: string;
|
|
81
|
+
}, {
|
|
82
|
+
postId: string;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const UpdatePostSchema: z.ZodObject<{
|
|
85
|
+
postId: z.ZodString;
|
|
86
|
+
content: z.ZodOptional<z.ZodString>;
|
|
87
|
+
scheduledFor: z.ZodOptional<z.ZodString>;
|
|
88
|
+
accountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
89
|
+
contentType: z.ZodOptional<z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "CAROUSEL", "THREAD", "STORY", "REEL"]>>;
|
|
90
|
+
firstComment: z.ZodOptional<z.ZodString>;
|
|
91
|
+
firstCommentDelay: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
media: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
93
|
+
platformOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
94
|
+
content: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
content?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
content?: string | undefined;
|
|
99
|
+
}>>>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
postId: string;
|
|
102
|
+
content?: string | undefined;
|
|
103
|
+
accountIds?: string[] | undefined;
|
|
104
|
+
scheduledFor?: string | undefined;
|
|
105
|
+
contentType?: "TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL" | "THREAD" | "STORY" | "REEL" | undefined;
|
|
106
|
+
firstComment?: string | undefined;
|
|
107
|
+
firstCommentDelay?: number | undefined;
|
|
108
|
+
media?: string[] | undefined;
|
|
109
|
+
platformOverrides?: Record<string, {
|
|
110
|
+
content?: string | undefined;
|
|
111
|
+
}> | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
postId: string;
|
|
114
|
+
content?: string | undefined;
|
|
115
|
+
accountIds?: string[] | undefined;
|
|
116
|
+
scheduledFor?: string | undefined;
|
|
117
|
+
contentType?: "TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL" | "THREAD" | "STORY" | "REEL" | undefined;
|
|
118
|
+
firstComment?: string | undefined;
|
|
119
|
+
firstCommentDelay?: number | undefined;
|
|
120
|
+
media?: string[] | undefined;
|
|
121
|
+
platformOverrides?: Record<string, {
|
|
122
|
+
content?: string | undefined;
|
|
123
|
+
}> | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
export declare const RetryPostSchema: z.ZodObject<{
|
|
126
|
+
postId: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
postId: string;
|
|
129
|
+
}, {
|
|
130
|
+
postId: string;
|
|
61
131
|
}>;
|
|
62
132
|
export declare function getPostTools(): ({
|
|
63
133
|
name: string;
|
|
@@ -76,6 +146,13 @@ export declare function getPostTools(): ({
|
|
|
76
146
|
};
|
|
77
147
|
description: string;
|
|
78
148
|
};
|
|
149
|
+
mediaIds: {
|
|
150
|
+
type: string;
|
|
151
|
+
items: {
|
|
152
|
+
type: string;
|
|
153
|
+
};
|
|
154
|
+
description: string;
|
|
155
|
+
};
|
|
79
156
|
accountIds: {
|
|
80
157
|
type: string;
|
|
81
158
|
items: {
|
|
@@ -87,11 +164,31 @@ export declare function getPostTools(): ({
|
|
|
87
164
|
type: string;
|
|
88
165
|
description: string;
|
|
89
166
|
};
|
|
167
|
+
saveAsDraft: {
|
|
168
|
+
type: string;
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
contentType: {
|
|
172
|
+
type: string;
|
|
173
|
+
enum: string[];
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
firstComment: {
|
|
177
|
+
type: string;
|
|
178
|
+
description: string;
|
|
179
|
+
};
|
|
180
|
+
firstCommentDelay: {
|
|
181
|
+
type: string;
|
|
182
|
+
description: string;
|
|
183
|
+
};
|
|
90
184
|
status?: undefined;
|
|
91
185
|
accountId?: undefined;
|
|
92
186
|
limit?: undefined;
|
|
93
|
-
|
|
187
|
+
cursor?: undefined;
|
|
94
188
|
postId?: undefined;
|
|
189
|
+
platforms?: undefined;
|
|
190
|
+
media?: undefined;
|
|
191
|
+
platformOverrides?: undefined;
|
|
95
192
|
};
|
|
96
193
|
required: string[];
|
|
97
194
|
};
|
|
@@ -114,15 +211,23 @@ export declare function getPostTools(): ({
|
|
|
114
211
|
type: string;
|
|
115
212
|
description: string;
|
|
116
213
|
};
|
|
117
|
-
|
|
214
|
+
cursor: {
|
|
118
215
|
type: string;
|
|
119
216
|
description: string;
|
|
120
217
|
};
|
|
121
218
|
content?: undefined;
|
|
122
219
|
mediaUrls?: undefined;
|
|
220
|
+
mediaIds?: undefined;
|
|
123
221
|
accountIds?: undefined;
|
|
124
222
|
scheduledFor?: undefined;
|
|
223
|
+
saveAsDraft?: undefined;
|
|
224
|
+
contentType?: undefined;
|
|
225
|
+
firstComment?: undefined;
|
|
226
|
+
firstCommentDelay?: undefined;
|
|
125
227
|
postId?: undefined;
|
|
228
|
+
platforms?: undefined;
|
|
229
|
+
media?: undefined;
|
|
230
|
+
platformOverrides?: undefined;
|
|
126
231
|
};
|
|
127
232
|
required: never[];
|
|
128
233
|
};
|
|
@@ -138,12 +243,20 @@ export declare function getPostTools(): ({
|
|
|
138
243
|
};
|
|
139
244
|
content?: undefined;
|
|
140
245
|
mediaUrls?: undefined;
|
|
246
|
+
mediaIds?: undefined;
|
|
141
247
|
accountIds?: undefined;
|
|
142
248
|
scheduledFor?: undefined;
|
|
249
|
+
saveAsDraft?: undefined;
|
|
250
|
+
contentType?: undefined;
|
|
251
|
+
firstComment?: undefined;
|
|
252
|
+
firstCommentDelay?: undefined;
|
|
143
253
|
status?: undefined;
|
|
144
254
|
accountId?: undefined;
|
|
145
255
|
limit?: undefined;
|
|
146
|
-
|
|
256
|
+
cursor?: undefined;
|
|
257
|
+
platforms?: undefined;
|
|
258
|
+
media?: undefined;
|
|
259
|
+
platformOverrides?: undefined;
|
|
147
260
|
};
|
|
148
261
|
required: string[];
|
|
149
262
|
};
|
|
@@ -157,7 +270,7 @@ export declare function getPostTools(): ({
|
|
|
157
270
|
type: string;
|
|
158
271
|
description: string;
|
|
159
272
|
};
|
|
160
|
-
|
|
273
|
+
platforms: {
|
|
161
274
|
type: string;
|
|
162
275
|
items: {
|
|
163
276
|
type: string;
|
|
@@ -165,12 +278,80 @@ export declare function getPostTools(): ({
|
|
|
165
278
|
description: string;
|
|
166
279
|
};
|
|
167
280
|
mediaUrls?: undefined;
|
|
281
|
+
mediaIds?: undefined;
|
|
282
|
+
accountIds?: undefined;
|
|
168
283
|
scheduledFor?: undefined;
|
|
284
|
+
saveAsDraft?: undefined;
|
|
285
|
+
contentType?: undefined;
|
|
286
|
+
firstComment?: undefined;
|
|
287
|
+
firstCommentDelay?: undefined;
|
|
169
288
|
status?: undefined;
|
|
170
289
|
accountId?: undefined;
|
|
171
290
|
limit?: undefined;
|
|
172
|
-
|
|
291
|
+
cursor?: undefined;
|
|
173
292
|
postId?: undefined;
|
|
293
|
+
media?: undefined;
|
|
294
|
+
platformOverrides?: undefined;
|
|
295
|
+
};
|
|
296
|
+
required: string[];
|
|
297
|
+
};
|
|
298
|
+
} | {
|
|
299
|
+
name: string;
|
|
300
|
+
description: string;
|
|
301
|
+
inputSchema: {
|
|
302
|
+
type: "object";
|
|
303
|
+
properties: {
|
|
304
|
+
postId: {
|
|
305
|
+
type: string;
|
|
306
|
+
description: string;
|
|
307
|
+
};
|
|
308
|
+
content: {
|
|
309
|
+
type: string;
|
|
310
|
+
description: string;
|
|
311
|
+
};
|
|
312
|
+
scheduledFor: {
|
|
313
|
+
type: string;
|
|
314
|
+
description: string;
|
|
315
|
+
};
|
|
316
|
+
accountIds: {
|
|
317
|
+
type: string;
|
|
318
|
+
items: {
|
|
319
|
+
type: string;
|
|
320
|
+
};
|
|
321
|
+
description: string;
|
|
322
|
+
};
|
|
323
|
+
contentType: {
|
|
324
|
+
type: string;
|
|
325
|
+
enum: string[];
|
|
326
|
+
description: string;
|
|
327
|
+
};
|
|
328
|
+
firstComment: {
|
|
329
|
+
type: string;
|
|
330
|
+
description: string;
|
|
331
|
+
};
|
|
332
|
+
firstCommentDelay: {
|
|
333
|
+
type: string;
|
|
334
|
+
description: string;
|
|
335
|
+
};
|
|
336
|
+
media: {
|
|
337
|
+
type: string;
|
|
338
|
+
items: {
|
|
339
|
+
type: string;
|
|
340
|
+
};
|
|
341
|
+
description: string;
|
|
342
|
+
};
|
|
343
|
+
platformOverrides: {
|
|
344
|
+
type: string;
|
|
345
|
+
description: string;
|
|
346
|
+
};
|
|
347
|
+
mediaUrls?: undefined;
|
|
348
|
+
mediaIds?: undefined;
|
|
349
|
+
saveAsDraft?: undefined;
|
|
350
|
+
status?: undefined;
|
|
351
|
+
accountId?: undefined;
|
|
352
|
+
limit?: undefined;
|
|
353
|
+
cursor?: undefined;
|
|
354
|
+
platforms?: undefined;
|
|
174
355
|
};
|
|
175
356
|
required: string[];
|
|
176
357
|
};
|
|
@@ -183,4 +364,7 @@ export declare function handleDeletePost(client: VoxBurstClient, args: unknown):
|
|
|
183
364
|
message: string;
|
|
184
365
|
}>;
|
|
185
366
|
export declare function handleValidateContent(client: VoxBurstClient, args: unknown): Promise<ValidationResult>;
|
|
367
|
+
export declare function handleCancelPost(client: VoxBurstClient, args: unknown): Promise<Post>;
|
|
368
|
+
export declare function handleUpdatePost(client: VoxBurstClient, args: unknown): Promise<Post>;
|
|
369
|
+
export declare function handleRetryPost(client: VoxBurstClient, args: unknown): Promise<Post>;
|
|
186
370
|
//# sourceMappingURL=posts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/tools/posts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/tools/posts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,gBAAgB,EAAkC,MAAM,cAAc,CAAC;AAK3G,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU3B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;EAExB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU3B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAGH,wBAAgB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4M3B;AAGD,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,CAAC,CAaf;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,EAAE,CAAC,CAQjB;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAIhD;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,gBAAgB,CAAC,CAG3B;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,CAAC,CAGf"}
|