Sanity Library Reference Docs
    Preparing search index...

    One row of the instance's idempotency ledger — a caller-supplied idempotencyKey a state-changing verb already committed under. Recorded in the same CAS commit as the operation it dedupes, so "the op applied" and "the key is recorded" can never diverge. Rows expire at expiresAt and are pruned lazily whenever a later keyed operation commits.

    interface ProcessedRequest {
        _key: string;
        _type: "processedRequest";
        expiresAt: string;
        key: string;
        op: string;
        processedAt: string;
    }
    Index

    Properties

    _key: string
    _type: "processedRequest"
    expiresAt: string
    key: string

    The caller-supplied idempotency key.

    op: string

    The verb the key was processed under. Reusing a live key on a different verb is a caller bug and throws.

    processedAt: string