pocketsmith-mcp
Version:
MCP server for managing budgets via PocketSmith API
108 lines (107 loc) • 3.94 kB
TypeScript
/**
* @fileoverview Get attachments for a specific transaction from PocketSmith
*/
import { z } from "zod";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { RequestContext } from "../../../utils/index.js";
export declare const GetTransactionAttachmentsInputSchema: z.ZodObject<{
apiKey: z.ZodOptional<z.ZodString>;
accessToken: z.ZodOptional<z.ZodString>;
transactionId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
transactionId: number;
apiKey?: string | undefined;
accessToken?: string | undefined;
}, {
transactionId: number;
apiKey?: string | undefined;
accessToken?: string | undefined;
}>;
export type GetTransactionAttachmentsInput = z.infer<typeof GetTransactionAttachmentsInputSchema>;
export declare const GetTransactionAttachmentsResponseSchema: 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">;
transactionId: z.ZodNumber;
count: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
transactionId: 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;
}[];
}, {
transactionId: 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 GetTransactionAttachmentsResponse = z.infer<typeof GetTransactionAttachmentsResponseSchema>;
export declare function getTransactionAttachmentsLogic(params: GetTransactionAttachmentsInput, context: RequestContext): Promise<GetTransactionAttachmentsResponse>;
export declare const registerGetTransactionAttachmentsTool: (server: McpServer) => Promise<void>;