import { z } from 'zod'; import { ServiceBubble } from '../../types/service-bubble-class.js'; import type { BubbleContext } from '../../types/bubble.js'; import { CredentialType } from '@bubblelab/shared-schemas'; declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; to: z.ZodArray; cc: z.ZodOptional>; bcc: z.ZodOptional>; subject: z.ZodString; body_text: z.ZodOptional; body_html: z.ZodOptional; reply_to: z.ZodOptional; thread_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; query: z.ZodOptional; label_ids: z.ZodOptional>; include_spam_trash: z.ZodDefault>; max_results: z.ZodDefault>; page_token: z.ZodOptional; include_details: z.ZodDefault; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; include_details: boolean; credentials?: Partial> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_emails"; credentials?: Partial> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; include_details?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; message_id: z.ZodString; format: z.ZodDefault>>; metadata_headers: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "metadata" | "minimal" | "raw" | "full"; operation: "get_email"; message_id: string; credentials?: Partial> | undefined; metadata_headers?: string[] | undefined; }, { operation: "get_email"; message_id: string; format?: "metadata" | "minimal" | "raw" | "full" | undefined; credentials?: Partial> | undefined; metadata_headers?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; query: z.ZodString; max_results: z.ZodDefault>; include_spam_trash: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial> | undefined; }, { query: string; operation: "search_emails"; credentials?: Partial> | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; message_ids: z.ZodArray; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial> | undefined; }, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; message_ids: z.ZodArray; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial> | undefined; }, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; to: z.ZodArray; cc: z.ZodOptional>; bcc: z.ZodOptional>; subject: z.ZodString; body_text: z.ZodOptional; body_html: z.ZodOptional; reply_to: z.ZodOptional; thread_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; draft_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_draft"; draft_id: string; credentials?: Partial> | undefined; }, { operation: "send_draft"; draft_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; query: z.ZodOptional; max_results: z.ZodDefault>; page_token: z.ZodOptional; include_spam_trash: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_drafts"; max_results: number; include_spam_trash: boolean; credentials?: Partial> | undefined; query?: string | undefined; page_token?: string | undefined; }, { operation: "list_drafts"; credentials?: Partial> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; message_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_email"; message_id: string; credentials?: Partial> | undefined; }, { operation: "delete_email"; message_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; message_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trash_email"; message_id: string; credentials?: Partial> | undefined; }, { operation: "trash_email"; message_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; query: z.ZodOptional; label_ids: z.ZodOptional>; include_spam_trash: z.ZodDefault>; max_results: z.ZodDefault>; page_token: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_threads"; max_results: number; include_spam_trash: boolean; credentials?: Partial> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_threads"; credentials?: Partial> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_labels"; credentials?: Partial> | undefined; }, { operation: "list_labels"; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; name: z.ZodString; label_list_visibility: z.ZodDefault>>; message_list_visibility: z.ZodDefault>>; background_color: z.ZodOptional; text_color: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_label"; label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide"; message_list_visibility: "show" | "hide"; credentials?: Partial> | undefined; background_color?: string | undefined; text_color?: string | undefined; }, { name: string; operation: "create_label"; credentials?: Partial> | undefined; label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; message_list_visibility?: "show" | "hide" | undefined; background_color?: string | undefined; text_color?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; message_id: z.ZodString; add_label_ids: z.ZodOptional>; remove_label_ids: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_message_labels"; message_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_message_labels"; message_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; thread_id: z.ZodString; add_label_ids: z.ZodOptional>; remove_label_ids: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; message_id: z.ZodString; attachment_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial> | undefined; }, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial> | undefined; }>]>; declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; success: z.ZodBoolean; message_id: z.ZodOptional; thread_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; success: z.ZodBoolean; messages: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>, "many">>; next_page_token: z.ZodOptional; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; success: z.ZodBoolean; message: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; success: z.ZodBoolean; messages: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; success: z.ZodBoolean; modified_messages: z.ZodOptional>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; success: z.ZodBoolean; modified_messages: z.ZodOptional>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; success: z.ZodBoolean; draft: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; success: z.ZodBoolean; message_id: z.ZodOptional; thread_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; success: z.ZodBoolean; drafts: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }>, "many">>; next_page_token: z.ZodOptional; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }[] | undefined; }, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; success: z.ZodBoolean; deleted_message_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; success: z.ZodBoolean; trashed_message_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; success: z.ZodBoolean; threads: z.ZodOptional; messages: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }>, "many">>; next_page_token: z.ZodOptional; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; success: z.ZodBoolean; labels: z.ZodOptional>; messageListVisibility: z.ZodOptional>; labelListVisibility: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; success: z.ZodBoolean; label: z.ZodOptional>; messageListVisibility: z.ZodOptional>; labelListVisibility: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; success: z.ZodBoolean; message_id: z.ZodOptional; label_ids: z.ZodOptional>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; success: z.ZodBoolean; thread_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; success: z.ZodBoolean; data: z.ZodOptional; size: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | undefined; }>]>; type GmailResult = z.output; type GmailParams = z.input; export type GmailOperationResult = Extract; export type GmailParamsInput = z.input; export declare class GmailBubble extends ServiceBubble> { static readonly type: "service"; static readonly service = "gmail"; static readonly authType: "oauth"; static readonly bubbleName = "gmail"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; to: z.ZodArray; cc: z.ZodOptional>; bcc: z.ZodOptional>; subject: z.ZodString; body_text: z.ZodOptional; body_html: z.ZodOptional; reply_to: z.ZodOptional; thread_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; query: z.ZodOptional; label_ids: z.ZodOptional>; include_spam_trash: z.ZodDefault>; max_results: z.ZodDefault>; page_token: z.ZodOptional; include_details: z.ZodDefault; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; include_details: boolean; credentials?: Partial> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_emails"; credentials?: Partial> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; include_details?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; message_id: z.ZodString; format: z.ZodDefault>>; metadata_headers: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "metadata" | "minimal" | "raw" | "full"; operation: "get_email"; message_id: string; credentials?: Partial> | undefined; metadata_headers?: string[] | undefined; }, { operation: "get_email"; message_id: string; format?: "metadata" | "minimal" | "raw" | "full" | undefined; credentials?: Partial> | undefined; metadata_headers?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; query: z.ZodString; max_results: z.ZodDefault>; include_spam_trash: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial> | undefined; }, { query: string; operation: "search_emails"; credentials?: Partial> | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; message_ids: z.ZodArray; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial> | undefined; }, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; message_ids: z.ZodArray; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial> | undefined; }, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; to: z.ZodArray; cc: z.ZodOptional>; bcc: z.ZodOptional>; subject: z.ZodString; body_text: z.ZodOptional; body_html: z.ZodOptional; reply_to: z.ZodOptional; thread_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; draft_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_draft"; draft_id: string; credentials?: Partial> | undefined; }, { operation: "send_draft"; draft_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; query: z.ZodOptional; max_results: z.ZodDefault>; page_token: z.ZodOptional; include_spam_trash: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_drafts"; max_results: number; include_spam_trash: boolean; credentials?: Partial> | undefined; query?: string | undefined; page_token?: string | undefined; }, { operation: "list_drafts"; credentials?: Partial> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; message_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_email"; message_id: string; credentials?: Partial> | undefined; }, { operation: "delete_email"; message_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; message_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trash_email"; message_id: string; credentials?: Partial> | undefined; }, { operation: "trash_email"; message_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; query: z.ZodOptional; label_ids: z.ZodOptional>; include_spam_trash: z.ZodDefault>; max_results: z.ZodDefault>; page_token: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_threads"; max_results: number; include_spam_trash: boolean; credentials?: Partial> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_threads"; credentials?: Partial> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_labels"; credentials?: Partial> | undefined; }, { operation: "list_labels"; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; name: z.ZodString; label_list_visibility: z.ZodDefault>>; message_list_visibility: z.ZodDefault>>; background_color: z.ZodOptional; text_color: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_label"; label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide"; message_list_visibility: "show" | "hide"; credentials?: Partial> | undefined; background_color?: string | undefined; text_color?: string | undefined; }, { name: string; operation: "create_label"; credentials?: Partial> | undefined; label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; message_list_visibility?: "show" | "hide" | undefined; background_color?: string | undefined; text_color?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; message_id: z.ZodString; add_label_ids: z.ZodOptional>; remove_label_ids: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_message_labels"; message_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_message_labels"; message_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; thread_id: z.ZodString; add_label_ids: z.ZodOptional>; remove_label_ids: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; message_id: z.ZodString; attachment_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial> | undefined; }, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial> | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; success: z.ZodBoolean; message_id: z.ZodOptional; thread_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; success: z.ZodBoolean; messages: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>, "many">>; next_page_token: z.ZodOptional; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; success: z.ZodBoolean; message: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; success: z.ZodBoolean; messages: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; success: z.ZodBoolean; modified_messages: z.ZodOptional>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; success: z.ZodBoolean; modified_messages: z.ZodOptional>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; success: z.ZodBoolean; draft: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; success: z.ZodBoolean; message_id: z.ZodOptional; thread_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; success: z.ZodBoolean; drafts: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }>, "many">>; next_page_token: z.ZodOptional; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }[] | undefined; }, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }; id: string; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; success: z.ZodBoolean; deleted_message_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; success: z.ZodBoolean; trashed_message_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; success: z.ZodBoolean; threads: z.ZodOptional; messages: z.ZodOptional; labelIds: z.ZodOptional>; snippet: z.ZodOptional; textContent: z.ZodOptional; historyId: z.ZodOptional; internalDate: z.ZodOptional; sizeEstimate: z.ZodOptional; raw: z.ZodOptional; payload: z.ZodOptional; headers: z.ZodOptional, "many">>; body: z.ZodOptional; size: z.ZodOptional; attachmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }, { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }>, "many">>; next_page_token: z.ZodOptional; result_size_estimate: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; parts?: any[] | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; success: z.ZodBoolean; labels: z.ZodOptional>; messageListVisibility: z.ZodOptional>; labelListVisibility: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; success: z.ZodBoolean; label: z.ZodOptional>; messageListVisibility: z.ZodOptional>; labelListVisibility: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "system" | "user" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; success: z.ZodBoolean; message_id: z.ZodOptional; label_ids: z.ZodOptional>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; success: z.ZodBoolean; thread_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; success: z.ZodBoolean; data: z.ZodOptional; size: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | undefined; }>]>; static readonly shortDescription = "Gmail integration for email management"; static readonly longDescription = "\n Gmail service integration for comprehensive email management and automation.\n Use cases:\n - Send and receive emails with rich formatting\n - Search and filter emails with advanced queries\n - Manage drafts and email threads\n - Mark messages as read/unread\n - Organize emails with labels and folders\n - Handle email attachments and metadata\n "; static readonly alias = "gmail"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise; private makeGmailApiRequest; /** * Extract clean, readable text content from a Gmail message */ private extractEmailTextContent; /** * Decode base64url encoded content to UTF-8 string */ private decodeBase64; /** * Clean up email content by removing forwarded/replied content and excessive whitespace */ private cleanEmailContent; /** * Clean up a body part by removing base64 data fields */ private cleanBodyPart; /** * Filter headers to only keep essential ones that users care about */ private filterEssentialHeaders; /** * Clean up payload by removing base64 data fields to reduce response size */ private cleanPayloadData; /** * Process and clean a Gmail message by extracting text content and removing heavy fields */ private processAndCleanMessage; protected performAction(context?: BubbleContext): Promise>; private createEmailMessage; private sendEmail; private listEmails; private getEmail; private searchEmails; private markAsRead; private markAsUnread; private createDraft; private sendDraft; private listDrafts; private deleteEmail; private trashEmail; private listThreads; private listLabels; private createLabel; private modifyMessageLabels; private modifyThreadLabels; private getAttachment; protected chooseCredential(): string | undefined; } export {}; //# sourceMappingURL=gmail.d.ts.map