import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Document = { /** * The unique identifier of the document */ docId: string; contentChunks: Array; /** * A cursor to fetch the next set of chunks (if available) */ nextCursor?: string | null | undefined; /** * Metadata associated with the document. Accepts key value pairs where the value can be a string, number, boolean, or list of strings. */ metadata?: { [k: string]: any; } | undefined; /** * Title of the document */ title?: string | undefined; /** * URL associated with the document */ sourceUrl?: string | null | undefined; /** * Status of the document (pending, indexing, indexed) */ status?: string | undefined; /** * The URL of the image associated with the document */ imageUrl?: string | null | undefined; /** * The URL of the thumbnail associated with the document */ thumbnailUrl?: string | null | undefined; }; /** @internal */ export declare const Document$inboundSchema: z.ZodType; /** @internal */ export type Document$Outbound = { doc_id: string; content_chunks: Array; next_cursor?: string | null | undefined; metadata?: { [k: string]: any; } | undefined; title?: string | undefined; source_url?: string | null | undefined; status?: string | undefined; image_url?: string | null | undefined; thumbnail_url?: string | null | undefined; }; /** @internal */ export declare const Document$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Document$ { /** @deprecated use `Document$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Document$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Document$Outbound` instead. */ type Outbound = Document$Outbound; } export declare function documentToJSON(document: Document): string; export declare function documentFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=document.d.ts.map