@usethoth/mcp-server
Version:
Model Context Protocol server for Thoth content creation platform
41 lines • 1.28 kB
TypeScript
import { z } from 'zod';
import { PostResponse } from '../types.js';
/**
* Zod schema for update-post tool input
*/
export declare const updatePostInputSchema: z.ZodObject<{
postId: z.ZodString;
title: z.ZodOptional<z.ZodString>;
originalContent: z.ZodOptional<z.ZodString>;
platformContents: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
twitter: "twitter";
instagram: "instagram";
linkedin: "linkedin";
facebook: "facebook";
threads: "threads";
blog: "blog";
reddit: "reddit";
}>, z.ZodObject<{
content: z.ZodString;
hashtags: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>>>;
status: z.ZodOptional<z.ZodEnum<{
draft: "draft";
scheduled: "scheduled";
published: "published";
archived: "archived";
}>>;
}, z.core.$strip>;
export type UpdatePostInput = z.infer<typeof updatePostInputSchema>;
/**
* Update a post via the Thoth API
*/
export declare function updatePost(params: UpdatePostInput, config: {
apiKey: string;
baseUrl: string;
}): Promise<PostResponse>;
/**
* Format the update-post response for MCP
*/
export declare function formatUpdatePostResponse(post: PostResponse): string;
//# sourceMappingURL=update-post.d.ts.map