import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The desired media type of the content to return described as a mime type. An error will be returned if the requested media type is not supported for the chunk's document type. */ export declare const MediaType: { readonly TextPlain: "text/plain"; readonly AudioMpeg: "audio/mpeg"; readonly VideoMp4: "video/mp4"; readonly ImageWebp: "image/webp"; readonly ImageHeic: "image/heic"; readonly ImageBmp: "image/bmp"; readonly ImagePng: "image/png"; readonly ImageJpeg: "image/jpeg"; readonly ImageTiff: "image/tiff"; }; /** * The desired media type of the content to return described as a mime type. An error will be returned if the requested media type is not supported for the chunk's document type. */ export type MediaType = ClosedEnum; export type GetDocumentChunkContentRequest = { /** * The id of the document. */ documentId: string; /** * The ID of the chunk. */ chunkId: string; /** * The desired media type of the content to return described as a mime type. An error will be returned if the requested media type is not supported for the chunk's document type. */ mediaType?: MediaType | null | undefined; /** * Whether to return the content as a file download or a raw stream. If set to `true`, the content will be returned as a named file for download. */ download?: boolean | undefined; /** * An optional partition to scope the request to. If omitted, accounts created after 1/9/2025 will have the request scoped to the default partition, while older accounts will have the request scoped to all partitions. Older accounts may opt in to strict partition scoping by contacting support@ragie.ai. Older accounts using the partitions feature are strongly recommended to scope the request to a partition. */ partition?: string | null | undefined; range?: string | null | undefined; }; /** @internal */ export declare const MediaType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const MediaType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetDocumentChunkContentRequest$inboundSchema: z.ZodType; /** @internal */ export type GetDocumentChunkContentRequest$Outbound = { document_id: string; chunk_id: string; media_type?: string | null | undefined; download: boolean; partition?: string | null | undefined; range?: string | null | undefined; }; /** @internal */ export declare const GetDocumentChunkContentRequest$outboundSchema: z.ZodType; export declare function getDocumentChunkContentRequestToJSON(getDocumentChunkContentRequest: GetDocumentChunkContentRequest): string; export declare function getDocumentChunkContentRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getdocumentchunkcontent.d.ts.map