@voxburst/mcp-server 0.2.1 → 0.2.3

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.
@@ -2,7 +2,7 @@
2
2
  * Analytics MCP Tools
3
3
  */
4
4
  import { z } from 'zod';
5
- import type { VoxBurstClient, PostMetrics, AccountMetrics } from '../client.js';
5
+ import type { VoxBurstClient, PostMetrics, AccountMetrics, AnalyticsOverview } from '../client.js';
6
6
  export declare const GetPostMetricsSchema: z.ZodObject<{
7
7
  postId: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
@@ -17,6 +17,16 @@ export declare const GetAccountMetricsSchema: z.ZodObject<{
17
17
  }, {
18
18
  accountId: string;
19
19
  }>;
20
+ export declare const GetAnalyticsOverviewSchema: z.ZodObject<{
21
+ startDate: z.ZodOptional<z.ZodString>;
22
+ endDate: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ startDate?: string | undefined;
25
+ endDate?: string | undefined;
26
+ }, {
27
+ startDate?: string | undefined;
28
+ endDate?: string | undefined;
29
+ }>;
20
30
  export declare function getAnalyticsTools(): ({
21
31
  name: string;
22
32
  description: string;
@@ -28,6 +38,8 @@ export declare function getAnalyticsTools(): ({
28
38
  description: string;
29
39
  };
30
40
  accountId?: undefined;
41
+ startDate?: undefined;
42
+ endDate?: undefined;
31
43
  };
32
44
  required: string[];
33
45
  };
@@ -42,10 +54,32 @@ export declare function getAnalyticsTools(): ({
42
54
  description: string;
43
55
  };
44
56
  postId?: undefined;
57
+ startDate?: undefined;
58
+ endDate?: undefined;
45
59
  };
46
60
  required: string[];
47
61
  };
62
+ } | {
63
+ name: string;
64
+ description: string;
65
+ inputSchema: {
66
+ type: "object";
67
+ properties: {
68
+ startDate: {
69
+ type: string;
70
+ description: string;
71
+ };
72
+ endDate: {
73
+ type: string;
74
+ description: string;
75
+ };
76
+ postId?: undefined;
77
+ accountId?: undefined;
78
+ };
79
+ required: never[];
80
+ };
48
81
  })[];
49
82
  export declare function handleGetPostMetrics(client: VoxBurstClient, args: unknown): Promise<PostMetrics>;
50
83
  export declare function handleGetAccountMetrics(client: VoxBurstClient, args: unknown): Promise<AccountMetrics>;
84
+ export declare function handleGetAnalyticsOverview(client: VoxBurstClient, args: unknown): Promise<AnalyticsOverview>;
51
85
  //# sourceMappingURL=analytics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/tools/analytics.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGhF,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AAGH,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+BhC;AAGD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,WAAW,CAAC,CAGtB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,cAAc,CAAC,CAGzB"}
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/tools/analytics.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGnG,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AAGH,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDhC;AAGD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,WAAW,CAAC,CAGtB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,cAAc,CAAC,CAGzB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,iBAAiB,CAAC,CAM5B"}
@@ -3,10 +3,11 @@
3
3
  * Analytics MCP Tools
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GetAccountMetricsSchema = exports.GetPostMetricsSchema = void 0;
6
+ exports.GetAnalyticsOverviewSchema = exports.GetAccountMetricsSchema = exports.GetPostMetricsSchema = void 0;
7
7
  exports.getAnalyticsTools = getAnalyticsTools;
8
8
  exports.handleGetPostMetrics = handleGetPostMetrics;
9
9
  exports.handleGetAccountMetrics = handleGetAccountMetrics;
10
+ exports.handleGetAnalyticsOverview = handleGetAnalyticsOverview;
10
11
  const zod_1 = require("zod");
11
12
  // Input schemas
