feat(workspace): 接入真实Vault数据链路

This commit is contained in:
2026-08-31 21:38:56 +08:00
parent 2cb47c08f1
commit 8553d6f3c3
17 changed files with 1020 additions and 426 deletions
+24
View File
@@ -24,6 +24,7 @@ export interface NoteBlock {
export interface FileNode {
id: string
note_id?: string
name: string
path: string
type: 'file' | 'folder'
@@ -387,6 +388,29 @@ export interface PageMeta {
offset: number
}
export interface ApiWorkspaceInfo {
vault_id: string
name: string
path: string
file_count: number
indexed_note_count: number
requires_refresh: boolean
}
export interface ApiWorkspaceEntry {
entry_id: string
name: string
path: string
type: 'file' | 'folder'
note_id?: string | null
children: ApiWorkspaceEntry[]
}
export interface ApiWorkspaceSnapshot {
workspace: ApiWorkspaceInfo
items: ApiWorkspaceEntry[]
}
export interface OperationResponse {
status: 'accepted' | 'completed'
resource_id?: string | null