UNPKG

msexchange-mcp

Version:

MCP server for Microsoft Exchange/Outlook email operations via Microsoft Graph API

131 lines 5.49 kB
import { z } from 'zod'; export declare const createMailRuleTool: { name: string; description: string; parameters: z.ZodObject<{ user_id: z.ZodString; rule_name: z.ZodString; conditions: z.ZodObject<{ from_addresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject_contains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; body_contains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; to_me: z.ZodOptional<z.ZodBoolean>; cc_me: z.ZodOptional<z.ZodBoolean>; sent_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; importance: z.ZodOptional<z.ZodEnum<["low", "normal", "high"]>>; has_attachments: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { importance?: "low" | "normal" | "high" | undefined; from_addresses?: string[] | undefined; subject_contains?: string[] | undefined; body_contains?: string[] | undefined; to_me?: boolean | undefined; cc_me?: boolean | undefined; sent_to?: string[] | undefined; has_attachments?: boolean | undefined; }, { importance?: "low" | "normal" | "high" | undefined; from_addresses?: string[] | undefined; subject_contains?: string[] | undefined; body_contains?: string[] | undefined; to_me?: boolean | undefined; cc_me?: boolean | undefined; sent_to?: string[] | undefined; has_attachments?: boolean | undefined; }>; actions: z.ZodObject<{ move_to_folder: z.ZodOptional<z.ZodString>; copy_to_folder: z.ZodOptional<z.ZodString>; add_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; mark_as_read: z.ZodOptional<z.ZodBoolean>; mark_importance: z.ZodOptional<z.ZodEnum<["low", "normal", "high"]>>; forward_to: z.ZodOptional<z.ZodString>; delete_message: z.ZodOptional<z.ZodBoolean>; stop_processing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { stop_processing: boolean; move_to_folder?: string | undefined; copy_to_folder?: string | undefined; add_categories?: string[] | undefined; mark_as_read?: boolean | undefined; mark_importance?: "low" | "normal" | "high" | undefined; forward_to?: string | undefined; delete_message?: boolean | undefined; }, { move_to_folder?: string | undefined; copy_to_folder?: string | undefined; add_categories?: string[] | undefined; mark_as_read?: boolean | undefined; mark_importance?: "low" | "normal" | "high" | undefined; forward_to?: string | undefined; delete_message?: boolean | undefined; stop_processing?: boolean | undefined; }>; enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; sequence: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { enabled: boolean; user_id: string; rule_name: string; conditions: { importance?: "low" | "normal" | "high" | undefined; from_addresses?: string[] | undefined; subject_contains?: string[] | undefined; body_contains?: string[] | undefined; to_me?: boolean | undefined; cc_me?: boolean | undefined; sent_to?: string[] | undefined; has_attachments?: boolean | undefined; }; actions: { stop_processing: boolean; move_to_folder?: string | undefined; copy_to_folder?: string | undefined; add_categories?: string[] | undefined; mark_as_read?: boolean | undefined; mark_importance?: "low" | "normal" | "high" | undefined; forward_to?: string | undefined; delete_message?: boolean | undefined; }; sequence?: number | undefined; }, { user_id: string; rule_name: string; conditions: { importance?: "low" | "normal" | "high" | undefined; from_addresses?: string[] | undefined; subject_contains?: string[] | undefined; body_contains?: string[] | undefined; to_me?: boolean | undefined; cc_me?: boolean | undefined; sent_to?: string[] | undefined; has_attachments?: boolean | undefined; }; actions: { move_to_folder?: string | undefined; copy_to_folder?: string | undefined; add_categories?: string[] | undefined; mark_as_read?: boolean | undefined; mark_importance?: "low" | "normal" | "high" | undefined; forward_to?: string | undefined; delete_message?: boolean | undefined; stop_processing?: boolean | undefined; }; enabled?: boolean | undefined; sequence?: number | undefined; }>; execute: (params: { user_id: string; rule_name: string; conditions: any; actions: any; enabled?: boolean; sequence?: number; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; //# sourceMappingURL=createMailRule.d.ts.map