/** * Generated by orval v8.19.0 🍺 * Do not edit manually. * Webitel API * OpenAPI spec version: 24.04.0 */ import type { ThreadManagementSearchTypesItem } from './threadManagementSearchTypesItem.zod'; export type ThreadManagementSearchParams = { /** * List of fields that should be returned in the response. * If empty, a default set of fields is returned. * Used for response optimization. */ fields?: string[]; /** * Filter by specific thread IDs. */ ids?: string[]; /** * Filter threads by their kinds. * UNKNOWN (0) is not allowed. * * - UNKNOWN: Unknown or unspecified thread type. * Must not be used in valid requests. * - DIRECT: One-to-one private thread between two users. * - GROUP: Group thread with multiple members. * - CHANNEL: Channel-style thread (broadcast or topic based communication). */ types?: ThreadManagementSearchTypesItem[]; /** * Full-text search query. * Typically applied to subject. */ q?: string; /** * Maximum number of threads to return per page. * Must be greater than 0 and less than or equal to 100. */ size?: number; /** * Sorting field. * Optional "+" or "-" prefix indicates ascending or descending order. * Example: "-created_at", "subject" */ sort?: string; /** * Page number (1-based). */ page?: number; /** * Filter threads by participant contact IDs. */ contactIds?: string[]; };