@datalayer/core
Version:
[](https://datalayer.io)
27 lines (26 loc) • 1.33 kB
TypeScript
import { CreateNotebookRequest, CreateNotebookResponse, GetNotebookResponse, UpdateNotebookRequest, UpdateNotebookResponse } from '../../models/SpaceDTO';
/**
* Create a new Jupyter notebook.
* @param token - Authentication token
* @param data - Notebook creation configuration
* @param baseUrl - Base URL for the API (defaults to production)
* @returns Promise resolving to the created notebook response
*/
export declare const createNotebook: (token: string, data: CreateNotebookRequest, baseUrl?: string) => Promise<CreateNotebookResponse>;
/**
* Get a notebook by ID.
* @param token - Authentication token
* @param id - The notebook ID
* @param baseUrl - Base URL for the API (defaults to production)
* @returns Promise resolving to the notebook response
*/
export declare const getNotebook: (token: string, id: string, baseUrl?: string) => Promise<GetNotebookResponse>;
/**
* Update a notebook.
* @param token - Authentication token
* @param id - The notebook ID
* @param data - Update data containing name and/or description
* @param baseUrl - Base URL for the API (defaults to production)
* @returns Promise resolving to the updated notebook response
*/
export declare const updateNotebook: (token: string, id: string, data: UpdateNotebookRequest, baseUrl?: string) => Promise<UpdateNotebookResponse>;