@datalayer/core
Version:
[](https://datalayer.io)
10 lines (9 loc) • 460 B
TypeScript
import { SpacesForUserResponse } from '../../models/SpaceDTO';
/**
* Get all spaces for the current authenticated user.
* @param token - Authentication token
* @param baseUrl - Base URL for the API (defaults to production Spacer URL)
* @returns Promise resolving to the user's spaces
* @throws {Error} If authentication token is missing or invalid
*/
export declare const getMySpaces: (token: string, baseUrl?: string) => Promise<SpacesForUserResponse>;