---
title: "Schemas: klav-daemon"
description: "28 entries."
canonical: "https://klav.everdoc.dev/stable/reference/schemas/klav-daemon"
channel: "stable"
---

# Schemas: klav-daemon

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

28 entries.

<a id="schema-asklasts"></a>

## `AskLasts`

[`PresenceAsk::lasts`].

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1450](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1450-L1458)
- Handlers: 0 · Callers: 0
- Shape: `"5m" | "until_lock"`

<a id="schema-askvalue"></a>

## `AskValue`

[`PresenceAsk::value`]: the kind of value, and the item `klavd` resolved, never the query the client wrote.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1462](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1462-L1475)
- Handlers: 0 · Callers: 0
- Shape: `{ kind: AskValueKind; title?: string; count?: number }`

<a id="schema-askvaluekind"></a>

## `AskValueKind`

[`AskValue::kind`].

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1478](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1478-L1493)
- Handlers: 0 · Callers: 0
- Shape: `"show" | "previous" | "code" | "fill" | "generated" | "resolve"`

<a id="schema-biometricstatus"></a>

## `BiometricStatus`

Biometric unlock state.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1879](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1879-L1888)
- Handlers: 0 · Callers: 0
- Shape: `{ available: boolean; enrolled: boolean; password_required?: string }`

<a id="schema-browserask"></a>

## `BrowserAsk`

[`PresenceAsk::browser`]: what an extension connection's presence grants, and what caused it (ADR 0041 §3.1). With `lasts`, agents may fill through the connection until Klav locks; without it, only this event (the setting on Always).

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1408](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1408-L1434)
- Handlers: 0 · Callers: 0
- Shape: `{ event: BrowserCause; agent: string; title?: string; site?: string; attached?: number; connection?: boolean }`

<a id="schema-browsercause"></a>

## `BrowserCause`

[`BrowserAsk::event`]: the value-carrying event that caused the presence (Omar's decision of 2026-11-19: a text per event).

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1438](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1438-L1447)
- Handlers: 0 · Callers: 0
- Shape: `"fill" | "password_change" | "passkey_sign_in"`

<a id="schema-browserseen"></a>

## `BrowserSeen`

A browser whose extension attached to `klavd` (`extension_attach`).

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1868](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1868-L1876)
- Handlers: 0 · Callers: 0
- Shape: `{ browser: string; connected: boolean; at_ms: number }`

<a id="schema-browsertab"></a>

## `BrowserTab`

The tab [`Request::BrowserTab`] found.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1144](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1144-L1152)
- Handlers: 0 · Callers: 0
- Shape: `{ tab: string; url: string; browser: string }`

<a id="schema-daemonstatus"></a>

## `DaemonStatus`

`status` result.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1601](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1601-L1700)
- Handlers: 0 · Callers: 0
- Shape: `{ version: string; commit?: string; commit_time?: number; protocol: number; pid: number; logged_in: boolean; unlocked: boolean; email?: string; unlocked_with?: string; idle_lock_secs: number; locks_in_secs?: number; touch_id?: BiometricStatus; revision?: number; syncing?: boolean; passkey_uv?: Window; passkey_verified?: boolean; browsers?: BrowserSeen[]; agents_paused?: PauseInEffect[]; account_deletion?: AccountDeletion; account_deleted?: boolean; revocations?: RevocationProgress[]; revocations_unreadable?: boolean; revocations_newer?: boolean; already_unlocked?: boolean; …+1 }`

<a id="schema-errorbody-crates-klav-daemon-src-protocol-rs"></a>

## `ErrorBody`

A daemon error.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1344](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1344-L1362)
- Handlers: 0 · Callers: 0
- Shape: `{ code: ErrorCode; message: string; paused?: AgentPaused; presence?: PresenceAsk }`

<a id="schema-errorcode-crates-klav-daemon-src-protocol-rs"></a>

## `ErrorCode`

Stable error codes.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1520](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1520-L1580)
- Handlers: 0 · Callers: 0
- Shape: `"locked" | "not_logged_in" | "wrong_credentials" | "rollback" | "not_found" | "invalid" | "conflict" | "network" | "session_expired" | "biometry_unavailable" | "biometry_failed" | "bad_request" | "security" | "denied" | "agents_paused" | "account_deleting" | "account_deleted" | "extension_not_allowed" | "presence_required" | "presence_busy" | "not_supported" | "browser_ambiguous" | "internal"`

<a id="schema-event"></a>

## `Event`

What `klavd` asks an attached extension; it answers with [`Request::ExtensionReply`].

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1166](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1166-L1283)
- Handlers: 0 · Callers: 0
- Shape: `{ kind: "tab"; id: number } | { kind: "presence"; id: number; tab_id: number; presence: PresenceAsk } | { kind: "fill"; id: number; tab_id: number; host: string; agent: string; reason: string; item_kind: ItemKind; fields: FillValue[]; selectors?: FieldSelector[]; submit?: boolean } | { kind: "rotate_probe"; id: number; tab_id: number; host: string; urls: string[] } | { kind: "passkey_arm"; id: number; tab_id: number; host: string; rp_id: string; item: string; title: string; agent: string; reason: string; token: SecretText; expires_in_ms: number } | { kind: "rotate_fill"; id: number; tab_id: number; frame_id: number; document_id?: string; token: string; host: string; agent: string; reason: string; current: SecretText; new: SecretText; submit?: boolean }`