12
13
  exports.GetPostMetricsSchema = zod_1.z.object({
@@ -15,6 +16,10 @@ exports.GetPostMetricsSchema = zod_1.z.object({
15
16
  exports.GetAccountMetricsSchema = zod_1.z.object({
16
17
  accountId: zod_1.z.string().describe('The unique identifier of the account'),
17
18
  });
19
+ exports.GetAnalyticsOverviewSchema = zod_1.z.object({
20
+ startDate: zod_1.z.string().optional().describe('Start date for the analytics period (ISO date, e.g. 2024-01-01)'),
21
+ endDate: zod_1.z.string().optional().describe('End date for the analytics period (ISO date, e.g. 2024-01-31)'),
22
+ });
18
23
  // Tool definitions
19
24
  function getAnalyticsTools() {
20
25
  return [
@@ -46,6 +51,24 @@ function getAnalyticsTools() {
46
51
  required: ['accountId'],
47
52
  },
48
53
  },
54
+ {
55
+ name: 'get_analytics_overview',
56
+ description: 'Get an overview of analytics across all connected accounts for a date range. Returns total impressions, engagements, top posts, and best posting time.',
57
+ inputSchema: {
58
+ type: 'object',
59
+ properties: {
60
+ startDate: {
61
+ type: 'string',
62
+ description: 'Start date for the analytics period (ISO date, e.g. 2024-01-01)',
63
+ },
64
+ endDate: {
65
+ type: 'string',
66
+ description: 'End date for the analytics period (ISO date, e.g. 2024-01-31)',
67
+ },
68
+ },
69
+ required: [],
70
+ },
71
+ },
49
72
  ];
50
73
  }
51
74
  // Tool handlers
@@ -57,4 +80,11 @@ async function handleGetAccountMetrics(client, args) {
57
80
  const { accountId } = exports.GetAccountMetricsSchema.parse(args);
58
81
  return client.getAccountMetrics(accountId);
59
82
  }
83
+ async function handleGetAnalyticsOverview(client, args) {
84
+ const params = exports.GetAnalyticsOverviewSchema.parse(args);
85
+ return client.getAnalyticsOverview({
86
+ startDate: params.startDate,
87
+ endDate: params.endDate,
88
+ });
89
+ }
60
90
  //# sourceMappingURL=analytics.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/tools/analytics.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAeH,8CA+BC;AAGD,oDAMC;AAED,0DAMC;AA7DD,6BAAwB;AAGxB,gBAAgB;AACH,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;CACjE,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;CACvE,CAAC,CAAC;AAEH,mBAAmB;AACnB,SAAgB,iBAAiB;IAC/B,OAAO;QACL;YACE,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,wGAAwG;YACrH,WAA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ACF;KACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACT,KAAK,UAAU,oBAAoB,CACxC,MAAsB,EACtB,IAAa;IAEb,MAAM,EAAE,MAAM,EAAE,GAAG,4BAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC;AAEM,KAAK,UAAU,uBAAuB,CAC3C,MAAsB,EACtB,IAAa;IAEb,MAAM,EAAE,SAAS,EAAE,GAAG,+BAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1D,OAAO,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAC7C,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAAsB,EACtB,IAAa;IAEb,MAAM,MAAM,GAAG,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtD,OAAO,MAAM,CAAC,oBAAoB,CAAC;QACjC,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC,CAAC;AACL,CAAC"}
@@ -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
  */
@@ -35,11 +35,39 @@ export declare function getAllTools(): ({
35
35
  type: string;
36
36
  description: string;
37
37
  };
38
+ saveAsDraft: {
39
+ type: string;
40
+ description: string;
41
+ };
38
42
  status?: undefined;
39
43
  accountId?: undefined;
40
44
  limit?: undefined;
41
- offset?: undefined;
45
+ cursor?: undefined;
42
46
  postId?: undefined;
47
+ platforms?: undefined;
48
+ };
49
+ required: string[];
50
+ };
51
+ } | {
52
+ name: string;
53
+ description: string;
54
+ inputSchema: {
55
+ type: "object";
56
+ properties: {
57
+ postId: {
58
+ type: string;
59
+ description: string;
60
+ };
61
+ content?: undefined;
62
+ mediaUrls?: undefined;
63
+ accountIds?: undefined;
64
+ scheduledFor?: undefined;
65
+ saveAsDraft?: undefined;
66
+ status?: undefined;
67
+ accountId?: undefined;
68
+ limit?: undefined;
69
+ cursor?: undefined;
70
+ platforms?: undefined;
43
71
  };
44
72
  required: string[];
45
73
  };
@@ -53,7 +81,7 @@ export declare function getAllTools(): ({
53
81
  type: string;
54
82
  description: string;
55
83
  };
56
- accountIds: {
84
+ platforms: {
57
85
  type: string;
58
86
  items: {
59
87
  type: string;
@@ -61,15 +89,52 @@ export declare function getAllTools(): ({
61
89
  description: string;
62
90
  };
63
91
  mediaUrls?: undefined;
92
+ accountIds?: undefined;
64
93
  scheduledFor?: undefined;
94
+ saveAsDraft?: undefined;
65
95
  status?: undefined;
66
96
  accountId?: undefined;
67
97
  limit?: undefined;
68
- offset?: undefined;
98
+ cursor?: undefined;
69
99
  postId?: undefined;
70
100
  };
71
101
  required: string[];
72
102
  };
103
+ } | {
104
+ name: string;
105
+ description: string;
106
+ inputSchema: {
107
+ type: "object";
108
+ properties: {
109
+ postId: {
110
+ type: string;
111
+ description: string;
112
+ };
113
+ content: {
114
+ type: string;
115
+ description: string;
116
+ };
117
+ scheduledFor: {
118
+ type: string;
119
+ description: string;
120
+ };
121
+ accountIds: {
122
+ type: string;
123
+ items: {
124
+ type: string;
125
+ };
126
+ description: string;
127
+ };
128
+ mediaUrls?: undefined;
129
+ saveAsDraft?: undefined;
130
+ status?: undefined;
131
+ accountId?: undefined;
132
+ limit?: undefined;
133
+ cursor?: undefined;
134
+ platforms?: undefined;
135
+ };
136
+ required: string[];
137
+ };
73
138
  } | {
74
139
  name: string;
75
140
  description: string;
@@ -104,6 +169,8 @@ export declare function getAllTools(): ({
104
169
  description: string;
105
170
  };
106
171
  accountId?: undefined;
172
+ startDate?: undefined;
173
+ endDate?: undefined;
107
174
  };
108
175
  required: string[];
109
176
  };
@@ -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;AACrI,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAMlG;;GAEG;AACH,wBAAgB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM1B"}
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"}
@@ -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");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAaH,kCAMC;AAjBD,uCAAqI;AAA5H,wGAAA,YAAY,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,2GAAA,eAAe,OAAA;AAAE,yGAAA,aAAa,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,iHAAA,qBAAqB,OAAA;AAChH,6CAAsF;AAA7E,8GAAA,eAAe,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AAC9D,+CAAkG;AAAzF,iHAAA,iBAAiB,OAAA;AAAE,oHAAA,oBAAoB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAEzE,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"}
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"}
@@ -8,32 +8,35 @@ export declare const CreatePostSchema: z.ZodObject<{
8
8
  mediaUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
9
  accountIds: z.ZodArray<z.ZodString, "many">;
10
10
  scheduledFor: z.ZodOptional<z.ZodString>;
11
+ saveAsDraft: z.ZodOptional<z.ZodBoolean>;
11
12
  }, "strip", z.ZodTypeAny, {
12
13
  content: string;
13
14
  accountIds: string[];
14
15
  mediaUrls?: string[] | undefined;
15
16
  scheduledFor?: string | undefined;
17
+ saveAsDraft?: boolean | undefined;
16
18
  }, {
17
19
  content: string;
18
20
  accountIds: string[];
19
21
  mediaUrls?: string[] | undefined;
20
22
  scheduledFor?: string | undefined;
23
+ saveAsDraft?: boolean | undefined;
21
24
  }>;
22
25
  export declare const ListPostsSchema: z.ZodObject<{
23
- status: z.ZodOptional<z.ZodEnum<["draft", "scheduled", "published", "failed"]>>;
26
+ status: z.ZodOptional<z.ZodEnum<["draft", "scheduled", "published", "failed", "cancelled", "unpublished"]>>;
24
27
  accountId: z.ZodOptional<z.ZodString>;
25
28
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
26
- offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
29
+ cursor: z.ZodOptional<z.ZodString>;
27
30
  }, "strip", z.ZodTypeAny, {
28
- status?: "draft" | "scheduled" | "published" | "failed" | undefined;
31
+ status?: "draft" | "scheduled" | "published" | "failed" | "cancelled" | "unpublished" | undefined;
29
32
  accountId?: string | undefined;
30
33
  limit?: number | undefined;
31
- offset?: number | undefined;
34
+ cursor?: string | undefined;
32
35
  }, {
33
- status?: "draft" | "scheduled" | "published" | "failed" | undefined;
36
+ status?: "draft" | "scheduled" | "published" | "failed" | "cancelled" | "unpublished" | undefined;
34
37
  accountId?: string | undefined;
35
38
  limit?: number | undefined;
36
- offset?: number | undefined;
39
+ cursor?: string | undefined;
37
40
  }>;
38
41
  export declare const GetPostSchema: z.ZodObject<{
39
42
  postId: z.ZodString;
@@ -51,13 +54,43 @@ export declare const DeletePostSchema: z.ZodObject<{
51
54
  }>;
52
55
  export declare const ValidateContentSchema: z.ZodObject<{
53
56
  content: z.ZodString;
54
- accountIds: z.ZodArray<z.ZodString, "many">;
57
+ platforms: z.ZodArray<z.ZodString, "many">;
55
58
  }, "strip", z.ZodTypeAny, {
56
59
  content: string;
57
- accountIds: string[];
60
+ platforms: string[];
58
61
  }, {
59
62
  content: string;
60
- accountIds: string[];
63
+ platforms: string[];
64
+ }>;
65
+ export declare const CancelPostSchema: z.ZodObject<{
66
+ postId: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ postId: string;
69
+ }, {
70
+ postId: string;
71
+ }>;
72
+ export declare const UpdatePostSchema: z.ZodObject<{
73
+ postId: z.ZodString;
74
+ content: z.ZodOptional<z.ZodString>;
75
+ scheduledFor: z.ZodOptional<z.ZodString>;
76
+ accountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ postId: string;
79
+ content?: string | undefined;
80
+ accountIds?: string[] | undefined;
81
+ scheduledFor?: string | undefined;
82
+ }, {
83
+ postId: string;
84
+ content?: string | undefined;
85
+ accountIds?: string[] | undefined;
86
+ scheduledFor?: string | undefined;
87
+ }>;
88
+ export declare const RetryPostSchema: z.ZodObject<{
89
+ postId: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ postId: string;
92
+ }, {
93
+ postId: string;
61
94
  }>;
62
95
  export declare function getPostTools(): ({
63
96
  name: string;
@@ -87,11 +120,16 @@ export declare function getPostTools(): ({
87
120
  type: string;
88
121
  description: string;
89
122
  };
123
+ saveAsDraft: {
124
+ type: string;
125
+ description: string;
126
+ };
90
127
  status?: undefined;
91
128
  accountId?: undefined;
92
129
  limit?: undefined;
93
- offset?: undefined;
130
+ cursor?: undefined;
94
131
  postId?: undefined;
132
+ platforms?: undefined;
95
133
  };
96
134
  required: string[];
97
135
  };
@@ -114,7 +152,7 @@ export declare function getPostTools(): ({
114
152
  type: string;
115
153
  description: string;
116
154
  };
117
- offset: {
155
+ cursor: {
118
156
  type: string;
119
157
  description: string;
120
158
  };
@@ -122,7 +160,9 @@ export declare function getPostTools(): ({
122
160
  mediaUrls?: undefined;
123
161
  accountIds?: undefined;
124
162
  scheduledFor?: undefined;
163
+ saveAsDraft?: undefined;
125
164
  postId?: undefined;
165
+ platforms?: undefined;
126
166
  };
127
167
  required: never[];
128
168
  };
@@ -140,10 +180,12 @@ export declare function getPostTools(): ({
140
180
  mediaUrls?: undefined;
141
181
  accountIds?: undefined;
142
182
  scheduledFor?: undefined;
183
+ saveAsDraft?: undefined;
143
184
  status?: undefined;
144
185
  accountId?: undefined;
145
186
  limit?: undefined;
146
- offset?: undefined;
187
+ cursor?: undefined;
188
+ platforms?: undefined;
147
189
  };
148
190
  required: string[];
149
191
  };
@@ -157,7 +199,7 @@ export declare function getPostTools(): ({
157
199
  type: string;
158
200
  description: string;
159
201
  };
160
- accountIds: {
202
+ platforms: {
161
203
  type: string;
162
204
  items: {
163
205
  type: string;
@@ -165,15 +207,52 @@ export declare function getPostTools(): ({
165
207
  description: string;
166
208
  };
167
209
  mediaUrls?: undefined;
210
+ accountIds?: undefined;
168
211
  scheduledFor?: undefined;
212
+ saveAsDraft?: undefined;
169
213
  status?: undefined;
170
214
  accountId?: undefined;
171
215
  limit?: undefined;
172
- offset?: undefined;
216
+ cursor?: undefined;
173
217
  postId?: undefined;
174
218
  };
175
219
  required: string[];
176
220
  };
221
+ } | {
222
+ name: string;
223
+ description: string;
224
+ inputSchema: {
225
+ type: "object";
226
+ properties: {
227
+ postId: {
228
+ type: string;
229
+ description: string;
230
+ };
231
+ content: {
232
+ type: string;
233
+ description: string;
234
+ };
235
+ scheduledFor: {
236
+ type: string;
237
+ description: string;
238
+ };
239
+ accountIds: {
240
+ type: string;
241
+ items: {
242
+ type: string;
243
+ };
244
+ description: string;
245
+ };
246
+ mediaUrls?: undefined;
247
+ saveAsDraft?: undefined;
248
+ status?: undefined;
249
+ accountId?: undefined;
250
+ limit?: undefined;
251
+ cursor?: undefined;
252
+ platforms?: undefined;
253
+ };
254
+ required: string[];
255
+ };
177
256
  })[];
178
257
  export declare function handleCreatePost(client: VoxBurstClient, args: unknown): Promise<Post>;
179
258
  export declare function handleListPosts(client: VoxBurstClient, args: unknown): Promise<Post[]>;
@@ -183,4 +262,7 @@ export declare function handleDeletePost(client: VoxBurstClient, args: unknown):
183
262
  message: string;
184
263
  }>;
185
264
  export declare function handleValidateContent(client: VoxBurstClient, args: unknown): Promise<ValidationResult>;
265
+ export declare function handleCancelPost(client: VoxBurstClient, args: unknown): Promise<Post>;
266
+ export declare function handleUpdatePost(client: VoxBurstClient, args: unknown): Promise<Post>;
267
+ export declare function handleRetryPost(client: VoxBurstClient, args: unknown): Promise<Post>;
186
268
  //# 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,EAAW,MAAM,cAAc,CAAC;AAGpF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,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;AAGH,wBAAgB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyG3B;AAGD,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,CAAC,CAQf;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,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