pocketsmith-mcp
Version:
MCP server for managing budgets via PocketSmith API
108 lines (107 loc) • 3.86 kB
TypeScript
/**
* @fileoverview Get all attachments for a user from PocketSmith
*/
import { z } from "zod";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { RequestContext } from "../../../utils/index.js";
export declare const GetUserAttachmentsInputSchema: z.ZodObject<{
apiKey: z.ZodOptional<z.ZodString>;
accessToken: z.ZodOptional<z.ZodString>;
userId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
apiKey?: string | undefined;
accessToken?: string | undefined;
userId?: number | undefined;
}, {
apiKey?: string | undefined;
accessToken?: string | undefined;
userId?: number | undefined;
}>;
export type GetUserAttachmentsInput = z.infer<typeof GetUserAttachmentsInputSchema>;
export declare const GetUserAttachmentsResponseSchema: z.ZodObject<{
attachments: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
title: z.ZodString;
file_name: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodString>;
content_type: z.ZodOptional<z.ZodString>;
original_url: z.ZodOptional<z.ZodString>;
variants: z.ZodOptional<z.ZodObject<{
large_url: z.ZodOptional<z.ZodString>;
thumb_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
large_url?: string | undefined;
thumb_url?: string | undefined;
}, {
large_url?: string | undefined;
thumb_url?: string | undefined;
}>>;
created_at: z.ZodOptional<z.ZodString>;
updated_at: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
title: string;
id: number;
type?: string | undefined;
created_at?: string | undefined;
updated_at?: string | undefined;
file_name?: string | undefined;
content_type?: string | undefined;
original_url?: string | undefined;
variants?: {
large_url?: string | undefined;
thumb_url?: string | undefined;
} | undefined;
}, {
title: string;
id: number;
type?: string | undefined;
created_at?: string | undefined;
updated_at?: string | undefined;
file_name?: string | undefined;
content_type?: string | undefined;
original_url?: string | undefined;
variants?: {
large_url?: string | undefined;
thumb_url?: string | undefined;
} | undefined;
}>, "many">;
userId: z.ZodNumber;
count: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
userId: number;
count: number;
attachments: {
title: string;
id: number;
type?: string | undefined;
created_at?: string | undefined;
updated_at?: string | undefined;
file_name?: string | undefined;
content_type?: string | undefined;
original_url?: string | undefined;
variants?: {
large_url?: string | undefined;
thumb_url?: string | undefined;
} | undefined;
}[];
}, {
userId: number;
count: number;
attachments: {
title: string;
id: number;
type?: string | undefined;
created_at?: string | undefined;
updated_at?: string | undefined;
file_name?: string | undefined;
content_type?: string | undefined;
original_url?: string | undefined;
variants?: {
large_url?: string | undefined;
thumb_url?: string | undefined;
} | undefined;
}[];
}>;
export type GetUserAttachmentsResponse = z.infer<typeof GetUserAttachmentsResponseSchema>;
export declare function getUserAttachmentsLogic(params: GetUserAttachmentsInput, context: RequestContext): Promise<GetUserAttachmentsResponse>;
export declare const registerGetUserAttachmentsTool: (server: McpServer) => Promise<void>;