export interface IResult { data?: T; success: boolean; code?: number; message?: string; showType?: number; errorCode?: string; errorMessage?: string; traceId?: string; host?: string; } export interface ICsvDealer { tarcsv: string; dealer: (record: string[], idx?: number) => any; limit?: number; divider?: string; output?: boolean; } export interface MacRunTimeInfo { time: string; processInfo: string; load: string; cpu: string; memory: string; memRegion: string; memPercent: number; cpuPercent: number; availStorage: number; sharedLib: string; disk: string; VM: string; net: string; user?: string; ip?: string; needReboot?: boolean; } export interface DBConfig { uri?: string; host?: string; username?: string; password?: string; database?: string; models?: string[]; port?: string; log?: boolean; } export interface MysqlCfg { uri?: string; host?: string; username?: string; password?: string; database?: string; port?: string; log?: boolean; } export interface ISlsConfig { logstore: string; project: string; endpoint: string; accessKeyId: string; accessKeySecret: string; securityToken?: string; } export interface IOssConfig { rootPath?: string; region: string; bucket: string; accessKeyId: string; accessKeySecret: string; pathCheck?: boolean; } export interface IMinioConfig { endPoint: string; port?: number; accessKey: string; secretKey: string; bucket: string; useSSL?: boolean; pathCheck?: boolean; } export interface IPopConfig { endpoint: string; accessKeyId: string; accessKeySecret: string; apiVersion: string; codes?: any[]; sts?: IStsConfig; } export interface IStsConfig { accessKeyId: string; accessKeySecret: string; roleSessionName: string; roleArn: string; } export interface IReliableRes { testInfo: { tests: number; passes: number; passPercent: number; passPercentExp?: number; linePercent: number; linePercentExp?: number; branchPercent: number; testHtmlReporterPath: string; coverageHtmlReporterPath: string; }; extendInfo?: any; extraInfo?: any; packages?: string[]; files?: string[]; environment: { ci: { JOB_NAME: string; BUILD_NUMBER?: string; RUNNER_TYPE?: string; }; platform?: string; }; gitCommitInfo?: { date?: number; gitUrl: string; gitBranch: string; shortHash: string; hash: string; author: { name: string; email: string; }; subject: string; }; } export interface ReliableCfg { serverUrl?: string; } export interface IReliableCfg { jobName?: string; enable: boolean; branch?: RegExp; dingToken?: string; atWorkIds?: string[]; baseline?: { passPercent: number; covPercent: number; }; } export interface RBBuild { jobName: string; buildNumber: string; gitBranch: string; data: IReliableRes; uniqId: string; extendInfo: object; state: string; finishedAt: string; createdAt: string; updatedAt: string; } export interface YuqueConfig { host?: string; token?: string; account?: string; password?: string; cookie?: string; ctoken?: string; } export interface DWClientConfig { clientId: string; clientSecret: string; keepAlive?: boolean; debug?: boolean; ua?: string; endpoint?: string; access_token?: string; autoReconnect?: boolean; subscriptions: Array<{ type: string; topic: string; }>; } export interface DWClientDownStream { specVersion: string; type: string; headers: { appId: string; connectionId: string; contentType: string; messageId: string; time: string; topic: string; eventType?: string; eventBornTime?: string; eventId?: string; eventCorpId?: string; eventUnifiedAppId?: string; }; data: string; } interface RobotMessageBase { senderPlatform: string; openThreadId: string; sessionbhookExpiredTime?: number; conversationTitle: string; isInAList?: boolean; conversationId: string; chatbotCorpId: string; chatbotUserId: string; msgId: string; senderNick: string; isAdmin: boolean; senderStaffId: string; sessionWebhookExpiredTime: number; createAt: number; senderCorpId: string; conversationType: string; senderId: string; sessionWebhook: string; robotCode: string; msgtype: string; } export interface RobotTextMessage extends RobotMessageBase { msgtype: 'text'; text: { content: string; }; } export {};