Interface GraffitiObjectStreamContinueTombstoneInternal

A result from a GraffitiObjectStreamContinue that indicated an object has been deleted since the original stream was run. Only sparse metadata about the deleted object is returned to respect the deleting user's privacy.

interface GraffitiObjectStreamContinueTombstone {
    error?: undefined;
    tombstone: true;
    object: { url: string; lastModified: number };
}

Properties

error?: undefined

Empty property for compatibility with GraffitiStreamError

tombstone: true

Use this property to differentiate a tombstone from a GraffitiObjectStreamEntry.

object: { url: string; lastModified: number }

Sparse metadata about the deleted object. The full object is not returned to respect a user's privacy.

Type declaration

  • url: string

    The url of the deleted object.

  • lastModified: number

    The time at which the object was deleted, comparable to lastModified.

    While it is not possible to re-put objects that have been deleted, objects may appear deleted if an actor is no longer allowed to access them. Therefore the lastModified property is necessary to compare object versions.