feat(privacy): add PrivacySelfCheck type to the typed Tauri client (T7.6)
This commit is contained in:
1 parent
70c8c61af5
commit
899f15fac6
1 file changed
+17
-1
+17
-1
@@ -115,6 +115,22 @@ export interface SyncTargetInfo {
|
||||
host: string | null;
|
||||
}
|
||||
|
||||
// privacy_self_check() response (FR-SEC-2) — proves local-only handling.
|
||||
export interface PrivacySyncTarget {
|
||||
name: string;
|
||||
host: string;
|
||||
thirdParty: boolean;
|
||||
tls: boolean;
|
||||
}
|
||||
|
||||
export interface PrivacySelfCheck {
|
||||
llmEndpoint: string;
|
||||
llmIsLocal: boolean;
|
||||
syncEnabled: boolean;
|
||||
syncTargets: PrivacySyncTarget[];
|
||||
allowlistedHosts: string[];
|
||||
}
|
||||
|
||||
// Payload for add/update. `secret` is write-only (stored in the OS credential store).
|
||||
export interface SyncTargetConfig {
|
||||
id?: string;
|
||||
@@ -277,7 +293,7 @@ export const api = {
|
||||
getSettings: () => invoke<AppSettings>("get_settings"),
|
||||
updateSettings: (patch: Partial<AppSettings>) =>
|
||||
invoke<AppSettings>("update_settings", { patch }),
|
||||
privacySelfCheck: () => invoke("privacy_self_check"),
|
||||
privacySelfCheck: () => invoke<PrivacySelfCheck>("privacy_self_check"),
|
||||
};
|
||||
|
||||
// ---- Events (Rust → UI) ----
|
||||
|
||||
Reference in new issue
Block a user