import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { DocumentSpecUnion, DocumentSpecUnion$Outbound } from "./documentspecunion.js"; import { FacetFilter, FacetFilter$Outbound } from "./facetfilter.js"; import { StructuredTextMutableProperties, StructuredTextMutableProperties$Outbound } from "./structuredtextmutableproperties.js"; import { UserRoleSpecification, UserRoleSpecification$Outbound } from "./userrolespecification.js"; export declare const EditAnswerRequestSourceType: { readonly Document: "DOCUMENT"; readonly Assistant: "ASSISTANT"; }; export type EditAnswerRequestSourceType = ClosedEnum; export type EditAnswerRequest = { /** * 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?: EditAnswerRequestSourceType | undefined; /** * IDs of Collections to which a document is added. */ addedCollections?: Array | undefined; /** * IDs of Collections from which a document is removed. */ removedCollections?: Array | undefined; combinedAnswerText?: StructuredTextMutableProperties | undefined; }; /** @internal */ export declare const EditAnswerRequestSourceType$outboundSchema: z.ZodNativeEnum; /** @internal */ export type EditAnswerRequest$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; addedCollections?: Array | undefined; removedCollections?: Array | undefined; combinedAnswerText?: StructuredTextMutableProperties$Outbound | undefined; }; /** @internal */ export declare const EditAnswerRequest$outboundSchema: z.ZodType; export declare function editAnswerRequestToJSON(editAnswerRequest: EditAnswerRequest): string; //# sourceMappingURL=editanswerrequest.d.ts.map