import * as z from "zod/v3"; import { Document, Document$Outbound } from "./document.js"; import { SearchRequestInputDetails, SearchRequestInputDetails$Outbound } from "./searchrequestinputdetails.js"; import { SearchRequestOptions, SearchRequestOptions$Outbound } from "./searchrequestoptions.js"; import { SessionInfo, SessionInfo$Outbound } from "./sessioninfo.js"; export type SearchRequest = { /** * The ISO 8601 timestamp associated with the client request. */ timestamp?: Date | undefined; /** * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. */ trackingToken?: string | undefined; sessionInfo?: SessionInfo | undefined; sourceDocument?: Document | undefined; /** * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. */ pageSize?: number | undefined; /** * Hint to the server about how many characters long a snippet may be. Server may return less or more. */ maxSnippetSize?: number | undefined; /** * The search terms. */ query: string; /** * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. */ cursor?: string | undefined; /** * The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. */ resultTabIds?: Array | undefined; inputDetails?: SearchRequestInputDetails | undefined; requestOptions?: SearchRequestOptions | undefined; /** * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. */ timeoutMillis?: number | undefined; /** * Whether or not to disable spellcheck. */ disableSpellcheck?: boolean | undefined; }; /** @internal */ export type SearchRequest$Outbound = { timestamp?: string | undefined; trackingToken?: string | undefined; sessionInfo?: SessionInfo$Outbound | undefined; sourceDocument?: Document$Outbound | undefined; pageSize?: number | undefined; maxSnippetSize?: number | undefined; query: string; cursor?: string | undefined; resultTabIds?: Array | undefined; inputDetails?: SearchRequestInputDetails$Outbound | undefined; requestOptions?: SearchRequestOptions$Outbound | undefined; timeoutMillis?: number | undefined; disableSpellcheck?: boolean | undefined; }; /** @internal */ export declare const SearchRequest$outboundSchema: z.ZodType; export declare function searchRequestToJSON(searchRequest: SearchRequest): string; //# sourceMappingURL=searchrequest.d.ts.map