Skip to main content

Interface: ChannelMessagesResponse

Defined in: packages/sdk/src/types/generated/channel_message.ts:63

A bounded page of ghost messages, oldest first.

Not a PaginatedResponse: there is no meaningful total here. The feed is two heterogeneous sources merged inside a time window, so counting it would mean running both queries unbounded — the exact thing the window exists to prevent. Callers page backwards with before.

Properties

hasMore

hasMore: boolean

Defined in: packages/sdk/src/types/generated/channel_message.ts:66

More items exist inside the requested window, older than the earliest returned. Page backwards by passing that item's createdAt as before.


items

items: ChannelMessageResponse[]

Defined in: packages/sdk/src/types/generated/channel_message.ts:64


reason?

optional reason: ChannelMessagesUnavailableReason | null

Defined in: packages/sdk/src/types/generated/channel_message.ts:68

Set only when items is empty by construction rather than because nothing was found: the chat's channel is not single-stream, it has no workspace phone number, or its member has no phone on file. Null on an ordinary empty result.