import { BatchReference as BatchReferenceREST } from '../../openapi/types.js'; import { BatchObject as BatchObjectGRPC } from '../../proto/v1/batch.js'; import { NonReferenceInputs, ReferenceInputs, Vectors } from '../index.js'; export type BatchObjectsReturn = { allResponses: (string | ErrorObject)[]; elapsedSeconds: number; errors: Record>; hasErrors: boolean; uuids: Record; }; export type ErrorObject = { code?: number; message: string; object: BatchObject; originalUuid?: string; }; export type BatchObject = { collection: string; properties?: NonReferenceInputs; references?: ReferenceInputs; id?: string; vectors?: number[] | Vectors; tenant?: string; }; export type BatchObjects = { batch: BatchObject[]; mapped: BatchObjectGRPC[]; }; export type BatchReference = { fromObjectCollection: string; fromObjectUuid: string; fromPropertyName: string; toObjectCollection?: string; toObjectUuid: string; tenant?: string; }; export type ErrorReference = { message: string; reference: BatchReferenceREST; }; export type BatchReferencesReturn = { elapsedSeconds: number; errors: Record; hasErrors: boolean; };