createLexical
createLexical: (
spaceId: string,
name: string,
description: string,
) => Promise<LexicalJSON>
createNotebook
createNotebook: (
spaceId: string,
name: string,
description?: string,
) => Promise<NotebookJSON>
createRuntime
createRuntime: (
options: {
environmentName: string;
givenName: string;
minutesLimit: number;
type: "notebook" | "terminal" | "job";
},
) => Promise<RuntimeJSON>
deleteRuntime
deleteRuntime: (podName: string) => Promise<void>
deleteSpaceItem
deleteSpaceItem: (spaceId: string, itemId: string) => Promise<void>
getAuthState
getAuthState: () => Promise<
{
isAuthenticated: boolean;
runUrl: string;
token: null
| string;
user: null | UserJSON;
},
>
getCollaborationSession
getCollaborationSession: (documentId: string) => Promise<string>
getCollaborationToken
getCollaborationToken: () => Promise<
{ isAuthenticated: boolean; runUrl: string; token?: string },
>
getContent
getContent: (itemId: string) => Promise<unknown>
getCredentials
getCredentials: () => Promise<
{ isAuthenticated: boolean; runUrl: string; token?: string },
>
getMySpaces
getMySpaces: () => Promise<SpaceJSON[]>
getRuntime
getRuntime: (runtimeId: string) => Promise<RuntimeJSON>
getSpaceItems
getSpaceItems: (spaceId: string) => Promise<(NotebookJSON | LexicalJSON)[]>
isRuntimeActive
isRuntimeActive: (
podName: string,
) => Promise<{ isActive: boolean; runtime?: RuntimeJSON }>
listEnvironments
listEnvironments: () => Promise<EnvironmentJSON[]>
listNotebooks
listNotebooks: () => Promise<NotebookJSON[]>
listRuntimes
listRuntimes: () => Promise<RuntimeJSON[]>
login
login: (token: string) => Promise<void>
logout
logout: () => Promise<void>
terminateAllRuntimes
terminateAllRuntimes: () => Promise<PromiseSettledResult<void>[]>
updateLexical
updateLexical: (
uid: string,
name: string,
description?: string,
) => Promise<LexicalJSON>
updateNotebook
updateNotebook: (
uid: string,
name: string,
description?: string,
) => Promise<NotebookJSON>
whoami
whoami: () => Promise<UserJSON>
Datalayer IPC Bridge API interface. Provides methods for interacting with the Datalayer SDK via IPC.