@squidcloud/client
    Preparing search index...

    Interface BulkIngestionUpsertContextsResponse

    Response for a staged bulk-ingestion request.

    interface BulkIngestionUpsertContextsResponse {
        contextIds: string[];
        duplicates?: UpsertContextStatusError[];
        jobId: string;
    }
    Index
    contextIds: string[]

    Context ids assigned to the staged contexts, in the same order as the request's contexts array. A context rejected as a duplicate still occupies its slot here, so this stays index-aligned with the request; cross-reference duplicates by contextId to tell which ids were actually staged.

    Contexts rejected because the knowledge base already holds identical content — either stored under an existing context or accepted earlier in this same call. Absent when nothing was rejected.

    Same shape and errorCode: 'DUPLICATE_CONTENT' the synchronous upsertContexts returns, so a caller handles a duplicate identically on both lanes. These contexts are NOT part of the job: they are not extracted, not staged, and never appear in its per-file statuses.

    jobId: string

    The id of the staged bulk-ingestion job.