import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Answer, Answer$Outbound } from "./answer.js"; import { AppResult, AppResult$Outbound } from "./appresult.js"; import { ChatMetadata, ChatMetadata$Outbound } from "./chatmetadata.js"; import { Code, Code$Outbound } from "./code.js"; import { Collection, Collection$Outbound } from "./collection.js"; import { CustomEntity, CustomEntity$Outbound } from "./customentity.js"; import { Customer, Customer$Outbound } from "./customer.js"; import { Disambiguation, Disambiguation$Outbound } from "./disambiguation.js"; import { Document, Document$Outbound } from "./document.js"; import { ExtractedQnA, ExtractedQnA$Outbound } from "./extractedqna.js"; import { GeneratedQna, GeneratedQna$Outbound } from "./generatedqna.js"; import { Meeting, Meeting$Outbound } from "./meeting.js"; import { Person, Person$Outbound } from "./person.js"; import { QuerySuggestionList, QuerySuggestionList$Outbound } from "./querysuggestionlist.js"; import { RelatedDocuments, RelatedDocuments$Outbound } from "./relateddocuments.js"; import { RelatedQuestion, RelatedQuestion$Outbound } from "./relatedquestion.js"; import { SearchResultSnippet, SearchResultSnippet$Outbound } from "./searchresultsnippet.js"; import { Shortcut, Shortcut$Outbound } from "./shortcut.js"; import { Team, Team$Outbound } from "./team.js"; /** * The level of visual distinction that should be given to a result. */ export declare const Prominence: { /** * A high-confidence result that should feature prominently on the page. */ readonly Hero: "HERO"; /** * May not be the best result but should be given additional visual distinction. */ readonly Promoted: "PROMOTED"; /** * Should not be distinct from any other results. */ readonly Standard: "STANDARD"; }; /** * The level of visual distinction that should be given to a result. */ export type Prominence = OpenEnum; /** * Source context for this result. Possible values depend on the result type. */ export declare const StructuredResultSource: { readonly ExpertDetection: "EXPERT_DETECTION"; readonly EntityNlq: "ENTITY_NLQ"; readonly CalendarEvent: "CALENDAR_EVENT"; readonly Agent: "AGENT"; }; /** * Source context for this result. Possible values depend on the result type. */ export type StructuredResultSource = OpenEnum; /** * A single object that can support any object in the work graph. Only a single object will be populated. */ export type StructuredResult = { document?: Document | undefined; person?: Person | undefined; customer?: Customer | undefined; team?: Team | undefined; customEntity?: CustomEntity | undefined; answer?: Answer | undefined; generatedQna?: GeneratedQna | undefined; extractedQnA?: ExtractedQnA | undefined; meeting?: Meeting | undefined; app?: AppResult | undefined; collection?: Collection | undefined; code?: Code | undefined; shortcut?: Shortcut | undefined; querySuggestions?: QuerySuggestionList | undefined; /** * Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. */ chat?: ChatMetadata | undefined; /** * A list of documents related to this structured result. */ relatedDocuments?: Array | undefined; relatedQuestion?: RelatedQuestion | undefined; /** * A disambiguation between multiple entities with the same name */ disambiguation?: Disambiguation | undefined; /** * Any snippets associated to the populated object. */ snippets?: Array | undefined; /** * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. */ trackingToken?: string | undefined; /** * The level of visual distinction that should be given to a result. */ prominence?: Prominence | undefined; /** * Source context for this result. Possible values depend on the result type. */ source?: StructuredResultSource | undefined; }; /** @internal */ export declare const Prominence$inboundSchema: z.ZodType; /** @internal */ export declare const Prominence$outboundSchema: z.ZodType; /** @internal */ export declare const StructuredResultSource$inboundSchema: z.ZodType; /** @internal */ export declare const StructuredResultSource$outboundSchema: z.ZodType; /** @internal */ export declare const StructuredResult$inboundSchema: z.ZodType; /** @internal */ export type StructuredResult$Outbound = { document?: Document$Outbound | undefined; person?: Person$Outbound | undefined; customer?: Customer$Outbound | undefined; team?: Team$Outbound | undefined; customEntity?: CustomEntity$Outbound | undefined; answer?: Answer$Outbound | undefined; generatedQna?: GeneratedQna$Outbound | undefined; extractedQnA?: ExtractedQnA$Outbound | undefined; meeting?: Meeting$Outbound | undefined; app?: AppResult$Outbound | undefined; collection?: Collection$Outbound | undefined; code?: Code$Outbound | undefined; shortcut?: Shortcut$Outbound | undefined; querySuggestions?: QuerySuggestionList$Outbound | undefined; chat?: ChatMetadata$Outbound | undefined; relatedDocuments?: Array | undefined; relatedQuestion?: RelatedQuestion$Outbound | undefined; disambiguation?: Disambiguation$Outbound | undefined; snippets?: Array | undefined; trackingToken?: string | undefined; prominence?: string | undefined; source?: string | undefined; }; /** @internal */ export declare const StructuredResult$outboundSchema: z.ZodType; export declare function structuredResultToJSON(structuredResult: StructuredResult): string; export declare function structuredResultFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=structuredresult.d.ts.map