26 包 monorepo(TS 全源码): - snowcat-core: NT 内核 API 封装 + listener(含 9.9.37 六回调适配)+ Packet 发包 - snowcat-onebot: OneBot v11 全动作 + MCP Streamable HTTP 适配器 + 稳定线 - snowcat-webui-frontend/backend: 雪猫控制台(React+HeroUI) - snowcat-shell: 单文件 bundle 出口(vite inlineDynamicImports) - snowcat-native: napi2native / MoeHoo / ffmpeg / pty 运行时 - 56 项 SnowLuma 独门动作移植(qzone 全家桶/群相册/装扮/闪照/收藏) - 工具件: 解包器/启动器/便携制作器/doctor GitHub 关联已全量指向 DandanLLab/SnowCatQQ
97 lines
3.2 KiB
TypeScript
97 lines
3.2 KiB
TypeScript
import { AnyCnameRecord } from 'node:dns';
|
|
import { BizKey, ModifyProfileParams, NodeIKernelProfileListener, ProfileBizType, SimpleInfo, UserDetailInfoByUin, UserDetailInfoListenerArg, UserDetailSource } from '@/snowcat-core/index';
|
|
import { GeneralCallResult } from '@/snowcat-core/services/common';
|
|
|
|
export interface NodeIKernelProfileService {
|
|
getOtherFlag (callfrom: string, uids: string[]): Promise<Map<string, unknown>>;
|
|
|
|
getVasInfo (callfrom: string, uids: string[]): Promise<Map<string, unknown>>;
|
|
|
|
getRelationFlag (callfrom: string, uids: string[]): Promise<Map<string, unknown>>;
|
|
|
|
getUidByUin (callfrom: string, uin: Array<string>): Map<string, string>;
|
|
|
|
getUinByUid (callfrom: string, uid: Array<string>): Map<string, string>;
|
|
|
|
getCoreAndBaseInfo (callfrom: string, uids: string[]): Promise<Map<string, SimpleInfo>>;
|
|
|
|
fetchUserDetailInfo (trace: string, uids: string[], source: UserDetailSource, bizType: ProfileBizType[]): Promise<GeneralCallResult &
|
|
{
|
|
source: UserDetailSource,
|
|
// uid -> detail
|
|
detail: Map<string, UserDetailInfoListenerArg>,
|
|
}
|
|
>;
|
|
|
|
addKernelProfileListener (listener: NodeIKernelProfileListener): number;
|
|
|
|
removeKernelProfileListener (listenerId: number): void;
|
|
|
|
prepareRegionConfig (): unknown;
|
|
|
|
getLocalStrangerRemark (): Promise<AnyCnameRecord>;
|
|
|
|
enumCountryOptions (): Array<string>;
|
|
|
|
enumProvinceOptions (country: string): Array<string>;
|
|
|
|
enumCityOptions (country: string, province: string): unknown;
|
|
|
|
enumAreaOptions (arg1: string, arg2: string, arg3: string): unknown;
|
|
|
|
modifySelfProfile (param: unknown): Promise<unknown>;
|
|
|
|
modifyDesktopMiniProfile (param: ModifyProfileParams): Promise<GeneralCallResult>;
|
|
|
|
setNickName (nickName: string): Promise<unknown>;
|
|
|
|
setLongNick (longNick: string): Promise<unknown>;
|
|
|
|
setBirthday (year: number, month: number, day: number): Promise<unknown>;
|
|
|
|
setGander (gender: unknown): Promise<unknown>;
|
|
|
|
setHeader (arg: string): Promise<GeneralCallResult>;
|
|
|
|
setRecommendImgFlag (flag: unknown): Promise<unknown>;
|
|
|
|
getUserSimpleInfo (force: boolean, uids: string[]): Promise<unknown>;
|
|
|
|
getUserDetailInfo (uid: string): Promise<unknown>;
|
|
|
|
getUserDetailInfoWithBizInfo (uid: string, Biz: BizKey[]): Promise<GeneralCallResult>;
|
|
|
|
getUserDetailInfoByUin (uin: string): Promise<UserDetailInfoByUin>;
|
|
|
|
getZplanAvatarInfos (args: string[]): Promise<unknown>;
|
|
|
|
getStatus (uid: string): Promise<unknown>;
|
|
|
|
startStatusPolling (isForceReset: boolean): Promise<unknown>;
|
|
|
|
getSelfStatus (): Promise<unknown>;
|
|
|
|
setdisableEmojiShortCuts (arg: unknown): unknown;
|
|
|
|
getProfileQzonePicInfo (uid: string, type: number, force: boolean): Promise<unknown>;
|
|
|
|
// UserRemarkServiceImpl::getStrangerRemarkByUid []
|
|
getCoreInfo (sceneId: string, arg: unknown[]): unknown;
|
|
|
|
isNull (): boolean;
|
|
|
|
addKernelProfileListenerForUICache (listener: unknown): number;
|
|
|
|
asyncGetCoreInfo (callfrom: string, uids: string[]): unknown;
|
|
|
|
getIntimate (uid: string, arg: unknown): unknown;
|
|
|
|
getStatusInfo (uid: string, arg: unknown): unknown;
|
|
|
|
getStockLocalData (key: string, arg: unknown): unknown;
|
|
|
|
updateProfileData (uid: string, data: unknown): unknown;
|
|
|
|
updateStockLocalData (key: string, data: unknown): unknown;
|
|
}
|