Apr 19, 2026 965 B octet-stream of v6
1Item: {
2 shape: class
3
4 id: string
5 name: string
6 kind: string
7 contentHash: string | null
8 parentId: string | null
9 spaceId: string
10 createdAt: Date
11 updatedAt: Date
12
13 getContent(): Uint8Array
14 getVersions(): Version[]
15 move(newParent): void
16}
17
18Version: {
19 shape: class
20
21 id: string
22 itemId: string
23 contentHash: string
24 size: number
25 message: string | null
26 createdAt: Date
27
28 getContent(): Uint8Array
29 getDiff(other): Diff
30}
31
32Space: {
33 shape: class
34
35 id: string
36 slug: string
37 name: string
38 visibility: "public" | "private"
39 ownerId: string
40
41 listItems(path): Item[]
42 createItem(name, kind): Item
43 getTree(): TreeEntry[]
44 getActivity(): Activity[]
45}
46
47Commit: {
48 shape: class
49
50 id: string
51 commitHash: string
52 treeHash: string
53 parentHash: string | null
54 message: string
55 authorName: string
56 createdAt: Date
57
58 getChanges(): CommitItem[]
59}
60
61Space -> Item: contains
62Item -> Version: has versions
63Commit -> Version: references