---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/type-aliases/HostToGuestEnvelope.md
description: Host → guest envelopes.
---

# Type Alias: HostToGuestEnvelope

```ts
type HostToGuestEnvelope =
  | {
      args: WireValue[];
      id: string;
      method: string;
      t: "call";
    }
  | {
      id: string;
      t: "abort";
    }
  | {
      args: WireValue[];
      id: string;
      stream: string;
      t: "stream:start";
    }
  | {
      id: string;
      reason?: WireValue;
      t: "stream:cancel";
    }
  | {
      t: "shutdown";
    };
```

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

Host → guest envelopes.
