added replyall, cc, bcc etc

This commit is contained in:
Arjun 2026-05-23 08:51:08 +05:30
parent 04e756d17e
commit 3a27c2ebd6
5 changed files with 375 additions and 27 deletions

View file

@ -152,6 +152,8 @@ const ipcSchemas = {
req: z.object({
threadId: z.string().min(1),
to: z.string().min(1),
cc: z.string().optional(),
bcc: z.string().optional(),
subject: z.string(),
bodyHtml: z.string(),
bodyText: z.string(),
@ -163,6 +165,12 @@ const ipcSchemas = {
error: z.string().optional(),
}),
},
'gmail:getAccountEmail': {
req: z.object({}),
res: z.object({
email: z.string().nullable(),
}),
},
'gmail:archiveThread': {
req: z.object({ threadId: z.string().min(1) }),
res: z.object({ ok: z.boolean(), error: z.string().optional() }),