import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AutoChunkingStrategy, AutoChunkingStrategy$Outbound } from "./autochunkingstrategy.js"; import { StaticChunkingStrategy, StaticChunkingStrategy$Outbound } from "./staticchunkingstrategy.js"; export type FileWithMetadataAttributes = string | boolean | number; /** * Optional chunking strategy for this specific file. */ export type FileWithMetadataChunkingStrategy = AutoChunkingStrategy | StaticChunkingStrategy; /** * A file with optional per-file metadata and chunking strategy. */ export type FileWithMetadata = { /** * A File ID that the vector store should use. */ fileId: string; /** * Optional attributes for this specific file. */ attributes?: { [k: string]: string | boolean | number; } | undefined; /** * Optional chunking strategy for this specific file. */ chunkingStrategy?: AutoChunkingStrategy | StaticChunkingStrategy | undefined; }; /** @internal */ export declare const FileWithMetadataAttributes$inboundSchema: z.ZodType; /** @internal */ export type FileWithMetadataAttributes$Outbound = string | boolean | number; /** @internal */ export declare const FileWithMetadataAttributes$outboundSchema: z.ZodType; export declare function fileWithMetadataAttributesToJSON(fileWithMetadataAttributes: FileWithMetadataAttributes): string; export declare function fileWithMetadataAttributesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const FileWithMetadataChunkingStrategy$inboundSchema: z.ZodType; /** @internal */ export type FileWithMetadataChunkingStrategy$Outbound = AutoChunkingStrategy$Outbound | StaticChunkingStrategy$Outbound; /** @internal */ export declare const FileWithMetadataChunkingStrategy$outboundSchema: z.ZodType; export declare function fileWithMetadataChunkingStrategyToJSON(fileWithMetadataChunkingStrategy: FileWithMetadataChunkingStrategy): string; export declare function fileWithMetadataChunkingStrategyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const FileWithMetadata$inboundSchema: z.ZodType; /** @internal */ export type FileWithMetadata$Outbound = { file_id: string; attributes?: { [k: string]: string | boolean | number; } | undefined; chunking_strategy?: AutoChunkingStrategy$Outbound | StaticChunkingStrategy$Outbound | undefined; }; /** @internal */ export declare const FileWithMetadata$outboundSchema: z.ZodType; export declare function fileWithMetadataToJSON(fileWithMetadata: FileWithMetadata): string; export declare function fileWithMetadataFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=filewithmetadata.d.ts.map