Skip to content

Blob

@blobs/sdk v0.1.0


@blobs/sdk / types/Blobs / Blob

Defined in: types/Blobs.ts:65

A blob entity — the platform’s primary content unit.

Blobs are organized into a tree (parent_id points up). Children may be hydrated client-side into the optional blobs array. Permissions are inherited from the parent unless inherit_permissions is false.

Extended by

Properties

id

id: string

Defined in: types/Blobs.ts:67

Stable UUID for the blob.


owner_id

owner_id: string

Defined in: types/Blobs.ts:69

ID of the user who owns this blob.


author_id?

optional author_id?: string

Defined in: types/Blobs.ts:71

Alias for owner_id returned by some backend endpoints.


author?

optional author?: BlobAuthor

Defined in: types/Blobs.ts:73

Embedded author summary (when included by the endpoint).


parent_id

parent_id: string | null

Defined in: types/Blobs.ts:75

Parent blob’s ID, or null when this is a root blob.


title

title: string | null

Defined in: types/Blobs.ts:77

Title (may be null for untitled blobs).


content

content: string | null

Defined in: types/Blobs.ts:79

Body/content (may be null for placeholder/folder-style blobs).


content_type

content_type: string

Defined in: types/Blobs.ts:81

Content kind: text, markdown, code, mixed, etc. Drives editor/renderer choice.


is_public

is_public: boolean

Defined in: types/Blobs.ts:83

Whether anyone (including unauthenticated visitors) can read this blob.


inherit_permissions

inherit_permissions: boolean

Defined in: types/Blobs.ts:85

Whether children inherit this blob’s permissions (default: true).


blobs?

optional blobs?: Blob[]

Defined in: types/Blobs.ts:87

Hydrated child blobs (client-side tree convenience; not part of the wire shape).


files?

optional files?: Media[]

Defined in: types/Blobs.ts:89

Files attached to the blob. See Media.


permissions?

optional permissions?: BlobPermissions

Defined in: types/Blobs.ts:91

Per-user permission flags computed for the calling user.


created_at

created_at: string

Defined in: types/Blobs.ts:93

ISO-8601 timestamp the blob was created.


updated_at

updated_at: string

Defined in: types/Blobs.ts:95

ISO-8601 timestamp of the last update.