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

# RPC: DaemonEngine

> OmarAlex24/klav · channel `stable` · v0.15.1 @ [`034e81b52d1b`](https://github.com/OmarAlex24/klav/tree/034e81b52d1b693c65ff95181cd555c6734bc8e8) · 2026-12-04 · generated by Everdoc from source (no LLM).

122 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:1521](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1521)
- Handlers: 1 · Callers: 2
- Method: `addToTask` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1064](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1064), [apps/ios/Shared/App/RequestCards.swift:310](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1526](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1526)
- Handlers: 1 · Callers: 2
- Method: `addToTaskWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1218](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1218), [apps/ios/Mac/SampleEngine.swift:1252](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1252)

<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:1640](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1640)
- Handlers: 1 · Callers: 3
- Method: `agentExposure` · transport uniffi
- Used at: [apps/ios/Klav/Revoke.swift:398](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Revoke.swift#L398), [apps/ios/Mac/Development/RevokeSheet.swift:222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/RevokeSheet.swift#L222), [apps/ios/Mac/SampleEngine.swift:1598](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1598)

<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:1694](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1694)
- Handlers: 1 · Callers: 2
- Method: `agentRevocations` · transport uniffi
- Used at: [apps/ios/Klav/Revoke.swift:27](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Revoke.swift#L27), [apps/ios/Mac/Development/AgentGrants.swift:289](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1594](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1594)
- Handlers: 1 · Callers: 2
- Method: `agents` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:276](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentGrants.swift#L276), [apps/ios/Mac/MacModel.swift:864](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L864)

<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:1440](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1440)
- Handlers: 1 · Callers: 2
- Method: `approvals` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:840](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L840), [apps/ios/Mac/MacModel.swift:864](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L864)

<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:1601](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1601)
- Handlers: 1 · Callers: 1
- Method: `approveAgent` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1178](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1178)

<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:1612](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1612)
- Handlers: 1 · Callers: 2
- Method: `approveAgentWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1339](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1339), [apps/ios/Mac/SampleEngine.swift:1501](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1501)

<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:1229](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1229)
- Handlers: 1 · Callers: 1
- Method: `attachFile` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1552](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1552)

<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:1247](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1247)
- Handlers: 1 · Callers: 4
- Method: `attachmentBytes` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1560](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1560), [apps/ios/Mac/SampleEngine.swift:965](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L965), [apps/ios/Mac/SampleEngine.swift:968](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L968), [apps/ios/Mac/Vault.swift:904](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L904)

<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:1253](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1253)
- Handlers: 1 · Callers: 1
- Method: `attachmentBytesWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1561](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1561)

<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:1825](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1825)
- Handlers: 1 · Callers: 4
- Method: `auditLog` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:276](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L276), [apps/ios/Klav/Agents.swift:603](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L603), [apps/ios/Mac/Development/ActivityPane.swift:306](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ActivityPane.swift#L306), [apps/ios/Mac/Development/DevelopmentModel.swift:56](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:2014](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2014)
- Handlers: 1 · Callers: 2
- Method: `auditStatus` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:279](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L279), [apps/ios/Mac/Development/ActivityPane.swift:312](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:969](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L969)
- Handlers: 1 · Callers: 4
- Method: `cancelAccountDeletion` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:431](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L431), [apps/ios/Klav/DeleteAccount.swift:140](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/DeleteAccount.swift#L140), [apps/ios/Klav/DeleteAccount.swift:150](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/DeleteAccount.swift#L150), [apps/ios/Mac/Account.swift:194](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Account.swift#L194)

<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:975](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L975)
- Handlers: 1 · Callers: 3
- Method: `cancelAccountDeletionWithPassword` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:438](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L438), [apps/ios/Mac/MacModel.swift:1004](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1004), [apps/ios/Mac/SampleEngine.swift:549](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L549)

<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:1432](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1432)
- Handlers: 1 · Callers: 1
- Method: `clearGeneratorHistory` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:387](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1344](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1344)
- Handlers: 1 · Callers: 2
- Method: `createItem` · transport uniffi
- Used at: [apps/ios/Klav/ItemEditor.swift:339](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemEditor.swift#L339), [apps/ios/Mac/ItemEditor.swift:386](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/ItemEditor.swift#L386)

<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:1104](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1104)
- Handlers: 1 · Callers: 2
- Method: `createProject` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1543](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1543), [apps/ios/Mac/VaultOrgSheets.swift:218](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/VaultOrgSheets.swift#L218)

<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:1097](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1097)
- Handlers: 1 · Callers: 2
- Method: `createVault` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1536](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1536), [apps/ios/Mac/VaultOrgSheets.swift:131](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/VaultOrgSheets.swift#L131)

<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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1450](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1450)
- Handlers: 1 · Callers: 2
- Method: `decideApproval` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1014](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1014), [apps/ios/Mac/MacModel.swift:1192](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1192)

<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:1462](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1462)
- Handlers: 1 · Callers: 2
- Method: `decideApprovalWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1205](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1205), [apps/ios/Mac/SampleEngine.swift:1220](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1220)

<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:1489](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1489)
- Handlers: 1 · Callers: 3
- Method: `decideTask` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1044](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1044), [apps/ios/Mac/MacModel.swift:1235](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1235), [apps/ios/Shared/App/RequestCards.swift:850](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Shared/App/RequestCards.swift#L850)

<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:1500](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1500)
- Handlers: 1 · Callers: 2
- Method: `decideTaskWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1243](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1243), [apps/ios/Mac/SampleEngine.swift:1233](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1233)

<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:992](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L992)
- Handlers: 1 · Callers: 2
- Method: `deleteCopyCheck` · transport uniffi
- Used at: [apps/ios/Mac/Account.swift:516](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Account.swift#L516), [apps/ios/Mac/MacModel.swift:1028](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1028)

<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:1024](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1024)
- Handlers: 1 · Callers: 2
- Method: `deleteThisCopy` · transport uniffi
- Used at: [apps/ios/Mac/Account.swift:548](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Account.swift#L548), [apps/ios/Mac/MacModel.swift:1044](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1044)

<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:908](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L908)
- Handlers: 1 · Callers: 4
- Method: `deletionSupported` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:386](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L386), [apps/ios/Klav/DeleteAccount.swift:42](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/DeleteAccount.swift#L42), [apps/ios/Mac/Account.swift:83](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Account.swift#L83), [apps/ios/Mac/MacModel.swift:974](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L974)

<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:1630](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1630)
- Handlers: 1 · Callers: 2
- Method: `denyAgent` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1188](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1188), [apps/ios/Mac/MacModel.swift:1349](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1349)

<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:1575](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1575)
- Handlers: 1 · Callers: 3
- Method: `denySecretRequest` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1139](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1139), [apps/ios/Mac/MacModel.swift:1329](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1329), [apps/ios/Shared/App/RequestCards.swift:1578](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Shared/App/RequestCards.swift#L1578)

<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:2084](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2084)
- Handlers: 1 · Callers: 2
- Method: `devAgents` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:840](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L840), [apps/ios/Mac/Development/AgentGrants.swift:288](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentGrants.swift#L288)

<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:1352](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1352)
- Handlers: 1 · Callers: 5
- Method: `editItem` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:791](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L791), [apps/ios/Klav/ItemEditor.swift:335](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemEditor.swift#L335), [apps/ios/Klav/ItemView.swift:439](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L439), [apps/ios/Mac/ItemEditor.swift:382](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/ItemEditor.swift#L382), [apps/ios/Mac/MacModel.swift:1508](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1508)

<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:1588](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1588)
- Handlers: 1 · Callers: 3
- Method: `endTask` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1163](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1163), [apps/ios/Mac/MacModel.swift:1251](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1251), [apps/ios/Shared/App/RequestCards.swift:1030](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Shared/App/RequestCards.swift#L1030)

<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:404](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L404)
- Handlers: 1 · Callers: 8
- Method: `environment` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:243](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/EnvironmentScreen.swift#L243), [apps/ios/Mac/EnvironmentPane.swift:186](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/EnvironmentPane.swift#L186), [apps/ios/Mac/PaneTabs.swift:95](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/PaneTabs.swift#L95), [apps/ios/Mac/Setup/Installer.swift:421](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Setup/Installer.swift#L421), [apps/ios/Mac/Setup/Installer.swift:470](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Setup/Installer.swift#L470), … +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:396](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L396)
- Handlers: 1 · Callers: 3
- Method: `environments` · transport uniffi
- Used at: [apps/ios/Klav/Requests.swift:59](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Requests.swift#L59), [apps/ios/Mac/MacModel.swift:1362](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1362), [apps/ios/Mac/Vault.swift:330](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L330)

<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:1300](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1300)
- Handlers: 1 · Callers: 6
- Method: `fieldValue` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:370](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L370), [apps/ios/Mac/QuickSearch.swift:126](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/QuickSearch.swift#L126), [apps/ios/Mac/SampleEngine.swift:661](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L661), [apps/ios/Mac/SampleEngine.swift:665](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L665), [apps/ios/Mac/Snapshot.swift:183](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Snapshot.swift#L183), … +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:1306](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1306)
- Handlers: 1 · Callers: 3
- Method: `fieldValueWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/QuickSearch.swift:127](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/QuickSearch.swift#L127), [apps/ios/Mac/Snapshot.swift:184](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Snapshot.swift#L184), [apps/ios/Mac/Vault.swift:1037](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L1037)

<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:1550](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1550)
- Handlers: 1 · Callers: 3
- Method: `fulfillSecretRequest` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1086](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1086), [apps/ios/Mac/MacModel.swift:1285](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1285), [apps/ios/Shared/App/RequestCards.swift:1536](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Shared/App/RequestCards.swift#L1536)

<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:1560](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1560)
- Handlers: 1 · Callers: 2
- Method: `fulfillSecretRequestWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1276](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1276), [apps/ios/Mac/SampleEngine.swift:1301](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1301)

<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:1417](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1417)
- Handlers: 1 · Callers: 4
- Method: `generatedValue` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:375](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Generator.swift#L375), [apps/ios/Mac/Account.swift:532](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Account.swift#L532), [apps/ios/Mac/SampleEngine.swift:1198](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1198), [apps/ios/Mac/SampleEngine.swift:1201](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1201)

<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:1423](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1423)
- Handlers: 1 · Callers: 1
- Method: `generatedValueWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Account.swift:533](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Account.swift#L533)

<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:1411](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1411)
- Handlers: 1 · Callers: 2
- Method: `generatorHistory` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:364](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Generator.swift#L364), [apps/ios/Mac/MacModel.swift:1034](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1034)

<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:1732](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1732)
- 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:1742](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1742)
- Handlers: 1 · Callers: 1
- Method: `grantChangeApplyWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:334](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1716](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1716)
- Handlers: 1 · Callers: 1
- Method: `grantChangePrepare` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:322](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1707](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1707)
- Handlers: 1 · Callers: 3
- Method: `grantEditor` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentPage.swift:293](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentPage.swift#L293), [apps/ios/Mac/Development/GrantSheet.swift:367](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/GrantSheet.swift#L367), [apps/ios/Mac/Development/RevokeSheet.swift:222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/RevokeSheet.swift#L222)

<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:1765](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1765)
- Handlers: 1 · Callers: 2
- Method: `healthSettings` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:90](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Health.swift#L90), [apps/ios/Mac/Health.swift:138](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1873](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1873)
- Handlers: 1 · Callers: 1
- Method: `hostedProxy` · transport uniffi
- Used at: [apps/ios/Klav/CloudProxy.swift:89](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1888](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1888)
- Handlers: 1 · Callers: 1
- Method: `hostedProxyActWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/CloudProxy.swift:66](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1128](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1128)
- Handlers: 1 · Callers: 1
- Method: `importAdd` · transport uniffi
- Used at: [apps/ios/Mac/ImportSheet.swift:91](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1190](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1190)
- Handlers: 1 · Callers: 2
- Method: `importApply` · transport uniffi
- Used at: [apps/ios/Klav/ImportView.swift:748](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ImportView.swift#L748), [apps/ios/Mac/ImportSheet.swift:165](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1215](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1215)
- Handlers: 1 · Callers: 1
- Method: `importCancel` · transport uniffi
- Used at: [apps/ios/Mac/ImportSheet.swift:186](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1166](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1166)
- Handlers: 1 · Callers: 2
- Method: `importPreview` · transport uniffi
- Used at: [apps/ios/Klav/ImportView.swift:726](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ImportView.swift#L726), [apps/ios/Mac/ImportSheet.swift:147](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/ImportSheet.swift#L147)

<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:1287](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1287)
- Handlers: 1 · Callers: 8
- Method: `item` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:766](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L766), [apps/ios/Klav/ItemView.swift:350](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L350), [apps/ios/Klav/Requests.swift:58](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Requests.swift#L58), [apps/ios/Mac/ItemEditor.swift:313](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/ItemEditor.swift#L313), [apps/ios/Mac/MacModel.swift:1361](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1361), … +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:1844](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1844)
- Handlers: 1 · Callers: 2
- Method: `itemActivity` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:443](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L443), [apps/ios/Mac/Development/WhoUsedIt.swift:45](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1278](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1278)
- Handlers: 1 · Callers: 10
- Method: `items` · transport uniffi
- Used at: [apps/ios/Klav/CodeSetup.swift:575](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CodeSetup.swift#L575), [apps/ios/Klav/CodeSetup.swift:661](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CodeSetup.swift#L661), [apps/ios/Klav/HomeView.swift:258](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/HomeView.swift#L258), [apps/ios/Klav/HomeView.swift:307](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/HomeView.swift#L307), [apps/ios/Mac/Development/AddMcpServer.swift:594](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:841](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L841)
- Handlers: 1 · Callers: 93
- Method: `lock` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:447](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L447), [apps/ios/Klav/Activity.swift:164](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L164), [apps/ios/Klav/Activity.swift:282](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L282), [apps/ios/Klav/Activity.swift:449](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L449), [apps/ios/Klav/Agents.swift:608](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L608), … +88

<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:1856](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1856)
- Handlers: 1 · Callers: 3
- Method: `mcpServers` · transport uniffi
- Used at: [apps/ios/Mac/Development/McpServersPane.swift:111](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/McpServersPane.swift#L111), [apps/ios/Mac/Development/TopologyGraph.swift:223](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/TopologyGraph.swift#L223), [apps/ios/Mac/Development/TopologyPane.swift:64](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/TopologyPane.swift#L64)

<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:656](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L656)
- Handlers: 1 · Callers: 2
- Method: `new` · transport uniffi
- Used at: [apps/ios/Mac/Development/IssuerProfiles.swift:244](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/IssuerProfiles.swift#L244), [apps/ios/Mac/Development/IssuerProfiles.swift:245](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1316](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1316)
- Handlers: 1 · Callers: 7
- Method: `notes` · transport uniffi
- Used at: [apps/ios/Klav/ItemEditor.swift:304](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemEditor.swift#L304), [apps/ios/Klav/ItemView.swift:421](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L421), [apps/ios/Mac/Development/CloudProxy.swift:70](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/CloudProxy.swift#L70), [apps/ios/Mac/ItemEditor.swift:356](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/ItemEditor.swift#L356), [apps/ios/Mac/SampleEngine.swift:683](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L683), … +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:1325](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1325)
- Handlers: 1 · Callers: 2
- Method: `notesWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/ItemEditor.swift:357](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/ItemEditor.swift#L357), [apps/ios/Mac/Vault.swift:1072](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L1072)

<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:1795](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1795)
- Handlers: 1 · Callers: 1
- Method: `offerTaskWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1648](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1648)

<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:1369](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1369)
- Handlers: 1 · Callers: 3
- Method: `passwordHistory` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:351](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L351), [apps/ios/Mac/SampleEngine.swift:1195](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1195), [apps/ios/Mac/Vault.swift:1015](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L1015)

<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:2110](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2110)
- Handlers: 1 · Callers: 10
- Method: `pauseAgents` · transport uniffi
- Used at: [apps/ios/Klav/Agents.swift:234](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L234), [apps/ios/Klav/Agents.swift:468](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L468), [apps/ios/Klav/AppModel.swift:1222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1222), [apps/ios/Mac/Development/AgentGrants.swift:265](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentGrants.swift#L265), [apps/ios/Mac/Development/AgentsPane.swift:411](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentsPane.swift#L411), … +5

<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:899](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L899)
- Handlers: 1 · Callers: 2
- Method: `presenceCancel` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1080](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1080), [apps/ios/Mac/Vault.swift:992](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L992)

<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:859](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L859)
- Handlers: 1 · Callers: 1
- Method: `presenceWindow` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1103](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1103)

<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:1377](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1377)
- Handlers: 1 · Callers: 2
- Method: `previousPassword` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:310](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L310), [apps/ios/Mac/Vault.swift:1083](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L1083)

<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:1383](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1383)
- Handlers: 1 · Callers: 1
- Method: `previousPasswordWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Vault.swift:1084](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L1084)

<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:1090](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1090)
- Handlers: 1 · Callers: 12
- Method: `projects` · transport uniffi
- Used at: [apps/ios/Klav/CodeSetup.swift:575](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CodeSetup.swift#L575), [apps/ios/Klav/ImportView.swift:630](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ImportView.swift#L630), [apps/ios/Klav/ItemEditor.swift:292](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemEditor.swift#L292), [apps/ios/Klav/Requests.swift:52](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Requests.swift#L52), [apps/ios/Mac/Development/GrantSheet.swift:367](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AddMcpServer.swift#L626), [apps/ios/Mac/Development/ShareCredential.swift:1153](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ShareCredential.swift#L1153)

<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:610](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/proxy_grant.rs#L610)
- Handlers: 1 · Callers: 3
- Method: `proxyGrantWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/AddMcpServer.swift:28](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AddMcpServer.swift#L28), [apps/ios/Mac/Development/ShareCredential.swift:266](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ShareCredential.swift#L266), [apps/ios/Mac/Development/ShareCredential.swift:1185](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ShareCredential.swift#L1185)

<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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/IssuerProfiles.swift#L548), [apps/ios/Mac/Development/ShareCredential.swift:1201](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ShareCredential.swift#L1201)

<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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/IssuerProfiles.swift#L534), [apps/ios/Mac/Development/ShareCredential.swift:1159](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ShareCredential.swift#L1159), [apps/ios/Mac/Development/ShareCredential.swift:1194](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ShareCredential.swift#L1194), [apps/ios/Mac/SampleEngine.swift:3088](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L3088)

<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/034e81b52d1b693c65ff95181cd555c6734bc8e8/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/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/IssuerProfiles.swift#L581)

<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:1926](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1926)
- 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:1121](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1121)
- Handlers: 1 · Callers: 1
- Method: `purgeItem` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1527](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1527)

<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:1402](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1402)
- Handlers: 1 · Callers: 2
- Method: `recordGenerated` · transport uniffi
- Used at: [apps/ios/Klav/Generator.swift:238](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Generator.swift#L238), [apps/ios/Mac/Generator.swift:202](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:930](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L930)
- Handlers: 1 · Callers: 4
- Method: `requestAccountDeletion` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:399](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L399), [apps/ios/Klav/DeleteAccount.swift:257](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/DeleteAccount.swift#L257), [apps/ios/Mac/Account.swift:340](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Account.swift#L340), [apps/ios/Mac/MacModel.swift:983](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L983)

<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:1393](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1393)
- Handlers: 1 · Callers: 1
- Method: `resolvePending` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:365](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1114](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1114)
- Handlers: 1 · Callers: 1
- Method: `restoreItem` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1519](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1519)

<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:2123](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2123)
- Handlers: 1 · Callers: 5
- Method: `resumeAgents` · transport uniffi
- Used at: [apps/ios/Klav/Agents.swift:313](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L313), [apps/ios/Klav/Agents.swift:323](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L323), [apps/ios/Klav/AppModel.swift:1249](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1249), [apps/ios/Mac/Development/AgentsPane.swift:418](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentsPane.swift#L418), [apps/ios/Mac/Development/PauseControls.swift:98](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:2128](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2128)
- Handlers: 1 · Callers: 2
- Method: `resumeAgentsWithPassword` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1258](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1258), [apps/ios/Mac/Development/DevelopmentModel.swift:40](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1786](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1786)
- Handlers: 1 · Callers: 3
- Method: `reusedOffer` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:125](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Health.swift#L125), [apps/ios/Mac/Health.swift:162](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Health.swift#L162), [apps/ios/Mac/MacModel.swift:1569](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1569)

<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:1663](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1663)
- Handlers: 1 · Callers: 2
- Method: `revokeAgent` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:95](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentGrants.swift#L95), [apps/ios/Mac/Development/AgentGrants.swift:160](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1681](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1681)
- Handlers: 1 · Callers: 1
- Method: `revokeAgentInBackground` · transport uniffi
- Used at: [apps/ios/Mac/Development/AgentGrants.swift:91](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:2077](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2077)
- Handlers: 1 · Callers: 2
- Method: `revokeAllSandboxes` · transport uniffi
- Used at: [apps/ios/Mac/Development/SandboxesModel.swift:633](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/SandboxesModel.swift#L633), [apps/ios/Mac/Development/SandboxesModel.swift:655](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:2068](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2068)
- Handlers: 1 · Callers: 6
- Method: `revokeSandbox` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1106](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1106), [apps/ios/Mac/Development/SandboxesModel.swift:619](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/SandboxesModel.swift#L619), [apps/ios/Mac/Development/SandboxesModel.swift:624](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/SandboxesModel.swift#L624), [apps/ios/Mac/Development/SandboxesModel.swift:670](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/SandboxesModel.swift#L670), [apps/ios/Mac/Development/SandboxesPane.swift:605](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:2030](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2030)
- 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:2057](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2057)
- Handlers: 1 · Callers: 1
- Method: `sandboxListChecked` · transport uniffi
- Used at: [apps/ios/Mac/Development/SandboxesModel.swift:550](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:2042](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2042)
- 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:1960](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1960)
- 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:437](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L437)
- Handlers: 1 · Callers: 2
- Method: `saveEnvironment` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:295](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/EnvironmentScreen.swift#L295), [apps/ios/Mac/EnvironmentPane.swift:363](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:447](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L447)
- Handlers: 1 · Callers: 2
- Method: `saveEnvironmentWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/EnvironmentPane.swift:242](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/EnvironmentPane.swift#L242), [apps/ios/Mac/SampleEngine.swift:1080](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1080)

<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:1542](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1542)
- Handlers: 1 · Callers: 2
- Method: `secretRequests` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:882](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L882), [apps/ios/Mac/MacModel.swift:863](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L863)

<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:2095](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2095)
- Handlers: 1 · Callers: 4
- Method: `setAgentLabel` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1199](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1199), [apps/ios/Mac/Development/AgentPage.swift:221](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/AgentPage.swift#L221), [apps/ios/Mac/MacModel.swift:1369](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1369), [apps/ios/Shared/App/RequestCards.swift:751](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Shared/App/RequestCards.swift#L751)

<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:1773](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1773)
- Handlers: 1 · Callers: 2
- Method: `setBreachCheck` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:143](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Health.swift#L143), [apps/ios/Mac/Health.swift:183](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Health.swift#L183)

<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:874](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L874)
- Handlers: 1 · Callers: 1
- Method: `setPresenceWindow` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1110](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1110)

<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:1263](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1263)
- Handlers: 1 · Callers: 3
- Method: `setProjectRepos` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1376](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1376), [apps/ios/Mac/Vault.swift:497](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L497), [apps/ios/Mac/Vault.swift:514](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L514)

<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:848](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L848)
- Handlers: 1 · Callers: 3
- Method: `shutdown` · transport uniffi
- Used at: [apps/ios/Mac/Setup/Installer.swift:615](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Setup/Installer.swift#L615), [apps/ios/Mac/Setup/Installer.swift:665](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Setup/Installer.swift#L665), [apps/ios/Mac/Setup/Installer.swift:1096](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Setup/Installer.swift#L1096)

<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:672](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L672)
- 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:677](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L677)
- Handlers: 1 · Callers: 21
- Method: `status` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:130](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L130), [apps/ios/Klav/Agents.swift:424](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L424), [apps/ios/Klav/AppModel.swift:242](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L242), [apps/ios/Klav/SettingsView.swift:204](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/SettingsView.swift#L204), [apps/ios/Klav/SettingsView.swift:246](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/SettingsView.swift#L246), … +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:1999](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1999)
- Handlers: 1 · Callers: 1
- Method: `stopIssuerSecretRequestsWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:1319](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1319)

<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:1070](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1070)
- Handlers: 1 · Callers: 12
- Method: `sync` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:116](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L116), [apps/ios/Klav/Agents.swift:109](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Agents.swift#L109), [apps/ios/Klav/AppModel.swift:321](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L321), [apps/ios/Klav/AppModel.swift:341](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L341), [apps/ios/Klav/AppModel.swift:405](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L405), … +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:1815](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1815)
- Handlers: 1 · Callers: 2
- Method: `taskProgress` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:117](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Health.swift#L117), [apps/ios/Mac/MacModel.swift:1580](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1580)

<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:1481](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1481)
- Handlers: 1 · Callers: 4
- Method: `tasks` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:870](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L870), [apps/ios/Klav/Health.swift:112](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Health.swift#L112), [apps/ios/Mac/MacModel.swift:864](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L864), [apps/ios/Mac/MacModel.swift:1575](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1575)

<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:1333](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1333)
- Handlers: 1 · Callers: 12
- Method: `totp` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:282](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L282), [apps/ios/Klav/CodeSetup.swift:564](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CodeSetup.swift#L564), [apps/ios/Klav/HomeView.swift:382](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/HomeView.swift#L382), [apps/ios/Klav/ItemView.swift:342](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L342), [apps/ios/Klav/ItemView.swift:402](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L402), … +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:1339](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1339)
- Handlers: 1 · Callers: 2
- Method: `totpWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/QuickSearch.swift:114](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/QuickSearch.swift#L114), [apps/ios/Mac/Vault.swift:977](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Vault.swift#L977)

<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:465](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L465)
- Handlers: 1 · Callers: 1
- Method: `trashEnvironment` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:314](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:474](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L474)
- Handlers: 1 · Callers: 2
- Method: `trashEnvironmentWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/EnvironmentPane.swift:262](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/EnvironmentPane.swift#L262), [apps/ios/Mac/SampleEngine.swift:1134](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1134)

<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:1361](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1361)
- Handlers: 1 · Callers: 2
- Method: `trashItem` · transport uniffi
- Used at: [apps/ios/Klav/ItemView.swift:462](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/ItemView.swift#L462), [apps/ios/Mac/MacModel.swift:1495](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L1495)

<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:1906](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1906)
- 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:1911](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1911)
- Handlers: 1 · Callers: 2
- Method: `turnMcpGatewayOnWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/Development/McpServersPane.swift:124](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/McpServersPane.swift#L124), [apps/ios/Mac/Development/McpServersPane.swift:449](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1945](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1945)
- 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:1982](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1982)
- 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:787](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L787)
- Handlers: 1 · Callers: 63
- Method: `unlock` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:172](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L172), [apps/ios/Credentials/CredentialView.swift:97](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialView.swift#L97), [apps/ios/Klav/AppModel.swift:1318](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1318), [apps/ios/Klav/LockView.swift:187](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/LockView.swift#L187), [apps/ios/Mac/MacModel.swift:573](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L573), … +58

<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:761](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L761)
- Handlers: 1 · Callers: 1
- Method: `unlockQuestion` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:913](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L913)

<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:420](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L420)
- Handlers: 1 · Callers: 4
- Method: `variableValue` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:259](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/EnvironmentScreen.swift#L259), [apps/ios/Mac/EnvironmentPane.swift:200](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/EnvironmentPane.swift#L200), [apps/ios/Mac/SampleEngine.swift:1043](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1043), [apps/ios/Mac/SampleEngine.swift:1045](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1045)

<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:426](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L426)
- Handlers: 1 · Callers: 1
- Method: `variableValueWithPassword` · transport uniffi
- Used at: [apps/ios/Mac/EnvironmentPane.swift:201](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/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:1760](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1760)
- Handlers: 1 · Callers: 3
- Method: `vaultHealth` · transport uniffi
- Used at: [apps/ios/Klav/Health.swift:92](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Health.swift#L92), [apps/ios/Mac/Health.swift:140](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Health.swift#L140), [apps/ios/Mac/SampleEngine.swift:1407](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/SampleEngine.swift#L1407)

<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:1083](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1083)
- Handlers: 1 · Callers: 1
- Method: `vaults` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:791](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L791)

<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:2022](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2022)
- Handlers: 1 · Callers: 2
- Method: `verifyAudit` · transport uniffi
- Used at: [apps/ios/Klav/Activity.swift:160](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Activity.swift#L160), [apps/ios/Mac/Development/ActivityPane.swift:162](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Development/ActivityPane.swift#L162)
