added send

This commit is contained in:
Arjun 2026-05-14 21:09:54 +05:30
parent c157e9e50d
commit 6f80576f72
7 changed files with 168 additions and 36 deletions

View file

@ -113,6 +113,7 @@ export const GmailThreadMessageSchema = z.object({
bodyHtml: z.string().optional(),
unread: z.boolean().optional(),
bodyHeight: z.number().int().positive().optional(),
messageIdHeader: z.string().optional(),
});
export type GmailThreadMessage = z.infer<typeof GmailThreadMessageSchema>;

View file

@ -157,6 +157,21 @@ const ipcSchemas = {
nextCursor: z.string().nullable(),
}),
},
'gmail:sendReply': {
req: z.object({
threadId: z.string().min(1),
to: z.string().min(1),
subject: z.string(),
bodyHtml: z.string(),
bodyText: z.string(),
inReplyTo: z.string().optional(),
references: z.string().optional(),
}),
res: z.object({
messageId: z.string().optional(),
error: z.string().optional(),
}),
},
'gmail:saveMessageHeight': {
req: z.object({
threadId: z.string().min(1),