import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type IndexTextRequest = { /** * The name of the index to add the document to */ indexName: string; /** * The ID of the document. If not provided, a unique document ID will be automatically generated by the server. * * @remarks */ docId?: string | undefined; /** * The text content of the document to be indexed */ content: string; /** * Title of the document to be indexed */ title?: string | undefined; /** * URL associated with the document to be indexed */ url?: string | undefined; /** * The ID of the file. If not provided, a unique file ID will be automatically generated by the server */ fileId?: string | 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; }; /** @internal */ export declare const IndexTextRequest$inboundSchema: z.ZodType; /** @internal */ export type IndexTextRequest$Outbound = { index_name: string; doc_id?: string | undefined; content: string; title?: string | undefined; url?: string | undefined; file_id?: string | undefined; metadata?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const IndexTextRequest$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 IndexTextRequest$ { /** @deprecated use `IndexTextRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IndexTextRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IndexTextRequest$Outbound` instead. */ type Outbound = IndexTextRequest$Outbound; } export declare function indexTextRequestToJSON(indexTextRequest: IndexTextRequest): string; export declare function indexTextRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=indextextrequest.d.ts.map