Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/channels / / ChannelAttachment
Interface: ChannelAttachment
Defined in: packages/channels/src/spi.ts:64
A non-text part attached to an inbound message. The adapter resolves vendor handles into either an inline body or a URL it guarantees the application can fetch.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
data? | readonly | Uint8Array<ArrayBufferLike> | Inline body (small payloads). | packages/channels/src/spi.ts:68 |
filename? | readonly | string | - | packages/channels/src/spi.ts:71 |
kind | readonly | "image" | "audio" | "file" | - | packages/channels/src/spi.ts:65 |
mimeType? | readonly | string | - | packages/channels/src/spi.ts:66 |
sizeBytes? | readonly | number | - | packages/channels/src/spi.ts:72 |
url? | readonly | string | Remote reference (large payloads); adapter-scoped semantics. | packages/channels/src/spi.ts:70 |