<a id="schema-eventenvelope"></a>

## `EventEnvelope`

A line from `klavd` to an attached extension that is not a response.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1155](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1155-L1162)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; event: Event }`

<a id="schema-extensiontab"></a>

## `ExtensionTab`

The extension's answer to [`Event::Tab`].

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1307](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1307-L1316)
- Handlers: 0 · Callers: 0
- Shape: `{ tab_id: number; url: string; focused?: boolean }`

<a id="schema-fieldselector-crates-klav-daemon-src-protocol-rs"></a>

## `FieldSelector`

Where a field goes, when the agent knows better than detection.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1121](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1121-L1128)
- Handlers: 0 · Callers: 0
- Shape: `{ field: string; selector: string }`

<a id="schema-importadded"></a>

## `ImportAdded`

`import_add` result.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1583](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1583-L1598)
- Handlers: 0 · Callers: 0
- Shape: `{ session: string; partial?: boolean; sources: SourceReport[]; entries: number; passkeys: number; missing: MissingBatch[] }`

<a id="schema-notice"></a>

## `Notice`

A line `klavd` writes before a request's answer, only to a request whose envelope asked for notices (`notify`).

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1497](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1497-L1503)
- Handlers: 0 · Callers: 0
- Shape: `"touch_id"`

<a id="schema-passkeyarmed"></a>

## `PasskeyArmed`

What [`Request::AgentPasskeyArm`] answers: all the agent learns.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1131](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1131-L1141)
- Handlers: 0 · Callers: 0
- Shape: `{ used: boolean; rp_id: string; expires_in_s?: number }`

<a id="schema-pauseineffect"></a>

## `PauseInEffect`

A pause of agents in effect (`status`, `pause_agents`, ADR 0033 §7).

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1830](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1830-L1851)
- Handlers: 0 · Callers: 0
- Shape: `{ agent_id?: AgentId; since: number; until?: number; local?: boolean; server_unsupported?: boolean }`

<a id="schema-presenceask"></a>

## `PresenceAsk`

What a client that asks for the master password itself must say it grants (`presence_required`, ADR 0041 §2.4 and §3.2). `klavd` keeps the ask it sent on the connection, and a password sent again on it is checked only if `klavd` would still ask exactly this, for the same request: it then grants what this says, never more. Otherwise the answer is a new `presence_required`, and the password isn't checked.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1370](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1370-L1402)
- Handlers: 0 · Callers: 0
- Shape: `{ key: PresenceKey; window: Window; terminal?: string; declared?: boolean; lasts?: AskLasts; value?: AskValue; browser?: BrowserAsk; protected?: string }`

<a id="schema-presencekey"></a>

## `PresenceKey`

[`PresenceAsk::key`].

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1506](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1506-L1517)
- Handlers: 0 · Callers: 0
- Shape: `"session" | "parent" | "connection" | "none"`

<a id="schema-presencepurpose"></a>

## `PresencePurpose`

What [`Request::ConfirmPresence`] is for: the prompt names it.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1822](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1822-L1827)
- Handlers: 0 · Callers: 0
- Shape: `"delete_account"`

<a id="schema-requestenvelope"></a>

## `RequestEnvelope`

A request line.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:33](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L33-L63)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; id: number; request: Request; notify?: boolean; shown?: Window; untyped?: boolean }`

<a id="schema-responseenvelope"></a>

## `ResponseEnvelope`

A response line.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1319](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1319-L1341)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; id: number; ok?: unknown; error?: ErrorBody; warnings?: string[]; notice?: Notice }`

<a id="schema-revocationprogress"></a>

## `RevocationProgress`

How far a revocation's key change got (`status`, F2): «Changing keys: 2 of 5 projects». No secret. While locked, only the agent and the counts: no name, and no error (it may name a vault or project).

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1730](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1730-L1787)
- Handlers: 0 · Callers: 0
- Shape: `{ agent_id: AgentId; name?: string; projects: number; rotated: number; regrants?: number; unknown_projects?: boolean; narrowed?: boolean; items?: number; log_unchecked?: boolean; without_key_change?: boolean; skipped?: number; to_change?: number; needs_work?: boolean; running?: boolean; last_error?: string }`

<a id="schema-rotatetarget"></a>

## `RotateTarget`

The extension's answer to [`Event::RotateProbe`]: where it would fill, with the address the browser reports for that frame.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1287](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1287-L1304)
- Handlers: 0 · Callers: 0
- Shape: `{ frame_id: number; document_id?: string; url: string; focused?: boolean; token: string; rules?: PageRules }`

<a id="schema-statuspresence"></a>

## `StatusPresence`

[`DaemonStatus::presence`].

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1703](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1703-L1725)
- Handlers: 0 · Callers: 0
- Shape: `{ elsewhere?: boolean; key: PresenceKey; terminal?: string; declared?: boolean; lasts?: AskLasts }`

<a id="schema-window"></a>

## `Window`

When a passkey use needs a new verification.

- Kind: schema
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/uv.rs:25](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/uv.rs#L25-L37)
- Handlers: 0 · Callers: 0
- Shape: `"always" | "5m" | "unlocked"`
