import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateDocumentRawParamsMetadata = string | number | number | boolean | Array; /** * Document data in a text or JSON format. */ export type Data = string | { [k: string]: any; }; export type CreateDocumentRawParams = { /** * An optional name for the document. If set, the document will have this name. Otherwise it will default to the current timestamp. */ name?: string | undefined; /** * Metadata for the document. Keys must be strings. Values may be strings, numbers, booleans, or lists of strings. Numbers may be integers or floating point and will be converted to 64 bit floating point. 1000 total values are allowed. Each item in an array counts towards the total. The following keys are reserved for internal use: `document_id`, `document_type`, `document_source`, `document_name`, `document_uploaded_at`, `start_time`, `end_time`, `chunk_content_type`. */ metadata?: { [k: string]: string | number | number | boolean | Array; } | undefined; /** * An optional identifier for the document. A common value might be an id in an external system or the URL where the source file may be found. */ externalId?: string | null | undefined; /** * An optional partition identifier. Documents can be scoped to a partition. Partitions must be lowercase alphanumeric and may only include the special characters `_` and `-`. A partition is created any time a document is created. */ partition?: string | undefined; /** * Document data in a text or JSON format. */ data: string | { [k: string]: any; }; }; /** @internal */ export declare const CreateDocumentRawParamsMetadata$inboundSchema: z.ZodType; /** @internal */ export type CreateDocumentRawParamsMetadata$Outbound = string | number | number | boolean | Array; /** @internal */ export declare const CreateDocumentRawParamsMetadata$outboundSchema: z.ZodType; export declare function createDocumentRawParamsMetadataToJSON(createDocumentRawParamsMetadata: CreateDocumentRawParamsMetadata): string; export declare function createDocumentRawParamsMetadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Data$inboundSchema: z.ZodType; /** @internal */ export type Data$Outbound = string | { [k: string]: any; }; /** @internal */ export declare const Data$outboundSchema: z.ZodType; export declare function dataToJSON(data: Data): string; export declare function dataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateDocumentRawParams$inboundSchema: z.ZodType; /** @internal */ export type CreateDocumentRawParams$Outbound = { name?: string | undefined; metadata?: { [k: string]: string | number | number | boolean | Array; } | undefined; external_id?: string | null | undefined; partition?: string | undefined; data: string | { [k: string]: any; }; }; /** @internal */ export declare const CreateDocumentRawParams$outboundSchema: z.ZodType; export declare function createDocumentRawParamsToJSON(createDocumentRawParams: CreateDocumentRawParams): string; export declare function createDocumentRawParamsFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createdocumentrawparams.d.ts.map