Klav Atlas

KlavCore

104 methods.

Stablev0.15.1034e81b52d1b· 2026-12-04

Blast radius

1 direct · 0 transitive workspace · 1 app affected

What a change to these 104 methods can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (ios, native)
Direct dependents
Contracts in its surface104 RPC

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.

Method
accountDeletion
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
acknowledgePasskeyQueuesSetAside
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
addToTask
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
agentExposure
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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

Method
agentRevocations
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
agents
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
agentsPaused
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

Pending approval requests from agents, newest first.

Method
approvals
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
approveAgent
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
auditLog
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

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

Method
auditStatus
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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`].

Method
cancelAccountDeletion
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

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.

Method
cancelAccountDeletionWithPassword
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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.

Method
checkOffer
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
clearGeneratorHistory
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
codeTargets
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
createItem
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
credentialIdentities
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
decideApproval
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
decideTask
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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.

Method
deletionSupported
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

Denies a pending registration.

Method
denyAgent
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
denySecretRequest
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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.

Method
devAgents
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
emergencyKit
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
endTask
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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

Method
environments
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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

Method
flushPasskeyOutbox
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller

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.

Method
forgetBiometrics
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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.

Method
fulfillSecretRequest
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

The generator history, newest first, without values.

Method
generatorHistory
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
healthSettings
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
hostedProxy
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
hostedProxyAct
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
importApply
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
importPreview
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
itemActivity
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
new
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller
0 usages · in 1 flow

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`].

Method
offerTask
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
oneTimeCode
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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.

Method
parentSuggestions
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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.

Method
passkeyAssertion
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
passkeyIdentities
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

What waits in the passkey outbox.

Method
passkeyOutbox
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller

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

Method
passkeyRegistration
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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.

Method
passwordCredential
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
passwordHistory
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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

Method
pauseAgents
Transport
uniffi
Framework
uniffi
10 usages · in 1 flow

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

Method
previousPassword
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
recordGenerated
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
registerPushToken
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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.

Method
requestAccountDeletion
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

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.

Method
resolvePending
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
resumeAgents
Transport
uniffi
Framework
uniffi
5 usages · in 1 flow

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

Method
resumeAgentsWithPassword
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
reusedOffer
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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

Method
revocationStep
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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.

Method
revokeAgentFirst
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
revokeAllSandboxes
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
revokeSandbox
Transport
uniffi
Framework
uniffi
6 usages · in 1 flow

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

Method
sandboxList
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller
0 usages · in 1 flow

[`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.

Method
sandboxListChecked
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

[`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.

Method
sandboxListFlagged
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller
0 usages · in 1 flow

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.

Method
sandboxSecretRequests
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller
0 usages · in 1 flow

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.

Method
saveCode
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
saveCodeNew
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
saveEnvironment
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
secretRequests
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
setAgentLabel
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

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

Method
setBreachCheck
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
setProjectRepos
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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.

Method
setServer
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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.

Method
signIn
Transport
uniffi
Framework
uniffi
6 usages · in 1 flow

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.

Method
signOut
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

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.

Method
signOutCheck
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

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.

Method
signUp
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
stopIssuerSecretRequests
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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`].

Method
suggestions
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
sync
Transport
uniffi
Framework
uniffi
12 usages · in 1 flow

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

Method
taskProgress
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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

Method
tasks
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

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

Method
trashEnvironment
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

Moves an item to the trash.

Method
trashItem
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
turnSandboxSecretRequestsOn
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller
0 usages · in 1 flow

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

Method
unlockWithBiometrics
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

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.

Method
unlockWithPassword
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

Stops approval pushes to this device.

Method
unregisterPushToken
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
valueProtection
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

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

Method
variableValue
Transport
uniffi
Framework
uniffi
4 usages · in 1 flow

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.

Method
vaultHealth
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

Vaults, by name.

Method
vaults
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

«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`.

Method
verifyAudit
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow