Based of v3.0.0b10.
This commit is contained in:
TheNetsky
2025-12-11 16:16:32 +01:00
parent 7b4b20ab4e
commit 2c4d85f732
58 changed files with 11062 additions and 0 deletions

81
src/interface/Config.ts Normal file
View File

@@ -0,0 +1,81 @@
export interface Config {
baseURL: string
sessionPath: string
headless: boolean
runOnZeroPoints: boolean
clusters: number
errorDiagnostics: boolean
saveFingerprint: ConfigSaveFingerprint
workers: ConfigWorkers
searchOnBingLocalQueries: boolean
globalTimeout: number | string
searchSettings: ConfigSearchSettings
debugLogs: boolean
proxy: ConfigProxy
consoleLogFilter: LogFilter
webhook: ConfigWebhook
}
export interface ConfigSaveFingerprint {
mobile: boolean
desktop: boolean
}
export interface ConfigSearchSettings {
scrollRandomResults: boolean
clickRandomResults: boolean
parallelSearching: boolean
searchResultVisitTime: number | string
searchDelay: ConfigDelay
readDelay: ConfigDelay
}
export interface ConfigDelay {
min: number | string
max: number | string
}
export interface ConfigProxy {
queryEngine: boolean
}
export interface ConfigWorkers {
doDailySet: boolean
doMorePromotions: boolean
doPunchCards: boolean
doAppPromotions: boolean
doDesktopSearch: boolean
doMobileSearch: boolean
doDailyCheckIn: boolean
doReadToEarn: boolean
}
// Webhooks
export interface ConfigWebhook {
discord?: WebhookDiscordConfig
ntfy?: WebhookNtfyConfig
webhookLogFilter: LogFilter
}
export interface LogFilter {
enabled: boolean
mode: 'whitelist' | 'blacklist'
levels?: Array<'debug' | 'info' | 'warn' | 'error'>
keywords?: string[]
regexPatterns?: string[]
}
export interface WebhookDiscordConfig {
enabled: boolean
url: string
}
export interface WebhookNtfyConfig {
enabled?: boolean
url: string
topic?: string
token?: string
title?: string
tags?: string[]
priority?: 1 | 2 | 3 | 4 | 5 // 5 highest (important)
}