Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Type Alias BatchUpsertDisposition

    BatchUpsertDisposition: "rejected" | "unsent" | string & {}

    How a batch that did not succeed ended up in BatchUpsertDocumentsResponse.errors.

    • rejected — the request was sent and came back an error. The write may still have landed, since a response can be lost after Pinecone applied it; resending is safe because an upsert is idempotent by _id.
    • unsent — the batch was never sent, because totalTimeout elapsed or because an earlier batch failed under onError: 'throw'.

    More values may be added, so the union stays open: do not match on it exhaustively.