Sporades SDK API
    Preparing search index...

    Type Alias FileMetadata

    Metadata for an uploaded file inside one Capsule.

    id is stable across replacement. version changes when bytes are replaced, so generated URLs cannot keep serving stale content.

    type FileMetadata = {
        id: string;
        name: string;
        path?: string;
        size: number;
        type: string;
        url?: string;
        version?: string;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index
    id: string
    name: string
    path?: string
    size: number
    type: string
    url?: string
    version?: string