@buzzposter/mcp 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2262 -165
- package/dist/tools.d.ts +154 -0
- package/dist/tools.js +4218 -0
- package/package.json +11 -1
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
|
|
3
|
+
declare class BuzzPosterClient {
|
|
4
|
+
private baseUrl;
|
|
5
|
+
private apiKey;
|
|
6
|
+
constructor(config: {
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
apiKey: string;
|
|
9
|
+
});
|
|
10
|
+
request<T = unknown>(method: string, path: string, body?: unknown, query?: Record<string, string>): Promise<T>;
|
|
11
|
+
getAccount(): Promise<unknown>;
|
|
12
|
+
listAccounts(): Promise<unknown>;
|
|
13
|
+
checkAccountsHealth(): Promise<unknown>;
|
|
14
|
+
createPost(data: Record<string, unknown>): Promise<unknown>;
|
|
15
|
+
listPosts(params?: Record<string, string>): Promise<unknown>;
|
|
16
|
+
getPost(id: string): Promise<unknown>;
|
|
17
|
+
updatePost(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
18
|
+
deletePost(id: string): Promise<unknown>;
|
|
19
|
+
retryPost(id: string): Promise<unknown>;
|
|
20
|
+
getAnalytics(params?: Record<string, string>): Promise<unknown>;
|
|
21
|
+
listConversations(params?: Record<string, string>): Promise<unknown>;
|
|
22
|
+
getConversation(id: string): Promise<unknown>;
|
|
23
|
+
replyToConversation(id: string, message: string): Promise<unknown>;
|
|
24
|
+
listComments(params?: Record<string, string>): Promise<unknown>;
|
|
25
|
+
replyToComment(id: string, message: string): Promise<unknown>;
|
|
26
|
+
listReviews(params?: Record<string, string>): Promise<unknown>;
|
|
27
|
+
replyToReview(id: string, message: string): Promise<unknown>;
|
|
28
|
+
uploadMediaMultipart(filename: string, buffer: Buffer, mimeType: string): Promise<any>;
|
|
29
|
+
uploadFromUrl(data: {
|
|
30
|
+
url: string;
|
|
31
|
+
filename?: string;
|
|
32
|
+
folder?: string;
|
|
33
|
+
}): Promise<unknown>;
|
|
34
|
+
getUploadUrl(data: {
|
|
35
|
+
filename: string;
|
|
36
|
+
content_type: string;
|
|
37
|
+
}): Promise<unknown>;
|
|
38
|
+
listMedia(): Promise<unknown>;
|
|
39
|
+
deleteMedia(key: string): Promise<unknown>;
|
|
40
|
+
listSubscribers(params?: Record<string, string>): Promise<unknown>;
|
|
41
|
+
addSubscriber(data: Record<string, unknown>): Promise<unknown>;
|
|
42
|
+
listBroadcasts(params?: Record<string, string>): Promise<unknown>;
|
|
43
|
+
createBroadcast(data: Record<string, unknown>): Promise<unknown>;
|
|
44
|
+
updateBroadcast(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
45
|
+
sendBroadcast(id: string): Promise<unknown>;
|
|
46
|
+
listTags(): Promise<unknown>;
|
|
47
|
+
listSequences(): Promise<unknown>;
|
|
48
|
+
listForms(): Promise<unknown>;
|
|
49
|
+
getSubscriberByEmail(email: string): Promise<unknown>;
|
|
50
|
+
listAutomations(params?: Record<string, string>): Promise<unknown>;
|
|
51
|
+
enrollInAutomation(automationId: string, data: Record<string, unknown>): Promise<unknown>;
|
|
52
|
+
listSegments(params?: Record<string, string>): Promise<unknown>;
|
|
53
|
+
getSegment(id: string, params?: Record<string, string>): Promise<unknown>;
|
|
54
|
+
getSegmentMembers(segmentId: string, params?: Record<string, string>): Promise<unknown>;
|
|
55
|
+
deleteSegment(id: string): Promise<unknown>;
|
|
56
|
+
recalculateSegment(id: string): Promise<unknown>;
|
|
57
|
+
listCustomFields(): Promise<unknown>;
|
|
58
|
+
createCustomField(data: Record<string, unknown>): Promise<unknown>;
|
|
59
|
+
updateCustomField(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
60
|
+
deleteCustomField(id: string): Promise<unknown>;
|
|
61
|
+
tagSubscriber(subscriberId: string, data: Record<string, unknown>): Promise<unknown>;
|
|
62
|
+
updateSubscriber(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
63
|
+
deleteSubscriber(id: string): Promise<unknown>;
|
|
64
|
+
bulkCreateSubscribers(data: Record<string, unknown>): Promise<unknown>;
|
|
65
|
+
getReferralProgram(): Promise<unknown>;
|
|
66
|
+
listEspTiers(): Promise<unknown>;
|
|
67
|
+
listPostTemplates(): Promise<unknown>;
|
|
68
|
+
getPostAggregateStats(): Promise<unknown>;
|
|
69
|
+
deleteBroadcast(id: string): Promise<unknown>;
|
|
70
|
+
listEspWebhooks(): Promise<unknown>;
|
|
71
|
+
createEspWebhook(data: Record<string, unknown>): Promise<unknown>;
|
|
72
|
+
deleteEspWebhook(id: string): Promise<unknown>;
|
|
73
|
+
listKnowledge(params?: Record<string, string>): Promise<unknown>;
|
|
74
|
+
createKnowledge(data: Record<string, unknown>): Promise<unknown>;
|
|
75
|
+
getBrandVoice(): Promise<unknown>;
|
|
76
|
+
updateBrandVoice(data: Record<string, unknown>): Promise<unknown>;
|
|
77
|
+
getAudience(id: string): Promise<unknown>;
|
|
78
|
+
getDefaultAudience(): Promise<unknown>;
|
|
79
|
+
updateAudience(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
80
|
+
getTemplate(id?: string): Promise<unknown>;
|
|
81
|
+
listTemplates(): Promise<unknown>;
|
|
82
|
+
listNewsletterArchive(params?: Record<string, string>): Promise<unknown>;
|
|
83
|
+
getArchivedNewsletter(id: string): Promise<unknown>;
|
|
84
|
+
saveNewsletterToArchive(data: Record<string, unknown>): Promise<unknown>;
|
|
85
|
+
getCalendar(params?: Record<string, string>): Promise<unknown>;
|
|
86
|
+
rescheduleCalendarItem(id: string, scheduledFor: string): Promise<unknown>;
|
|
87
|
+
cancelCalendarItem(id: string): Promise<unknown>;
|
|
88
|
+
getQueue(): Promise<unknown>;
|
|
89
|
+
updateQueue(data: Record<string, unknown>): Promise<unknown>;
|
|
90
|
+
getNextSlot(): Promise<unknown>;
|
|
91
|
+
fetchFeed(url: string, limit?: number): Promise<unknown>;
|
|
92
|
+
fetchArticle(url: string): Promise<unknown>;
|
|
93
|
+
getNotifications(params?: Record<string, string>): Promise<unknown>;
|
|
94
|
+
markNotificationRead(id: number): Promise<unknown>;
|
|
95
|
+
markAllNotificationsRead(): Promise<unknown>;
|
|
96
|
+
listSources(params?: Record<string, string>): Promise<unknown>;
|
|
97
|
+
createSource(data: Record<string, unknown>): Promise<unknown>;
|
|
98
|
+
updateSource(id: number, data: Record<string, unknown>): Promise<unknown>;
|
|
99
|
+
deleteSource(id: number): Promise<unknown>;
|
|
100
|
+
checkSource(id: number): Promise<unknown>;
|
|
101
|
+
getPublishingRules(): Promise<unknown>;
|
|
102
|
+
getAuditLog(params?: Record<string, string>): Promise<unknown>;
|
|
103
|
+
validateNewsletter(data: Record<string, unknown>): Promise<unknown>;
|
|
104
|
+
scheduleBroadcast(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
105
|
+
testBroadcast(id: string, data: Record<string, unknown>): Promise<unknown>;
|
|
106
|
+
getCarouselTemplate(): Promise<unknown>;
|
|
107
|
+
updateCarouselTemplate(data: Record<string, unknown>): Promise<unknown>;
|
|
108
|
+
deleteCarouselTemplate(): Promise<unknown>;
|
|
109
|
+
generateCarousel(data: Record<string, unknown>): Promise<unknown>;
|
|
110
|
+
previewCarousel(data: Record<string, unknown>): Promise<unknown>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare function registerPostTools(server: McpServer, client: BuzzPosterClient): void;
|
|
114
|
+
|
|
115
|
+
declare function registerAccountTools(server: McpServer, client: BuzzPosterClient): void;
|
|
116
|
+
|
|
117
|
+
declare function registerAnalyticsTools(server: McpServer, client: BuzzPosterClient): void;
|
|
118
|
+
|
|
119
|
+
declare function registerInboxTools(server: McpServer, client: BuzzPosterClient): void;
|
|
120
|
+
|
|
121
|
+
declare function registerMediaTools(server: McpServer, client: BuzzPosterClient): void;
|
|
122
|
+
|
|
123
|
+
interface NewsletterToolOptions {
|
|
124
|
+
allowDirectSend?: boolean;
|
|
125
|
+
}
|
|
126
|
+
declare function registerNewsletterTools(server: McpServer, client: BuzzPosterClient, options?: NewsletterToolOptions): void;
|
|
127
|
+
|
|
128
|
+
declare function registerNewsletterAdvancedTools(server: McpServer, client: BuzzPosterClient): void;
|
|
129
|
+
|
|
130
|
+
declare function registerRssTools(server: McpServer, client: BuzzPosterClient): void;
|
|
131
|
+
|
|
132
|
+
declare function registerAccountInfoTool(server: McpServer, client: BuzzPosterClient): void;
|
|
133
|
+
|
|
134
|
+
declare function registerBrandVoiceTools(server: McpServer, client: BuzzPosterClient): void;
|
|
135
|
+
|
|
136
|
+
declare function registerKnowledgeTools(server: McpServer, client: BuzzPosterClient): void;
|
|
137
|
+
|
|
138
|
+
declare function registerAudienceTools(server: McpServer, client: BuzzPosterClient): void;
|
|
139
|
+
|
|
140
|
+
declare function registerNewsletterTemplateTools(server: McpServer, client: BuzzPosterClient): void;
|
|
141
|
+
|
|
142
|
+
declare function registerCalendarTools(server: McpServer, client: BuzzPosterClient): void;
|
|
143
|
+
|
|
144
|
+
declare function registerNotificationTools(server: McpServer, client: BuzzPosterClient): void;
|
|
145
|
+
|
|
146
|
+
declare function registerPublishingRulesTools(server: McpServer, client: BuzzPosterClient): void;
|
|
147
|
+
|
|
148
|
+
declare function registerAuditLogTools(server: McpServer, client: BuzzPosterClient): void;
|
|
149
|
+
|
|
150
|
+
declare function registerSourceTools(server: McpServer, client: BuzzPosterClient): void;
|
|
151
|
+
|
|
152
|
+
declare function registerCarouselTools(server: McpServer, client: BuzzPosterClient): void;
|
|
153
|
+
|
|
154
|
+
export { BuzzPosterClient, registerAccountInfoTool, registerAccountTools, registerAnalyticsTools, registerAudienceTools, registerAuditLogTools, registerBrandVoiceTools, registerCalendarTools, registerCarouselTools, registerInboxTools, registerKnowledgeTools, registerMediaTools, registerNewsletterAdvancedTools, registerNewsletterTemplateTools, registerNewsletterTools, registerNotificationTools, registerPostTools, registerPublishingRulesTools, registerRssTools, registerSourceTools };
|