import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type FileT = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; export type IndexFileRequest = { /** * The name of the index to which the document will be added */ indexName: string; /** * Text-based files and PDF files are supported. */ file: FileT | Blob; /** * The ID of the document. If not provided, a unique document ID will be automatically generated by the server */ docId?: string | undefined; /** * Title of the document to be indexed */ title?: string | undefined; /** * URL associated with the document to be indexed */ url?: string | undefined; /** * Metadata associated with the document as JSON string. Accepts key value pairs where the value can be a string, number, boolean, or list of strings. */ metadata?: string | undefined; }; /** @internal */ export declare const FileT$inboundSchema: z.ZodType; /** @internal */ export type FileT$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const FileT$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 FileT$ { /** @deprecated use `FileT$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `FileT$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `FileT$Outbound` instead. */ type Outbound = FileT$Outbound; } export declare function fileToJSON(fileT: FileT): string; export declare function fileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const IndexFileRequest$inboundSchema: z.ZodType; /** @internal */ export type IndexFileRequest$Outbound = { index_name: string; file: FileT$Outbound | Blob; doc_id?: string | undefined; title?: string | undefined; url?: string | undefined; metadata?: string | undefined; }; /** @internal */ export declare const IndexFileRequest$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 IndexFileRequest$ { /** @deprecated use `IndexFileRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IndexFileRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IndexFileRequest$Outbound` instead. */ type Outbound = IndexFileRequest$Outbound; } export declare function indexFileRequestToJSON(indexFileRequest: IndexFileRequest): string; export declare function indexFileRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=indexfilerequest.d.ts.map