Skip to content

BlobNode

@blobs/sdk v0.1.0


@blobs/sdk / utils/blobUtils / BlobNode

Defined in: utils/blobUtils.ts:179

Hydrated tree node returned by buildBlobTree.

Extends Blob with a non-optional children array.

Extends

Properties

id

id: string

Defined in: types/Blobs.ts:67

Stable UUID for the blob.

Inherited from

Blob.id


owner_id

owner_id: string

Defined in: types/Blobs.ts:69

ID of the user who owns this blob.

Inherited from

Blob.owner_id


author_id?

optional author_id?: string

Defined in: types/Blobs.ts:71

Alias for owner_id returned by some backend endpoints.

Inherited from

Blob.author_id


author?

optional author?: BlobAuthor

Defined in: types/Blobs.ts:73

Embedded author summary (when included by the endpoint).

Inherited from

Blob.author


parent_id

parent_id: string | null

Defined in: types/Blobs.ts:75

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

Inherited from

Blob.parent_id


title

title: string | null

Defined in: types/Blobs.ts:77

Title (may be null for untitled blobs).

Inherited from

Blob.title


content

content: string | null

Defined in: types/Blobs.ts:79

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

Inherited from

Blob.content


content_type

content_type: string

Defined in: types/Blobs.ts:81

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

Inherited from

Blob.content_type


is_public

is_public: boolean

Defined in: types/Blobs.ts:83

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

Inherited from

Blob.is_public


inherit_permissions

inherit_permissions: boolean

Defined in: types/Blobs.ts:85

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

Inherited from

Blob.inherit_permissions


blobs?

optional blobs?: Blob[]

Defined in: types/Blobs.ts:87

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

Inherited from

Blob.blobs


files?

optional files?: Media[]

Defined in: types/Blobs.ts:89

Files attached to the blob. See Media.

Inherited from

Blob.files


permissions?

optional permissions?: BlobPermissions

Defined in: types/Blobs.ts:91

Per-user permission flags computed for the calling user.

Inherited from

Blob.permissions


created_at

created_at: string

Defined in: types/Blobs.ts:93

ISO-8601 timestamp the blob was created.

Inherited from

Blob.created_at


updated_at

updated_at: string

Defined in: types/Blobs.ts:95

ISO-8601 timestamp of the last update.

Inherited from

Blob.updated_at


children

children: BlobNode[]

Defined in: utils/blobUtils.ts:181

Direct child nodes (recursively populated).