import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { FacetFilter } from "./facetfilter.js"; import { FacetResult } from "./facetresult.js"; import { GeneratedQna } from "./generatedqna.js"; import { GleanDataError } from "./gleandataerror.js"; import { ResultsDescription } from "./resultsdescription.js"; import { ResultTab } from "./resulttab.js"; import { SearchResponseMetadata } from "./searchresponsemetadata.js"; import { SearchResult } from "./searchresult.js"; import { SessionInfo } from "./sessioninfo.js"; import { StructuredResult } from "./structuredresult.js"; export type SearchResponse = { /** * A token that should be passed for additional requests related to this request (such as more results requests). */ trackingToken?: string | undefined; sessionInfo?: SessionInfo | undefined; results?: Array | undefined; structuredResults?: Array | undefined; generatedQnaResult?: GeneratedQna | undefined; gleanDataError?: GleanDataError | undefined; /** * A platform-generated request ID to correlate backend logs. */ requestID?: string | undefined; /** * Time in milliseconds the backend took to respond to the request. */ backendTimeMillis?: number | undefined; /** * List of experiment ids for the corresponding request. */ experimentIds?: Array | undefined; metadata?: SearchResponseMetadata | undefined; facetResults?: Array | undefined; /** * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. */ resultTabs?: Array | undefined; /** * The unique IDs of the result tabs to which this response belongs. */ resultTabIds?: Array | undefined; resultsDescription?: ResultsDescription | undefined; /** * The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. */ rewrittenFacetFilters?: Array | undefined; /** * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. */ cursor?: string | undefined; /** * Whether more results are available. Use cursor to retrieve them. */ hasMoreResults?: boolean | undefined; }; /** @internal */ export declare const SearchResponse$inboundSchema: z.ZodType; export declare function searchResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=searchresponse.d.ts.map