UNPKG

cloudstudio

Version:

Run VS Code on a remote server.

52 lines (51 loc) 1.41 kB
import { AxiosInstance } from "axios"; export interface IQuery { href: string; origin: string; spaceKey: string; query: { [index: string]: string; }; } export interface IPublicConfigData { cloudStudioUrl: string; helpDocUrl: string; gitDocUrl: string; gitSshDocUrl: string; agentSupportDocUrl: string; feedbackUrl: string; paymentEnabled: boolean; realNameEnabled: boolean; deployKitEnabled: boolean; codingAgentEnabled: boolean; sshKeyUrl: string; dashboardUrl: string; isTencentCloud: boolean; cloudStudioHomeUrl: string; cloudStudioDomain: string; enterpriseDomain: string; enterpriseName: string; templatesPrefix: string; isSaas: boolean; wsUpgradeEnable: boolean; balanceEnable: boolean; chargeEnable: boolean; } export interface IParams { isCache: true; } export interface IAxiosParams { isCache: true; origin?: string; cookie?: string; } export interface ICommon extends IQuery { getQuery(): Promise<IQuery>; getAxiosInstance(params?: IAxiosParams): Promise<AxiosInstance>; getPublicConfig(params?: IParams): Promise<IPublicConfigData>; setGlobalState(key: string, value: any): Promise<void>; getGlobalState<T>(key: string): T | undefined; getGlobalState<T>(key: string, defaultValue: T): T; isBrowser: boolean; isCloudStudio: boolean; }