feat: web frontend; middleware; serde (WIP?)

This commit is contained in:
2025-11-30 09:41:37 +08:00
parent be35040e26
commit 531ac029af
45 changed files with 6806 additions and 82 deletions

View File

@@ -0,0 +1,36 @@
export interface InterceptionRule {
id: number;
method_name: string;
action: 'passthrough' | 'modify' | 'replace';
custom_response: any | null;
is_enabled: boolean;
created_at: string;
updated_at: string;
}
export interface Command {
id: number;
command: any;
status: 'unverified' | 'verified' | 'rejected';
received_at: string;
processed_at?: string;
notes?: string;
}
export interface CreateRuleRequest {
method_name: string;
action: string;
custom_response?: string;
}
export interface UpdateRuleRequest {
method_name?: string;
action?: string;
custom_response?: string;
is_enabled?: boolean;
}
export interface UpdateCommandRequest {
status: string;
notes?: string;
}