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 { FollowupAction, FollowupAction$Outbound } from "./followupaction.js"; import { TextRange, TextRange$Outbound } from "./textrange.js"; /** * Status of backend generating the answer */ export declare const GeneratedQnaStatus: { readonly Computing: "COMPUTING"; readonly Disabled: "DISABLED"; readonly Failed: "FAILED"; readonly NoAnswer: "NO_ANSWER"; readonly Skipped: "SKIPPED"; readonly Streaming: "STREAMING"; readonly Succeeded: "SUCCEEDED"; readonly Timeout: "TIMEOUT"; }; /** * Status of backend generating the answer */ export type GeneratedQnaStatus = OpenEnum; export type GeneratedQna = { /** * Search query rephrased into a question. */ question?: string | undefined; /** * Answer generated for the given query or the generated question. */ answer?: string | undefined; /** * List of all follow-up prompts generated for the given query or the generated question. */ followUpPrompts?: Array | undefined; /** * List of follow-up actions generated for the given query or the generated question. */ followupActions?: Array | undefined; /** * Answer subsections to mark with special formatting (citations, bolding etc) */ ranges?: Array | undefined; /** * Status of backend generating the answer */ status?: GeneratedQnaStatus | undefined; /** * An opaque cursor representing the search request */ cursor?: string | undefined; /** * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. */ trackingToken?: string | undefined; }; /** @internal */ export declare const GeneratedQnaStatus$inboundSchema: z.ZodType; /** @internal */ export declare const GeneratedQnaStatus$outboundSchema: z.ZodType; /** @internal */ export declare const GeneratedQna$inboundSchema: z.ZodType; /** @internal */ export type GeneratedQna$Outbound = { question?: string | undefined; answer?: string | undefined; followUpPrompts?: Array | undefined; followupActions?: Array | undefined; ranges?: Array | undefined; status?: string | undefined; cursor?: string | undefined; trackingToken?: string | undefined; }; /** @internal */ export declare const GeneratedQna$outboundSchema: z.ZodType; export declare function generatedQnaToJSON(generatedQna: GeneratedQna): string; export declare function generatedQnaFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=generatedqna.d.ts.map