返回 DeepSeek-Reasonix
approvalTypes.ts
根目录 / desktop / frontend / src / lib / approvalTypes.ts
1 import type { WireRecoveryApproval } from "./types";
2
3 export interface WireWriteAccessApproval {
4 directories?: string[];
5 display_directories?: string[];
6 justification?: string;
7 broad_home_access?: boolean;
8 ordinary_permission_needed?: boolean;
9 persist_allowed?: boolean;
10 }
11
12 export interface WireApproval {
13 id: string;
14 tool: string;
15 subject: string;
16 reason?: string;
17 fresh?: boolean;
18 kind?: "tool" | "plan" | "recovery" | "write_access" | string;
19 recovery?: WireRecoveryApproval;
20 write_access?: WireWriteAccessApproval;
21 turnId?: string;
22 runtimeEpoch?: string;
23 /** Runtime and permission snapshot that emitted this request. */
24 generation?: number;
25 permissionRevision?: number;
26 }
27
27 lines TYPESCRIPT