import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConnectorType } from "./connectortype.js"; import { DocumentContent, DocumentContent$Outbound } from "./documentcontent.js"; import { DocumentMetadata, DocumentMetadata$Outbound } from "./documentmetadata.js"; import { DocumentSection, DocumentSection$Outbound } from "./documentsection.js"; export type Document = { /** * The Glean Document ID. */ id?: string | undefined; /** * The app or other repository type from which the document was extracted */ datasource?: string | undefined; /** * The source from which document content was pulled, e.g. an API crawl or browser history */ connectorType?: ConnectorType | undefined; /** * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). */ docType?: string | undefined; content?: DocumentContent | undefined; containerDocument?: Document | undefined; parentDocument?: Document | undefined; /** * The title of the document. */ title?: string | undefined; /** * A permalink for the document. */ url?: string | undefined; metadata?: DocumentMetadata | undefined; /** * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. */ sections?: Array | undefined; }; /** @internal */ export declare const Document$inboundSchema: z.ZodType; /** @internal */ export type Document$Outbound = { id?: string | undefined; datasource?: string | undefined; connectorType?: string | undefined; docType?: string | undefined; content?: DocumentContent$Outbound | undefined; containerDocument?: Document$Outbound | undefined; parentDocument?: Document$Outbound | undefined; title?: string | undefined; url?: string | undefined; metadata?: DocumentMetadata$Outbound | undefined; sections?: Array | undefined; }; /** @internal */ export declare const Document$outboundSchema: z.ZodType; export declare function documentToJSON(document: Document): string; export declare function documentFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=document.d.ts.map