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

# Schemas: klav-forward

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

11 entries.

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

## `Bound`

The sandbox the channel key is bound to, as the proxy says it.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/forward.rs:64](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/forward.rs#L64-L85)
- Handlers: 0 · Callers: 0
- Shape: `{ sandbox_id: string; label: string; profiles: string[]; expires_at: number; hosts?: string[]; pg?: Listed[] }`

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

## `Ended`

`ended.json`: the proxy's refusal of the status of `sandbox_id` once it revoked it. Never a secret: a code and the proxy's own words.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/setup.rs:107](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/setup.rs#L107-L116)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; sandbox_id: string; refusal: Refusal }`

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

## `Listed`

A Postgres profile, as the proxy's claim and status answers list it.

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

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

## `Listener`

One listener, as `up` set it up.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/pg.rs:77](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/pg.rs#L77-L93)
- Handlers: 0 · Callers: 0
- Shape: `{ profile: string; databases: string[]; transport?: string; port?: number; off?: string }`

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

## `Marker`

That this state directory began to claim a sandbox (ADR 0036 §5): `claimed/<sandbox_id>`, written before the first byte of the claim, so a later `up` with the same package refuses here instead of claiming again, which the proxy would take for a theft. Nothing secret: no secret, no hash of one, no package.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/setup.rs:255](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/setup.rs#L255-L264)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; sandbox_id: string; at: number }`

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

## `ModeBState`

Mode (b)'s own state, next to its files: what `run`, the shims, `env` and `status` read. Never secret.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/mode_b.rs:788](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/mode_b.rs#L788-L807)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; pid: number; sandbox_id: string; port: number; hosts: string[]; shims: string[]; system_roots?: string }`

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

## `PgState`

The listeners' state file.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/pg.rs:103](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/pg.rs#L103-L114)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; pid: number; sandbox_id: string; listeners: Listener[] }`

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

## `Refusal`

A refusal, as the proxy (or the forwarder) words it (ADR 0036 §10).

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/forward.rs:110](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/forward.rs#L110-L122)
- Handlers: 0 · Callers: 0
- Shape: `{ error: string; message: string; next?: string }`

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

## `SeenFile`

[`SEEN_FILE`].

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/mode_b.rs:266](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/mode_b.rs#L266-L287)
- Handlers: 0 · Callers: 0
- Shape: `{ intercepted: number; passed: number; refused: number; last_refusal?: SeenRefusal; tls_failed: number; last_tls_failure?: string; passed_hosts?: string[] }`

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

## `SeenRefusal`

A refused `CONNECT`, as [`SeenFile`] keeps it.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/mode_b.rs:290](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/mode_b.rs#L290-L298)
- Handlers: 0 · Callers: 0
- Shape: `{ host: string; status: number; error: string }`

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

## `State`

What a running forwarder wrote about itself.

- Kind: schema
- Workspace: [klav-forward](../../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/setup.rs:25](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-forward/src/setup.rs#L25-L36)
- Handlers: 0 · Callers: 0
- Shape: `{ v: number; pid: number; port: number; sandbox: Bound }`
