Skip to content

SDK API Reference / SegmentTreeNode

Interface: SegmentTreeNode

Tree node for hierarchical segment/folder listing

Used for recursive listing and tree visualization.

Properties

children?

optional children: SegmentTreeNode[]

Child nodes (folders can contain folders and segments)


id

id: string

Resource ID


metadata

metadata: object

Additional metadata

createdAt?

optional createdAt: string

Created timestamp

description?

optional description: string

Description

folderCount?

optional folderCount: number

Number of child folders (folders only)

segmentCount?

optional segmentCount: number

Number of child segments (folders only)

updatedAt?

optional updatedAt: string

Updated timestamp


name

name: string

Resource name


population?

optional population: number

Segment population (segments only)


type

type: "folder" | "segment"

Type of resource