fix: handle elevated proxy pool services and Windows output
This commit is contained in:
@@ -106,6 +106,35 @@ export type Proxy = {
|
||||
error: string;
|
||||
proxies: { url: string; failed: boolean; active: boolean }[];
|
||||
};
|
||||
export type PoolServiceStatus = {
|
||||
api_ready: boolean;
|
||||
items: {
|
||||
name: string;
|
||||
label: string;
|
||||
pid: number | null;
|
||||
state:
|
||||
| "running"
|
||||
| "restricted"
|
||||
| "stopped"
|
||||
| "external"
|
||||
| "unknown"
|
||||
| "invalid"
|
||||
| "conflict";
|
||||
verified: boolean;
|
||||
elevated: boolean;
|
||||
detail: string;
|
||||
}[];
|
||||
can_stop: boolean;
|
||||
warning: string;
|
||||
admin_command: string;
|
||||
};
|
||||
export type PoolManageResult = {
|
||||
ok: boolean;
|
||||
output: string;
|
||||
message: string;
|
||||
changed: boolean;
|
||||
status: PoolServiceStatus;
|
||||
};
|
||||
export type Auth = {
|
||||
saved: boolean;
|
||||
valid: boolean;
|
||||
|
||||
Reference in New Issue
Block a user