feat(api): add listing workspaces

This commit is contained in:
Karol Sójko
2022-10-11 10:57:24 +02:00
parent 15e2c82e65
commit 8376381981
17 changed files with 145 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { Uuid, WorkspaceType } from '@standardnotes/common'
import { Workspace } from '@standardnotes/models'
export interface WorkspaceClientInterface {
createWorkspace(dto: {
@@ -15,4 +16,5 @@ export interface WorkspaceClientInterface {
publicKey: string
encryptedPrivateKey: string
}): Promise<{ success: boolean }>
listWorkspaces(): Promise<{ ownedWorkspaces: Array<Workspace>; joinedWorkspaces: Array<Workspace> }>
}