---
url: 'https://adk.nht.io/api/@nhtio/adk/common/interfaces/SerializedMedia.md'
description: >-
  Shape returned by [`Media.toJSON`](https://adk.nht.io/api/@nhtio/adk/common/classes/Media#tojson). Metadata-only — bytes and the reader
  are stripped so naive event/log serialisation never materialises bytes.
---

# Interface: SerializedMedia

Defined in: [lib/classes/media.ts:182](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L182)

Shape returned by [Media.toJSON](../classes/Media.md#tojson). Metadata-only — bytes and the reader are stripped so
naive event/log serialisation never materialises bytes.

## Properties

| Property                                              | Type                                                                                                                                             | Defined in                                                                                                |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- |
|  `byteLength?`        | `number`                                                                                                                                         | [lib/classes/media.ts:191](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L191) |
|  `filename`             | `string`                                                                                                                                         | [lib/classes/media.ts:186](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L186) |
|  `id`                         | `string`                                                                                                                                         | [lib/classes/media.ts:183](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L183) |
|  `kind`                     | `"audio"` | `"document"` | `"image"` | `"video"`                                                                                              | [lib/classes/media.ts:184](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L184) |
|  `mimeType`             | `string`                                                                                                                                         | [lib/classes/media.ts:185](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L185) |
|  `modalityHazard` | `"inert"` | `"extractable-instructions"` | `"opaque-perceptual"`                                                                               | [lib/classes/media.ts:189](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L189) |
|  `source?`                | `string`                                                                                                                                         | [lib/classes/media.ts:187](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L187) |
|  `stash`                   | [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)<`string`, [`MediaStashEntry`](MediaStashEntry.md)> | [lib/classes/media.ts:190](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L190) |
|  `trustTier`           | `"first-party"` | `"third-party-public"` | `"third-party-private"`                                                                             | [lib/classes/media.ts:188](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/media.ts#L188) |
