---
title: "Schemas: klav-proxy"
description: "21 entries."
canonical: "https://klav.everdoc.dev/main/reference/schemas/klav-proxy"
channel: "main"
---

# Schemas: klav-proxy

> OmarAlex24/klav · channel `main` · main @ [`fe8e2a0c8c24`](https://github.com/OmarAlex24/klav/tree/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92) · 2026-12-05 · generated by Everdoc from source (no LLM).

21 entries.

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

## `AttestQuery`

`GET /v1/attest` query.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/enclave/engine.rs:924](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/enclave/engine.rs#L924-L931)
- Handlers: 0 · Callers: 0
- Shape: `{ account: AccountId; nonce: string }`

<a id="schema-bound-crates-klav-proxy-src-claims-rs"></a>

## `Bound`

A sandbox bound to a channel key, as a call over the channel sees it.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/claims.rs:189](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/claims.rs#L189-L215)
- Handlers: 0 · Callers: 0
- Shape: `{ sandbox_id: SandboxId; label: string; profiles: string[]; expires_at: number; hosts?: string[]; pg?: PgListed[] }`

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

## `Channel`

The channel key of a sandbox.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/claims.rs:54](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/claims.rs#L54-L64)
- Handlers: 0 · Callers: 0
- Shape: `{ sandbox_id: SandboxId; channel_key_sha256: Blob; logged: boolean }`

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

## `CoreDumps`

Whether the process can leave a core dump.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/memory.rs:113](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/memory.rs#L113-L118)
- Handlers: 0 · Callers: 0
- Shape: `"off"`

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

## `CountsView`

The counts as `status` shows them.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/counts.rs:33](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/counts.rs#L33-L39)
- Handlers: 0 · Callers: 0
- Shape: `{ since: number; profiles: Record<string, ProfileCounts> }`

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

## `Enrollment`

One account the enclave serves.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/enclave/registry.rs:28](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/enclave/registry.rs#L28-L44)
- Handlers: 0 · Callers: 0
- Shape: `{ account_id: AccountId; agent_id: AgentId; generation: number; email: string; account_public_identity: Blob; enrolled_at_ms: number }`

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

## `HelloAnswer`

`POST /v1/handoff/hello` answer.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/enclave/engine.rs:942](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/enclave/engine.rs#L942-L952)
- Handlers: 0 · Callers: 0
- Shape: `{ session: Blob; nonce: Blob; document: Blob; manifest: ManifestWire }`

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

## `HelloRequest`

`POST /v1/handoff/hello`.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/enclave/engine.rs:934](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/enclave/engine.rs#L934-L939)
- Handlers: 0 · Callers: 0
- Shape: `{ nonce: Blob }`

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

## `InitReport`

What `init` shows.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/app.rs:175](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/app.rs#L175-L187)
- Handlers: 0 · Callers: 0
- Shape: `{ agent_id: string; name: string; pairing_code: string; key_store: string; expires_at: number }`

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

## `MemoryRecord`

What `serve` writes next to its registration once it listens, and `status` shows as `memory`: the report and when that `serve` wrote it.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/memory.rs:131](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/memory.rs#L131-L138)
- Handlers: 0 · Callers: 0
- Shape: `{ since: number } & MemoryReport`

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

## `MemoryReport`

What took effect in the proxy's memory: `memory` in `klav-proxy status`.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/memory.rs:62](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/memory.rs#L62-L94)
- Handlers: 0 · Callers: 0
- Shape: `{ core_dumps: CoreDumps; dumpable?: boolean; locked: boolean; lock_turned_off?: boolean; vm_lck_kib?: number; why?: string; lock_not_undone?: boolean }`

<a id="schema-pglisted-crates-klav-proxy-src-pg-mod-rs"></a>

## `PgListed`

A Postgres profile, as the claim and status answers list it for the sandbox's forwarder (ADR 0052 §6, risk 117).

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/pg/mod.rs:232](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/pg/mod.rs#L232-L246)
- Handlers: 0 · Callers: 0
- Shape: `{ profile: string; databases: string[]; transport: string; extensions?: Record<string, string[]> }`

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

## `ProfileCounts`

One profile's counts.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/counts.rs:24](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/counts.rs#L24-L30)
- Handlers: 0 · Callers: 0
- Shape: `{ redacted: number; partial: number }`

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

## `ProfileView`

A profile, without anything secret.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/app.rs:299](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/app.rs#L299-L311)
- Handlers: 0 · Callers: 0
- Shape: `{ name: string; item_id: string; upstream: string; header: string; rate_per_minute: number }`

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

## `SandboxView`

A live sandbox as `klav-proxy status` shows it.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/sandboxes.rs:137](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/sandboxes.rs#L137-L153)
- Handlers: 0 · Callers: 0
- Shape: `{ sandbox_id: SandboxId; issuer_id: AgentId; label: string; profiles: string[]; issued_at: number; expires_at: number; claimed: boolean }`

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

## `SealAnswer`

`POST /v1/handoff/seal` answer.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/enclave/engine.rs:968](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/enclave/engine.rs#L968-L972)
- Handlers: 0 · Callers: 0
- Shape: `{ sealed: Blob }`

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

## `SealRequest`

`POST /v1/handoff/seal`.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/enclave/engine.rs:955](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/enclave/engine.rs#L955-L965)
- Handlers: 0 · Callers: 0
- Shape: `{ session: Blob; document: Blob; manifest: ManifestWire }`

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

## `SharedState`

What a hand-off carries besides the seed.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/enclave/registry.rs:66](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/enclave/registry.rs#L66-L77)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; enrollments: Enrollment[]; accounts?: AccountState[] }`

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

## `ShownRule`

A `proxy` rule of the grant as a sandbox may read it in its view (ADR 0053 §2, Q9, risk 126): what the rule allows, asks for or denies on one profile. Built only from the dimensions listed here: never the items, vaults, projects or tags it names, nor a host that is not this profile's. Hours, vaults, projects and tags only show as `conditional`.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/profiles.rs:131](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/profiles.rs#L131-L165)
- Handlers: 0 · Callers: 0
- Shape: `{ effect: string; once?: boolean; hosts?: string[]; methods?: string[]; paths?: string[]; tools?: string[]; upgrades?: string[]; sql_classes?: string[]; expires_at?: number; conditional?: boolean }`

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

## `StatusReport`

What `status` shows: never a value.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/app.rs:261](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/app.rs#L261-L296)
- Handlers: 0 · Callers: 0
- Shape: `{ agent: AgentState; profiles: ProfileView[]; sandboxes: SandboxView[]; unsent_ends: number; unconfirmed_thefts?: UnconfirmedTheft[]; store_error?: string; redactions?: CountsView; redactions_error?: string; memory?: MemoryRecord; memory_error?: string }`

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

## `UnconfirmedTheft`

A `theft` end the proxy could not confirm the server logged: when it was sent, the server refused it, or the claim it needs, as already over (expired, its issuer removed, ended), or did not know the sandbox. That answer is the same whether the server never got the theft or got it and the proxy lost the answer, so the person's log may or may not show it. The proxy keeps it here and `klav-proxy status` shows it.

- Kind: schema
- Workspace: [klav-proxy](../../architecture/klav-proxy.md)
- Source: [crates/klav-proxy/src/claims.rs:72](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-proxy/src/claims.rs#L72-L79)
- Handlers: 0 · Callers: 0
- Shape: `{ sandbox_id: SandboxId; dropped_at: number }`
