| 72 | } |
| 73 | |
| 74 | export interface ZenBridge { |
| 75 | getCapabilities(): ZenCapabilities |
| 76 | getAppInfo(): ZenAppInfo |
| 77 | |
| 78 | platform(): Promise<NodeJS.Platform> |
| 79 | platformSync(): NodeJS.Platform |
| 80 | listSystemFonts(): Promise<string[]> |
| 81 | getAppIconDataUrl(): Promise<string | null> |
| 82 | zoomInApp(): Promise<number> |
| 83 | zoomOutApp(): Promise<number> |
| 84 | resetAppZoom(): Promise<number> |
| 85 | getAppUpdateState(): Promise<AppUpdateState> |
| 86 | checkForAppUpdates(): Promise<AppUpdateState> |
| 87 | checkForAppUpdatesWithUi(): Promise<void> |
| 88 | downloadAppUpdate(): Promise<AppUpdateState> |
| 89 | installAppUpdate(): Promise<void> |
| 90 | getServerCapabilities(): Promise<ServerCapabilities | null> |
| 91 | getServerSession(): Promise<ServerSessionStatus> |
| 92 | loginServerSession(token: string): Promise<ServerSessionStatus> |
| 93 | logoutServerSession(): Promise<ServerSessionStatus> |
| 94 | getRemoteWorkspaceInfo(): Promise<RemoteWorkspaceInfo | null> |
| 95 | connectRemoteWorkspace( |
| 96 | baseUrl: string, |
| 97 | authToken?: string | null |
| 98 | ): Promise<{ vault: VaultInfo | null; capabilities: ServerCapabilities }> |
| 99 | disconnectRemoteWorkspace(): Promise<VaultInfo | null> |
| 100 | listRemoteWorkspaceProfiles(): Promise<RemoteWorkspaceProfile[]> |
| 101 | saveRemoteWorkspaceProfile(input: RemoteWorkspaceProfileInput): Promise<RemoteWorkspaceProfile> |
| 102 | deleteRemoteWorkspaceProfile(id: string): Promise<void> |
| 103 | connectRemoteWorkspaceProfile( |
| 104 | id: string |
| 105 | ): Promise<{ vault: VaultInfo | null; capabilities: ServerCapabilities }> |
| 106 | |
| 107 | getCurrentVault(): Promise<VaultInfo | null> |
| 108 | listLocalVaults(): Promise<LocalVaultEntry[]> |
| 109 | openLocalVault(root: string): Promise<VaultInfo | null> |
| 110 | closeVault(): Promise<VaultInfo | null> |
| 111 | pickVault(): Promise<VaultInfo | null> |
| 112 | selectVaultPath(path: string): Promise<VaultInfo> |
| 113 | browseServerDirectories(path?: string): Promise<DirectoryBrowseResult> |
| 114 | getVaultSettings(): Promise<VaultSettings> |
| 115 | setVaultSettings(next: VaultSettings): Promise<VaultSettings> |
| 116 | /** Read the current vault's `.zennotes/workspace.json` (open tabs, layout, |
| 117 | * cursor) as a raw JSON string, or null when absent. Syncs with the vault. (#292) */ |
| 118 | readWorkspaceState(): Promise<string | null> |
| 119 | /** Write the current vault's `.zennotes/workspace.json` (raw JSON string). (#292) */ |
| 120 | writeWorkspaceState(json: string): Promise<void> |
| 121 | /** True when the vault is in `inbox` mode but its root holds notes that only |
| 122 | * `root` mode would surface (drives the "Switch to Vault root" banner). */ |
| 123 | rootContentHiddenByInboxMode(): Promise<boolean> |
| 124 | |
| 125 | listNotes(): Promise<NoteMeta[]> |
| 126 | listNotesPage?(request: ListNotesPageRequest): Promise<ListNotesPageResponse> |
| 127 | listFolders(): Promise<FolderEntry[]> |
| 128 | listAssets(): Promise<AssetMeta[]> |
| 129 | hasAssetsDir(): Promise<boolean> |
| 130 | generateDemoTour(): Promise<VaultDemoTourResult> |
| 131 | removeDemoTour(): Promise<VaultDemoTourResult> |
no outgoing calls
no test coverage detected