// GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { SortDirection } from "./SortDirection"; import type { ThreadSearchSortKey } from "./ThreadSearchSortKey"; import type { ThreadSourceKind } from "./ThreadSourceKind"; export type ThreadSearchParams = { /** * Opaque pagination cursor returned by a previous call. */ cursor?: string | null, /** * Optional page size; defaults to a reasonable server-side value. */ limit?: number | null, /** * Optional sort key; defaults to created_at. */ sortKey?: ThreadSearchSortKey | null, /** * Optional sort direction; defaults to descending (newest first). */ sortDirection?: SortDirection | null, /** * Optional source filter; when set, only sessions from these source kinds * are returned. When omitted or empty, defaults to interactive sources. */ sourceKinds?: Array | null, /** * Optional archived filter; when set to true, only archived threads are returned. * If false or null, only non-archived threads are returned. */ archived?: boolean | null, /** * Required substring/full-text query for thread search. */ searchTerm: string, };