---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/type-aliases/GuestToHostEnvelope.md
description: Guest → host envelopes.
---

# Type Alias: GuestToHostEnvelope

```ts
type GuestToHostEnvelope =
  | {
      encoderAvailable: boolean;
      t: "ready";
    }
  | {
      id: string;
      ok: true;
      t: "result";
      value: WireValue;
    }
  | {
      error: WireError;
      id: string;
      ok: false;
      t: "result";
    }
  | {
      delta: WireValue;
      id: string;
      t: "stream:delta";
    }
  | {
      id: string;
      t: "stream:end";
    }
  | {
      error: WireError;
      id: string;
      t: "stream:error";
    }
  | {
      channel: string;
      payload: WireValue;
      t: "event";
    };
```

Defined in: [src/batteries/isolation/protocol.ts:63](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/protocol.ts#L63)

Guest → host envelopes.
