import { AuthorizationData } from '@byted-apaas/cli-core-sdk'; export interface AuthorizationInfo { accessToken: string; expiresAt: number | null; issuedAt: number; tenantName: string; authMethod: AuthorizationData['authMethod']; /** * @deprecated Q3S5 移除 */ email: string; userIdEncrypted?: string; tenantIdEncrypted?: string; tenantType: string; } export interface TenantAuthorizations { [username: string]: AuthorizationInfo; } export interface FeatureManagerCommonOptions { namespace: string; projectRoot: string; } export declare enum TemplateType { project = "project", component = "component", microservice = "microservice" } export declare enum FunctionTemplateType { nodejs = "nodejs", golang = "golang" } export declare enum EventRuntimeType { all = 0, web = 1, mini = 2 } export declare enum ComponentRuntimeType { none = 0, web = 1, mini = 2, webAndMini = 3 } export declare enum MicroserviceType { golang = "golang" } export declare enum MicroserviceProtocol { http = "http", rpc = "rpc" } export declare type ComponentCreateContextOption = Record & { template?: string | boolean; }; export declare enum TerminalType { all = "all", web = "web", mini = "mini" } export declare enum DebugType { component = "component", function = "function" } export declare enum ComponentDebugMode { web = "web", mini = "mini" } export declare enum MiniComponentDebugMode { normal = "dev", miniDesign = "dev-design", miniBuild = "build-local" } export declare enum MiniComponentDebugName { normal = "normal", miniDesign = "mini design", miniBuild = "mini build" } export interface FunctionDebugLogItem { _id: string; body: string; body_to_show: string; created_time: number; level: 'info' | 'warn' | 'error'; type: 'Console' | 'System' | 'Result'; updated_time: number; } export interface FunctionDebugRes { debug_id: string; finished: boolean; logs: FunctionDebugLogItem[]; } /** * @deprecated Q3S5 移除 */ export interface RepoAuthInfo { [username: string]: { token: string; isMockEmail: boolean; }; } export interface RepoNamespaceInfo { [namespace: string]: { branch: string; remoteUrl: string; }; } export interface RepoInfos { [tenantName: string]: { auth?: RepoAuthInfo; repo?: RepoNamespaceInfo; }; } export declare type CommonPkgConfig = Array<{ cliVersionConstraint: string; use: { commonPkgVersion: 'latest' | string; }; }>; export declare enum Env { dev = "dev", staging = "staging", lr = "lr", pre = "pre", product = "product" } export declare enum TaskStatus { skipped = -2, pending = -1, running = 0, failed = 10, success = 20 } export interface TaskStep { name: string; status: TaskStatus; text?: string; } export declare type FunctionSdkVersion = { name: string; version: string; }[];