feat: React tabanli yönetim panelini ekle
This commit is contained in:
47
frontend/src/types.ts
Normal file
47
frontend/src/types.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
export type ToolToggle = {
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
};
|
||||
|
||||
export type RuntimeSettings = {
|
||||
terminal_mode: 1 | 2 | 3;
|
||||
search_provider: "brave" | "searxng";
|
||||
ollama_base_url: string;
|
||||
default_model: string;
|
||||
tools: ToolToggle[];
|
||||
};
|
||||
|
||||
export type DashboardSnapshot = {
|
||||
settings: RuntimeSettings;
|
||||
whitelist_count: number;
|
||||
memory_items: number;
|
||||
recent_logs: string[];
|
||||
};
|
||||
|
||||
export type UserRecord = {
|
||||
telegram_user_id: number;
|
||||
username?: string | null;
|
||||
display_name?: string | null;
|
||||
is_active: boolean;
|
||||
};
|
||||
|
||||
export type MemoryRecord = {
|
||||
id: number;
|
||||
content: string;
|
||||
kind: string;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type OllamaStatus = {
|
||||
reachable: boolean;
|
||||
base_url: string;
|
||||
model: string;
|
||||
installed_models: string[];
|
||||
message: string;
|
||||
};
|
||||
|
||||
export type TelegramStatus = {
|
||||
configured: boolean;
|
||||
polling_active: boolean;
|
||||
message: string;
|
||||
};
|
||||
Reference in New Issue
Block a user