TLLibrary
Extends BaseRecord<'library', TLLibraryId>.
A named list of items. Where it is stored is up to the source that provides it.
Libraries kept in a document are opt-in: register librarySchemaRecords with createTLSchema({ records }) on the server and the matching records option on the client.
interface TLLibrary extends BaseRecord<"library", TLLibraryId> {}Properties
id
readonly
from BaseRecord
readonly id: Id;meta
meta: JsonObject;name
name: string;ownerId
optional
Who the library belongs to, such as a user or a workspace, as the source names them in LibrarySource.getLibraryOwners. What an owner is stays up to the source. Left out by sources that don't track owners.
ownerId?: string;parentId
optional
The library this one is inside, which holds it alongside its own items. Left out for a library at the top level. A library and everything inside it share one owner, and a library is never inside itself.
parentId?: TLLibraryId;typeName
readonly
from BaseRecord
readonly typeName: TypeName;Prev
TLInstancePresenceNext
TLLibraryItemContentRecord