feat: add user-configurable notification settings (#601)

This commit is contained in:
PRAKHAR PANDEY 2026-06-11 19:43:26 +05:30 committed by GitHub
parent faaefe936f
commit 0d21abcc7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 330 additions and 5 deletions

View file

@ -20,6 +20,7 @@ import { BrowserStateSchema } from './browser-control.js';
import { BillingInfoSchema } from './billing.js';
import { EmailBlockSchema, GmailThreadSchema } from './blocks.js';
import { PermissionDecision, ApprovalPolicy } from './code-mode.js';
import { NotificationSettingsSchema } from './notification-settings.js';
// ============================================================================
// Runtime Validation Schemas (Single Source of Truth)
@ -1028,6 +1029,17 @@ const ipcSchemas = {
req: z.null(),
res: BillingInfoSchema,
},
// Notification settings channels
'notifications:getSettings': {
req: z.null(),
res: NotificationSettingsSchema,
},
'notifications:setSettings': {
req: NotificationSettingsSchema,
res: z.object({
success: z.literal(true),
}),
},
} as const;
// ============================================================================