---
title: "RPC: DaemonEngine"
description: "132 entries."
canonical: "https://klav.everdoc.dev/main/reference/rpc/daemonengine"
channel: "main"
---

# RPC: DaemonEngine

> OmarAlex24/klav · channel `main` · main @ [`fe8e2a0c8c24`](https://github.com/OmarAlex24/klav/tree/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92) · 2026-12-05 · generated by Everdoc from source (no LLM).

132 entries.

<a id="rpc-daemonengine-addtotask"></a>

## `DaemonEngine.addToTask`

«Add to the task» (ADR 0021 §6). Asks for Touch ID in `klavd`. `request_digest` is the one of the [`ApprovalItem`] the person decided on (ADR 0030 §5).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1560](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1560)
- Handlers: 1 · Callers: 2
- Method: `addToTask` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1106](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1106), [apps/ios/Shared/App/RequestCards.swift:310](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/RequestCards.swift#L310)

<a id="rpc-daemonengine-addtotaskwithpassword"></a>

## `DaemonEngine.addToTaskWithPassword`

`add_to_task` with the master password instead of Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1565](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1565)
- Handlers: 1 · Callers: 2
- Method: `addToTaskWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1445](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1445), [apps/ios/Mac/SampleEngine.swift:1392](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1392)

<a id="rpc-daemonengine-agentexposure"></a>

## `DaemonEngine.agentExposure`

«What it saw» (ADR 0033, amendment of 2026-11-10, F2): the projects whose keys the agent held, what the log says it used, and what changing those keys costs. Read-only: no presence.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1679](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1679)
- Handlers: 1 · Callers: 3
- Method: `agentExposure` · transport uniffi
- Used at: [apps/ios/Klav/Revoke.swift:398](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Revoke.swift#L398), [apps/ios/Mac/Development/RevokeSheet.swift:214](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/RevokeSheet.swift#L214), [apps/ios/Mac/SampleEngine.swift:1738](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1738)

<a id="rpc-daemonengine-agentrevocations"></a>

## `DaemonEngine.agentRevocations`

The revocations whose key change was asked for and is not finished, with what is left. Empty from a `klavd` older than the amendment, which keeps no such record.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1733](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1733)
- Handlers: 1 · Callers: 2
- Method: `agentRevocations` · transport uniffi
- Used at: [apps/ios/Klav/Revoke.swift:27](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Revoke.swift#L27), [apps/ios/Mac/Development/AgentGrants.swift:289](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L289)

<a id="rpc-daemonengine-agents"></a>

## `DaemonEngine.agents`

The account's agents: pending registrations first, then newest.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1633](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1633)
- Handlers: 1 · Callers: 2
- Method: `agents` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:276](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L276), [apps/ios/Mac/MacModel.swift:945](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L945)

<a id="rpc-daemonengine-approvals"></a>

## `DaemonEngine.approvals`

Pending approval requests from agents.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1479](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1479)
- Handlers: 1 · Callers: 2
- Method: `approvals` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:878](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L878), [apps/ios/Mac/MacModel.swift:945](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L945)

<a id="rpc-daemonengine-approveagent"></a>

## `DaemonEngine.approveAgent`

Approves an agent's registration with the default policy, as `KlavCore::approve_agent`. Asks for Touch ID in `klavd`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1640](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1640)
- Handlers: 1 · Callers: 1
- Method: `approveAgent` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1220](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1220)

<a id="rpc-daemonengine-approveagentwithpassword"></a>

## `DaemonEngine.approveAgentWithPassword`

`approve_agent` with the master password instead of Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1651](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1651)
- Handlers: 1 · Callers: 2
- Method: `approveAgentWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1566](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1566), [apps/ios/Mac/SampleEngine.swift:1641](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1641)

<a id="rpc-daemonengine-approvedevicelink"></a>

## `DaemonEngine.approveDeviceLink`

Approves with `klavd`'s Touch ID/presence policy.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/device_link.rs:379](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/device_link.rs#L379)
- Handlers: 1 · Callers: 5
- Method: `approveDeviceLink` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1353](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1353), [apps/ios/Klav/DeviceLinkScreens.swift:488](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/DeviceLinkScreens.swift#L488), [apps/ios/Klav/DeviceLinkScreens.swift:570](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/DeviceLinkScreens.swift#L570), [apps/ios/Mac/Devices.swift:218](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Devices.swift#L218), [apps/ios/Mac/MacModel.swift:647](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L647)

<a id="rpc-daemonengine-approvedevicelinkwithpassword"></a>

## `DaemonEngine.approveDeviceLinkWithPassword`

Approves with the master password when Touch ID is unavailable or the person chooses it.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/device_link.rs:385](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/device_link.rs#L385)
- Handlers: 1 · Callers: 3
- Method: `approveDeviceLinkWithPassword` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1367](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1367), [apps/ios/Mac/MacModel.swift:645](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L645), [apps/ios/Mac/SampleEngine.swift:3517](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L3517)

<a id="rpc-daemonengine-attachfile"></a>

## `DaemonEngine.attachFile`

Adds or replaces a file field of an item. `name` is the field; `filename` is the attachment's own file name.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1235](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1235)
- Handlers: 1 · Callers: 1
- Method: `attachFile` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1819](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1819)

<a id="rpc-daemonengine-attachmentbytes"></a>

## `DaemonEngine.attachmentBytes`

The bytes of an item's attachment. This is a value hand-out, so the presence gate applies (ADR 0041).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1253](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1253)
- Handlers: 1 · Callers: 4
- Method: `attachmentBytes` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1827](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1827), [apps/ios/Mac/SampleEngine.swift:1105](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1105), [apps/ios/Mac/SampleEngine.swift:1108](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1108), [apps/ios/Mac/Vault.swift:1090](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1090)

<a id="rpc-daemonengine-attachmentbyteswithpassword"></a>

## `DaemonEngine.attachmentBytesWithPassword`

