feat: web frontend; middleware; serde (WIP?)
This commit is contained in:
36
frontend/src/types/index.ts
Normal file
36
frontend/src/types/index.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user