threads.search
Threads whose conversation text contains a query (DMN-076).
Params: SearchThreadsParams
Section titled “Params: SearchThreadsParams”/** `threads.search` params (DMN-076). */export type SearchThreadsParams = { /** Case-insensitive substring of the conversation text; shorter than 2 characters finds nothing. */ query: string;};Result: ThreadSearchResults
Section titled “Result: ThreadSearchResults”/** `threads.search` result: most recently updated threads first, at most 200. */export type ThreadSearchResults = { results: ThreadSearchResult[];};Types they use
Section titled “Types they use”/** A thread whose conversation contains the query. */export type ThreadSearchResult = { /** A short excerpt around the first match. */ snippet: string; threadId: string;};