The bytes of an item's attachment, answering `klavd`'s master password ask on the held connection.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1259](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1259)
- Handlers: 1 · Callers: 1
- Method: `attachmentBytesWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1828](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1828)

<a id="rpc-daemonengine-auditlog"></a>

## `DaemonEngine.auditLog`

«Activity» (ADR 0033 §8): the log this Mac downloaded, newest first, with the filters. Only what is new is downloaded; each event says whether it is verified yet.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1864](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1864)
- Handlers: 1 · Callers: 4
- Method: `auditLog` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:276](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L276), [apps/ios/Klav/Agents.swift:603](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L603), [apps/ios/Mac/Development/ActivityPane.swift:306](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ActivityPane.swift#L306), [apps/ios/Mac/Development/DevelopmentModel.swift:56](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/DevelopmentModel.swift#L56)

<a id="rpc-daemonengine-auditstatus"></a>

## `DaemonEngine.auditStatus`

How much of the log this Mac has downloaded and verified, without contacting the server.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2053](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2053)
- Handlers: 1 · Callers: 2
- Method: `auditStatus` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:279](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L279), [apps/ios/Mac/Development/ActivityPane.swift:312](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ActivityPane.swift#L312)

<a id="rpc-daemonengine-cancelaccountdeletion"></a>

## `DaemonEngine.cancelAccountDeletion`

Cancels the deletion of the account with the session `klavd` holds (the vault must be unlocked). Canceling brings the agents back, so `klavd` asks what resuming them asks (ADR 0037 A2): Touch ID. Where it can't, `BiometryUnavailable` or `PasswordRequired` say the app should ask for the master password and call [`Self::cancel_account_deletion_with_password`]. `false` when there was none to cancel.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:975](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L975)
- Handlers: 1 · Callers: 4
- Method: `cancelAccountDeletion` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:464](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L464), [apps/ios/Klav/DeleteAccount.swift:140](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/DeleteAccount.swift#L140), [apps/ios/Klav/DeleteAccount.swift:150](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/DeleteAccount.swift#L150), [apps/ios/Mac/Account.swift:207](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Account.swift#L207)

<a id="rpc-daemonengine-cancelaccountdeletionwithpassword"></a>

## `DaemonEngine.cancelAccountDeletionWithPassword`

`cancel_account_deletion` with the master password instead of Touch ID; a wrong one cancels nothing.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:981](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L981)
- Handlers: 1 · Callers: 3
- Method: `cancelAccountDeletionWithPassword` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:471](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L471), [apps/ios/Mac/MacModel.swift:1094](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1094), [apps/ios/Mac/SampleEngine.swift:582](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L582)

<a id="rpc-daemonengine-cleargeneratorhistory"></a>

## `DaemonEngine.clearGeneratorHistory`

Deletes the whole generator history.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1471](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1471)
- Handlers: 1 · Callers: 1
- Method: `clearGeneratorHistory` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:387](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Generator.swift#L387)

<a id="rpc-daemonengine-createitem"></a>

## `DaemonEngine.createItem`

Creates an item (a repeated title is refused).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1350](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1350)
- Handlers: 1 · Callers: 2
- Method: `createItem` · transport uniffi
- Used at: [apps/ios/Klav/ItemEditor.swift:373](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemEditor.swift#L373), [apps/ios/Mac/ItemEditor.swift:423](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ItemEditor.swift#L423)

<a id="rpc-daemonengine-createproject"></a>

## `DaemonEngine.createProject`

Creates a project in `vault_id`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1110](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1110)
- Handlers: 1 · Callers: 2
- Method: `createProject` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1810](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1810), [apps/ios/Mac/VaultOrgSheets.swift:238](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/VaultOrgSheets.swift#L238)

<a id="rpc-daemonengine-createvault"></a>

## `DaemonEngine.createVault`

Creates a vault.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1103](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1103)
- Handlers: 1 · Callers: 2
- Method: `createVault` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1803](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1803), [apps/ios/Mac/VaultOrgSheets.swift:167](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/VaultOrgSheets.swift#L167)

<a id="rpc-daemonengine-credentialproxy"></a>

## `DaemonEngine.credentialProxy`

The account's credential proxy for «Share a credential…»: who it is, whether it waits for its first credential, what it holds, and Klav Cloud's row from the same read (`klavd` checks the manifest and a fresh attestation once). Takes a moment.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_grant.rs:576](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_grant.rs#L576)
- Handlers: 1 · Callers: 1
- Method: `credentialProxy` · transport uniffi
- Used at: [apps/ios/Mac/Development/CloudProxy.swift:23](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/CloudProxy.swift#L23)

<a id="rpc-daemonengine-decideapproval"></a>

## `DaemonEngine.decideApproval`

Deny, approve once (`lease_minutes = 0`) or for a while. Approving asks for Touch ID in `klavd`. `request_digest` is the one of the [`ApprovalItem`] the person decided on: nothing is signed if the request changed since (ADR 0030 §5).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1489](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1489)
- Handlers: 1 · Callers: 2
- Method: `decideApproval` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1054](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1054), [apps/ios/Mac/MacModel.swift:1419](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1419)

<a id="rpc-daemonengine-decideapprovalwithpassword"></a>

## `DaemonEngine.decideApprovalWithPassword`

`decide_approval` with the master password instead of Touch ID (a Mac without it, or after Touch ID refused: `BiometryUnavailable`).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1501](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1501)
- Handlers: 1 · Callers: 2
- Method: `decideApprovalWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1432](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1432), [apps/ios/Mac/SampleEngine.swift:1360](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1360)

<a id="rpc-daemonengine-decidetask"></a>

## `DaemonEngine.decideTask`

Approves a pending task with the person's changes, or denies it. Approving asks for Touch ID in `klavd`. `request_digest` is the one of the [`TaskItem`] the person decided on (ADR 0030 §5).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1528](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1528)
- Handlers: 1 · Callers: 3
- Method: `decideTask` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1086](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1086), [apps/ios/Mac/MacModel.swift:1462](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1462), [apps/ios/Shared/App/RequestCards.swift:814](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/RequestCards.swift#L814)

<a id="rpc-daemonengine-decidetaskwithpassword"></a>

## `DaemonEngine.decideTaskWithPassword`

`decide_task` with the master password instead of Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1539](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1539)
- Handlers: 1 · Callers: 2
- Method: `decideTaskWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1470](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1470), [apps/ios/Mac/SampleEngine.swift:1373](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1373)

<a id="rpc-daemonengine-deletecopycheck"></a>

## `DaemonEngine.deleteCopyCheck`

What «Delete this Mac’s copy» would lose (ADR 0037, Q3 of the re-review): the generated passwords that never went up, only in this Mac's generator outbox. The Mac has no passkey outbox. The file decides (it is gone when empty); `klavd`, unlocked, says how many with the generator history, which lists them to copy. Locked, or when its list has none of them, it is `locked_with_queue`: something may be waiting.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:998](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L998)
- Handlers: 1 · Callers: 2
- Method: `deleteCopyCheck` · transport uniffi
- Used at: [apps/ios/Mac/Account.swift:529](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Account.swift#L529), [apps/ios/Mac/MacModel.swift:1118](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1118)

<a id="rpc-daemonengine-deletethiscopy"></a>

## `DaemonEngine.deleteThisCopy`

«Delete this Mac’s copy» (ADR 0037 §3, §7.6): stops `klavd`, which holds the account and writes its files, and deletes this Mac's copy of the account, the same files as `klav logout`. Nothing goes to the server: the account is gone. Only the person asks for it; no answer of the server deletes a copy (T165).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1030](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1030)
- Handlers: 1 · Callers: 2
- Method: `deleteThisCopy` · transport uniffi
- Used at: [apps/ios/Mac/Account.swift:561](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Account.swift#L561), [apps/ios/Mac/MacModel.swift:1134](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1134)

<a id="rpc-daemonengine-deletionsupported"></a>

## `DaemonEngine.deletionSupported`

Whether this account's server lets the person delete the account from the app (`account_deletion` in `/v1/health`, ADR 0037 §4). Asked before Touch ID or the password.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:914](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L914)
- Handlers: 1 · Callers: 4
- Method: `deletionSupported` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:419](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L419), [apps/ios/Klav/DeleteAccount.swift:42](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/DeleteAccount.swift#L42), [apps/ios/Mac/Account.swift:96](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Account.swift#L96), [apps/ios/Mac/MacModel.swift:1064](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1064)

<a id="rpc-daemonengine-denyagent"></a>

## `DaemonEngine.denyAgent`

Denies a pending registration.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1669](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1669)
- Handlers: 1 · Callers: 2
- Method: `denyAgent` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1230](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1230), [apps/ios/Mac/MacModel.swift:1576](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1576)

<a id="rpc-daemonengine-denysecretrequest"></a>

## `DaemonEngine.denySecretRequest`

Denies a pending secret request through `klavd` (signed by the account).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1614](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1614)
- Handlers: 1 · Callers: 3
- Method: `denySecretRequest` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1181](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1181), [apps/ios/Mac/MacModel.swift:1556](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1556), [apps/ios/Shared/App/RequestCards.swift:1542](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/RequestCards.swift#L1542)

<a id="rpc-daemonengine-devagents"></a>

## `DaemonEngine.devAgents`

The account's agents with their last use, verified role, person-owned labels (ADR 0047) and pause, for Development › Agents: pending registrations first, then newest.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2123](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2123)
- Handlers: 1 · Callers: 2
- Method: `devAgents` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:878](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L878), [apps/ios/Mac/Development/AgentGrants.swift:288](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L288)

<a id="rpc-daemonengine-devices"></a>

## `DaemonEngine.devices`

Devices of the account, including QR provenance.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/device_link.rs:325](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/device_link.rs#L325)
- Handlers: 1 · Callers: 3
- Method: `devices` · transport uniffi
- Used at: [apps/ios/Klav/DeviceLinkScreens.swift:441](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/DeviceLinkScreens.swift#L441), [apps/ios/Mac/Devices.swift:47](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Devices.swift#L47), [apps/ios/Mac/SampleEngine.swift:234](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L234)

<a id="rpc-daemonengine-edititem"></a>

## `DaemonEngine.editItem`

Edits an item and uploads the next version.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1358](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1358)
- Handlers: 1 · Callers: 5
- Method: `editItem` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:829](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L829), [apps/ios/Klav/ItemEditor.swift:368](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemEditor.swift#L368), [apps/ios/Klav/ItemView.swift:509](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L509), [apps/ios/Mac/ItemEditor.swift:418](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ItemEditor.swift#L418), [apps/ios/Mac/MacModel.swift:1743](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1743)

<a id="rpc-daemonengine-endtask"></a>

## `DaemonEngine.endTask`

«End task».

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1627](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1627)
- Handlers: 1 · Callers: 3
- Method: `endTask` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1205](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1205), [apps/ios/Mac/MacModel.swift:1478](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1478), [apps/ios/Shared/App/RequestCards.swift:994](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/RequestCards.swift#L994)

<a id="rpc-daemonengine-environment"></a>

## `DaemonEngine.environment`

One environment: names and origins, never a value.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:409](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L409)
- Handlers: 1 · Callers: 8
- Method: `environment` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:243](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/EnvironmentScreen.swift#L243), [apps/ios/Mac/EnvironmentPane.swift:186](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/EnvironmentPane.swift#L186), [apps/ios/Mac/PaneTabs.swift:95](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/PaneTabs.swift#L95), [apps/ios/Mac/Setup/Installer.swift:430](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Setup/Installer.swift#L430), [apps/ios/Mac/Setup/Installer.swift:479](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Setup/Installer.swift#L479), … +3

<a id="rpc-daemonengine-environments"></a>

## `DaemonEngine.environments`

The environments of a project, or of every project (ADR 0032 §6).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:401](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L401)
- Handlers: 1 · Callers: 3
- Method: `environments` · transport uniffi
- Used at: [apps/ios/Klav/Requests.swift:59](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Requests.swift#L59), [apps/ios/Mac/MacModel.swift:1589](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1589), [apps/ios/Mac/Vault.swift:410](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L410)

<a id="rpc-daemonengine-fieldvalue"></a>

## `DaemonEngine.fieldValue`

One field's value (the person asked to reveal or copy it). `klavd` answers the whole item revealed; the other values are dropped (and zeroized) here. With the presence gate on it may answer `PresenceRequired`: then [`Self::field_value_with_password`].

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1306](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1306)
- Handlers: 1 · Callers: 6
- Method: `fieldValue` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:440](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L440), [apps/ios/Mac/QuickSearch.swift:126](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/QuickSearch.swift#L126), [apps/ios/Mac/SampleEngine.swift:702](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L702), [apps/ios/Mac/SampleEngine.swift:706](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L706), [apps/ios/Mac/Snapshot.swift:221](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Snapshot.swift#L221), … +1

<a id="rpc-daemonengine-fieldvaluewithpassword"></a>

## `DaemonEngine.fieldValueWithPassword`

`field_value` with the master password, as the answer to its `PresenceRequired`, on the connection that got it (own choice 32).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1312](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1312)
- Handlers: 1 · Callers: 3
- Method: `fieldValueWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/QuickSearch.swift:127](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/QuickSearch.swift#L127), [apps/ios/Mac/Snapshot.swift:222](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Snapshot.swift#L222), [apps/ios/Mac/Vault.swift:1266](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1266)

<a id="rpc-daemonengine-fulfillsecretrequest"></a>

## `DaemonEngine.fulfillSecretRequest`

Fulfills a pending secret request through `klavd`. When `input.grant_proxy` is true or `input.env_link` is present, `klavd` asks for Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1589](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1589)
- Handlers: 1 · Callers: 3
- Method: `fulfillSecretRequest` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1128](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1128), [apps/ios/Mac/MacModel.swift:1512](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1512), [apps/ios/Shared/App/RequestCards.swift:1500](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/RequestCards.swift#L1500)

<a id="rpc-daemonengine-fulfillsecretrequestwithpassword"></a>

## `DaemonEngine.fulfillSecretRequestWithPassword`

`fulfill_secret_request` with the master password instead of Touch ID when `input.grant_proxy` is true or `input.env_link` is present.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1599](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1599)
- Handlers: 1 · Callers: 2
- Method: `fulfillSecretRequestWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1503](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1503), [apps/ios/Mac/SampleEngine.swift:1441](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1441)

<a id="rpc-daemonengine-generatedvalue"></a>

## `DaemonEngine.generatedValue`

The value of one generator history entry.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1456](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1456)
- Handlers: 1 · Callers: 4
- Method: `generatedValue` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:375](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Generator.swift#L375), [apps/ios/Mac/Account.swift:545](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Account.swift#L545), [apps/ios/Mac/SampleEngine.swift:1338](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1338), [apps/ios/Mac/SampleEngine.swift:1341](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1341)

<a id="rpc-daemonengine-generatedvaluewithpassword"></a>

## `DaemonEngine.generatedValueWithPassword`

`generated_value` with the master password, as the answer to its `PresenceRequired`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1462](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1462)
- Handlers: 1 · Callers: 1
- Method: `generatedValueWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Account.swift:546](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Account.swift#L546)

<a id="rpc-daemonengine-generatorhistory"></a>

## `DaemonEngine.generatorHistory`

The generator history, newest first, without values.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1450](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1450)
- Handlers: 1 · Callers: 2
- Method: `generatorHistory` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:364](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Generator.swift#L364), [apps/ios/Mac/MacModel.swift:1124](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1124)

<a id="rpc-daemonengine-grantchangeapply"></a>

## `DaemonEngine.grantChangeApply`

Signs the change the sheet showed. `klavd` prepares it again and refuses if `digest` no longer matches («the grant changed while you were looking at it»); when it widens, it asks for Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1771](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1771)
- Handlers: 1 · Callers: 0
- Method: `grantChangeApply` · transport uniffi

<a id="rpc-daemonengine-grantchangeapplywithpassword"></a>

## `DaemonEngine.grantChangeApplyWithPassword`

`grant_change_apply` with the master password instead of Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1781](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1781)
- Handlers: 1 · Callers: 1
- Method: `grantChangeApplyWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:334](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L334)

<a id="rpc-daemonengine-grantchangeprepare"></a>

## `DaemonEngine.grantChangePrepare`

The sheet of a change: only the differences, whether it widens and the digest to send back with the same `change`. Signs nothing.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1755](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1755)
- Handlers: 1 · Callers: 1
- Method: `grantChangePrepare` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:322](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L322)

<a id="rpc-daemonengine-granteditor"></a>

## `DaemonEngine.grantEditor`

The agent's grant in force in the editor's model, or read-only with the reason (F3). A `klavd` older than the editor gives a read-only grant that says so (`OlderKlavd`).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1746](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1746)
- Handlers: 1 · Callers: 3
- Method: `grantEditor` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentPage.swift:293](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentPage.swift#L293), [apps/ios/Mac/Development/GrantSheet.swift:367](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/GrantSheet.swift#L367), [apps/ios/Mac/Development/RevokeSheet.swift:214](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/RevokeSheet.swift#L214)

<a id="rpc-daemonengine-healthsettings"></a>

## `DaemonEngine.healthSettings`

The breach check's setting of this home.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1804](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1804)
- Handlers: 1 · Callers: 2
- Method: `healthSettings` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:90](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Health.swift#L90), [apps/ios/Mac/Health.swift:138](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Health.swift#L138)

<a id="rpc-daemonengine-hostedproxy"></a>

## `DaemonEngine.hostedProxy`

Klav Cloud's proxy (ADR 0051 §6.3), as `klavd` checks it now: the signed manifest and a fresh attestation when the account uses it, else whether the account is entitled to it. Takes a moment.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1912](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1912)
- Handlers: 1 · Callers: 1
- Method: `hostedProxy` · transport uniffi
- Used at: [apps/ios/Klav/CloudProxy.swift:89](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/CloudProxy.swift#L89)

<a id="rpc-daemonengine-hostedproxyactwithpassword"></a>

## `DaemonEngine.hostedProxyActWithPassword`

«Use Klav Cloud Proxy», «Stop using it» or «Set it up again» (ADR 0051 §6.1, §6.3, §4.4): `klavd` checks the enclave, asks for Touch ID (or takes the master password), and checks it again before it writes anything.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1927](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1927)
- Handlers: 1 · Callers: 1
- Method: `hostedProxyActWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/CloudProxy.swift:66](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/CloudProxy.swift#L66)

<a id="rpc-daemonengine-importadd"></a>

## `DaemonEngine.importAdd`

Adds an export file to the import this engine is feeding, starting it when needed. Large files are sent in pieces like the CLI does.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1134](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1134)
- Handlers: 1 · Callers: 1
- Method: `importAdd` · transport uniffi
- Used at: [apps/ios/Mac/ImportSheet.swift:91](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ImportSheet.swift#L91)

<a id="rpc-daemonengine-importapply"></a>

## `DaemonEngine.importApply`

Imports the files added so far.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1196](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1196)
- Handlers: 1 · Callers: 2
- Method: `importApply` · transport uniffi
- Used at: [apps/ios/Klav/ImportView.swift:748](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ImportView.swift#L748), [apps/ios/Mac/ImportSheet.swift:165](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ImportSheet.swift#L165)

<a id="rpc-daemonengine-importcancel"></a>

## `DaemonEngine.importCancel`

Forgets the import this engine is feeding.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1221](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1221)
- Handlers: 1 · Callers: 1
- Method: `importCancel` · transport uniffi
- Used at: [apps/ios/Mac/ImportSheet.swift:186](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ImportSheet.swift#L186)

<a id="rpc-daemonengine-importpreview"></a>

## `DaemonEngine.importPreview`

What importing the files added so far would do.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1172](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1172)
- Handlers: 1 · Callers: 2
- Method: `importPreview` · transport uniffi
- Used at: [apps/ios/Klav/ImportView.swift:726](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ImportView.swift#L726), [apps/ios/Mac/ImportSheet.swift:147](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ImportSheet.swift#L147)

<a id="rpc-daemonengine-inspectdevicelink"></a>

## `DaemonEngine.inspectDeviceLink`

Inspects a mode-A `KD1-…` scanned or pasted on this Mac.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/device_link.rs:345](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/device_link.rs#L345)
- Handlers: 1 · Callers: 2
- Method: `inspectDeviceLink` · transport uniffi
- Used at: [apps/ios/Shared/App/DeviceLink.swift:269](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/DeviceLink.swift#L269), [apps/ios/Shared/App/DeviceLink.swift:331](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/DeviceLink.swift#L331)

<a id="rpc-daemonengine-item"></a>

## `DaemonEngine.item`

An item, without secret values.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1293](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1293)
- Handlers: 1 · Callers: 8
- Method: `item` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:804](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L804), [apps/ios/Klav/ItemView.swift:376](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L376), [apps/ios/Klav/Requests.swift:58](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Requests.swift#L58), [apps/ios/Mac/ItemEditor.swift:333](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ItemEditor.swift#L333), [apps/ios/Mac/MacModel.swift:1588](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1588), … +3

<a id="rpc-daemonengine-itemactivity"></a>

## `DaemonEngine.itemActivity`

«Who used it» for one item (its ID or reference).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1883](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1883)
- Handlers: 1 · Callers: 2
- Method: `itemActivity` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:443](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L443), [apps/ios/Mac/Development/WhoUsedIt.swift:45](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/WhoUsedIt.swift#L45)

<a id="rpc-daemonengine-items"></a>

## `DaemonEngine.items`

Items matching `query`, by title.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1284](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1284)
- Handlers: 1 · Callers: 10
- Method: `items` · transport uniffi
- Used at: [apps/ios/Klav/CodeSetup.swift:575](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/CodeSetup.swift#L575), [apps/ios/Klav/CodeSetup.swift:661](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/CodeSetup.swift#L661), [apps/ios/Klav/HomeView.swift:263](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/HomeView.swift#L263), [apps/ios/Klav/HomeView.swift:317](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/HomeView.swift#L317), [apps/ios/Mac/Development/AddMcpServer.swift:594](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AddMcpServer.swift#L594), … +5

<a id="rpc-daemonengine-localproxy"></a>

## `DaemonEngine.localProxy`

The credential proxy on this Mac (ADR 0036 E3.5): whether it runs, and its live sandboxes. Needs neither `klavd` nor the vault open.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/local_proxy.rs:144](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/local_proxy.rs#L144)
- Handlers: 1 · Callers: 1
- Method: `localProxy` · transport uniffi
- Used at: [apps/ios/Mac/Development/LocalProxy.swift:130](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/LocalProxy.swift#L130)

<a id="rpc-daemonengine-localproxyrevoke"></a>

## `DaemonEngine.localProxyRevoke`

Revokes one live sandbox (`Some`) or all of them (`None`) of the proxy on this Mac, at once and with no signature: the proxy logs it as `person_local`. Works while Klav is locked (E2.3).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/local_proxy.rs:167](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/local_proxy.rs#L167)
- Handlers: 1 · Callers: 1
- Method: `localProxyRevoke` · transport uniffi
- Used at: [apps/ios/Mac/Development/LocalProxy.swift:144](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/LocalProxy.swift#L144)

<a id="rpc-daemonengine-lock"></a>

## `DaemonEngine.lock`

Locks `klavd`: the CLI and the extension lock too.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:847](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L847)
- Handlers: 1 · Callers: 100
- Method: `lock` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:447](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Credentials/CredentialModel.swift#L447), [apps/ios/Klav/Activity.swift:164](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L164), [apps/ios/Klav/Activity.swift:282](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L282), [apps/ios/Klav/Activity.swift:449](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L449), [apps/ios/Klav/Agents.swift:608](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L608), … +95

<a id="rpc-daemonengine-mcpservers"></a>

## `DaemonEngine.mcpServers`

«Development › MCP servers» (ADR 0049 §3, §9): the proxy's MCP profiles with their tool rules, the local clients its grant names, and the account's switch (`None` from a server older than the gateway), with whether turning it on needs «update every device first» (a `klavd` older than that check says it does). Never a value, a token or a token's digest.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1895](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1895)
- Handlers: 1 · Callers: 3
- Method: `mcpServers` · transport uniffi
- Used at: [apps/ios/Mac/Development/McpServersPane.swift:111](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/McpServersPane.swift#L111), [apps/ios/Mac/Development/TopologyGraph.swift:223](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/TopologyGraph.swift#L223), [apps/ios/Mac/Development/TopologyPane.swift:64](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/TopologyPane.swift#L64)

<a id="rpc-daemonengine-moveitem"></a>

## `DaemonEngine.moveItem`

Moves an item to another project, perhaps of another vault, and leaves the old item in the trash once the copy is complete. The destination gets a fresh item key under its project key.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1382](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1382)
- Handlers: 1 · Callers: 4
- Method: `moveItem` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1792](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1792), [apps/ios/Mac/Setup/Installer.swift:1014](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Setup/Installer.swift#L1014), [apps/ios/Mac/Vault.swift:317](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L317), [apps/ios/Mac/Vault.swift:850](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L850)

<a id="rpc-daemonengine-new"></a>

## `DaemonEngine.new`

The `klavd` of `home_dir` (on macOS, `~/Library/Application Support/klav`). Nothing is contacted yet.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:660](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L660)
- Handlers: 1 · Callers: 2
- Method: `new` · transport uniffi
- Used at: [apps/ios/Mac/Development/IssuerProfiles.swift:244](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/IssuerProfiles.swift#L244), [apps/ios/Mac/Development/IssuerProfiles.swift:245](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/IssuerProfiles.swift#L245)

<a id="rpc-daemonengine-notes"></a>

## `DaemonEngine.notes`

The item's notes (the person asked to see them).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1322](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1322)
- Handlers: 1 · Callers: 7
- Method: `notes` · transport uniffi
- Used at: [apps/ios/Klav/ItemEditor.swift:325](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemEditor.swift#L325), [apps/ios/Klav/ItemView.swift:491](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L491), [apps/ios/Mac/Development/CloudProxy.swift:70](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/CloudProxy.swift#L70), [apps/ios/Mac/ItemEditor.swift:380](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ItemEditor.swift#L380), [apps/ios/Mac/SampleEngine.swift:724](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L724), … +2

<a id="rpc-daemonengine-noteswithpassword"></a>

## `DaemonEngine.notesWithPassword`

`notes` with the master password, as the answer to its `PresenceRequired`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1331](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1331)
- Handlers: 1 · Callers: 2
- Method: `notesWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/ItemEditor.swift:381](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ItemEditor.swift#L381), [apps/ios/Mac/Vault.swift:1303](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1303)

<a id="rpc-daemonengine-offertaskwithpassword"></a>

## `DaemonEngine.offerTaskWithPassword`

Offers the agent a task with `rotate` on these logins, signed by the account without a request from the agent (ADR 0022 §6). `klavd` checks the offer before it asks for Touch ID, or for `password` on a Mac without it.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1834](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1834)
- Handlers: 1 · Callers: 1
- Method: `offerTaskWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1915](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1915)

<a id="rpc-daemonengine-opendevicelink"></a>

## `DaemonEngine.openDeviceLink`

Opens a mode-B slot; this Mac shows the QR.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/device_link.rs:353](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/device_link.rs#L353)
- Handlers: 1 · Callers: 1
- Method: `openDeviceLink` · transport uniffi
- Used at: [apps/ios/Shared/App/DeviceLink.swift:287](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/DeviceLink.swift#L287)

<a id="rpc-daemonengine-passwordhistory"></a>

## `DaemonEngine.passwordHistory`

The previous passwords of an item, without values.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1408](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1408)
- Handlers: 1 · Callers: 3
- Method: `passwordHistory` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:377](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L377), [apps/ios/Mac/SampleEngine.swift:1335](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1335), [apps/ios/Mac/Vault.swift:1200](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1200)

<a id="rpc-daemonengine-pauseagents"></a>

## `DaemonEngine.pauseAgents`

«Pause agents» (ADR 0033 §7): every agent without `agent_id`, until `until_ms` or until the person resumes. Nothing is asked: pausing is for a scare. Answers the pauses in effect.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2149](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2149)
- Handlers: 1 · Callers: 10
- Method: `pauseAgents` · transport uniffi
- Used at: [apps/ios/Klav/Agents.swift:234](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L234), [apps/ios/Klav/Agents.swift:468](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L468), [apps/ios/Klav/AppModel.swift:1264](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1264), [apps/ios/Mac/Development/AgentGrants.swift:265](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L265), [apps/ios/Mac/Development/AgentsPane.swift:411](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentsPane.swift#L411), … +5

<a id="rpc-daemonengine-polldevicelink"></a>

## `DaemonEngine.pollDeviceLink`

Polls the mode-B slot identified by its QR text.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/device_link.rs:364](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/device_link.rs#L364)
- Handlers: 1 · Callers: 1
- Method: `pollDeviceLink` · transport uniffi
- Used at: [apps/ios/Shared/App/DeviceLink.swift:321](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/DeviceLink.swift#L321)

<a id="rpc-daemonengine-presencecancel"></a>

## `DaemonEngine.presenceCancel`

The app closed its master-password window without an answer: the long connection takes other values again.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:905](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L905)
- Handlers: 1 · Callers: 2
- Method: `presenceCancel` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1170](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1170), [apps/ios/Mac/MacModel.swift:1281](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1281)

<a id="rpc-daemonengine-presencewindow"></a>

## `DaemonEngine.presenceWindow`

The presence setting (ADR 0041 §2.4), only from an unlocked `klavd`: `Locked` while locked (Q-N2), `NotSupported` with the gate off or from an older `klavd`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:865](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L865)
- Handlers: 1 · Callers: 1
- Method: `presenceWindow` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1195](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1195)

<a id="rpc-daemonengine-previouspassword"></a>

## `DaemonEngine.previousPassword`

One previous password (the person asked to reveal or copy it).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1416](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1416)
- Handlers: 1 · Callers: 2
- Method: `previousPassword` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:336](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L336), [apps/ios/Mac/Vault.swift:1315](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1315)

<a id="rpc-daemonengine-previouspasswordwithpassword"></a>

## `DaemonEngine.previousPasswordWithPassword`

`previous_password` with the master password, as the answer to its `PresenceRequired`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1422](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1422)
- Handlers: 1 · Callers: 1
- Method: `previousPasswordWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Vault.swift:1316](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1316)

<a id="rpc-daemonengine-projects"></a>

## `DaemonEngine.projects`

Projects of a vault (or of all vaults), by name.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1096](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1096)
- Handlers: 1 · Callers: 12
- Method: `projects` · transport uniffi
- Used at: [apps/ios/Klav/CodeSetup.swift:575](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/CodeSetup.swift#L575), [apps/ios/Klav/ImportView.swift:630](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ImportView.swift#L630), [apps/ios/Klav/ItemEditor.swift:313](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemEditor.swift#L313), [apps/ios/Klav/Requests.swift:52](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Requests.swift#L52), [apps/ios/Mac/Development/GrantSheet.swift:367](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/GrantSheet.swift#L367), … +7

<a id="rpc-daemonengine-proxygrantpreview"></a>

## `DaemonEngine.proxyGrantPreview`

What sharing `item_id` with the account's proxy would sign, with every check but the person's: the profile and rules, the proxy's words while it is pending, and the warnings. Signs nothing and asks for nothing.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_grant.rs:591](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_grant.rs#L591)
- Handlers: 1 · Callers: 2
- Method: `proxyGrantPreview` · transport uniffi
- Used at: [apps/ios/Mac/Development/AddMcpServer.swift:626](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AddMcpServer.swift#L626), [apps/ios/Mac/Development/ShareCredential.swift:1169](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ShareCredential.swift#L1169)

<a id="rpc-daemonengine-proxygrantwithpassword"></a>

## `DaemonEngine.proxyGrantWithPassword`

Shares `item_id` with the account's proxy, as the preview showed: `klavd` builds it again and refuses if the proxy's grant version, the item or a pending proxy's words changed, refuses the first per-item grant or MCP profile without `every_device_updated`, asks for Touch ID (or takes `password`), and verifies Klav Cloud's attestation again before it wraps anything.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_grant.rs:633](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_grant.rs#L633)
- Handlers: 1 · Callers: 3
- Method: `proxyGrantWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/AddMcpServer.swift:28](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AddMcpServer.swift#L28), [apps/ios/Mac/Development/ShareCredential.swift:266](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ShareCredential.swift#L266), [apps/ios/Mac/Development/ShareCredential.swift:1201](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ShareCredential.swift#L1201)

<a id="rpc-daemonengine-proxyissueraddwithpassword"></a>

## `DaemonEngine.proxyIssuerAddWithPassword`

Signs the issuer change the preview showed: `klavd` prepares it again and refuses if either grant's version, the issuer, the proxy or a pending issuer's words changed, refuses the account's first issuer without `every_device_updated`, and asks for Touch ID (or takes `password`).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_issuer.rs:230](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_issuer.rs#L230)
- Handlers: 1 · Callers: 2
- Method: `proxyIssuerAddWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/IssuerProfiles.swift:548](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/IssuerProfiles.swift#L548), [apps/ios/Mac/Development/ShareCredential.swift:1217](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ShareCredential.swift#L1217)

<a id="rpc-daemonengine-proxyissuerpreview"></a>

## `DaemonEngine.proxyIssuerPreview`

What letting `agent` start sandboxes with `spec` would sign, with every check but the person's: profiles, limits, the proxy's address, the issuer's words while it is pending, and the warnings. Signs nothing and asks for nothing.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_issuer.rs:212](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_issuer.rs#L212)
- Handlers: 1 · Callers: 4
- Method: `proxyIssuerPreview` · transport uniffi
- Used at: [apps/ios/Mac/Development/IssuerProfiles.swift:534](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/IssuerProfiles.swift#L534), [apps/ios/Mac/Development/ShareCredential.swift:1175](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ShareCredential.swift#L1175), [apps/ios/Mac/Development/ShareCredential.swift:1210](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ShareCredential.swift#L1210), [apps/ios/Mac/SampleEngine.swift:3300](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L3300)

<a id="rpc-daemonengine-proxyissuerremovewithpassword"></a>

## `DaemonEngine.proxyIssuerRemoveWithPassword`

Stops `agent` from starting sandboxes through the account's proxy, after Touch ID (or with the master password). Removing only takes access away; running it again finishes a half-done one.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_issuer.rs:260](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_issuer.rs#L260)
- Handlers: 1 · Callers: 1
- Method: `proxyIssuerRemoveWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/IssuerProfiles.swift:581](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/IssuerProfiles.swift#L581)

<a id="rpc-daemonengine-proxyrevoke"></a>

## `DaemonEngine.proxyRevoke`

Stops sharing `item_id` with the account's proxy: `klavd` asks for Touch ID, signs the grant without it, changes the item's key and re-issues the grants of the agents that still hold it.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_grant.rs:607](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_grant.rs#L607)
- Handlers: 1 · Callers: 1
- Method: `proxyRevoke` · transport uniffi
- Used at: [apps/ios/Mac/Development/RevokeCredential.swift:47](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/RevokeCredential.swift#L47)

<a id="rpc-daemonengine-proxyrevokewithpassword"></a>

## `DaemonEngine.proxyRevokeWithPassword`

`proxy_revoke` with the master password instead of Touch ID. Removing only takes access away; running it again finishes a half-done one.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/proxy_grant.rs:614](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/proxy_grant.rs#L614)
- Handlers: 1 · Callers: 2
- Method: `proxyRevokeWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/RevokeCredential.swift:46](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/RevokeCredential.swift#L46), [apps/ios/Mac/SampleEngine.swift:3213](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L3213)

<a id="rpc-daemonengine-proxytunnels"></a>

## `DaemonEngine.proxyTunnels`

The account's WebSocket tunnels switch (ADR 0052 §10): `on` is `None` from a server older than tunnels, and turning it on needs «update every device first» when the account may hold an older device or proxy (a `klavd` older than that check says it does).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1965](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1965)
- Handlers: 1 · Callers: 0
- Method: `proxyTunnels` · transport uniffi

<a id="rpc-daemonengine-purgeitem"></a>

## `DaemonEngine.purgeItem`

Permanently deletes an item that is in the trash. Writes need no presence (ADR 0041 §3, P6), so there is no password variant.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1127](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1127)
- Handlers: 1 · Callers: 1
- Method: `purgeItem` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1780](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1780)

<a id="rpc-daemonengine-recordgenerated"></a>

## `DaemonEngine.recordGenerated`

Keeps a generated password in the generator history first.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1441](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1441)
- Handlers: 1 · Callers: 2
- Method: `recordGenerated` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:238](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Generator.swift#L238), [apps/ios/Mac/Generator.swift:202](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Generator.swift#L202)

<a id="rpc-daemonengine-requestaccountdeletion"></a>

## `DaemonEngine.requestAccountDeletion`

Asks the server to delete the account in 7 days (ADR 0037 §1), in this process, as the sign-in does (ADR 0027 §3). The Touch ID key is `klavd`'s, so where `klavd` has Touch ID set up it confirms the person's presence first (`confirm_presence`, which deletes nothing). `klavd` never sees the password (T164): it is checked here and proved to the server with OPAQUE. Then an unlocked `klavd` syncs, and stops what it mediates for agents at once.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:936](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L936)
- Handlers: 1 · Callers: 4
- Method: `requestAccountDeletion` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:432](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L432), [apps/ios/Klav/DeleteAccount.swift:257](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/DeleteAccount.swift#L257), [apps/ios/Mac/Account.swift:353](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Account.swift#L353), [apps/ios/Mac/MacModel.swift:1073](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1073)

<a id="rpc-daemonengine-resolvepending"></a>

## `DaemonEngine.resolvePending`

«Use the new one» or «Keep the current one» (ADR 0022 §5).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1432](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1432)
- Handlers: 1 · Callers: 1
- Method: `resolvePending` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:365](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Health.swift#L365)

<a id="rpc-daemonengine-restoreitem"></a>

## `DaemonEngine.restoreItem`

Restores an item from the trash.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1120](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1120)
- Handlers: 1 · Callers: 1
- Method: `restoreItem` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1772](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1772)

<a id="rpc-daemonengine-resumeagents"></a>

## `DaemonEngine.resumeAgents`

«Resume»: asks for Touch ID in `klavd`, as approving does.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2162](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2162)
- Handlers: 1 · Callers: 5
- Method: `resumeAgents` · transport uniffi
- Used at: [apps/ios/Klav/Agents.swift:313](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L313), [apps/ios/Klav/Agents.swift:323](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L323), [apps/ios/Klav/AppModel.swift:1291](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1291), [apps/ios/Mac/Development/AgentsPane.swift:418](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentsPane.swift#L418), [apps/ios/Mac/Development/PauseControls.swift:98](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/PauseControls.swift#L98)

<a id="rpc-daemonengine-resumeagentswithpassword"></a>

## `DaemonEngine.resumeAgentsWithPassword`

`resume_agents` with the master password instead of Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2167](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2167)
- Handlers: 1 · Callers: 2
- Method: `resumeAgentsWithPassword` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1300](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1300), [apps/ios/Mac/Development/DevelopmentModel.swift:40](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/DevelopmentModel.swift#L40)

<a id="rpc-daemonengine-reusedoffer"></a>

## `DaemonEngine.reusedOffer`

The «Fix my reused passwords» card (ADR 0022 §6): the logins that share a password, checked against `agent`'s grant (the only agent with one when absent), and the agents that can take the task. For the person only: no agent command asks for it.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1825](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1825)
- Handlers: 1 · Callers: 3
- Method: `reusedOffer` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:125](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Health.swift#L125), [apps/ios/Mac/Health.swift:162](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Health.swift#L162), [apps/ios/Mac/MacModel.swift:1836](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1836)

<a id="rpc-daemonengine-revokeagent"></a>

## `DaemonEngine.revokeAgent`

Revokes the agent, without presence (ADR 0014 §7.1). With `rotate`, then changes its projects' keys one at a time and answers when they are done (or stopped). A key change cut off by a lock goes on by itself at the next unlock (P11), and `status` says what is left meanwhile.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1702](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1702)
- Handlers: 1 · Callers: 2
- Method: `revokeAgent` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:95](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L95), [apps/ios/Mac/Development/AgentGrants.swift:160](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L160)

<a id="rpc-daemonengine-revokeagentinbackground"></a>

## `DaemonEngine.revokeAgentInBackground`

Revokes the agent and has `klavd` change its projects' keys in the background (F2): the answer comes once the agent is revoked and the key change is written down, so it outlives the app (P11). `status` follows it (`revocations`); once the agent is no longer there, every key changed. `pending` lists what is left when it answers.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1720](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1720)
- Handlers: 1 · Callers: 1
- Method: `revokeAgentInBackground` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:91](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentGrants.swift#L91)

<a id="rpc-daemonengine-revokeallsandboxes"></a>

## `DaemonEngine.revokeAllSandboxes`

Revokes every sandbox of `proxy_id` issued so far («Revoke all»).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2116](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2116)
- Handlers: 1 · Callers: 2
- Method: `revokeAllSandboxes` · transport uniffi
- Used at: [apps/ios/Mac/Development/SandboxesModel.swift:633](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/SandboxesModel.swift#L633), [apps/ios/Mac/Development/SandboxesModel.swift:655](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/SandboxesModel.swift#L655)

<a id="rpc-daemonengine-revokesandbox"></a>

## `DaemonEngine.revokeSandbox`

Revokes one sandbox of `proxy_id`, signed by `klavd` with the account and without Touch ID (ADR 0036 E2.3).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2107](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2107)
- Handlers: 1 · Callers: 6
- Method: `revokeSandbox` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1148](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1148), [apps/ios/Mac/Development/SandboxesModel.swift:619](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/SandboxesModel.swift#L619), [apps/ios/Mac/Development/SandboxesModel.swift:624](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/SandboxesModel.swift#L624), [apps/ios/Mac/Development/SandboxesModel.swift:670](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/SandboxesModel.swift#L670), [apps/ios/Mac/Development/SandboxesPane.swift:605](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/SandboxesPane.swift#L605), … +1

<a id="rpc-daemonengine-sandboxlist"></a>

## `DaemonEngine.sandboxList`

«Sandboxes» (ADR 0036 E2.1): the sandboxes in the verified log, with the last heartbeat of the account's proxy, as `klavd` checks them. Only the account's proxy's, unless `all_proxies`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2069](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2069)
- Handlers: 1 · Callers: 0
- Method: `sandboxList` · transport uniffi

<a id="rpc-daemonengine-sandboxlistchecked"></a>

## `DaemonEngine.sandboxListChecked`

[`Self::sandbox_list_flagged`] with the check that refused the list apart (see `KlavCore::sandbox_list_checked`). A `klavd` older than it answers `bad_request`: then this asks `sandbox_list_flagged`, which fails with `Security` where this would name the check, so no `klavd` gives a list a check refused.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2096](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2096)
- Handlers: 1 · Callers: 1
- Method: `sandboxListChecked` · transport uniffi
- Used at: [apps/ios/Mac/Development/SandboxesModel.swift:550](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/SandboxesModel.swift#L550)

<a id="rpc-daemonengine-sandboxlistflagged"></a>

## `DaemonEngine.sandboxListFlagged`

[`Self::sandbox_list`] for an app that shows `security` (see `KlavCore::sandbox_list_flagged`). A `klavd` older than the flag answers `bad_request`: then this asks `sandbox_list`, which fails with `Security` where this would flag, so an older `klavd` never gives a list without the problem.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2081](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2081)
- Handlers: 1 · Callers: 0
- Method: `sandboxListFlagged` · transport uniffi

<a id="rpc-daemonengine-sandboxsecretrequests"></a>

## `DaemonEngine.sandboxSecretRequests`

The account's sandbox secret requests switch (ADR 0053 §9): `on` is `None` from a server older than it, and turning it on needs «update every device first» when the account may hold an older device or proxy (a `klavd` older than that check says it does).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1999](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1999)
- Handlers: 1 · Callers: 0
- Method: `sandboxSecretRequests` · transport uniffi

<a id="rpc-daemonengine-saveenvironment"></a>

## `DaemonEngine.saveEnvironment`

Saves a change to an environment; lowering the protection asks for Touch ID in `klavd` (or `PasswordRequired` where there is none: then the `_with_password` call).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:442](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L442)
- Handlers: 1 · Callers: 2
- Method: `saveEnvironment` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:295](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/EnvironmentScreen.swift#L295), [apps/ios/Mac/EnvironmentPane.swift:363](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/EnvironmentPane.swift#L363)

<a id="rpc-daemonengine-saveenvironmentwithpassword"></a>

## `DaemonEngine.saveEnvironmentWithPassword`

`save_environment` with the master password.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:452](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L452)
- Handlers: 1 · Callers: 2
- Method: `saveEnvironmentWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/EnvironmentPane.swift:242](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/EnvironmentPane.swift#L242), [apps/ios/Mac/SampleEngine.swift:1220](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1220)

<a id="rpc-daemonengine-secretrequests"></a>

## `DaemonEngine.secretRequests`

Pending secret requests from agents, opened and verified by `klavd` (ADR 0046).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1581](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1581)
- Handlers: 1 · Callers: 2
- Method: `secretRequests` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:920](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L920), [apps/ios/Mac/MacModel.swift:944](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L944)

<a id="rpc-daemonengine-setagentlabel"></a>

## `DaemonEngine.setAgentLabel`

Sets or clears the person-owned label and/or machine host for an agent (ADR 0047). Stored E2E-encrypted in the personal vault's system project.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2134](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2134)
- Handlers: 1 · Callers: 4
- Method: `setAgentLabel` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1241](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1241), [apps/ios/Mac/Development/AgentPage.swift:221](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentPage.swift#L221), [apps/ios/Mac/MacModel.swift:1596](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1596), [apps/ios/Shared/App/RequestCards.swift:715](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Shared/App/RequestCards.swift#L715)

<a id="rpc-daemonengine-setbreachcheck"></a>

## `DaemonEngine.setBreachCheck`

Turns the breach check on or off.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1812](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1812)
- Handlers: 1 · Callers: 2
- Method: `setBreachCheck` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:143](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Health.swift#L143), [apps/ios/Mac/Health.swift:183](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Health.swift#L183)

<a id="rpc-daemonengine-setitemexpiry"></a>

## `DaemonEngine.setItemExpiry`

Sets or clears an item's expiry without changing anything else. `Some(ms)` must be a valid future expiry; `None` makes it permanent.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1368](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1368)
- Handlers: 1 · Callers: 5
- Method: `setItemExpiry` · transport uniffi
- Used at: [apps/ios/Klav/ItemEditor.swift:367](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemEditor.swift#L367), [apps/ios/Klav/ItemView.swift:421](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L421), [apps/ios/Mac/ItemEditor.swift:417](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/ItemEditor.swift#L417), [apps/ios/Mac/MacModel.swift:1761](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1761), [apps/ios/Mac/Vault.swift:1253](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1253)

<a id="rpc-daemonengine-setpresencewindow"></a>

## `DaemonEngine.setPresenceWindow`

Changes the presence setting. Tightening asks nothing; loosening asks for Touch ID in `klavd`, or, where Touch ID can't confirm (`BiometryUnavailable`), for `password`, and opens no window. A move off Always opens a new long connection with `hold` (the ADR's own choice 1): Always dropped the old one's declaration.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:880](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L880)
- Handlers: 1 · Callers: 1
- Method: `setPresenceWindow` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1205](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1205)

<a id="rpc-daemonengine-setprojectrepos"></a>

## `DaemonEngine.setProjectRepos`

Replaces the normalized Git repositories linked to a project (ADR 0032).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1269](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1269)
- Handlers: 1 · Callers: 3
- Method: `setProjectRepos` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1603](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1603), [apps/ios/Mac/Vault.swift:638](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L638), [apps/ios/Mac/Vault.swift:655](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L655)

<a id="rpc-daemonengine-shutdown"></a>

## `DaemonEngine.shutdown`

