25 lines
501 B
TypeScript
25 lines
501 B
TypeScript
export type Config = {
|
|
profiles: Record<string, ProfileConfig>;
|
|
notifyCron?: string;
|
|
scanCron?: string;
|
|
};
|
|
|
|
export type ProfileConfig = {
|
|
enable: boolean;
|
|
sources: string[];
|
|
query?: string;
|
|
exclude?: string;
|
|
defaultTime?: string;
|
|
databaseFile: string;
|
|
backend: Record<string, unknown>;
|
|
};
|
|
|
|
export type BackendSettings = {
|
|
enable?: boolean;
|
|
};
|
|
|
|
export type SupportedBackends = 'ntfy.sh';
|
|
export type BackendConfig = {
|
|
backend: SupportedBackends;
|
|
settings: BackendSettings;
|
|
} |