Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias DatasetResponse

    The body of /.spool/dataset. A patch has reset: false and proof. A seed, or a reset, has reset: true and one page of rows in puts: a page with next set is followed by a request with after=<next>, and the last page has no next and carries proof. A page after the first echoes that after.

    type DatasetResponse = {
        after?: string;
        cursor: number;
        deletes: DatasetDelete[];
        name: string;
        next?: string;
        proof?: SetProof;
        protocol: typeof PROTOCOL_VERSION;
        puts: DatasetPut[];
        reset: boolean;
        schema: string;
    }
    Index
    after?: string

    on a seed page after the first: the key the request paged from

    cursor: number

    the cursor the response brings a device to

    deletes: DatasetDelete[]
    name: string
    next?: string

    on a seed page with more to come: the after of the next request

    proof?: SetProof

    the collection's proof at cursor; absent on a seed page that has a next

    protocol: typeof PROTOCOL_VERSION
    puts: DatasetPut[]
    reset: boolean

    the device drops every row it holds before applying puts (unless after is set)

    schema: string