diff --git a/src/channel.ts b/src/channel.ts index 023956250..538c6c42a 100644 --- a/src/channel.ts +++ b/src/channel.ts @@ -60,6 +60,7 @@ import { AscDesc, PartialUpdateMemberAPIResponse, AIState, + MessageOptions, } from './types'; import { Role } from './permissions'; import { DEFAULT_QUERY_CHANNEL_MESSAGE_LIST_PAGE_SIZE } from './constants'; @@ -237,6 +238,7 @@ export class Channel; + message_options?: MessageOptions; query?: string; } = {}, ) { diff --git a/src/types.ts b/src/types.ts index a2405b966..2bd1cd5d0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1713,6 +1713,10 @@ export type MessageFilters; +export type MessageOptions = { + include_thread_participants?: boolean; +}; + export type PrimitiveFilter = ObjectType | null; export type QueryFilter = NonNullable extends string | number | boolean @@ -2738,6 +2742,7 @@ export type SearchPayload; message_filter_conditions?: MessageFilters; + message_options?: MessageOptions; query?: string; sort?: Array<{ direction: AscDesc;