-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
53 lines (47 loc) · 866 Bytes
/
types.ts
File metadata and controls
53 lines (47 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export type BlockType =
| 'paragraph'
| 'heading-1'
| 'heading-2'
| 'heading-3'
| 'bullet-list'
| 'number-list'
| 'quote'
| 'code'
| 'divider'
| 'todo'
| 'callout'
| 'table'
| 'image'
| 'toggle';
export interface Block {
id: string;
type: BlockType;
content: string;
properties?: Record<string, any>;
}
export interface Document {
id: string;
title: string;
icon: string;
blocks: Block[];
lastEdited: Date;
}
export interface Folder {
id: string;
name: string;
documents: Document[];
isOpen: boolean;
}
export interface Workspace {
id: string;
name: string;
folders: Folder[];
}
export interface User {
id: string;
name: string;
avatar: string;
color: string;
isActive: boolean;
}
export type AIRequestType = 'continue' | 'summarize' | 'fix-grammar' | 'translate' | 'brainstorm' | 'format';