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"; import { ChunkingStrategy, ChunkingStrategy$Outbound } from "./chunkingstrategy.js"; import { VectorStoreFileError, VectorStoreFileError$Outbound } from "./vectorstorefileerror.js"; /** * The status of the vector store file. 'in_progress' means currently processing, 'completed' indicates the file is ready for use, 'cancelled' means processing was cancelled, 'failed' means an error occurred. */ export declare const VectorStoreFileStatus: { readonly InProgress: "in_progress"; readonly Completed: "completed"; readonly Cancelled: "cancelled"; readonly Failed: "failed"; }; /** * The status of the vector store file. 'in_progress' means currently processing, 'completed' indicates the file is ready for use, 'cancelled' means processing was cancelled, 'failed' means an error occurred. */ export type VectorStoreFileStatus = ClosedEnum; export type VectorStoreFileAttributes = string | boolean | number; /** * A list of files attached to a vector store. */ export type VectorStoreFile = { /** * The identifier, which can be referenced in API endpoints. */ id: string; /** * The object type, which is always 'vector_store.file'. */ object: "vector_store.file"; /** * The total vector store usage in bytes. Note that this may be different from the original file size. */ usageBytes: number; /** * The Unix timestamp (in seconds) for when the vector store file was created. */ createdAt: number; /** * The ID of the vector store that the File is attached to. */ vectorStoreId: string; /** * The name of the underlying file. Extension field not present in the OpenAI API; omitted on create responses. */ filename?: string | undefined; /** * The status of the vector store file. 'in_progress' means currently processing, 'completed' indicates the file is ready for use, 'cancelled' means processing was cancelled, 'failed' means an error occurred. */ status: VectorStoreFileStatus; /** * The last error associated with this vector store file. Will be null if there are no errors. */ lastError: VectorStoreFileError | null; chunkingStrategy?: ChunkingStrategy | undefined; /** * Set of 16 key-value pairs that can be attached to an object. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers. */ attributes?: { [k: string]: string | boolean | number; } | undefined; }; /** @internal */ export declare const VectorStoreFileStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const VectorStoreFileStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const VectorStoreFileAttributes$inboundSchema: z.ZodType; /** @internal */ export type VectorStoreFileAttributes$Outbound = string | boolean | number; /** @internal */ export declare const VectorStoreFileAttributes$outboundSchema: z.ZodType; export declare function vectorStoreFileAttributesToJSON(vectorStoreFileAttributes: VectorStoreFileAttributes): string; export declare function vectorStoreFileAttributesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const VectorStoreFile$inboundSchema: z.ZodType; /** @internal */ export type VectorStoreFile$Outbound = { id: string; object: "vector_store.file"; usage_bytes: number; created_at: number; vector_store_id: string; filename?: string | undefined; status: string; last_error: VectorStoreFileError$Outbound | null; chunking_strategy?: ChunkingStrategy$Outbound | undefined; attributes?: { [k: string]: string | boolean | number; } | undefined; }; /** @internal */ export declare const VectorStoreFile$outboundSchema: z.ZodType; export declare function vectorStoreFileToJSON(vectorStoreFile: VectorStoreFile): string; export declare function vectorStoreFileFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=vectorstorefile.d.ts.map