@squidcloud/client
    Preparing search index...

    Interface UpsertContextStatusError

    Status of an individual context item after it failed to upsert.

    Contains the error message for why the upsert failed.

    interface UpsertContextStatusError {
        contextId: string;
        duplicateOf?: UpsertContextDuplicateOf;
        errorCode?: "DUPLICATE_CONTENT";
        errorMessage: string;
        name: string;
        status: "error";
    }

    Hierarchy (View Summary)

    Index

    Properties

    contextId: string

    The unique identifier of the context item.

    The existing context this request duplicated, when errorCode is DUPLICATE_CONTENT. Lets a caller point the user at where the original already lives (e.g. its folder) instead of only reporting the rejection. reference/folderPath are present when the existing context carries them.

    errorCode?: "DUPLICATE_CONTENT"

    Machine-readable code for the failure, when one applies.

    errorMessage: string

    Reason the upsert failed.

    name: string

    The name of the context item, typically the title or filename.

    status: "error"

    Whether the context upsert was successful or got an error.