UNPKG

@vectorx/cloud-toolkit

Version:

VectorX Cloud Toolkit

20 lines (19 loc) 752 B
import type { CheckStatusRequest, CheckStatusResponse } from "../services/auth-service"; import type { BuildPreCheckResponse, IBuildPreCheckParams, IDeployParams } from "../services/upload-service"; export interface IAuthService { hasLogin(): boolean; getLoginInfo(): Promise<LoginInfo | null>; check(params: CheckStatusRequest): Promise<CheckStatusResponse>; clearLoginInfo(): Promise<void>; } export interface IUploadService { getCloudBaseSecretToken(): Promise<string>; buildPreCheck(params: IBuildPreCheckParams): Promise<BuildPreCheckResponse>; deploy(params: IDeployParams): Promise<any>; } export interface LoginInfo { secret_id: string; cli_token: string; create_at: number; expire_in_sec: number; }