mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-12 21:02:17 +02:00
Merge pull request #666 from rowboatlabs/graph2
Improvements to graph and email labeling
This commit is contained in:
commit
6b2120d376
16 changed files with 922 additions and 94 deletions
|
|
@ -279,6 +279,20 @@ const ipcSchemas = {
|
|||
name: z.string().nullable(),
|
||||
}),
|
||||
},
|
||||
// User explicitly flips a thread's importance verdict. Sticky on the thread
|
||||
// (re-classification never overrides) and recorded as a correction the
|
||||
// importance classifier learns from.
|
||||
'gmail:setImportance': {
|
||||
req: z.object({
|
||||
threadId: z.string().min(1),
|
||||
importance: z.enum(['important', 'other']),
|
||||
}),
|
||||
res: z.object({
|
||||
ok: z.boolean(),
|
||||
previous: z.enum(['important', 'other']).optional(),
|
||||
error: z.string().optional(),
|
||||
}),
|
||||
},
|
||||
'gmail:archiveThread': {
|
||||
req: z.object({ threadId: z.string().min(1) }),
|
||||
res: z.object({ ok: z.boolean(), error: z.string().optional() }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue