---
title: "RPC: KlavCore"
description: "104 entries."
canonical: "https://klav.everdoc.dev/stable/reference/rpc/klavcore"
channel: "stable"
---

# RPC: KlavCore

> 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).

104 entries.

<a id="rpc-klavcore-accountdeletion"></a>

## `KlavCore.accountDeletion`

The deletion of the account the person asked for, as the last sync (or this device's own request) left it, and whether the server already deleted the account; `None` without one. Read from this device's copy, without network. Needs the account unlocked.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1327](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1327)
- Handlers: 1 · Callers: 1
- Method: `accountDeletion` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:377](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L377)

<a id="rpc-klavcore-acknowledgepasskeyqueuessetaside"></a>

## `KlavCore.acknowledgePasskeyQueuesSetAside`

Marks the passkey outboxes set aside as reported, once the app has shown the notice that counted them: exactly `ids` ([`SyncInfo::passkey_queue_set_aside_ids`]). Until then every sync counts them again, and one set aside since is not covered (T138).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1259](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1259)
- Handlers: 1 · Callers: 1
- Method: `acknowledgePasskeyQueuesSetAside` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:665](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L665)

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

## `KlavCore.addToTask`

«Add to the task» (ADR 0021 §6): signs the next revision of the agent's running task with this request's item, permission and site (same end), then approves the request once. The app checks presence (Face ID) first. `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/lib.rs:1662](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1662)
- 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-klavcore-agentexposure"></a>

## `KlavCore.agentExposure`

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

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1803](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1803)
- 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-klavcore-agentrevocations"></a>

## `KlavCore.agentRevocations`

The key changes this iPhone still owes, from its sealed record. A record that does not open is an error, never an empty list.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1881](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1881)
- 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-klavcore-agents"></a>

## `KlavCore.agents`

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

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1793](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1793)
- 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-klavcore-agentspaused"></a>

## `KlavCore.agentsPaused`

The pauses in effect, as this iPhone last learned them (its sync, or its own decision), each with the account's signature checked. `Locked` while locked; after an unlock, none until the first sync brings them (the iPhone does not keep them on disk, as `klavd` does).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1959](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1959)
- Handlers: 1 · Callers: 2
- Method: `agentsPaused` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:856](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L856), [apps/ios/Klav/AppModel.swift:1212](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1212)

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

## `KlavCore.approvals`

Pending approval requests from agents, newest first.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1591](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1591)
- 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-klavcore-approveagent"></a>

## `KlavCore.approveAgent`

Approves an agent's registration: signs a grant with the keys of `project_ids` and the default policy (design §5.2, as `klav agent approve` without options), optionally expiring after `expires_in_days`. `pairing_words` are the words the person compared; the agent's key must still produce them.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1895](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1895)
- 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-klavcore-auditlog"></a>

## `KlavCore.auditLog`

«Activity» (ADR 0033 §8, §9): the account's log, newest first, with the filters. Only what is new is downloaded (the chain is cached, §8.4); each event says whether it is verified yet.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2104](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2104)
- 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-klavcore-auditstatus"></a>

## `KlavCore.auditStatus`

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

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2137](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2137)
- 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-klavcore-biometricstate"></a>

## `KlavCore.biometricState`

Face ID state for the lock screen.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1183](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1183)
- Handlers: 1 · Callers: 3
- Method: `biometricState` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:135](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L135), [apps/ios/Klav/AppModel.swift:244](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L244), [apps/ios/Klav/AppModel.swift:255](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L255)

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

## `KlavCore.cancelAccountDeletion`

Cancels the deletion of the account, from any device with a session. `false` when there was none to cancel. Cancelling brings the agents back, so the app asks for presence first, as for resuming them (ADR 0037 A2): Face ID here, or [`Self::cancel_account_deletion_with_password`].

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1395](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1395)
- 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-klavcore-cancelaccountdeletionwithpassword"></a>

## `KlavCore.cancelAccountDeletionWithPassword`

Cancels the deletion with the master password as the presence, where there is no Face ID or the person chose the password, like [`Self::resume_agents_with_password`]. A wrong password cancels nothing.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1403](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1403)
- 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-klavcore-checkoffer"></a>

## `KlavCore.checkOffer`

Checks an offer before the person is asked for Face ID: the agent is active with a grant and every login can go in the task. Nothing is signed or sent. Returns how many logins it holds.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:515](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L515)
- Handlers: 1 · Callers: 1
- Method: `checkOffer` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1150](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1150)

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

## `KlavCore.clearGeneratorHistory`

Deletes the whole generator history (and the versions that held it).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1563](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1563)
- 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-klavcore-codetargets"></a>

## `KlavCore.codeTargets`

The live logins `link` could go into, with how each matches it and the code each has: first the ones of its issuer and account, then of its issuer, then the rest, each by title. The issuer is compared with the title and the sites the person confirmed (ADR 0030 §7).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/codes.rs:231](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/codes.rs#L231)
- Handlers: 1 · Callers: 1
- Method: `codeTargets` · transport uniffi
- Used at: [apps/ios/Klav/CodeSetup.swift:575](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CodeSetup.swift#L575)

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

## `KlavCore.createItem`

Creates an item. A title another live item of the project already has is refused (references by title would be ambiguous).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1519](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1519)
- 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-klavcore-credentialidentities"></a>

## `KlavCore.credentialIdentities`

Identities for the QuickType bar: every live login with a URL the person confirmed (ADR 0030 §7).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2276](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2276)
- Handlers: 1 · Callers: 2
- Method: `credentialIdentities` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:257](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L257), [apps/ios/Klav/AppModel.swift:484](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L484)

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

## `KlavCore.decideApproval`

Signs a decision: deny, approve once (`lease_minutes = 0`) or approve for a while. The app checks presence (Face ID) first. `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/lib.rs:1608](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1608)
- 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-klavcore-decidetask"></a>

## `KlavCore.decideTask`

Approves pending task `id` with the person's changes (`choice`), or denies it, and signs the decision (spec §13.8). The app checks presence (Face ID) before approving; denying asks for nothing. `request_digest` is the one of the [`TaskItem`] 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/lib.rs:1640](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1640)
- 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-klavcore-deletionsupported"></a>

## `KlavCore.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 Face ID or the password.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1316](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1316)
- 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-klavcore-denyagent"></a>

## `KlavCore.denyAgent`

Denies a pending registration.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1914](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1914)
- 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-klavcore-denysecretrequest"></a>

## `KlavCore.denySecretRequest`

Denies pending secret request `id` with an account-signed decision.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1710](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1710)
- 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-klavcore-devagents"></a>

## `KlavCore.devAgents`

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

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1926](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1926)
- 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-klavcore-edititem"></a>

## `KlavCore.editItem`

Edits an item and uploads the next version.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1527](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1527)
- 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-klavcore-emergencykit"></a>

## `KlavCore.emergencyKit`

The emergency kit as text, rebuilt with the server this iPhone uses today (ADR 0028 §4). Checks the master password first: the kit shows the Secret Key.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1149](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1149)
- Handlers: 1 · Callers: 2
- Method: `emergencyKit` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1300](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1300), [apps/ios/Klav/SettingsView.swift:488](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/SettingsView.swift#L488)

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

## `KlavCore.endTask`

«End task»: ends running task `id`, signed by the account. Asks for no presence, like denying.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1673](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1673)
- 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-klavcore-environment"></a>

## `KlavCore.environment`

One environment: names and origins, never a value. `None` when the project has none of that name.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:275](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L275)
- 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-klavcore-environments"></a>

## `KlavCore.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:263](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L263)
- 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-klavcore-fieldvalue"></a>

## `KlavCore.fieldValue`

One field's value (the person asked to reveal or copy it).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1486](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1486)
- 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-klavcore-flushpasskeyoutbox"></a>

## `KlavCore.flushPasskeyOutbox`

Uploads the passkey outbox (the app, in the foreground; `sync` does it too).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2422](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2422)
- Handlers: 1 · Callers: 0
- Method: `flushPasskeyOutbox` · transport uniffi

<a id="rpc-klavcore-forgetbiometrics"></a>

## `KlavCore.forgetBiometrics`

Turns Face ID off in Klav (the password sets it up again). Asks for the device owner first, showing `reason`: Face ID, or the iPhone's passcode, never the master password alone (ADR 0037 A4). Nothing changes when the owner does not confirm.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1206](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1206)
- Handlers: 1 · Callers: 1
- Method: `forgetBiometrics` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1334](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1334)

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

## `KlavCore.fulfillSecretRequest`

Fulfills pending secret request `id`: saves the secret entered in the hidden input into the person's vault, optionally grants `klav-proxy` access if `input.grant_proxy` is true or links the environment variable of `input.env_link` (the app checks Face ID first), and posts the account-signed decision.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1696](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1696)
- 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-klavcore-generatedvalue"></a>

## `KlavCore.generatedValue`

The value of one generator history entry (to copy it).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1558](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1558)
- 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-klavcore-generatorhistory"></a>

## `KlavCore.generatorHistory`

The generator history, newest first, without values.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1548](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1548)
- 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-klavcore-healthsettings"></a>

## `KlavCore.healthSettings`

The breach check's setting on this device (no unlock needed).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:461](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L461)
- 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-klavcore-hostedproxy"></a>

## `KlavCore.hostedProxy`

Klav Cloud's proxy (ADR 0051 §6.3), checked 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/lib.rs:2054](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2054)
- 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-klavcore-hostedproxyact"></a>

## `KlavCore.hostedProxyAct`

«Use Klav Cloud Proxy», «Stop using it» or «Set it up again» (ADR 0051 §6.1, §6.3, §4.4), after the app asked for Face ID: checks the enclave, then checks it again before it writes anything.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2072](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2072)
- Handlers: 1 · Callers: 1
- Method: `hostedProxyAct` · transport uniffi
- Used at: [apps/ios/Klav/CloudProxy.swift:104](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CloudProxy.swift#L104)

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

## `KlavCore.importApply`

Imports `session`: creates the new items, merges into the existing ones (replaced passwords go to their history) and syncs.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/import.rs:156](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/import.rs#L156)
- 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-klavcore-importpreview"></a>

## `KlavCore.importPreview`

What importing `session` into `vault` / `project` (names; the default ones when absent) would do. Changes nothing.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/import.rs:131](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/import.rs#L131)
- 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-klavcore-item"></a>

## `KlavCore.item`

An item, without secret values.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1481](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1481)
- 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-klavcore-itemactivity"></a>

## `KlavCore.itemActivity`

«Who used it» for one item (its ID or reference): what the agents did with it, newest first.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2124](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2124)
- 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-klavcore-items"></a>

## `KlavCore.items`

Items matching `query`, by title.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1476](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1476)
- 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-klavcore-lock"></a>

## `KlavCore.lock`

Locks: drops every key from memory.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1215](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1215)
- 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-klavcore-new"></a>

## `KlavCore.new`

The account stored in `home_dir` (on iOS, `<App Group>/klav`). Nothing is read or unlocked yet.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1027](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1027)
- Handlers: 1 · Callers: 0
- Method: `new` · transport uniffi

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

## `KlavCore.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/lib.rs:1502](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1502)
- 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-klavcore-offertask"></a>

## `KlavCore.offerTask`

Offers the agent a task with `rotate` (and `totp` where the login has a code) on these logins, signed by the account without a request from the agent (ADR 0022 §6). The app checks presence (Face ID) first, after [`Self::check_offer`].

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:527](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L527)
- Handlers: 1 · Callers: 1
- Method: `offerTask` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1154](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1154)

<a id="rpc-klavcore-onetimecode"></a>

## `KlavCore.oneTimeCode`

The current one-time password of a login, for `service` (same site check as [`Self::password_credential`]).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2266](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2266)
- Handlers: 1 · Callers: 1
- Method: `oneTimeCode` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:313](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L313)

<a id="rpc-klavcore-parentsuggestions"></a>

## `KlavCore.parentSuggestions`

Logins saved for a subdomain of `service` (ADR 0025): the sheet lists them apart, «Saved for a subdomain», with the host they were saved for, and fills one only when the person picks it ([`Self::password_credential`] with `chosen`). By title.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2203](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2203)
- Handlers: 1 · Callers: 1
- Method: `parentSuggestions` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:254](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L254)

<a id="rpc-klavcore-passkeyassertion"></a>

## `KlavCore.passkeyAssertion`

Signs in with the passkey `credential_id` for `rp_id` over the `clientDataHash` iOS built. No network: the `passkey.used` event waits in the outbox for the app. Once the server deleted the account it still signs in, from the read-only copy (ADR 0037 §3, D-C), but queues no event: none could ever upload.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2343](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2343)
- Handlers: 1 · Callers: 1
- Method: `passkeyAssertion` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:369](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L369)

<a id="rpc-klavcore-passkeyidentities"></a>

## `KlavCore.passkeyIdentities`

The passkeys this iPhone can sign with, synced and queued, for `ASCredentialIdentityStore` (ADR 0020 §11).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2322](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2322)
- Handlers: 1 · Callers: 2
- Method: `passkeyIdentities` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:261](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L261), [apps/ios/Klav/AppModel.swift:486](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L486)

<a id="rpc-klavcore-passkeyoutbox"></a>

## `KlavCore.passkeyOutbox`

What waits in the passkey outbox.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2403](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2403)
- Handlers: 1 · Callers: 0
- Method: `passkeyOutbox` · transport uniffi

<a id="rpc-klavcore-passkeyregistration"></a>

## `KlavCore.passkeyRegistration`

Registers a passkey without network: the login is usable at once on this iPhone and waits in the outbox until the app opens.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2363](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2363)
- Handlers: 1 · Callers: 1
- Method: `passkeyRegistration` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:410](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L410)

<a id="rpc-klavcore-passwordcredential"></a>

## `KlavCore.passwordCredential`

The user name and password of a login, for `service`. Refused when the site does not belong to the item (T21), whatever the caller listed before. `chosen`: the person picked a login saved for a subdomain of `service` in the sheet (ADR 0025 §2); never from QuickType.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2236](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2236)
- Handlers: 1 · Callers: 1
- Method: `passwordCredential` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:318](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L318)

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

## `KlavCore.passwordHistory`

The previous passwords of an item, newest first, without values, and whether an assisted change left a new one pending.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:479](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L479)
- 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-klavcore-pauseagents"></a>

## `KlavCore.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. Signed with the account and sent at once; answers the pauses in effect.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1972](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1972)
- 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-klavcore-previouspassword"></a>

## `KlavCore.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/lib.rs:1573](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1573)
- 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-klavcore-projects"></a>

## `KlavCore.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/lib.rs:1446](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1446)
- 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-klavcore-recordgenerated"></a>

## `KlavCore.recordGenerated`

Keeps a generated password in the generator history (ADR 0022 §2) before the person uses it: in this device's outbox first, then uploaded when the server answers (it stays queued otherwise).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1538](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1538)
- 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-klavcore-registerpushtoken"></a>

## `KlavCore.registerPushToken`

Registers this device's APNs token (hex) for approval pushes. `sandbox` for development builds.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2154](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2154)
- Handlers: 1 · Callers: 1
- Method: `registerPushToken` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1282](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1282)

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

## `KlavCore.requestAccountDeletion`

Asks the server to delete the account in 7 days (ADR 0037 §1). Face ID comes first wherever Klav uses it (`faceid.json` set up): then `keystore` is required, the prompt says `reason`, and the opened key is dropped at once. Then the master password, checked here and proved to the server with OPAQUE. Works unlocked (iOS) and locked (the Mac app, whose account `klavd` holds): locked, the account opens here for the request only.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1346](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1346)
- 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-klavcore-resolvepending"></a>

## `KlavCore.resolvePending`

The person decides on an item's pending password (ADR 0022 §5): «Use the new one» (`accept`) makes it current and the old one goes to the history; «Keep the current one» moves the pending one to the history, unconfirmed. Returns the history afterwards.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:490](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L490)
- 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-klavcore-resumeagents"></a>

## `KlavCore.resumeAgents`

«Resume»: the app checks Face ID first, as approving. Resuming every agent does not lift the pause of a single one.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1988](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1988)
- 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-klavcore-resumeagentswithpassword"></a>

## `KlavCore.resumeAgentsWithPassword`

`resume_agents` with the master password, on an iPhone without Face ID (ADR 0033 P2): a wrong one is `WrongCredentials` and nothing is signed. The password is required; after Face ID the app calls `resume_agents`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2000](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2000)
- 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-klavcore-reusedoffer"></a>

## `KlavCore.reusedOffer`

The «Fix my reused passwords» card (ADR 0022 §6): the logins that share a password, sorted by host, with their change pages, checked against `agent`'s grant (the only agent with a grant when absent, if there is just one). Never for an agent.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:505](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L505)
- 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-klavcore-revocationstep"></a>

## `KlavCore.revocationStep`

One step of a key change this iPhone owes for agent `id`: its items first, then one project and the other agents' grants for it. What it did is written down before it answers. Never changes a project's key unless the person asked for it (P7), and never one twice. Call it again until `done` or `failed`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1856](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1856)
- Handlers: 1 · Callers: 1
- Method: `revocationStep` · transport uniffi
- Used at: [apps/ios/Klav/Revoke.swift:87](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Revoke.swift#L87)

<a id="rpc-klavcore-revokeagentfirst"></a>

## `KlavCore.revokeAgentFirst`

Revokes the agent, without presence (ADR 0014 §7.1), and writes the revocation down before anything else (`revocations.bin`). The keys of items granted one by one change here. With `rotate`, it also writes down that the person asked for the projects' keys to change, without changing any: [`Self::revocation_step`] does one project per call, so «Revoked» shows at once, the vault never waits on a whole key change, and iOS suspending or killing the app loses nothing.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1837](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1837)
- Handlers: 1 · Callers: 1
- Method: `revokeAgentFirst` · transport uniffi
- Used at: [apps/ios/Klav/Revoke.swift:51](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/Revoke.swift#L51)

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

## `KlavCore.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/lib.rs:2097](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2097)
- 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-klavcore-revokesandbox"></a>

## `KlavCore.revokeSandbox`

Revokes one sandbox of `proxy_id` (ADR 0036 E2.3): signed with the account, without Face ID, like a pause, since it only takes access away. The server bars it at once; the proxy logs its end later.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2088](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2088)
- 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-klavcore-sandboxlist"></a>

## `KlavCore.sandboxList`

«Sandboxes» (ADR 0036 E2.1): the sandboxes in the verified log, with the last heartbeat of the account's proxy; only the account's proxy's, unless `all_proxies`. Verifies the whole log first, so it takes a moment. `Security` on tampering, on a heartbeat the proxy did not sign, or when the server does not list the proxy the account's setting names. Preferences this iPhone cannot read give every proxy's rows, no proxy and a warning. A heartbeat older than one this iPhone already accepted is no error: the proxy shows `ProxyNoSigns::Rollback`, with a warning.

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

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

## `KlavCore.sandboxListChecked`

[`Self::sandbox_list_flagged`] with the check that refused the list apart, so the app says it in its own words: the log, the proxy's heartbeat, or a proxy the server does not list. Any other failure, a `Security` one included, is the same error.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2044](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2044)
- 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-klavcore-sandboxlistflagged"></a>

## `KlavCore.sandboxListFlagged`

[`Self::sandbox_list`] for an app that shows `security`: preferences an agent wrote give every proxy's rows, no proxy and `SandboxSecurityInfo::PreferencesByAgent` instead of a `Security` error. The app shows it as a security problem and offers to set the proxy again.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2033](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2033)
- Handlers: 1 · Callers: 0
- Method: `sandboxListFlagged` · transport uniffi

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

## `KlavCore.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.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1745](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1745)
- Handlers: 1 · Callers: 0
- Method: `sandboxSecretRequests` · transport uniffi

<a id="rpc-klavcore-savecode"></a>

## `KlavCore.saveCode`

Saves `link` into the login `id`. Reads the login and writes in the same call: the same code writes nothing, and another code is only replaced with `replace` (the person pressed «Replace»). A login changed meanwhile on another device fails with `Conflict`, and the sheet asks again.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/codes.rs:289](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/codes.rs#L289)
- Handlers: 1 · Callers: 1
- Method: `saveCode` · transport uniffi
- Used at: [apps/ios/Klav/CodeSetup.swift:600](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CodeSetup.swift#L600)

<a id="rpc-klavcore-savecodenew"></a>

## `KlavCore.saveCodeNew`

Saves `link` in a new login: its title, the user name and the site the person gave (never one taken from the link), no password. A title another live item of the project has is refused, as in `create_item`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/codes.rs:327](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/codes.rs#L327)
- Handlers: 1 · Callers: 1
- Method: `saveCodeNew` · transport uniffi
- Used at: [apps/ios/Klav/CodeSetup.swift:650](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/CodeSetup.swift#L650)

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

## `KlavCore.saveEnvironment`

Saves a change to an environment: one that makes the protection grow reissues the agents' grants first; one that lowers it asks for Face ID first, showing `reason` (ADR 0032 §3, §3.1).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:323](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L323)
- 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-klavcore-secretrequests"></a>

## `KlavCore.secretRequests`

Pending secret requests from agents, newest first (ADR 0046). Each proposal is opened locally with the account's X25519 key and verified against `proposal_digest`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1684](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1684)
- 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-klavcore-setagentlabel"></a>

## `KlavCore.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/lib.rs:1936](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1936)
- 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-klavcore-setbreachcheck"></a>

## `KlavCore.setBreachCheck`

Turns the breach check on or off on this device. The app shows what it sends before the person turns it on.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:470](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L470)
- 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-klavcore-setprojectrepos"></a>

## `KlavCore.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/lib.rs:1457](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1457)
- 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-klavcore-setserver"></a>

## `KlavCore.setServer`

Moves the account to `server` by hand (ADR 0028 §4): a full OPAQUE sign-in there for this iPhone, kept only if it is the same account. The vault opens again on the new server. Returns the URL saved.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1157](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1157)
- Handlers: 1 · Callers: 1
- Method: `setServer` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1310](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1310)

<a id="rpc-klavcore-signin"></a>

## `KlavCore.signIn`

Signs this device in to an existing account (e-mail, master password and the Secret Key of the emergency kit) and syncs it. With a keystore, Face ID is set up right away. Returns whether Face ID is enrolled.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1063](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1063)
- Handlers: 1 · Callers: 6
- Method: `signIn` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:230](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L230), [apps/ios/Credentials/CredentialModel.swift:355](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L355), [apps/ios/Klav/AppModel.swift:272](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L272), [apps/ios/Klav/SignInView.swift:188](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/SignInView.swift#L188), [apps/ios/Mac/MacModel.swift:568](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L568), … +1

<a id="rpc-klavcore-signout"></a>

## `KlavCore.signOut`

Signs this device out: deletes the local state, then ends the session on the server (best effort). Also «Delete this iPhone’s copy» of a deleted account (ADR 0037 §3). Passkeys registered offline and generated passwords not uploaded would be lost with it: Klav refuses (`Denied`), and nothing changes, if more are waiting than the person agreed to lose (`accepted`, what the dialog they confirmed said). The last count and the delete happen under the home's lock, after uploading what it can, so a passkey AutoFill saves while the dialog is open (or while this runs) is counted, never deleted unseen. The server is told afterwards, so a refusal never follows a finished logout.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1275](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1275)
- Handlers: 1 · Callers: 3
- Method: `signOut` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:699](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L699), [apps/ios/Klav/DeleteAccount.swift:385](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/DeleteAccount.swift#L385), [apps/ios/Klav/SettingsView.swift:261](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/SettingsView.swift#L261)

<a id="rpc-klavcore-signoutcheck"></a>

## `KlavCore.signOutCheck`

What signing out (or deleting the copy of a deleted account) now would lose: uploads what it can first (generated passwords, the passkey outbox), then counts what is still only on this iPhone: passkeys, whose private keys go with the account, and generated passwords. A deleted account uploads nothing: every try would fail. Fails closed: an outbox it cannot read is an error, not «none», and one it cannot tell exists while locked counts as a queue.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1226](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1226)
- Handlers: 1 · Callers: 4
- Method: `signOutCheck` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:676](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L676), [apps/ios/Klav/AppModel.swift:707](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L707), [apps/ios/Klav/DeleteAccount.swift:369](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/DeleteAccount.swift#L369), [apps/ios/Klav/SettingsView.swift:61](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/SettingsView.swift#L61)

<a id="rpc-klavcore-signup"></a>

## `KlavCore.signUp`

Creates an account on `server` (ADR 0027 §3, as `klav signup`): generates the Secret Key, registers with OPAQUE, signs this device in and creates the «Personal» vault. Returns the emergency kit as text, which holds the Secret Key: the app shows it, offers it as a PDF the person saves where they choose, and never logs or keeps a copy. The account stays unlocked in this object until [`Self::lock`]; the Mac app locks it right away and asks `klavd` to unlock instead.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1100](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1100)
- Handlers: 1 · Callers: 2
- Method: `signUp` · transport uniffi
- Used at: [apps/ios/Mac/MacModel.swift:565](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/MacModel.swift#L565), [apps/ios/Mac/Setup/AccountSheet.swift:37](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Mac/Setup/AccountSheet.swift#L37)

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

## `KlavCore.status`

The state of this device (no secrets needed).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1046](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1046)
- 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-klavcore-stopissuersecretrequests"></a>

## `KlavCore.stopIssuerSecretRequests`

The card's "Don't let `<issuer>`'s sandboxes ask again" (ADR 0053 §3.3, T297): re-signs the proxy's grant with the opt-in of the issuer whose sandbox raised `id` turned off. The issuer comes from the verified audit log. The app checks Face ID first. `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/lib.rs:1730](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1730)
- Handlers: 1 · Callers: 2
- Method: `stopIssuerSecretRequests` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:1128](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L1128), [apps/ios/Shared/App/RequestCards.swift:1565](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Shared/App/RequestCards.swift#L1565)

<a id="rpc-klavcore-suggestions"></a>

## `KlavCore.suggestions`

Logins whose URLs match `service` (a URL or a domain): exact host first, then subdomain, then by title (ADR 0025 §3). Never one saved for a subdomain of `service`: see [`Self::parent_suggestions`].

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2178](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2178)
- Handlers: 1 · Callers: 2
- Method: `suggestions` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:251](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L251), [apps/ios/Klav/IdentityStore.swift:11](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/IdentityStore.swift#L11)

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

## `KlavCore.sync`

Pulls every change from the server (refuses a rollback, T7). Once this device saw the account deleted, it no longer syncs: the answer is [`KlavError::AccountDeleted`], without network (ADR 0037 §3).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1414](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1414)
- 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-klavcore-taskprogress"></a>

## `KlavCore.taskProgress`

Where each site of a task with `rotate` is: changed, pending or failed, from the task's `rotate.*` events.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:542](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L542)
- 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-klavcore-tasks"></a>

## `KlavCore.tasks`

Task requests waiting for a decision and running tasks, newest first (ADR 0021 §8). Rows come from this device's vault.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1628](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1628)
- 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-klavcore-totp"></a>

## `KlavCore.totp`

The current one-time password of an item.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1510](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1510)
- 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-klavcore-trashenvironment"></a>

## `KlavCore.trashEnvironment`

Moves an environment to the trash; a protected one asks for Face ID first, showing `reason`, since it stops protecting what it pointed to.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:350](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L350)
- 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-klavcore-trashitem"></a>

## `KlavCore.trashItem`

Moves an item to the trash.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1582](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1582)
- 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-klavcore-turnsandboxsecretrequestson"></a>

## `KlavCore.turnSandboxSecretRequestsOn`

Turns the account's sandbox secret requests on (ADR 0053 §9), after the sheet's «update every device first» when the info says so: `every_device_updated` is that acknowledgement, checked again here. The app checks Face ID first. Nothing turns it off.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1765](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1765)
- Handlers: 1 · Callers: 0
- Method: `turnSandboxSecretRequestsOn` · transport uniffi

<a id="rpc-klavcore-unlockwithbiometrics"></a>

## `KlavCore.unlockWithBiometrics`

Unlocks with Face ID (shows the prompt with `reason`).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1188](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1188)
- Handlers: 1 · Callers: 2
- Method: `unlockWithBiometrics` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:194](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Credentials/CredentialModel.swift#L194), [apps/ios/Klav/AppModel.swift:293](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L293)

<a id="rpc-klavcore-unlockwithpassword"></a>

## `KlavCore.unlockWithPassword`

Unlocks with the master password (offline). With a keystore, Face ID is set up (or its 14-day period restarts). Returns whether Face ID is enrolled.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1134](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1134)
- Handlers: 1 · Callers: 1
- Method: `unlockWithPassword` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:283](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L283)

<a id="rpc-klavcore-unregisterpushtoken"></a>

## `KlavCore.unregisterPushToken`

Stops approval pushes to this device.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:2168](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2168)
- Handlers: 1 · Callers: 1
- Method: `unregisterPushToken` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:696](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/AppModel.swift#L696)

<a id="rpc-klavcore-valueprotection"></a>

## `KlavCore.valueProtection`

Why showing or copying a value of this item asks for Face ID every time (ADR 0032 §3.1), in words for the prompt; `None` when it does not. The item page asks before `field_value`, `notes` and `totp`.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:313](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L313)
- Handlers: 1 · Callers: 1
- Method: `valueProtection` · transport uniffi
- Used at: [apps/ios/Klav/EnvironmentScreen.swift:9](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/apps/ios/Klav/EnvironmentScreen.swift#L9)

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

## `KlavCore.variableValue`

The value of one variable (`VariableInfo::resolve`), which the person asked to show or copy. In a protected environment, or through a reference to a protected item, it asks for Face ID first, every time (ADR 0032 §3.1), showing `reason` (the app's words, in its language).

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/environments.rs:294](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L294)
- 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-klavcore-vaulthealth"></a>

## `KlavCore.vaultHealth`

The vault health report (ADR 0022 §4), computed on this device. The breach check runs only if the person turned it on ([`Self::set_breach_check`]), after the vault's lock is released, so a slow answer never holds up the rest of the app.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/health.rs:445](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/health.rs#L445)
- 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-klavcore-vaults"></a>

## `KlavCore.vaults`

Vaults, by name.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/lib.rs:1441](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L1441)
- 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-klavcore-verifyaudit"></a>

## `KlavCore.verifyAudit`

«Verify now»: downloads the whole chain, checks every signature and that it still holds what this iPhone 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/lib.rs:2144](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/lib.rs#L2144)
- 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)