Stops `klavd` (after an update, ADR 0027 §4.1: the LaunchAgent then starts the new one). The long connection goes first.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:854](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L854)
- Handlers: 1 · Callers: 3
- Method: `shutdown` · transport uniffi
- Used at: [apps/ios/Mac/Setup/Installer.swift:624](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Setup/Installer.swift#L624), [apps/ios/Mac/Setup/Installer.swift:674](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Setup/Installer.swift#L674), [apps/ios/Mac/Setup/Installer.swift:1105](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Setup/Installer.swift#L1105)

<a id="rpc-daemonengine-socketpath"></a>

## `DaemonEngine.socketPath`

The socket's path, for messages.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:676](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L676)
- Handlers: 1 · Callers: 0
- Method: `socketPath` · transport uniffi

<a id="rpc-daemonengine-status"></a>

## `DaemonEngine.status`

`klavd`'s state, or `running: false` when nobody answers.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:681](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L681)
- Handlers: 1 · Callers: 21
- Method: `status` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:130](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Credentials/CredentialModel.swift#L130), [apps/ios/Klav/Agents.swift:424](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L424), [apps/ios/Klav/AppModel.swift:271](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L271), [apps/ios/Klav/SettingsView.swift:221](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/SettingsView.swift#L221), [apps/ios/Klav/SettingsView.swift:269](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/SettingsView.swift#L269), … +16

<a id="rpc-daemonengine-stopissuersecretrequestswithpassword"></a>

## `DaemonEngine.stopIssuerSecretRequestsWithPassword`

The card's "Don't let `<issuer>`'s sandboxes ask again" (ADR 0053 §3.3, T297): `klavd` takes the issuer from the verified audit log, asks for Touch ID (or takes the master password) naming it, and re-signs the proxy's grant with its opt-in off. `true` when every grant was signed. ("Stop this sandbox" is `revoke_sandbox` with the card's `agent_id` and `sandbox_id`.)

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2038](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2038)
- Handlers: 1 · Callers: 1
- Method: `stopIssuerSecretRequestsWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1546](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1546)

<a id="rpc-daemonengine-sync"></a>

## `DaemonEngine.sync`

Pulls every change from the server.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1076](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1076)
- Handlers: 1 · Callers: 12
- Method: `sync` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:116](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L116), [apps/ios/Klav/Agents.swift:109](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Agents.swift#L109), [apps/ios/Klav/AppModel.swift:354](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L354), [apps/ios/Klav/AppModel.swift:374](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L374), [apps/ios/Klav/AppModel.swift:438](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L438), … +7

<a id="rpc-daemonengine-taskprogress"></a>

## `DaemonEngine.taskProgress`

Where each site of a task with `rotate` is: changed, pending or failed.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1854](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1854)
- Handlers: 1 · Callers: 2
- Method: `taskProgress` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:117](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Health.swift#L117), [apps/ios/Mac/MacModel.swift:1847](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1847)

<a id="rpc-daemonengine-tasks"></a>

## `DaemonEngine.tasks`

Task requests waiting and running tasks.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1520](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1520)
- Handlers: 1 · Callers: 4
- Method: `tasks` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:908](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L908), [apps/ios/Klav/Health.swift:112](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Health.swift#L112), [apps/ios/Mac/MacModel.swift:945](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L945), [apps/ios/Mac/MacModel.swift:1842](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1842)

<a id="rpc-daemonengine-totp"></a>

## `DaemonEngine.totp`

The current one-time password of an item.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1339](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1339)
- Handlers: 1 · Callers: 12
- Method: `totp` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:282](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Credentials/CredentialModel.swift#L282), [apps/ios/Klav/CodeSetup.swift:564](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/CodeSetup.swift#L564), [apps/ios/Klav/HomeView.swift:401](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/HomeView.swift#L401), [apps/ios/Klav/ItemView.swift:368](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L368), [apps/ios/Klav/ItemView.swift:472](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L472), … +7

<a id="rpc-daemonengine-totpwithpassword"></a>

## `DaemonEngine.totpWithPassword`

`totp` with the master password, as the answer to its `PresenceRequired`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1345](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1345)
- Handlers: 1 · Callers: 3
- Method: `totpWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1253](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1253), [apps/ios/Mac/QuickSearch.swift:114](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/QuickSearch.swift#L114), [apps/ios/Mac/Vault.swift:1165](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Vault.swift#L1165)

<a id="rpc-daemonengine-trashenvironment"></a>

## `DaemonEngine.trashEnvironment`

Moves an environment to the trash; a protected one asks for Touch ID in `klavd` first.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:470](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L470)
- Handlers: 1 · Callers: 1
- Method: `trashEnvironment` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:314](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/EnvironmentScreen.swift#L314)

<a id="rpc-daemonengine-trashenvironmentwithpassword"></a>

## `DaemonEngine.trashEnvironmentWithPassword`

`trash_environment` with the master password.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:479](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L479)
- Handlers: 1 · Callers: 2
- Method: `trashEnvironmentWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/EnvironmentPane.swift:262](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/EnvironmentPane.swift#L262), [apps/ios/Mac/SampleEngine.swift:1274](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1274)

<a id="rpc-daemonengine-trashitem"></a>

## `DaemonEngine.trashItem`

Moves an item to the trash.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1400](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1400)
- Handlers: 1 · Callers: 2
- Method: `trashItem` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:532](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ItemView.swift#L532), [apps/ios/Mac/MacModel.swift:1730](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L1730)

<a id="rpc-daemonengine-turnmcpgatewayon"></a>

## `DaemonEngine.turnMcpGatewayOn`

Turns the account's MCP gateway switch on (ADR 0049 §9), after the sheet's «update every device first» when the account may hold an older device or proxy (`McpServersInfo::needs_update_warning`): `every_device_updated` is that acknowledgement, and `klavd` checks again and refuses without it. Asks for Touch ID in `klavd` unless the switch is already on. Nothing turns it off.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1945](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1945)
- Handlers: 1 · Callers: 0
- Method: `turnMcpGatewayOn` · transport uniffi

<a id="rpc-daemonengine-turnmcpgatewayonwithpassword"></a>

## `DaemonEngine.turnMcpGatewayOnWithPassword`

`turn_mcp_gateway_on` with the master password instead of Touch ID.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1950](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1950)
- Handlers: 1 · Callers: 2
- Method: `turnMcpGatewayOnWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/McpServersPane.swift:124](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/McpServersPane.swift#L124), [apps/ios/Mac/Development/McpServersPane.swift:449](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/McpServersPane.swift#L449)

<a id="rpc-daemonengine-turnproxytunnelsonwithpassword"></a>

## `DaemonEngine.turnProxyTunnelsOnWithPassword`

Turns the account's WebSocket tunnels on (ADR 0052 §10), after the sheet's «update every device first» when `ProxyTunnelsInfo::needs_update_warning`: `every_device_updated` is that acknowledgement, and `klavd` checks again. Asks for Touch ID unless `password`, and unless already on. Nothing turns it off.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1984](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1984)
- Handlers: 1 · Callers: 0
- Method: `turnProxyTunnelsOnWithPassword` · transport uniffi

<a id="rpc-daemonengine-turnsandboxsecretrequestsonwithpassword"></a>

## `DaemonEngine.turnSandboxSecretRequestsOnWithPassword`

Turns the account's sandbox secret requests on (ADR 0053 §9), after the sheet's «update every device first» when `SandboxSecretRequestsInfo::needs_update_warning`: `every_device_updated` is that acknowledgement, and `klavd` checks again. Asks for Touch ID unless `password`, and unless already on. Nothing turns it off.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2021](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2021)
- Handlers: 1 · Callers: 0
- Method: `turnSandboxSecretRequestsOnWithPassword` · transport uniffi

<a id="rpc-daemonengine-unlock"></a>

## `DaemonEngine.unlock`

Unlocks `klavd` on the long connection: with Touch ID when `password` is absent (the system prompt names `klavd`, riesgo residual 43), or with the master password, which also enrols Touch ID (ADR 0013 §5).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:793](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L793)
- Handlers: 1 · Callers: 69
- Method: `unlock` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:172](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Credentials/CredentialModel.swift#L172), [apps/ios/Credentials/CredentialView.swift:97](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Credentials/CredentialView.swift#L97), [apps/ios/Klav/AppModel.swift:1420](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L1420), [apps/ios/Klav/LockView.swift:187](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/LockView.swift#L187), [apps/ios/Mac/MacModel.swift:607](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L607), … +64

<a id="rpc-daemonengine-unlockquestion"></a>

## `DaemonEngine.unlockQuestion`

What the unlock's question may say (ADR 0041 §2.4): opens a new long connection, declares `hold` on it, and reads `status` there, so what it says is that connection's. Call it when the lock screen shows, before the person types; the password then goes to [`Self::unlock`] on that same connection, with `shown` set to what the question said.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:767](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L767)
- Handlers: 1 · Callers: 1
- Method: `unlockQuestion` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:994](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L994)

<a id="rpc-daemonengine-variablevalue"></a>

## `DaemonEngine.variableValue`

The value of one variable. `klavd` refuses anything but an environment's variable, and asks for Touch ID in a protected one; with the presence gate on it may answer `PresenceRequired`: then [`Self::variable_value_with_password`].

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:425](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L425)
- Handlers: 1 · Callers: 4
- Method: `variableValue` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:259](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/EnvironmentScreen.swift#L259), [apps/ios/Mac/EnvironmentPane.swift:200](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/EnvironmentPane.swift#L200), [apps/ios/Mac/SampleEngine.swift:1183](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1183), [apps/ios/Mac/SampleEngine.swift:1185](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1185)

<a id="rpc-daemonengine-variablevaluewithpassword"></a>

## `DaemonEngine.variableValueWithPassword`

`variable_value` with the master password, as the answer to its `PresenceRequired`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:431](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/environments.rs#L431)
- Handlers: 1 · Callers: 1
- Method: `variableValueWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/EnvironmentPane.swift:201](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/EnvironmentPane.swift#L201)

<a id="rpc-daemonengine-vaulthealth"></a>

## `DaemonEngine.vaultHealth`

The vault health report (ADR 0022 §4).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1799](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1799)
- Handlers: 1 · Callers: 3
- Method: `vaultHealth` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:92](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Health.swift#L92), [apps/ios/Mac/Health.swift:140](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Health.swift#L140), [apps/ios/Mac/SampleEngine.swift:1547](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/SampleEngine.swift#L1547)

<a id="rpc-daemonengine-vaults"></a>

## `DaemonEngine.vaults`

Vaults, by name.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:1089](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L1089)
- Handlers: 1 · Callers: 1
- Method: `vaults` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:868](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/MacModel.swift#L868)

<a id="rpc-daemonengine-verifyaudit"></a>

## `DaemonEngine.verifyAudit`

«Verify»: downloads the whole chain, checks every signature and that it still holds what this Mac downloaded before, and signs its head (`klav log verify`). A failure is `Security`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/daemon.rs:2061](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/daemon.rs#L2061)
- Handlers: 1 · Callers: 2
- Method: `verifyAudit` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:160](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/Activity.swift#L160), [apps/ios/Mac/Development/ActivityPane.swift:162](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/ActivityPane.swift#L162)
