pocketsmith-mcp
Version:
MCP server for managing budgets via PocketSmith API
75 lines (74 loc) • 2.34 kB
TypeScript
/**
* @fileoverview Delete a transaction from PocketSmith
*/
import { z } from "zod";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { RequestContext } from "../../../utils/index.js";
export declare const DeleteTransactionInputSchema: z.ZodObject<{
apiKey: z.ZodOptional<z.ZodString>;
accessToken: z.ZodOptional<z.ZodString>;
transactionId: z.ZodNumber;
confirm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
transactionId: number;
confirm: boolean;
apiKey?: string | undefined;
accessToken?: string | undefined;
}, {
transactionId: number;
apiKey?: string | undefined;
accessToken?: string | undefined;
confirm?: boolean | undefined;
}>;
export type DeleteTransactionInput = z.infer<typeof DeleteTransactionInputSchema>;
export declare const DeleteTransactionResponseSchema: z.ZodObject<{
deletedTransaction: z.ZodObject<{
id: z.ZodNumber;
payee: z.ZodString;
amount: z.ZodNumber;
date: z.ZodString;
category: z.ZodOptional<z.ZodString>;
account: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
date: string;
payee: string;
amount: number;
account: string;
category?: string | undefined;
}, {
id: number;
date: string;
payee: string;
amount: number;
account: string;
category?: string | undefined;
}>;
success: z.ZodBoolean;
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
success: boolean;
deletedTransaction: {
id: number;
date: string;
payee: string;
amount: number;
account: string;
category?: string | undefined;
};
}, {
message: string;
success: boolean;
deletedTransaction: {
id: number;
date: string;
payee: string;
amount: number;
account: string;
category?: string | undefined;
};
}>;
export type DeleteTransactionResponse = z.infer<typeof DeleteTransactionResponseSchema>;
export declare function deleteTransactionLogic(params: DeleteTransactionInput, context: RequestContext): Promise<DeleteTransactionResponse>;
export declare const registerDeleteTransactionTool: (server: McpServer) => Promise<void>;