Skip to content

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

PropertyModifierTypeDescriptionDefined in
data?readonlyUint8Array<ArrayBufferLike>Inline body (small payloads).packages/channels/src/spi.ts:68
filename?readonlystring-packages/channels/src/spi.ts:71
kindreadonly"image" | "audio" | "file"-packages/channels/src/spi.ts:65
mimeType?readonlystring-packages/channels/src/spi.ts:66
sizeBytes?readonlynumber-packages/channels/src/spi.ts:72
url?readonlystringRemote reference (large payloads); adapter-scoped semantics.packages/channels/src/spi.ts:70