@jupyterlab/services
Version:
Client APIs for the Jupyter services REST APIs
33 lines (32 loc) • 1.02 kB
TypeScript
import { ServerConnection } from '../serverconnection';
import { IUser, IUserAPIClient } from './user';
/**
* The User API client.
*
* #### Notes
* Use this class to interact with the Jupyter Server User API.
* This class adheres to the Jupyter Server API endpoints.
*/
export declare class UserAPIClient implements IUserAPIClient {
/**
* Create a new User API client.
*
* @param options - The options used to create the client.
*/
constructor(options?: {
serverSettings?: ServerConnection.ISettings;
});
/**
* The server settings for the client.
*/
readonly serverSettings: ServerConnection.ISettings;
/**
* Fetch the user data.
*
* @returns A promise that resolves with the user data.
*
* #### Notes
* Uses the [Jupyter Server API](https://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter-server/jupyter_server/main/jupyter_server/services/api/api.yaml#/identity).
*/
get(): Promise<IUser>;
}