klav-client
166 schemas in 29 files.
Blast radius
4 direct · 1 transitive workspaces · 3 apps affected
What a change to these 166 schemas can reach, from workspace dependencies, imports, call sites, and protocol edges.
crates/klav-client/src/activity.rs
3 entries
How an agent's use of an item went, for the app to say in words: «allowed by your policy», «approved once», «approved for 15 min», «inside the task “…”», «asked you» or «denied».
- Framework
- serde
›union7 members
«Who used it» for one item.
- Framework
- serde
›{5 fields }
One agent event about the item.
- Framework
- serde
›intersection2 parts
›& {4 fields }
What the agent hands to `klavd` (`agent_passkey_arm`).
- Framework
- serde
›{4 fields }
crates/klav-client/src/agents.rs
8 entries
An agent of the account, with what the person needs to decide.
- Framework
- serde
›{14 fields }
An item an environment's approval also covers (ADR 0032 §3.1).
- Framework
- serde
›{2 fields }
An approval request as the person sees it.
- Framework
- serde
›{24 fields }
What to grant.
- Framework
- serde
›{3 fields }
A verified grant.
- Framework
- serde
›{9 fields }
An item granted one by one, with its current title.
- Framework
- serde
›{4 fields }
A granted project with its current names.
- Framework
- serde
›{4 fields }
What a WebSocket tunnel's handshake names (ADR 0052 §3): the tunnel host and the path under the signed prefix, both the proxy's word of what the sandbox asked for. Cleaned and capped for one line.
- Framework
- serde
›{3 fields }
crates/klav-client/src/audit.rs
9 entries
An agent's current egress pin, as the chain shows it.
- Framework
- serde
›{4 fields }
A profile the person attached to a live sandbox in their signed decision on that sandbox's secret request (ADR 0053 §5, Q6 (a)).
- Framework
- serde
›{2 fields }
Where this device stands on the audit log (ADR 0033 §8.1: «Verified up to event #1234»).
- Framework
- serde
›{2 fields }
Filters for [`Unlocked::audit_log`].
- Framework
- serde
›{11 fields }
An event ready to show.
- Framework
- serde
›{25 fields }
A head to check the chain against.
- Framework
- serde
›{2 fields }
A proxy's current store epoch, as the chain shows it.
- Framework
- serde
›{3 fields }
Why this device had no pinned head to hold the chain against (ADR 0030 §4.8): the events up to now are trusted as the server sent them, checked only against heads signed by other devices.
- Framework
- serde
What `verify` checked.
- Framework
- serde
›{9 fields }
crates/klav-client/src/environments.rs
12 entries
The variables an agent changed since the person's latest version (ADR 0032 §3, answer 7).
- Framework
- serde
›{4 fields }
One environment, for `klav env show`, `run` and `inject`: names and origins, never values.
- Framework
- serde
›{3 fields }
A change to an environment (`klav env create|set|rm|import`).
- Framework
- serde
›{5 fields }
One environment, for `klav env ls`.
- Framework
- serde
›{10 fields }
What a prepared edit would do.
- Framework
- serde
›{7 fields }
What saving did.
- Framework
- serde
›{8 fields }
A field with the same value as an imported variable.
- Framework
- serde
›{3 fields }
The review of one variable of `klav env import`, never with its value.
- Framework
- serde
›{3 fields }
What one variable of the value comparison of `klav env import` is.
- Framework
- serde
A variable to set.
- Framework
- serde
›{3 fields }
Where a variable's value comes from, without the value.
- Framework
- serde
›union2 members · discriminated by origin
›| "value"{1 field }
›| "reference"{4 fields }
One variable, without its value.
- Framework
- serde
›intersection2 parts
›& {2 fields }
crates/klav-client/src/fill.rs
5 entries
Which values `autofill` returns.
- Framework
- serde
One value to type.
- Framework
- serde
›{3 fields }
An item to offer on a page (metadata only, never secrets).
- Framework
- serde
›{10 fields }
What `suggest` offers for a page.
- Framework
- serde
›{6 fields }
crates/klav-client/src/grant_change.rs
10 entries
One line of the sheet: before → after.
- Framework
- serde
›intersection2 parts
›& {1 field }
The new policy of a [`GrantChange`].
- Framework
- serde
›union2 members
›| {1 field }
›| {1 field }
What a [`ChangeLine`] changes.
- Framework
- serde
›union7 members · discriminated by kind
›| "project_added"{2 fields }
›| "project_removed"{2 fields }
›| "permission"{6 fields }
›| "fill_sites"{3 fields }
›| "hours"{3 fields }
›| "expires"{3 fields }
›| "rules"{1 field }
The policies the editor can show and write: what `klav agent approve` writes with `--allow`, `--ask`, `--deny`, `--fill-domain`, `--hours` and `--expires`. A grant whose policy is anything else is read-only in the apps ([`ReadOnlyReason::Rules`]).
- Framework
- serde
›{4 fields }
A change to an active agent's grant, as the editor or the CLI sends it. Its exact JSON goes into the digest of the sheet (F3): send the same value to prepare and to apply.
- Framework
- serde
›{4 fields }
The sheet of a change: what the person signs. No secrets.
- Framework
- serde
›{9 fields }
What [`Unlocked::commit_grant_change`] did.
- Framework
- serde
›{7 fields }
An agent's grant in force, as the editor shows it.
- Framework
- serde
›{8 fields }
One permission in the editor: an effect, or none for its default (no rule, ADR 0006 §1).
- Framework
- serde
›{2 fields }
Why the apps cannot change a grant (they show it in words instead).
- Framework
- serde
crates/klav-client/src/health.rs
8 entries
Where the age of a password comes from.
- Framework
- serde
A password seen in breaches.
- Framework
- serde
›{2 fields }
An item with a problem, as the report shows it: never a value.
- Framework
- serde
›{10 fields }
Local health settings (`health.json`, not synced, not secret).
- Framework
- serde
›{1 field }
An old password.
- Framework
- serde
›{4 fields }
Items that share one password.
- Framework
- serde
›{1 field }
The vault health report: items, hosts and reasons, never values.
- Framework
- serde
›{8 fields }
A weak password.
- Framework
- serde
›{3 fields }
crates/klav-client/src/history.rs
4 entries
Which generator history entries to delete.
- Framework
- serde
›union2 members
›| {1 field }
A generator history entry as shown: no value (see [`Unlocked::generated_value`]).
- Framework
- serde
›{5 fields }
The password history of an item.
- Framework
- serde
›{3 fields }
A previous password of an item as shown: no value (see [`Unlocked::previous_password`]).
- Framework
- serde
›{6 fields }
What the person does with Klav Cloud's proxy: `klav proxy use klav`, `klav proxy cloud stop` and `klav proxy cloud reset`, and the apps' buttons (ADR 0051 §6.1, §6.3, §4.4).
- Framework
- serde
What a [`CloudAction`] did: the proxy's status after it, and what the person should read (issuers to add again, provider tokens to rotate).
- Framework
- serde
›{2 fields }
The enclave image an attestation matched, as the manifest lists it.
- Framework
- serde
›{7 fields }
`klav proxy cloud status`, the apps' row: never a value or a key.
- Framework
- serde
›{12 fields }
What a reset did.
- Framework
- serde
›{5 fields }
Where the hosted proxy stands, as this device checked it just now.
- Framework
- serde
›union7 members
`klav proxy cloud stop`: the hosted agent revoked (with its item keys changed) and the setting cleared.
- Framework
- serde
›{3 fields }
`klav proxy cloud reset`, checked: a new agent at the next generation (ADR 0051 §3.2, §4.4).
- Framework
- serde
›{3 fields }
`klav proxy use klav`, checked: the enrolled agent and what the sheet shows before presence (ADR 0051 §6.1 step 4).
- Framework
- serde
›{4 fields }
crates/klav-client/src/import.rs
2 entries
What an import would do. No secret values.
- Framework
- serde
›{8 fields }
What an import did.
- Framework
- serde
›{7 fields }
crates/klav-client/src/issuers.rs
4 entries
What an issuer change does, to show before presence. Names, limits, the proxy's address and the issuer's words: never a key.
- Framework
- serde
›{23 fields }
What an issuer change did. Both grants or neither is the goal; the order makes a half-done change harmless (the proxy refuses an issuer it does not list), and running the same command again finishes it.
- Framework
- serde
›{4 fields }
The issuers of re-signs that a change of the proxy setting did.
- Framework
- serde
›{2 fields }
What the person asks for in `klav proxy issuer add`.
- Framework
- serde
›{6 fields }
Result of [`Unlocked::grant_items`].
- Framework
- serde
›{11 fields }
What to grant item by item.
- Framework
- serde
›{5 fields }
An error line.
- Framework
- serde
›{3 fields }
A request line: `{"v":1,"op":"sandboxes"}` or `{"v":1,"op":"revoke","scope":"…"}`, nothing else.
- Framework
- serde
›{3 fields }
The answer to `revoke`.
- Framework
- serde
›{3 fields }
One live sandbox, as the proxy holds it.
- Framework
- serde
›{9 fields }
The answer to `sandboxes`.
- Framework
- serde
›{9 fields }
crates/klav-client/src/offer.rs
8 entries
An agent the person can offer the task to.
- Framework
- serde
›{2 fields }
Why a login cannot go in the task. Shown unchecked, and cannot be checked.
- Framework
- serde
What the person approves: the agent, the logins left checked, and optionally their own title, reason and duration.
- Framework
- serde
›{5 fields }
One login on the offer card. Metadata only: never a value.
- Framework
- serde
›{11 fields }
The «Fix my reused passwords» card: the agents that can take it and the logins that share a password, with their change pages.
- Framework
- serde
›{6 fields }
One site of a task with `rotate`.
- Framework
- serde
›{7 fields }
A site's state in a task with `rotate` (`klav log --task`).
- Framework
- serde
The sites of a task with `rotate` and where each one is.
- Framework
- serde
›{4 fields }
crates/klav-client/src/ops.rs
8 entries
A field value to set.
- Framework
- serde
›{4 fields }
One field as shown to the user.
- Framework
- serde
›{7 fields }
Changes to an item.
- Framework
- serde
›{8 fields }
An item as shown to the user.
- Framework
- serde
›intersection2 parts
›& {5 fields }
A new item.
- Framework
- serde
›{9 fields }
A complete item in transit (CSV import through the daemon): its two plaintext sections, as `klav-core` encodes them before encryption.
- Framework
- serde
›{3 fields }
A secret produced for the caller (`run`, `inject`).
- Framework
- serde
›{4 fields }
A TOTP code.
- Framework
- serde
›{2 fields }
A signature over a `clientDataHash` the platform built (iOS hands the hash, not the JSON). Nothing secret.
- Framework
- serde
›{5 fields }
A passkey for the platform's list of credentials (`ASPasskeyCredentialIdentity`). Nothing secret.
- Framework
- serde
›{6 fields }
What waits in the outbox, for «Open Klav to sync this passkey».
- Framework
- serde
›{2 fields }
What the flush did.
- Framework
- serde
›{7 fields }
How a registration without network ends.
- Framework
- serde
›union3 members
›| intersection2 parts
›& {1 field }
›| {1 field }
›| {3 fields }
A registration made without network. Nothing secret.
- Framework
- serde
›{5 fields }
crates/klav-client/src/passkeys.rs
6 entries
An assertion for the page (`PublicKeyCredential` of a `get`). Every binary value is base64url without padding.
- Framework
- serde
›{6 fields }
A login that holds a passkey for the rpId. No secrets.
- Framework
- serde
›{5 fields }
The answer to «which passkeys does Klav have here?».
- Framework
- serde
›{2 fields }
The outcome of a `create`.
- Framework
- serde
›union4 members
›| intersection2 parts
›& {1 field }
›| {1 field }
›| {1 field }
›| {3 fields }
What the page asks to create (`PublicKeyCredentialCreationOptions`, already reduced by the extension).
- Framework
- serde
›{12 fields }
A created passkey, for the page (`PublicKeyCredential` of a `create`).
- Framework
- serde
›{9 fields }
A Postgres approval as a card shows it. The claims (`database`, `class`, `verbs`) passed their grammar on this device; `sql` and `params` are the sealed statement's, escaped. Its `Debug` shows only sizes.
- Framework
- serde
›{10 fields }
What an Activity row names of a Postgres access (ADR 0052 §9.6): the claims the proxy signed, never SQL (the log has only class, verbs and digest).
- Framework
- serde
›{3 fields }
What a card can show of a Postgres approval's statement.
- Framework
- serde
crates/klav-client/src/proxy_admin.rs
15 entries
A change to one local MCP client of the proxy's grant (ADR 0049 §3.2).
- Framework
- serde
›union2 members
›| {1 field }
›set: {2 fields }
What a local client change will sign, shown before presence. Never a token or a digest.
- Framework
- serde
›{9 fields }
A local MCP client the proxy's grant names (ADR 0049 §3.2): never its token, nor its token's digest.
- Framework
- serde
›{2 fields }
What makes a credential an MCP profile (ADR 0049 §2.1, §5.3): the upstream's MCP endpoint, its fixed headers, and which tools are allowed, asked for or denied. A tool none of them names is denied and hidden from `tools/list` (Q3).
- Framework
- serde
›{5 fields }
What `--preset postgres` makes (ADR 0052 §7, Q9 (a)): how the proxy reaches the database, which databases, the item field with the role, and the SQL policy. The item's main secret is the password.
- Framework
- serde
›{7 fields }
The proxy's agent, as the server reports it.
- Framework
- serde
›{6 fields }
What `klav proxy grant` or `revoke` will sign, shown before presence.
- Framework
- serde
›{25 fields }
How a credential may be used through the proxy: its profile and the rules for it. A caller with a preset (ADR 0036 §7, `klav proxy grant --preset`) fills it in before it gets here: every part is explicit, and the same spec makes the same profile and rules ([`credential_profile`]).
- Framework
- serde
›{13 fields }
- Framework
- serde
›{4 fields }
One agent the proxy's verified grant lets start sandboxes. Its ID, profiles and limits are what the account signed; its name and state are the server's word, as in `klav agent ls`.
- Framework
- serde
›{7 fields }
A rule of the proxy's grant, as the person reads it.
- Framework
- serde
›{7 fields }
`klav proxy status`: never a value.
- Framework
- serde
›{9 fields }
Why a statement's approval can only be denied (ADR 0052 §9.6, T292, risk 119).
- Framework
- serde
A statement as the card shows it (ADR 0052 §9.6): every character a terminal could hide, reorder or act on made visible ([`visible_sql`]).
- Framework
- serde
›{5 fields }
What `--tunnels`, `--tunnels-ask` and `--tunnel-host` add to a profile (ADR 0052 §2, §5, Q4 (a)): exact hosts by default, each signed and shown in full; a `*.base` host matches exactly one label and is shown as a warning (T287).
- Framework
- serde
›{3 fields }
crates/klav-client/src/revoke.rs
6 entries
"What it saw": the projects whose keys it held and what the audit log says it used.
- Framework
- serde
›{6 fields }
A key change this device still owes (F4 `agent_revocations`): a revocation's, or a narrowing's.
- Framework
- serde
›{13 fields }
Result of [`Unlocked::revoke_agent`]. With `rotate`, check [`RevokeReport::complete`]: a rotation that stopped half way says what failed and what is left, and running it again finishes it.
- Framework
- serde
›{13 fields }
A rotated project key.
- Framework
- serde
›{4 fields }
What one [`Unlocked::rotation_step`] did.
- Framework
- serde
›{8 fields }
What an agent obtained from one item, according to the audit log.
- Framework
- serde
›{10 fields }
crates/klav-client/src/rotate.rs
2 entries
What the page says about the new password (the field's `passwordrules`, `minlength` and `maxlength`).
- Framework
- serde
›{3 fields }
One step of a change, as the agent hands it to `klavd` (`agent_rotate_begin`, `agent_rotate_confirm`, `agent_rotate_cancel`).
- Framework
- serde
›{5 fields }
What a person's revocation did, for the apps and the CLI.
- Framework
- serde
›union2 members · discriminated by outcome
›| "revoked"{2 fields }
›| "not_applied"{4 fields }
crates/klav-client/src/sandboxes.rs
10 entries
`klavd`'s answer to `sandbox_list_checked`: the list, or the check that refused it. Both optional, so that an answer with neither (a newer `klavd` that says it otherwise) is read as a refusal, never as a list. A refusal is read first and wins: a `list` next to it that does not decode is dropped, never an error that would leave the last list standing. Without a refusal, `list` is read as strictly as ever.
- Framework
- serde
›{2 fields }
Why a sandbox ended, as its proxy logged it ([`SandboxEnd`]), with a catch-all for a reason this build does not know (from a newer `klavd`): such a row is still ended, since its status says so, and only the reason is unknown. The names are [`SandboxEnd`]'s.
- Framework
- serde
›union9 members
Which check refused the list, for a caller that says it in its own words (the Mac app, through `klavd`'s `sandbox_list_checked`). The CLI keeps printing [`ListRefusal::message`]. Read leniently: a check that does not decode (a kind this build does not know, or a known kind without its agent) is [`ListCheck::Unknown`], still a refusal.
- Framework
- serde
›union4 members · discriminated by kind
›| "unlisted_proxy"{2 fields }
›| "proxy_heartbeat"{2 fields }
›| "log"{1 field }
›| "unknown"{1 field }
A list refused by one of its checks: which one, and the words the CLI prints for it, the same [`Unlocked::sandbox_list_flagged`] fails with. Read leniently, so that a refusal never fails to decode and leaves the last list standing: without its check, or not even an object, it is [`ListCheck::Unknown`]; without its words, they are empty.
- Framework
- serde
›{2 fields }
Why there is no heartbeat that counts.
- Framework
- serde
›union7 members
The account's proxy, as this device sees it.
- Framework
- serde
›{7 fields }
The person's list (ADR 0036 E2.1).
- Framework
- serde
›{6 fields }
One sandbox of the account.
- Framework
- serde
›{17 fields }
Where a sandbox stands, from the verified chain and this device's clock alone.
- Framework
- serde
›union7 members
A security problem the list carries instead of failing: the rows still come from the verified chain, and no proxy is trusted. A caller shows it as a security warning (the CLI exits 3), never as an ordinary one.
- Framework
- serde
›union2 members · discriminated by kind
›| "preferences_by_agent"{2 fields }
›| "unknown"{1 field }
Inputs supplied by the person when fulfilling a pending secret request.
- Framework
- serde
›{17 fields }
Result of fulfilling a secret request.
- Framework
- serde
›{6 fields }
A secret request as the person sees it (CLI, `klavd`, Mac, iOS, extension).
- Framework
- serde
›{26 fields }
An `env_link` proposal as this device's vault resolves it on the card (ADR 0054 §3): whether the environment exists in the proposed project, and whether linking there is protected.
- Framework
- serde
›{4 fields }
The sandbox a credential proxy asked for (ADR 0053 §3.3), as this device's verified audit chain shows it: never the server's copy (T299).
- Framework
- serde
›{7 fields }
Validated `setup_url` surfaced on a [`SecretRequestCard`] (T235).
- Framework
- serde
›{3 fields }
crates/klav-client/src/session.rs
5 entries
Which items to list.
- Framework
- serde
›{8 fields }
Where an item lives.
- Framework
- serde
›{3 fields }
Item metadata (the overview): never contains secrets.
- Framework
- serde
›{19 fields }
A project as shown to the user.
- Framework
- serde
›{5 fields }
A vault as shown to the user.
- Framework
- serde
›{4 fields }
crates/klav-client/src/state.rs
1 entries
`account.json`: everything needed to unlock this device. Contains no plaintext secrets (the keyset and the local identity are ciphertext).
- Framework
- serde
›{10 fields }
crates/klav-client/src/sync.rs
1 entries
What a sync did.
- Framework
- serde
›{4 fields }
crates/klav-client/src/tasks.rs
6 entries
The running task an approval request falls outside of (ADR 0021 §6).
- Framework
- serde
›{4 fields }
A task as the person sees it.
- Framework
- serde
›{17 fields }
One permission on a task card.
- Framework
- serde
›{7 fields }
One item on a task card.
- Framework
- serde
›{13 fields }
What the person changed on the card before approving.
- Framework
- serde
›{3 fields }
`klav log --task` (ADR 0021 §9): the task, its events and what the agent got approved outside it while it ran.
- Framework
- serde