Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

1.4 KB
Raw Blame
import type z from 'zod';
import {
  appSettingsSchema,
  type browserSettingsSchema,
  type changesViewModeSchema,
  type interfaceSettingsSchema,
  type localLocationSettingsSchema,
  type notificationSettingsSchema,
  type providerCustomConfigEntrySchema,
  type sessionSettingsSchema,
  type telemetrySettingsSchema,
  type themeSchema,
} from '@main/core/settings/schema';

export type LocalLocationSettings = z.infer<typeof localLocationSettingsSchema>;
export type NotificationSettings = z.infer<typeof notificationSettingsSchema>;
export type SessionSettings = z.infer<typeof sessionSettingsSchema>;
export type TelemetrySettings = z.infer<typeof telemetrySettingsSchema>;
export type Theme = z.infer<typeof themeSchema>;

export type InterfaceSettings = z.infer<typeof interfaceSettingsSchema>;
export type ProviderCustomConfig = z.infer<typeof providerCustomConfigEntrySchema>;
export type ProviderCustomConfigs = Record<string, ProviderCustomConfig>;
export type ChangesViewMode = z.infer<typeof changesViewModeSchema>;
export type BrowserSettings = z.infer<typeof browserSettingsSchema>;
export type ChangesSection = keyof ChangesViewMode;
export type ChangesListViewMode = ChangesViewMode[ChangesSection];
export type AppSettings = z.infer<typeof appSettingsSchema>;
export type AppSettingsKey = keyof AppSettings;

export const AppSettingsKeys = Object.keys(appSettingsSchema.shape) as AppSettingsKey[];