UNPKG

@datalayer/core

Version:
112 lines (111 loc) 2.45 kB
import { ISignal } from '@lumino/signaling'; export declare const FORCE_ACTIVATE_RUNTIMES_PLUGINS = false; export type IDatalayerCoreConfig = { /** * Use mock model, useful for e.g. storybooks. */ useMock: boolean; /** * Does the webapp need a jupyter server. */ jupyterServerless: boolean; /** * IAM API URL. */ iamRunUrl: string; /** * Runtimes API URL. */ runtimesRunUrl: string; /** * Spacer API URL. */ spacerRunUrl: string; /** * Library API URL. */ libraryRunUrl: string; /** * AI Agents API URL. */ aiagentsRunUrl: string; /** * Growth API URL. */ growthRunUrl: string; /** * Inbounds API URL. */ inboundsRunUrl: string; /** * Success API URL. */ successRunUrl: string; /** * Support API URL. */ supportRunUrl: string; /** * Load configuration from server. */ loadConfigurationFromServer: boolean; /** * Launcher card customization. */ launcher: { /** * Card category. */ category: string; /** * Card name. */ name: string; /** * Card icon SVG URL. */ icon: string | null; /** * Card rank. */ rank: number; }; /** * Brand customization. */ brand: { name: string; logoUrl: string; logoSquareUrl: string; about: string; copyright: string; docsUrl: string; supportUrl: string; pricingUrl: string; termsUrl: string; privacyUrl: string; }; /** * Whether to display the white labelled user interface or not. */ whiteLabel: boolean; }; export interface IRuntimesConfiguration { /** * Maximal number of notebook remote runtimes per user. */ maxNotebookRuntimes: number; /** * Maximal number of cell remote runtimes per user. */ maxCellRuntimes: number; } export declare class DatalayerConfiguration { private _configuration; private _configurationChanged; constructor(); set configuration(configuration: IDatalayerCoreConfig); get configuration(): IDatalayerCoreConfig; get configurationChanged(): ISignal<DatalayerConfiguration, IDatalayerCoreConfig>; } export default DatalayerConfiguration;