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 { AnswerLikes, AnswerLikes$Outbound } from "./answerlikes.js"; import { Collection, Collection$Outbound } from "./collection.js"; import { Document, Document$Outbound } from "./document.js"; import { DocumentSpecUnion, DocumentSpecUnion$Outbound } from "./documentspecunion.js"; import { FacetFilter, FacetFilter$Outbound } from "./facetfilter.js"; import { ObjectPermissions, ObjectPermissions$Outbound } from "./objectpermissions.js"; import { Person, Person$Outbound } from "./person.js"; import { StructuredText, StructuredText$Outbound } from "./structuredtext.js"; import { UserRoleSpecification, UserRoleSpecification$Outbound } from "./userrolespecification.js"; import { Verification, Verification$Outbound } from "./verification.js"; export declare const AnswerSourceType: { readonly Document: "DOCUMENT"; readonly Assistant: "ASSISTANT"; }; export type AnswerSourceType = OpenEnum; export type Answer = { /** * The opaque ID of the Answer. */ id: number; /** * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. */ docId?: string | undefined; question?: string | undefined; /** * Additional ways of phrasing this question. */ questionVariations?: Array | undefined; /** * The plain text answer to the question. */ bodyText?: string | undefined; /** * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. * * @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Answer Boards no longer supported. */ boardId?: number | undefined; /** * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. */ audienceFilters?: Array | undefined; /** * A list of user roles for the answer added by the owner. */ addedRoles?: Array | undefined; /** * A list of user roles for the answer removed by the owner. */ removedRoles?: Array | undefined; /** * A list of roles for this answer explicitly granted by an owner, editor, or admin. */ roles?: Array | undefined; sourceDocumentSpec?: DocumentSpecUnion | undefined; sourceType?: AnswerSourceType | undefined; permissions?: ObjectPermissions | undefined; combinedAnswerText?: StructuredText | undefined; likes?: AnswerLikes | undefined; author?: Person | undefined; /** * The time the answer was created in ISO format (ISO 8601). */ createTime?: Date | undefined; /** * The time the answer was last updated in ISO format (ISO 8601). */ updateTime?: Date | undefined; updatedBy?: Person | undefined; verification?: Verification | undefined; /** * The collections to which the answer belongs. */ collections?: Array | undefined; /** * The document's document_category(.proto). */ documentCategory?: string | undefined; sourceDocument?: Document | undefined; }; /** @internal */ export declare const AnswerSourceType$inboundSchema: z.ZodType; /** @internal */ export declare const AnswerSourceType$outboundSchema: z.ZodType; /** @internal */ export declare const Answer$inboundSchema: z.ZodType; /** @internal */ export type Answer$Outbound = { id: number; docId?: string | undefined; question?: string | undefined; questionVariations?: Array | undefined; bodyText?: string | undefined; boardId?: number | undefined; audienceFilters?: Array | undefined; addedRoles?: Array | undefined; removedRoles?: Array | undefined; roles?: Array | undefined; sourceDocumentSpec?: DocumentSpecUnion$Outbound | undefined; sourceType?: string | undefined; permissions?: ObjectPermissions$Outbound | undefined; combinedAnswerText?: StructuredText$Outbound | undefined; likes?: AnswerLikes$Outbound | undefined; author?: Person$Outbound | undefined; createTime?: string | undefined; updateTime?: string | undefined; updatedBy?: Person$Outbound | undefined; verification?: Verification$Outbound | undefined; collections?: Array | undefined; documentCategory?: string | undefined; sourceDocument?: Document$Outbound | undefined; }; /** @internal */ export declare const Answer$outboundSchema: z.ZodType; export declare function answerToJSON(answer: Answer): string; export declare function answerFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=answer.d.ts.map