mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Compare commits
64 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c54a58d6e4 | ||
![]() |
34cb1ea3fd | ||
![]() |
f640b0ca91 | ||
![]() |
60e16da42e | ||
![]() |
0cdceb95d6 | ||
![]() |
70bd22d925 | ||
![]() |
82462dd647 | ||
![]() |
c0466e943d | ||
![]() |
b187b4695d | ||
![]() |
b1956d2a37 | ||
![]() |
590b622e5f | ||
![]() |
3d8174396a | ||
![]() |
b8dc6e9bd9 | ||
![]() |
8ee99109dc | ||
![]() |
902041d4ee | ||
![]() |
cc34aef47e | ||
![]() |
0afbbe7c7a | ||
![]() |
8004553ba7 | ||
![]() |
0023b2846a | ||
![]() |
34775c1816 | ||
![]() |
e0759e704b | ||
![]() |
0aa225ca78 | ||
![]() |
b43b4ee5c0 | ||
![]() |
0cdb8cecbf | ||
![]() |
fd6a306742 | ||
![]() |
7f3b3d2277 | ||
![]() |
8be5b977bf | ||
![]() |
d7ddb15f9c | ||
![]() |
9a6a1798d0 | ||
![]() |
14196fd349 | ||
![]() |
941b89a523 | ||
![]() |
a5f9e5f8c0 | ||
![]() |
80c3356c8f | ||
![]() |
914136b750 | ||
![]() |
f9a60795f5 | ||
![]() |
19640927c7 | ||
![]() |
22faac7e36 | ||
![]() |
30d260ab32 | ||
![]() |
115120d066 | ||
![]() |
1327844736 | ||
![]() |
29904f3cb7 | ||
![]() |
50395594b7 | ||
![]() |
9360af88b3 | ||
![]() |
376370336c | ||
![]() |
70df6e3302 | ||
![]() |
0a1fc2dc12 | ||
![]() |
9857f6e437 | ||
![]() |
56d6ebe916 | ||
![]() |
81134ea2d4 | ||
![]() |
a9f3e7fc54 | ||
![]() |
eb84e2f8c9 | ||
![]() |
61cfa0e86d | ||
![]() |
0a01b8ade9 | ||
![]() |
1457efa9a4 | ||
![]() |
fa5c7add7a | ||
![]() |
d644eba4d1 | ||
![]() |
9c422c1a8f | ||
![]() |
b6db37202f | ||
![]() |
4ca3891089 | ||
![]() |
4c7ed01776 | ||
![]() |
45c922c377 | ||
![]() |
f854c258bd | ||
![]() |
a643fac073 | ||
![]() |
861f105bea |
@@ -1,21 +1,21 @@
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf|crlf
|
||||
insert_final_newline = true
|
||||
|
||||
# Matches multiple files with brace expansion notation
|
||||
# Set default charset
|
||||
charset = utf-8
|
||||
|
||||
# 2 space indentation
|
||||
[*.{cjs,mjs,js,jsx,ts,tsx,css,scss,sass,html,json}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# Unfortunately, EditorConfig doesn't support space configuration inside import braces directly.
|
||||
# You'll need to rely on your linter/formatter like ESLint or Prettier for that.
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
|
||||
# Matches multiple files with brace expansion notation
|
||||
# Set default charset
|
||||
charset = utf-8
|
||||
|
||||
# 2 space indentation
|
||||
[*.{cjs,mjs,js,jsx,ts,tsx,css,scss,sass,html,json}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# Unfortunately, EditorConfig doesn't support space configuration inside import braces directly.
|
||||
# You'll need to rely on your linter/formatter like ESLint or Prettier for that.
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@@ -14,4 +14,5 @@ dist/
|
||||
|
||||
# Build
|
||||
*.db
|
||||
checkVersion.sh
|
||||
checkVersion.sh
|
||||
bun.lockb
|
||||
|
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,4 +0,0 @@
|
||||
[submodule "src/core"]
|
||||
path = src/core
|
||||
url = https://github.com/NapNeko/core.git
|
||||
branch = master
|
17
docs/changelogs/CHANGELOG.v1.6.6.md
Normal file
17
docs/changelogs/CHANGELOG.v1.6.6.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# v1.6.5
|
||||
|
||||
QQ Version: Windows 9.9.12-26000 / Linux 3.2.9-26000
|
||||
## 使用前警告
|
||||
1. 在最近版本由于QQ本体大幅变动,为了保证NapCat可用性,NapCat近期启动与安装方式将将大幅变动,请关注文档和社群获取。
|
||||
2. 在Core上完全执行开源,请不要用于违法用途,如此可能造成NapCat完全停止更新。
|
||||
3. 针对原启动方式的围堵,NapCat研发了多种方式,除此其余理论与扩展的分析和思路将部分展示于Docs,以便各位参与开发与维护NapCat。
|
||||
## 其余·备注
|
||||
启动方式: WayBoot.03 (Electron Main进程为Node 直接注入代码 同理项目: LiteLoader)
|
||||
|
||||
## 修复与优化
|
||||
1. 修复了一些问题
|
||||
|
||||
## 新增与调整
|
||||
没有哦
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
13
docs/changelogs/old/CHANGELOG.v1.6.3.md
Normal file
13
docs/changelogs/old/CHANGELOG.v1.6.3.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# v1.6.3
|
||||
|
||||
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
|
||||
|
||||
## 修复与优化
|
||||
* 修复带有groupid的私聊消息异常发送到群聊消息
|
||||
* 尝试修复rws热重载失效问题
|
||||
* 尝试修复进群事件无法正常获取uin
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
18
docs/changelogs/old/CHANGELOG.v1.6.4.md
Normal file
18
docs/changelogs/old/CHANGELOG.v1.6.4.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# v1.6.4
|
||||
|
||||
QQ Version: Windows 9.9.12-26000 / Linux 3.2.9-26000
|
||||
## 使用前警告
|
||||
1. 在最近版本由于QQ本体大幅变动,为了保证NapCat可用性,NapCat近期启动与安装方式将将大幅变动,请关注文档和社群获取。
|
||||
2. 在Core上完全执行开源,请不要用于违法用途,如此可能造成NapCat完全停止更新。
|
||||
3. 针对原启动方式的围堵,NapCat研发了多种方式,除此其余理论与扩展的分析和思路将部分展示于Docs,以便各位参与开发与维护NapCat。
|
||||
## 其余·备注
|
||||
启动方式: WayBoot.03 (Electron Main进程为Node 直接注入代码 同理项目: LiteLoader)
|
||||
|
||||
## 修复与优化
|
||||
1. 支持Win平台 9.9.12
|
||||
2. 修复部分发送图片下载异常情况
|
||||
|
||||
## 新增与调整
|
||||
没有哦
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
18
docs/changelogs/old/CHANGELOG.v1.6.5.md
Normal file
18
docs/changelogs/old/CHANGELOG.v1.6.5.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# v1.6.5
|
||||
|
||||
QQ Version: Windows 9.9.12-26000 / Linux 3.2.9-26000
|
||||
## 使用前警告
|
||||
1. 在最近版本由于QQ本体大幅变动,为了保证NapCat可用性,NapCat近期启动与安装方式将将大幅变动,请关注文档和社群获取。
|
||||
2. 在Core上完全执行开源,请不要用于违法用途,如此可能造成NapCat完全停止更新。
|
||||
3. 针对原启动方式的围堵,NapCat研发了多种方式,除此其余理论与扩展的分析和思路将部分展示于Docs,以便各位参与开发与维护NapCat。
|
||||
## 其余·备注
|
||||
启动方式: WayBoot.03 (Electron Main进程为Node 直接注入代码 同理项目: LiteLoader)
|
||||
|
||||
## 修复与优化
|
||||
1. 优化了WrapperNative载入代码
|
||||
2. 优化缓存
|
||||
|
||||
## 新增与调整
|
||||
没有哦
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
@@ -1,2 +0,0 @@
|
||||
# 开始
|
||||
jadx 跳转于 `com.tencent.qqnt.kernel.*`
|
@@ -1,42 +0,0 @@
|
||||
# Android
|
||||
```java
|
||||
GroupMemberExtReq groupMemberExtReq = new GroupMemberExtReq();
|
||||
groupMemberExtReq.sourceType = MemberExtSourceType.TITLETYPE.ordinal();
|
||||
groupMemberExtReq.groupCode = longOrNull.longValue();
|
||||
groupMemberExtReq.beginUin = "0";
|
||||
groupMemberExtReq.dataTime = "0";
|
||||
Long[] lArr = new Long[1];
|
||||
AppInterface a2 = dVar.a();
|
||||
lArr[0] = Long.valueOf(a2 != null ? a2.getLongAccountUin() : 0L);
|
||||
arrayListOf = CollectionsKt__CollectionsKt.arrayListOf(lArr);
|
||||
groupMemberExtReq.uinList = arrayListOf;
|
||||
MemberExtInfoFilter memberExtInfoFilter = new MemberExtInfoFilter();
|
||||
memberExtInfoFilter.memberLevelInfoUin = 1;
|
||||
memberExtInfoFilter.memberLevelInfoPoint = 1;
|
||||
memberExtInfoFilter.memberLevelInfoActiveDay = 1;
|
||||
memberExtInfoFilter.memberLevelInfoLevel = 1;
|
||||
memberExtInfoFilter.levelName = 1;
|
||||
memberExtInfoFilter.dataTime = 1;
|
||||
memberExtInfoFilter.sysShowFlag = 1;
|
||||
memberExtInfoFilter.userShowFlag = 1;
|
||||
memberExtInfoFilter.userShowFlagNew = 1;
|
||||
memberExtInfoFilter.levelNameNew = 1;
|
||||
Unit unit = Unit.INSTANCE;
|
||||
groupMemberExtReq.memberExtFilter = memberExtInfoFilter;
|
||||
troopLevelFrequencyControl.f(troopUin, new TroopListRepo$fetchTroopLevelInfo$2(b2, groupMemberExtReq, troopUin, new com.tencent.qqnt.troopmemberlist.report.c("fetchTroopLevelInfo")));
|
||||
```
|
||||
# Win
|
||||
参数解析位于 sub_181456A10(24108) -> wrapper.node(24108)+1456A10
|
||||
IGroupService.GetMemberExt(param: object);
|
||||
param展开如下
|
||||
```
|
||||
groupCode string
|
||||
beginUin string
|
||||
dataTime string
|
||||
uinList Array<string>
|
||||
uinNum string
|
||||
groupType string
|
||||
richCardNameVer string
|
||||
sourceType number
|
||||
memberExtFilter object// 参数解析位于 sub_18145A6D0(24108) -> wrapper.node(24108)+145A6D0
|
||||
```
|
16
docs/develop/NC 1.6.X的计划.md
Normal file
16
docs/develop/NC 1.6.X的计划.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 开发方向
|
||||
方向一 NativeCall/Hook:
|
||||
1. 崩溃检测机制的实现
|
||||
2. Api_Caller 的Hook 可以拿到Event/Handler 进一步提升NC 即时的拦截与处理一些事件比如ReCall拦截
|
||||
3. Node包装层 进一步分析,拿到脱离自带Listener/Adapter,可以拿到一些更加底层的数据变动 或许包括更多二进制数据
|
||||
|
||||
方向二 全新的无头启动 Way01
|
||||
1. 基于Node启动原理,借助导出符号获取函数地址 再次还原NodeMain
|
||||
|
||||
方向三 发包与收包
|
||||
1. 参考 方向一/3 大概可以收包
|
||||
2. 发包 (暂时没有计划)
|
||||
|
||||
方向四 版本控制
|
||||
1. 根据不同版本进行逻辑控制
|
||||
2. 某些参数的自动提取
|
@@ -1,24 +0,0 @@
|
||||
# 前排提示
|
||||
由于Core未处于开源,非组织人员无法参与Core开发,此处为Core开发提示
|
||||
|
||||
# 准备工具
|
||||
frida ida-pro jadx x64dbg ce 内部调试脚本
|
||||
|
||||
## ida-pro
|
||||
1. 用于快速分析入参和返回类型
|
||||
2. 通过静态QLog推测语义
|
||||
3. 提取Listener与Service (常用)
|
||||
## frida
|
||||
1. 用于动态获取QLog推测语义
|
||||
2. 捕捉Native函数 实际入参与数据 分析中间流程
|
||||
|
||||
## jadx
|
||||
1. 通过其它平台实现 静态获取QLog推测语义
|
||||
2. 提供部分未调用代码 参考
|
||||
|
||||
## x64dbg
|
||||
1. 验证IDA的Hook点
|
||||
|
||||
## 内部脚本
|
||||
1. 提取Listener与Service (不调用无类型 不推荐)
|
||||
2. 获取NT调用流程
|
@@ -2,7 +2,7 @@
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.6.2",
|
||||
"version": "1.6.6",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
@@ -64,7 +64,7 @@
|
||||
"json-schema-to-ts": "^3.1.0",
|
||||
"log4js": "^6.9.1",
|
||||
"qrcode-terminal": "^0.12.0",
|
||||
"silk-wasm": "^3.3.4",
|
||||
"silk-wasm": "^3.6.1",
|
||||
"sqlite3": "^5.1.7",
|
||||
"uuid": "^10.0.0",
|
||||
"ws": "^8.16.0"
|
||||
|
45
script/BootWay.03.ps1
Normal file
45
script/BootWay.03.ps1
Normal file
@@ -0,0 +1,45 @@
|
||||
# Dont Use This Script
|
||||
# 2024.7.3
|
||||
function Get-QQpath {
|
||||
try {
|
||||
$key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ"
|
||||
$uninstallString = $key.UninstallString
|
||||
return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe"
|
||||
}
|
||||
catch {
|
||||
throw "get QQ path error: $_"
|
||||
}
|
||||
}
|
||||
function Select-QQPath {
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
[System.Windows.Forms.Application]::EnableVisualStyles()
|
||||
|
||||
$dialogTitle = "Select QQ.exe"
|
||||
|
||||
$filePicker = New-Object System.Windows.Forms.OpenFileDialog
|
||||
$filePicker.Title = $dialogTitle
|
||||
$filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*"
|
||||
$filePicker.FilterIndex = 1
|
||||
$null = $filePicker.ShowDialog()
|
||||
if (-not ($filePicker.FileName)) {
|
||||
throw "User did not select an .exe file."
|
||||
}
|
||||
return $filePicker.FileName
|
||||
}
|
||||
|
||||
$params = $args -join " "
|
||||
Try {
|
||||
$QQpath = Get-QQpath
|
||||
}
|
||||
Catch {
|
||||
$QQpath = Select-QQPath
|
||||
}
|
||||
|
||||
if (!(Test-Path $QQpath)) {
|
||||
throw "provided QQ path is invalid: $QQpath"
|
||||
}
|
||||
|
||||
$Bootfile = Join-Path $PSScriptRoot "napcat.mjs"
|
||||
$env:ELECTRON_RUN_AS_NODE = 1
|
||||
$commandInfo = Get-Command $QQpath -ErrorAction Stop
|
||||
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging $params}"
|
28
script/NapCat.164.bat
Normal file
28
script/NapCat.164.bat
Normal file
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
chcp 65001
|
||||
:: 检查是否有管理员权限
|
||||
net session >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo 请求管理员权限...
|
||||
powershell -Command "Start-Process '%~f0' -Verb runAs"
|
||||
exit /b
|
||||
)
|
||||
:: 如果有管理员权限,继续执行
|
||||
setlocal enabledelayedexpansion
|
||||
:loop_read
|
||||
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
||||
set "RetString=%%b"
|
||||
goto :napcat_boot
|
||||
)
|
||||
|
||||
:napcat_boot
|
||||
for %%a in ("!RetString!") do (
|
||||
set "pathWithoutUninstall=%%~dpa"
|
||||
)
|
||||
|
||||
set "QQPath=!pathWithoutUninstall!QQ.exe"
|
||||
|
||||
echo !QQPath!
|
||||
"!QQPath!" --enable-logging %*
|
||||
|
||||
pause
|
3
script/NapCat.Way01.bat
Normal file
3
script/NapCat.Way01.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
REM 全新启动脚本 基于 Hook Native 预计版本1.6.0左右发布
|
||||
@echo off
|
||||
pause
|
20
script/index.js
Normal file
20
script/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// --------------------
|
||||
// 2024.7.3 9.9.12 BootWay.03 其余方法暂不公开(此方案为临时方案 Win平台已验证)
|
||||
// 缺陷 (已知)
|
||||
// 1.与非入侵式不同 现在破坏本体代码
|
||||
// 2.重启代码与正常启动代码失效
|
||||
// 3.Win需要补丁
|
||||
// 4.更新后丢失内容 需要重写此文件
|
||||
// 5.安装难度上升与周围基础设施失效
|
||||
// --------------------
|
||||
|
||||
const path = require('path');
|
||||
const CurrentPath = path.dirname(__filename)
|
||||
const hasNapcatParam = process.argv.includes('--enable-logging');
|
||||
if (hasNapcatParam) {
|
||||
(async () => {
|
||||
await import("file://" + path.join(CurrentPath, './napcat/napcat.mjs'));
|
||||
})();
|
||||
} else {
|
||||
require('./launcher.node').load('external_index', module);
|
||||
}
|
18
script/napcat-9912-utf8.bat
Normal file
18
script/napcat-9912-utf8.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
chcp 65001
|
||||
:loop_read
|
||||
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
||||
set "RetString=%%b"
|
||||
goto :napcat_boot
|
||||
)
|
||||
|
||||
:napcat_boot
|
||||
for %%a in ("!RetString!") do (
|
||||
set "pathWithoutUninstall=%%~dpa"
|
||||
)
|
||||
|
||||
set "QQPath=!pathWithoutUninstall!"
|
||||
cd /d !QQPath!
|
||||
echo !QQPath!
|
||||
QQ.exe --enable-logging %*
|
41
script/napcat-9912-utf8.ps1
Normal file
41
script/napcat-9912-utf8.ps1
Normal file
@@ -0,0 +1,41 @@
|
||||
function Get-QQpath {
|
||||
try {
|
||||
$key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ"
|
||||
$uninstallString = $key.UninstallString
|
||||
return [System.IO.Path]::GetDirectoryName($uninstallString) + "\"
|
||||
}
|
||||
catch {
|
||||
throw "get QQ path error: $_"
|
||||
}
|
||||
}
|
||||
function Select-QQPath {
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
[System.Windows.Forms.Application]::EnableVisualStyles()
|
||||
|
||||
$dialogTitle = "Select QQ.exe"
|
||||
|
||||
$filePicker = New-Object System.Windows.Forms.OpenFileDialog
|
||||
$filePicker.Title = $dialogTitle
|
||||
$filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*"
|
||||
$filePicker.FilterIndex = 1
|
||||
$null = $filePicker.ShowDialog()
|
||||
if (-not ($filePicker.FileName)) {
|
||||
throw "User did not select an .exe file."
|
||||
}
|
||||
return $filePicker.FileName
|
||||
}
|
||||
|
||||
$params = $args -join " "
|
||||
Try {
|
||||
$QQpath = Get-QQpath
|
||||
}
|
||||
Catch {
|
||||
$QQpath = Select-QQPath
|
||||
}
|
||||
|
||||
if (!(Test-Path $QQpath)) {
|
||||
throw "provided QQ path is invalid: $QQpath"
|
||||
}
|
||||
|
||||
Set-Location -Path $QQpath
|
||||
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& ./QQ.exe --enable-logging $params}"
|
17
script/napcat-9912.bat
Normal file
17
script/napcat-9912.bat
Normal file
@@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
:loop_read
|
||||
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
||||
set "RetString=%%b"
|
||||
goto :napcat_boot
|
||||
)
|
||||
|
||||
:napcat_boot
|
||||
for %%a in ("!RetString!") do (
|
||||
set "pathWithoutUninstall=%%~dpa"
|
||||
)
|
||||
|
||||
set QQPath=!pathWithoutUninstall!
|
||||
cd /d !QQPath!
|
||||
echo !QQPath!
|
||||
QQ.exe --enable-logging %*
|
41
script/napcat-9912.ps1
Normal file
41
script/napcat-9912.ps1
Normal file
@@ -0,0 +1,41 @@
|
||||
function Get-QQpath {
|
||||
try {
|
||||
$key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ"
|
||||
$uninstallString = $key.UninstallString
|
||||
return [System.IO.Path]::GetDirectoryName($uninstallString) + "\"
|
||||
}
|
||||
catch {
|
||||
throw "get QQ path error: $_"
|
||||
}
|
||||
}
|
||||
function Select-QQPath {
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
[System.Windows.Forms.Application]::EnableVisualStyles()
|
||||
|
||||
$dialogTitle = "Select QQ.exe"
|
||||
|
||||
$filePicker = New-Object System.Windows.Forms.OpenFileDialog
|
||||
$filePicker.Title = $dialogTitle
|
||||
$filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*"
|
||||
$filePicker.FilterIndex = 1
|
||||
$null = $filePicker.ShowDialog()
|
||||
if (-not ($filePicker.FileName)) {
|
||||
throw "User did not select an .exe file."
|
||||
}
|
||||
return $filePicker.FileName
|
||||
}
|
||||
|
||||
$params = $args -join " "
|
||||
Try {
|
||||
$QQpath = Get-QQpath
|
||||
}
|
||||
Catch {
|
||||
$QQpath = Select-QQPath
|
||||
}
|
||||
|
||||
if (!(Test-Path $QQpath)) {
|
||||
throw "provided QQ path is invalid: $QQpath"
|
||||
}
|
||||
|
||||
Set-Location -Path $QQpath
|
||||
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& ./QQ.exe --enable-logging $params}"
|
@@ -1,7 +1,7 @@
|
||||
import { sleep } from '@/common/utils/helper';
|
||||
import { logError } from './log';
|
||||
type AsyncQueueTask = (() => void) | (()=>Promise<void>);
|
||||
|
||||
// 2024.7.13 废弃
|
||||
|
||||
export class AsyncQueue {
|
||||
private tasks: (AsyncQueueTask)[] = [];
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import { NodeIKernelMsgListener } from '@/core';
|
||||
import { NodeIQQNTWrapperSession } from '@/core/wrapper';
|
||||
import { randomUUID } from 'crypto';
|
||||
|
||||
|
@@ -21,7 +21,8 @@ class cacheNode<T> {
|
||||
}
|
||||
}
|
||||
|
||||
type cache<T> = { [key: group_id]: { [key: user_id]: cacheNode<T> } };
|
||||
type cache<T, K = { [key: user_id]: cacheNode<T> }> = { [key: group_id]: K };
|
||||
type removeObject<T> = cache<T, { userId: user_id, value: T }[]>
|
||||
class LRU<T> {
|
||||
private maxAge: number;
|
||||
private maxSize: number;
|
||||
@@ -29,9 +30,9 @@ class LRU<T> {
|
||||
private cache: cache<T>;
|
||||
private head: cacheNode<T> | null = null;
|
||||
private tail: cacheNode<T> | null = null;
|
||||
private onFuncs: ((node: cacheNode<T>) => void)[] = [];
|
||||
private onFuncs: ((node: removeObject<T>) => void)[] = [];
|
||||
|
||||
constructor(maxAge: number = 2e4, maxSize: number = 5e3) {
|
||||
constructor(maxAge: number = 6e4 * 3, maxSize: number = 1e4) {
|
||||
this.maxAge = maxAge;
|
||||
this.maxSize = maxSize;
|
||||
this.cache = Object.create(null);
|
||||
@@ -53,46 +54,39 @@ class LRU<T> {
|
||||
node.prev = node.next = null;
|
||||
delete this.cache[node.groupId][node.userId];
|
||||
this.removeNode(node);
|
||||
this.onFuncs.forEach((func) => func(node));
|
||||
this.onFuncs.forEach((func) => func({ [node.groupId]: [node] }));
|
||||
this.currentSize--;
|
||||
}
|
||||
|
||||
public on(func: (node: cacheNode<T>) => void) {
|
||||
public on(func: (node: removeObject<T>) => void) {
|
||||
this.onFuncs.push(func);
|
||||
}
|
||||
|
||||
private removeExpired() {
|
||||
const now = Date.now();
|
||||
let current = this.tail;
|
||||
const nodesToRemove: cacheNode<T>[] = [];
|
||||
let removedCount = 0;
|
||||
let totalNodeNum = 0;
|
||||
|
||||
const removeObject: cache<T, { userId: user_id, value: T }[]> = {};
|
||||
|
||||
// 收集需要删除的节点
|
||||
while (current && now - current.timestamp > this.maxAge) {
|
||||
nodesToRemove.push(current);
|
||||
// 收集节点
|
||||
if (!removeObject[current.groupId]) removeObject[current.groupId] = [];
|
||||
removeObject[current.groupId].push({ userId: current.userId, value: current.value });
|
||||
// 删除LRU节点
|
||||
delete this.cache[current.groupId][current.userId];
|
||||
current = current.prev;
|
||||
removedCount++;
|
||||
if (removedCount >= 100) break;
|
||||
}
|
||||
|
||||
// 更新链表指向
|
||||
if (nodesToRemove.length > 0) {
|
||||
const newTail = nodesToRemove[nodesToRemove.length - 1].prev;
|
||||
if (newTail) {
|
||||
newTail.next = null;
|
||||
} else {
|
||||
this.head = null;
|
||||
}
|
||||
this.tail = newTail;
|
||||
}
|
||||
|
||||
nodesToRemove.forEach((node) => {
|
||||
node.prev = node.next = null;
|
||||
delete this.cache[node.groupId][node.userId];
|
||||
|
||||
totalNodeNum++;
|
||||
this.currentSize--;
|
||||
this.onFuncs.forEach((func) => func(node));
|
||||
});
|
||||
}
|
||||
|
||||
if (!totalNodeNum) return;
|
||||
|
||||
// 跟新链表指向
|
||||
if (current) { current.next = null; } else { this.head = null; }
|
||||
this.tail = current;
|
||||
|
||||
this.onFuncs.forEach(func => func(removeObject));
|
||||
}
|
||||
|
||||
private addNode(node: cacheNode<T>) {
|
||||
@@ -140,6 +134,28 @@ class LRU<T> {
|
||||
}
|
||||
}
|
||||
}
|
||||
public get(groupId: group_id): { userId: user_id; value: T }[];
|
||||
public get(groupId: group_id, userId: user_id): null | { userId: user_id; value: T };
|
||||
public get(groupId: group_id, userId?: user_id): any {
|
||||
const groupObject = this.cache[groupId];
|
||||
if (!groupObject) return userId === undefined ? [] : null;
|
||||
|
||||
if (userId === undefined) {
|
||||
return Object.entries(groupObject).map(([userId, { value }]) => ({
|
||||
userId: Number(userId),
|
||||
value,
|
||||
}));
|
||||
}
|
||||
|
||||
if (groupObject[userId]) {
|
||||
return { userId, value: groupObject[userId].value };
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
export default LRU;
|
||||
|
@@ -38,11 +38,11 @@ type QQVersionConfigInfo = {
|
||||
}
|
||||
|
||||
let _qqVersionConfigInfo: QQVersionConfigInfo = {
|
||||
'baseVersion': '9.9.11-24568',
|
||||
'curVersion': '9.9.11-24568',
|
||||
'baseVersion': '9.9.12-25765',
|
||||
'curVersion': '9.9.12-25765',
|
||||
'prevVersion': '',
|
||||
'onErrorVersions': [],
|
||||
'buildId': '24568'
|
||||
'buildId': '25765'
|
||||
};
|
||||
|
||||
if (fs.existsSync(configVersionInfoPath)) {
|
||||
@@ -55,23 +55,23 @@ if (fs.existsSync(configVersionInfoPath)) {
|
||||
}
|
||||
|
||||
export const qqVersionConfigInfo: QQVersionConfigInfo = _qqVersionConfigInfo;
|
||||
//V1_WIN_NQ_9.9.11_24568_GW_B
|
||||
//V1_WIN_NQ_9.9.12_25765_GW_B
|
||||
export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toString());
|
||||
// platform_type: 3,
|
||||
// app_type: 4,
|
||||
// app_version: '9.9.9-23159',
|
||||
// qua: 'V1_WIN_NQ_9.9.9_23159_GW_B',
|
||||
// appid: '537213764',
|
||||
// app_version: '9.9.12-25765',
|
||||
// qua: 'V1_WIN_NQ_9.9.12_25765_GW_B',
|
||||
// appid: '537234702',
|
||||
// platVer: '10.0.26100',
|
||||
// clientVer: '9.9.9-23159',
|
||||
// clientVer: '9.9.9-25765',
|
||||
|
||||
// Linux
|
||||
// app_version: '3.2.9-24568',
|
||||
// qua: 'V1_LNX_NQ_3.2.9_24568_GW_B',
|
||||
// app_version: '3.2.9-25765',
|
||||
// qua: 'V1_LNX_NQ_3.2.10_25765_GW_B',
|
||||
|
||||
let _appid: string = '537226369'; // 默认为 Windows 平台的 appid
|
||||
let _appid: string = '537234702'; // 默认为 Windows 平台的 appid
|
||||
if (systemPlatform === 'linux') {
|
||||
_appid = '537226441';
|
||||
_appid = '537234773';
|
||||
}
|
||||
// todo: mac 平台的 appid
|
||||
export const appid = _appid;
|
||||
export const appid = _appid;
|
@@ -1,5 +1,5 @@
|
||||
import fs from 'fs';
|
||||
import { encode, getDuration, getWavFileInfo, isWav } from 'silk-wasm';
|
||||
import { encode, getDuration, getWavFileInfo, isWav, isSilk } from 'silk-wasm';
|
||||
import fsPromise from 'fs/promises';
|
||||
import { log, logError } from './log';
|
||||
import path from 'node:path';
|
||||
@@ -63,10 +63,11 @@ export async function encodeSilk(filePath: string) {
|
||||
// }
|
||||
|
||||
try {
|
||||
const file = await fsPromise.readFile(filePath);
|
||||
const pttPath = path.join(TEMP_DIR, uuidv4());
|
||||
if (getFileHeader(filePath) !== '02232153494c4b') {
|
||||
if (!isSilk(file)) {
|
||||
log(`语音文件${filePath}需要转换成silk`);
|
||||
const _isWav = await isWavFile(filePath);
|
||||
const _isWav = isWav(file);
|
||||
const pcmPath = pttPath + '.pcm';
|
||||
let sampleRate = 0;
|
||||
const convert = () => {
|
||||
@@ -96,7 +97,7 @@ export async function encodeSilk(filePath: string) {
|
||||
if (!_isWav) {
|
||||
input = await convert();
|
||||
} else {
|
||||
input = fs.readFileSync(filePath);
|
||||
input = file;
|
||||
const allowSampleRate = [8000, 12000, 16000, 24000, 32000, 44100, 48000];
|
||||
const { fmt } = getWavFileInfo(input);
|
||||
// log(`wav文件信息`, fmt)
|
||||
@@ -113,7 +114,7 @@ export async function encodeSilk(filePath: string) {
|
||||
duration: silk.duration / 1000
|
||||
};
|
||||
} else {
|
||||
const silk = fs.readFileSync(filePath);
|
||||
const silk = file;
|
||||
let duration = 0;
|
||||
try {
|
||||
duration = getDuration(silk) / 1000;
|
||||
|
@@ -72,7 +72,7 @@ class DBUtil extends DBUtilBase {
|
||||
private cache: { gid: number; uid: number }[] = [];
|
||||
private maxSize: number;
|
||||
|
||||
constructor(maxSize: number = 5000) {
|
||||
constructor(maxSize: number = 50000) {
|
||||
this.maxSize = maxSize;
|
||||
}
|
||||
|
||||
@@ -120,57 +120,83 @@ class DBUtil extends DBUtilBase {
|
||||
});
|
||||
|
||||
|
||||
this.LURCache.on(async (node) => {
|
||||
const { value: time, groupId, userId } = node;
|
||||
this.LURCache.on(async (nodeObject) => {
|
||||
|
||||
logDebug('插入发言时间', userId, groupId);
|
||||
await this.createGroupInfoTimeTableIfNotExist(groupId);
|
||||
Object.entries(nodeObject).forEach(async ([_groupId, datas]) => {
|
||||
const userIds = datas.map(v => v.userId);
|
||||
const groupId = Number(_groupId);
|
||||
logDebug('插入发言时间', _groupId);
|
||||
|
||||
const method = await this.getDataSetMethod(groupId, userId);
|
||||
logDebug('插入发言时间方法判断', userId, groupId, method);
|
||||
await this.createGroupInfoTimeTableIfNotExist(groupId);
|
||||
|
||||
const sql =
|
||||
method == 'update'
|
||||
? `UPDATE "${groupId}" SET last_sent_time = ? WHERE user_id = ?`
|
||||
: `INSERT INTO "${groupId}" (last_sent_time, user_id) VALUES (?, ?)`;
|
||||
const needCreatUsers = await this.getNeedCreatList(groupId, userIds);
|
||||
const updateList = needCreatUsers.length > 0 ? datas.filter(user => !needCreatUsers.includes(user.userId)) : datas;
|
||||
const insertList = needCreatUsers.map(userId => datas.find(e => userId == e.userId)!);
|
||||
|
||||
this.db!.all(sql, [time, userId], (err) => {
|
||||
if (err) {
|
||||
return logError('插入/更新发言时间失败', userId, groupId);
|
||||
logDebug('updateList', updateList);
|
||||
logDebug('insertList', insertList);
|
||||
|
||||
if (insertList.length) {
|
||||
const insertSql = `INSERT INTO "${groupId}" (last_sent_time, user_id) VALUES ${insertList.map(() => '(?, ?)').join(', ')};`;
|
||||
|
||||
this.db!.all(insertSql, insertList.map(v => [v.value, v.userId]).flat(), err => {
|
||||
if (err) {
|
||||
logError(`群 ${groupId} 插入失败`);
|
||||
logError(`更新Sql : ${insertSql}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
logDebug('插入/更新发言时间成功', userId, groupId);
|
||||
|
||||
if (updateList.length) {
|
||||
const updateSql =
|
||||
`UPDATE "${groupId}" SET last_sent_time = CASE ` +
|
||||
updateList.map(v => `WHEN user_id = ${v.userId} THEN ${v.value}`).join(' ') +
|
||||
' ELSE last_sent_time END WHERE user_id IN ' +
|
||||
`(${updateList.map(v => v.userId).join(', ')});`;
|
||||
|
||||
this.db!.all(updateSql, [], err => {
|
||||
if (err) {
|
||||
logError(`群 ${groupId} 跟新失败`);
|
||||
logError(`更新Sql : ${updateSql}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
async getDataSetMethod(groupId: number, userId: number) {
|
||||
// 缓存记录
|
||||
if (this.LastSentCache.get(groupId, userId)) {
|
||||
logDebug('缓存命中', userId, groupId);
|
||||
return 'update';
|
||||
async getNeedCreatList(groupId: number, userIds: number[]) {
|
||||
|
||||
// 获取缓存中没有的
|
||||
const unhas = userIds.filter(userId => !this.LastSentCache.get(groupId, userId));
|
||||
|
||||
if (unhas.length == 0) {
|
||||
logDebug('缓存全部命中');
|
||||
return [];
|
||||
}
|
||||
|
||||
// 数据库判断
|
||||
return new Promise<'insert' | 'update'>((resolve, reject) => {
|
||||
this.db!.all(
|
||||
`SELECT * FROM "${groupId}" WHERE user_id = ?`,
|
||||
[userId],
|
||||
(err, rows) => {
|
||||
if (err) {
|
||||
logError('查询发言时间存在失败', userId, groupId, err);
|
||||
return logError('插入发言时间失败', userId, groupId, err);
|
||||
}
|
||||
logDebug('缓存未全部命中');
|
||||
|
||||
if (rows.length === 0) {
|
||||
logDebug('查询发言时间不存在', userId, groupId);
|
||||
return resolve('insert');
|
||||
}
|
||||
const sql = `SELECT * FROM "${groupId}" WHERE user_id IN (${unhas.map(() => '?').join(',')})`;
|
||||
|
||||
logDebug('查询发言时间存在', userId, groupId);
|
||||
resolve('update');
|
||||
return new Promise<number[]>((resolve) => {
|
||||
this.db!.all(sql, unhas, (err, rows: { user_id: number }[]) => {
|
||||
const has = rows.map(v => v.user_id);
|
||||
const needCreatUsers = unhas.filter(userId => !has.includes(userId));
|
||||
|
||||
if (needCreatUsers.length == 0) {
|
||||
logDebug('数据库全部命中');
|
||||
} else {
|
||||
logDebug('数据库未全部命中');
|
||||
}
|
||||
);
|
||||
|
||||
resolve(needCreatUsers);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
async createGroupInfoTimeTableIfNotExist(groupId: number) {
|
||||
const createTableSQL = (groupId: number) =>
|
||||
@@ -408,10 +434,12 @@ class DBUtil extends DBUtilBase {
|
||||
logDebug('读取发言时间', groupId);
|
||||
return new Promise<IRember[]>((resolve, reject) => {
|
||||
this.db!.all(`SELECT * FROM "${groupId}" `, (err, rows: IRember[]) => {
|
||||
const cache = this.LURCache.get(groupId).map(e => ({ user_id: e.userId, last_sent_time: e.value }));
|
||||
if (err) {
|
||||
logError('查询发言时间失败', groupId);
|
||||
return resolve([]);
|
||||
return resolve(cache.map(e => ({ ...e, join_time: 0 })));
|
||||
}
|
||||
Object.assign(rows, cache);
|
||||
logDebug('查询发言时间成功', groupId, rows);
|
||||
resolve(rows);
|
||||
});
|
||||
|
@@ -148,6 +148,8 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi
|
||||
};
|
||||
if (typeof options === 'string') {
|
||||
url = options;
|
||||
const host = new URL(url).hostname;
|
||||
headers['Host'] = host;
|
||||
} else {
|
||||
url = options.url;
|
||||
if (options.headers) {
|
||||
@@ -158,7 +160,12 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi
|
||||
}
|
||||
}
|
||||
}
|
||||
const fetchRes = await fetch(url, { headers });
|
||||
const fetchRes = await fetch(url, { headers }).catch((err) => {
|
||||
if (err.cause) {
|
||||
throw err.cause;
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
if (!fetchRes.ok) throw new Error(`下载文件失败: ${fetchRes.statusText}`);
|
||||
|
||||
const blob = await fetchRes.blob();
|
||||
|
@@ -7,7 +7,7 @@ export class RequestUtil {
|
||||
static async HttpsGetCookies(url: string): Promise<{ [key: string]: string }> {
|
||||
const client = url.startsWith('https') ? https : http;
|
||||
return new Promise((resolve, reject) => {
|
||||
let req = client.get(url, (res) => {
|
||||
const req = client.get(url, (res) => {
|
||||
let cookies: { [key: string]: string } = {};
|
||||
const handleRedirect = (res: http.IncomingMessage) => {
|
||||
//console.log(res.headers.location);
|
||||
@@ -44,7 +44,7 @@ export class RequestUtil {
|
||||
});
|
||||
}
|
||||
});
|
||||
req.on('error', (error: any) => {
|
||||
req.on('error', (error: any) => {
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
|
1
src/core
1
src/core
Submodule src/core deleted from 8f96c803b3
@@ -1,14 +0,0 @@
|
||||
interface IDependsAdapter {
|
||||
onMSFStatusChange(arg1: number, arg2: number): void;
|
||||
onMSFSsoError(args: unknown): void;
|
||||
getGroupCode(args: unknown): void;
|
||||
}
|
||||
export interface NodeIDependsAdapter extends IDependsAdapter {
|
||||
new (adapter: IDependsAdapter): NodeIDependsAdapter;
|
||||
}
|
||||
export declare class DependsAdapter implements IDependsAdapter {
|
||||
onMSFStatusChange(arg1: number, arg2: number): void;
|
||||
onMSFSsoError(args: unknown): void;
|
||||
getGroupCode(args: unknown): void;
|
||||
}
|
||||
export {};
|
@@ -1 +0,0 @@
|
||||
function _0x44cc(_0x312a21,_0x4a967e){var _0x271440=_0x2714();return _0x44cc=function(_0x44ccfa,_0x175bc8){_0x44ccfa=_0x44ccfa-0x19b;var _0x5df6b4=_0x271440[_0x44ccfa];return _0x5df6b4;},_0x44cc(_0x312a21,_0x4a967e);}var _0x111909=_0x44cc;(function(_0x256b3f,_0xe4a1f5){var _0x12e8c9=_0x44cc,_0x5474d2=_0x256b3f();while(!![]){try{var _0x2d1507=parseInt(_0x12e8c9(0x19d))/0x1+parseInt(_0x12e8c9(0x1a0))/0x2+-parseInt(_0x12e8c9(0x19c))/0x3*(parseInt(_0x12e8c9(0x1a3))/0x4)+-parseInt(_0x12e8c9(0x19f))/0x5+-parseInt(_0x12e8c9(0x1a7))/0x6+-parseInt(_0x12e8c9(0x1a2))/0x7*(-parseInt(_0x12e8c9(0x1a4))/0x8)+parseInt(_0x12e8c9(0x19b))/0x9*(parseInt(_0x12e8c9(0x1a5))/0xa);if(_0x2d1507===_0xe4a1f5)break;else _0x5474d2['push'](_0x5474d2['shift']());}catch(_0x2b5e38){_0x5474d2['push'](_0x5474d2['shift']());}}}(_0x2714,0x87334));function _0x2714(){var _0x3e0a77=['45OTVTgb','66663ehCFfg','256629rzqRMK','onMSFSsoError','3371445OMKryH','2059244LQuEby','getGroupCode','7565579olrbTG','192mKBIhe','8KqNScg','72210NlTlCz','onMSFStatusChange','650856uWSapS'];_0x2714=function(){return _0x3e0a77;};return _0x2714();}export class DependsAdapter{[_0x111909(0x1a6)](_0x513186,_0x2cd9df){}[_0x111909(0x19e)](_0x17b3a0){}[_0x111909(0x1a1)](_0x11bddb){}}
|
@@ -1,14 +0,0 @@
|
||||
interface IDispatcherAdapter {
|
||||
dispatchRequest(arg: unknown): void;
|
||||
dispatchCall(arg: unknown): void;
|
||||
dispatchCallWithJson(arg: unknown): void;
|
||||
}
|
||||
export interface NodeIDispatcherAdapter extends IDispatcherAdapter {
|
||||
new (adapter: IDispatcherAdapter): NodeIDispatcherAdapter;
|
||||
}
|
||||
export declare class DispatcherAdapter implements IDispatcherAdapter {
|
||||
dispatchRequest(arg: unknown): void;
|
||||
dispatchCall(arg: unknown): void;
|
||||
dispatchCallWithJson(arg: unknown): void;
|
||||
}
|
||||
export {};
|
@@ -1 +0,0 @@
|
||||
var _0x346107=_0x4418;(function(_0x328c74,_0x4720a0){var _0x473a2b=_0x4418,_0x1efd0b=_0x328c74();while(!![]){try{var _0x4c072a=parseInt(_0x473a2b(0x9e))/0x1+parseInt(_0x473a2b(0xa7))/0x2+parseInt(_0x473a2b(0xa2))/0x3*(parseInt(_0x473a2b(0xa8))/0x4)+parseInt(_0x473a2b(0xa3))/0x5*(parseInt(_0x473a2b(0x9f))/0x6)+-parseInt(_0x473a2b(0xa4))/0x7+parseInt(_0x473a2b(0xa6))/0x8*(-parseInt(_0x473a2b(0xa9))/0x9)+-parseInt(_0x473a2b(0x9d))/0xa*(parseInt(_0x473a2b(0xa1))/0xb);if(_0x4c072a===_0x4720a0)break;else _0x1efd0b['push'](_0x1efd0b['shift']());}catch(_0x32a7c3){_0x1efd0b['push'](_0x1efd0b['shift']());}}}(_0x5807,0xe39d2));function _0x5807(){var _0x41799f=['66GQaKcl','dispatchRequest','385bbfoBZ','41646dCrmvH','497105BZjEjv','7775432sdgevn','dispatchCallWithJson','48RCySUZ','3234922CDacKn','168uOoQdf','560997Yzzevs','dispatchCall','363370aTDqlK','394739JgeIhV'];_0x5807=function(){return _0x41799f;};return _0x5807();}function _0x4418(_0x511331,_0xc30b97){var _0x580734=_0x5807();return _0x4418=function(_0x4418ec,_0x4b6813){_0x4418ec=_0x4418ec-0x9d;var _0x44bc71=_0x580734[_0x4418ec];return _0x44bc71;},_0x4418(_0x511331,_0xc30b97);}export class DispatcherAdapter{[_0x346107(0xa0)](_0x5bd2df){}[_0x346107(0xaa)](_0x351ce1){}[_0x346107(0xa5)](_0x4d6e22){}}
|
@@ -1,24 +0,0 @@
|
||||
interface IGlobalAdapter {
|
||||
onLog(...args: unknown[]): void;
|
||||
onGetSrvCalTime(...args: unknown[]): void;
|
||||
onShowErrUITips(...args: unknown[]): void;
|
||||
fixPicImgType(...args: unknown[]): void;
|
||||
getAppSetting(...args: unknown[]): void;
|
||||
onInstallFinished(...args: unknown[]): void;
|
||||
onUpdateGeneralFlag(...args: unknown[]): void;
|
||||
onGetOfflineMsg(...args: unknown[]): void;
|
||||
}
|
||||
export interface NodeIGlobalAdapter extends IGlobalAdapter {
|
||||
new (adapter: IGlobalAdapter): NodeIGlobalAdapter;
|
||||
}
|
||||
export declare class GlobalAdapter implements IGlobalAdapter {
|
||||
onLog(...args: unknown[]): void;
|
||||
onGetSrvCalTime(...args: unknown[]): void;
|
||||
onShowErrUITips(...args: unknown[]): void;
|
||||
fixPicImgType(...args: unknown[]): void;
|
||||
getAppSetting(...args: unknown[]): void;
|
||||
onInstallFinished(...args: unknown[]): void;
|
||||
onUpdateGeneralFlag(...args: unknown[]): void;
|
||||
onGetOfflineMsg(...args: unknown[]): void;
|
||||
}
|
||||
export {};
|
@@ -1 +0,0 @@
|
||||
var _0x2ce042=_0x39ea;(function(_0x1bd126,_0xdfd05c){var _0x3f5b29=_0x39ea,_0x562474=_0x1bd126();while(!![]){try{var _0x12e705=parseInt(_0x3f5b29(0xe0))/0x1*(parseInt(_0x3f5b29(0xdb))/0x2)+-parseInt(_0x3f5b29(0xda))/0x3*(-parseInt(_0x3f5b29(0xe5))/0x4)+-parseInt(_0x3f5b29(0xe8))/0x5*(-parseInt(_0x3f5b29(0xea))/0x6)+-parseInt(_0x3f5b29(0xeb))/0x7*(-parseInt(_0x3f5b29(0xdd))/0x8)+parseInt(_0x3f5b29(0xec))/0x9+parseInt(_0x3f5b29(0xe7))/0xa+-parseInt(_0x3f5b29(0xdc))/0xb*(parseInt(_0x3f5b29(0xe9))/0xc);if(_0x12e705===_0xdfd05c)break;else _0x562474['push'](_0x562474['shift']());}catch(_0x321fa7){_0x562474['push'](_0x562474['shift']());}}}(_0x5128,0xbe05a));function _0x39ea(_0x411eaf,_0x2a77d6){var _0x51288e=_0x5128();return _0x39ea=function(_0x39ea4c,_0x48db1f){_0x39ea4c=_0x39ea4c-0xda;var _0x4aec8a=_0x51288e[_0x39ea4c];return _0x4aec8a;},_0x39ea(_0x411eaf,_0x2a77d6);}function _0x5128(){var _0x3eab9d=['2989048awVdbH','getAppSetting','fixPicImgType','14NJZFVJ','onGetSrvCalTime','onGetOfflineMsg','onShowErrUITips','onUpdateGeneralFlag','4628LNHMjb','onLog','7362570OPxGun','262910MeMbOW','2964xuPLiO','156EHEYzY','7SbAnmy','10836486qhReRE','2118iSWMyP','131014srNfzD','206492gwLiOI'];_0x5128=function(){return _0x3eab9d;};return _0x5128();}export class GlobalAdapter{[_0x2ce042(0xe6)](..._0x3a478d){}[_0x2ce042(0xe1)](..._0x6ddd78){}[_0x2ce042(0xe3)](..._0x3bec44){}[_0x2ce042(0xdf)](..._0x392b76){}[_0x2ce042(0xde)](..._0x134c3d){}['onInstallFinished'](..._0x4d4c5e){}[_0x2ce042(0xe4)](..._0x1b6e37){}[_0x2ce042(0xe2)](..._0x2bd438){}}
|
@@ -1 +0,0 @@
|
||||
(function(_0x35e939,_0x4e8800){var _0x22a5ad=_0x302a,_0x14a603=_0x35e939();while(!![]){try{var _0x56d49d=-parseInt(_0x22a5ad(0x1e0))/0x1*(-parseInt(_0x22a5ad(0x1dd))/0x2)+parseInt(_0x22a5ad(0x1db))/0x3+parseInt(_0x22a5ad(0x1e3))/0x4*(parseInt(_0x22a5ad(0x1df))/0x5)+parseInt(_0x22a5ad(0x1e4))/0x6*(parseInt(_0x22a5ad(0x1e2))/0x7)+-parseInt(_0x22a5ad(0x1e1))/0x8*(-parseInt(_0x22a5ad(0x1dc))/0x9)+parseInt(_0x22a5ad(0x1e5))/0xa*(parseInt(_0x22a5ad(0x1de))/0xb)+-parseInt(_0x22a5ad(0x1e6))/0xc;if(_0x56d49d===_0x4e8800)break;else _0x14a603['push'](_0x14a603['shift']());}catch(_0x551840){_0x14a603['push'](_0x14a603['shift']());}}}(_0x22f0,0x9736d));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x22f0(){var _0x1dbb93=['6VoAqEd','46490UGawKA','41540844qmnKzw','3273075GrOaCM','243lZroCR','948WKPLmW','1023JGjAJh','1215jkzgPE','781bcQyyV','342616QEQIVI','5799801fMbZzm','3336YNUayX'];_0x22f0=function(){return _0x1dbb93;};return _0x22f0();}function _0x302a(_0x5f46a6,_0x247bc9){var _0x22f085=_0x22f0();return _0x302a=function(_0x302ac7,_0x455f6a){_0x302ac7=_0x302ac7-0x1db;var _0x43782d=_0x22f085[_0x302ac7];return _0x43782d;},_0x302a(_0x5f46a6,_0x247bc9);}export*from'./NodeIGlobalAdapter';
|
41
src/core.lib/src/apis/collection.d.ts
vendored
41
src/core.lib/src/apis/collection.d.ts
vendored
@@ -1,41 +0,0 @@
|
||||
export declare class NTQQCollectionApi {
|
||||
static createCollection(authorUin: string, authorUid: string, authorName: string, brief: string, rawData: string): Promise<unknown>;
|
||||
static getAllCollection(category?: number, count?: number): Promise<import("..").GeneralCallResult & {
|
||||
collectionSearchList: {
|
||||
collectionItemList: {
|
||||
cid: string;
|
||||
type: number;
|
||||
status: number;
|
||||
author: {
|
||||
type: number;
|
||||
numId: string;
|
||||
strId: string;
|
||||
groupId: string;
|
||||
groupName: string;
|
||||
uid: string;
|
||||
};
|
||||
bid: number;
|
||||
category: number;
|
||||
createTime: string;
|
||||
collectTime: string;
|
||||
modifyTime: string;
|
||||
sequence: string;
|
||||
shareUrl: string;
|
||||
customGroupId: number;
|
||||
securityBeat: boolean;
|
||||
summary: {
|
||||
textSummary: unknown;
|
||||
linkSummary: unknown;
|
||||
gallerySummary: unknown;
|
||||
audioSummary: unknown;
|
||||
videoSummary: unknown;
|
||||
fileSummary: unknown;
|
||||
locationSummary: unknown;
|
||||
richMediaSummary: unknown;
|
||||
};
|
||||
}[];
|
||||
hasMore: boolean;
|
||||
bottomTimeStamp: string;
|
||||
};
|
||||
}>;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
const _0x16c2fd=_0x34a7;(function(_0x251413,_0x5bddaa){const _0xa77281=_0x34a7,_0x1d65a9=_0x251413();while(!![]){try{const _0x5b614c=parseInt(_0xa77281(0xbb))/0x1*(parseInt(_0xa77281(0xad))/0x2)+-parseInt(_0xa77281(0xaa))/0x3*(parseInt(_0xa77281(0xb0))/0x4)+-parseInt(_0xa77281(0xb4))/0x5*(parseInt(_0xa77281(0xb7))/0x6)+-parseInt(_0xa77281(0xac))/0x7*(parseInt(_0xa77281(0xae))/0x8)+-parseInt(_0xa77281(0xb1))/0x9*(parseInt(_0xa77281(0xab))/0xa)+parseInt(_0xa77281(0xb8))/0xb+parseInt(_0xa77281(0xb3))/0xc;if(_0x5b614c===_0x5bddaa)break;else _0x1d65a9['push'](_0x1d65a9['shift']());}catch(_0x2722b0){_0x1d65a9['push'](_0x1d65a9['shift']());}}}(_0x4a88,0x398a9));import{napCatCore}from'..';function _0x34a7(_0x580e45,_0x3cc50f){const _0x4a88e8=_0x4a88();return _0x34a7=function(_0x34a7a8,_0x31197a){_0x34a7a8=_0x34a7a8-0xaa;let _0x17b5f8=_0x4a88e8[_0x34a7a8];return _0x17b5f8;},_0x34a7(_0x580e45,_0x3cc50f);}function _0x4a88(){const _0x818f1c=['getAllCollection','getCollectionItemList','11576atRObe','39QifNsH','10ljSGOB','182LAuboJ','48bPNDoz','64888xyySTm','getCollectionService','5384Ejpvlu','2744541mUwpGH','session','7295928jPFFyI','5tnIUAc','createNewCollectionItem','toString','2474574OPBACY','3251963WAoBip'];_0x4a88=function(){return _0x818f1c;};return _0x4a88();}export class NTQQCollectionApi{static async['createCollection'](_0x7fcb0,_0x92a47,_0x5db959,_0x53727c,_0x8a9e08){const _0x45d31f=_0x34a7;let _0x2be63d={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0x7fcb0,'strId':_0x5db959,'groupId':'0','groupName':'','uid':_0x92a47},'customGroupId':'0','createTime':Date['now']()['toString'](),'sequence':Date['now']()[_0x45d31f(0xb6)]()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x53727c,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x8a9e08,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore['session'][_0x45d31f(0xaf)]()[_0x45d31f(0xb5)](_0x2be63d);}static async[_0x16c2fd(0xb9)](_0x90524d=0x0,_0x3bca62=0x32){const _0x1c1bcb=_0x16c2fd;let _0x1e1a24={'category':_0x90524d,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0x3bca62,'searchDown':!![]};return napCatCore[_0x1c1bcb(0xb2)][_0x1c1bcb(0xaf)]()[_0x1c1bcb(0xba)](_0x1e1a24);}}
|
38
src/core.lib/src/apis/file.d.ts
vendored
38
src/core.lib/src/apis/file.d.ts
vendored
@@ -1,38 +0,0 @@
|
||||
import { CacheFileListItem, CacheFileType, ChatCacheListItemBasic, ChatType, ElementType, RawMessage } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core';
|
||||
import * as fileType from 'file-type';
|
||||
import { ISizeCalculationResult } from 'image-size/dist/types/interface';
|
||||
export declare class NTQQFileApi {
|
||||
static getFileType(filePath: string): Promise<fileType.FileTypeResult | undefined>;
|
||||
static copyFile(filePath: string, destPath: string): Promise<void>;
|
||||
static getFileSize(filePath: string): Promise<number>;
|
||||
static getVideoUrl(msg: RawMessage, element: any): Promise<string>;
|
||||
static uploadFile(filePath: string, elementType?: ElementType, elementSubType?: number): Promise<{
|
||||
md5: string;
|
||||
fileName: string;
|
||||
path: string;
|
||||
fileSize: number;
|
||||
ext: string;
|
||||
}>;
|
||||
static downloadMedia(msgId: string, chatType: ChatType, peerUid: string, elementId: string, thumbPath: string, sourcePath: string, timeout?: number, force?: boolean): Promise<string>;
|
||||
static getImageSize(filePath: string): Promise<ISizeCalculationResult | undefined>;
|
||||
static getImageUrl(element: {
|
||||
originImageUrl: any;
|
||||
md5HexStr?: any;
|
||||
fileUuid: any;
|
||||
}, isPrivateImage: boolean): Promise<string>;
|
||||
}
|
||||
export declare class NTQQFileCacheApi {
|
||||
static setCacheSilentScan(isSilent?: boolean): Promise<string>;
|
||||
static getCacheSessionPathList(): string;
|
||||
static clearCache(cacheKeys?: Array<string>): unknown;
|
||||
static addCacheScannedPaths(pathMap?: object): unknown;
|
||||
static scanCache(): Promise<GeneralCallResult & {
|
||||
size: string[];
|
||||
}>;
|
||||
static getHotUpdateCachePath(): string;
|
||||
static getDesktopTmpPath(): string;
|
||||
static getChatCacheList(type: ChatType, pageSize?: number, pageIndex?: number): unknown;
|
||||
static getFileCacheInfo(fileType: CacheFileType, pageSize?: number, lastRecord?: CacheFileListItem): void;
|
||||
static clearChatCache(chats?: ChatCacheListItemBasic[], fileKeys?: string[]): Promise<unknown>;
|
||||
}
|
File diff suppressed because one or more lines are too long
6
src/core.lib/src/apis/friend.d.ts
vendored
6
src/core.lib/src/apis/friend.d.ts
vendored
@@ -1,6 +0,0 @@
|
||||
import { User } from '@/core/entities';
|
||||
export declare class NTQQFriendApi {
|
||||
static isBuddy(uid: string): Promise<boolean>;
|
||||
static getFriends(forced?: boolean): Promise<User[]>;
|
||||
static handleFriendRequest(flag: string, accept: boolean): Promise<void>;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
function _0x3f8b(_0x3adbc0,_0x52ba9f){const _0x2f6006=_0x2f60();return _0x3f8b=function(_0x3f8b4b,_0x123fe6){_0x3f8b4b=_0x3f8b4b-0x191;let _0x3b5014=_0x2f6006[_0x3f8b4b];return _0x3b5014;},_0x3f8b(_0x3adbc0,_0x52ba9f);}const _0x207047=_0x3f8b;(function(_0x36b8ae,_0x5535ef){const _0xc4c448=_0x3f8b,_0x42e757=_0x36b8ae();while(!![]){try{const _0x1113ac=parseInt(_0xc4c448(0x1a5))/0x1*(-parseInt(_0xc4c448(0x1a4))/0x2)+-parseInt(_0xc4c448(0x19d))/0x3+-parseInt(_0xc4c448(0x1a0))/0x4+parseInt(_0xc4c448(0x1a3))/0x5*(parseInt(_0xc4c448(0x194))/0x6)+parseInt(_0xc4c448(0x197))/0x7+-parseInt(_0xc4c448(0x195))/0x8*(parseInt(_0xc4c448(0x19f))/0x9)+-parseInt(_0xc4c448(0x19e))/0xa;if(_0x1113ac===_0x5535ef)break;else _0x42e757['push'](_0x42e757['shift']());}catch(_0x1bce5d){_0x42e757['push'](_0x42e757['shift']());}}}(_0x2f60,0xa44c9));import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';function _0x2f60(){const _0x3b7fb0=['NodeIKernelBuddyService/getBuddyList','72UFtzvh','802192FJTSbN','getBuddyService','6412791VOZzJM','ECFcX','buddyList','ANcGc','getFriends','approvalFriendRequest','418362xpVKXJ','4159360gxRcyX','18Bekjtt','786840pcosLf','handleFriendRequest','session','489045FqidJh','464204cafDBG','2ewqxTT','NodeIKernelBuddyListener/onBuddyListChange','isBuddy','CallNormalEvent'];_0x2f60=function(){return _0x3b7fb0;};return _0x2f60();}export class NTQQFriendApi{static async[_0x207047(0x191)](_0x2472ec){const _0xeb3355=_0x207047;return napCatCore[_0xeb3355(0x1a2)][_0xeb3355(0x196)]()[_0xeb3355(0x191)](_0x2472ec);}static async[_0x207047(0x19b)](_0x494409=![]){const _0x5d0dd2=_0x207047,_0x560e71={'ANcGc':_0x5d0dd2(0x193),'ECFcX':_0x5d0dd2(0x1a6)};let [_0x5759c7,_0x5938cd]=await NTEventDispatch[_0x5d0dd2(0x192)](_0x560e71[_0x5d0dd2(0x19a)],_0x560e71[_0x5d0dd2(0x198)],0x1,0x1388,_0x494409);const _0x1a44b1=[];for(const _0x4e20e9 of _0x5938cd){for(const _0x4a5f6e of _0x4e20e9[_0x5d0dd2(0x199)]){_0x1a44b1['push'](_0x4a5f6e);}}return _0x1a44b1;}static async[_0x207047(0x1a1)](_0x2b4dce,_0x230686){const _0x360bab=_0x207047,_0xd973ae={'pYazX':function(_0x364927,_0x3a91a8){return _0x364927<_0x3a91a8;}};let _0x33a653=_0x2b4dce['split']('|');if(_0xd973ae['pYazX'](_0x33a653['length'],0x2))return;let _0x26800e=_0x33a653[0x0],_0x1ee74e=_0x33a653[0x1];napCatCore['session']['getBuddyService']()?.[_0x360bab(0x19c)]({'friendUid':_0x26800e,'reqTime':_0x1ee74e,'accept':_0x230686});}}
|
62
src/core.lib/src/apis/group.d.ts
vendored
62
src/core.lib/src/apis/group.d.ts
vendored
@@ -1,62 +0,0 @@
|
||||
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities';
|
||||
import { GeneralCallResult } from '@/core';
|
||||
export declare class NTQQGroupApi {
|
||||
static getGroups(forced?: boolean): Promise<Group[]>;
|
||||
static getGroupRecommendContactArkJson(GroupCode: string): Promise<unknown>;
|
||||
static CreatGroupFileFolder(groupCode: string, folderName: string): Promise<GeneralCallResult & {
|
||||
resultWithGroupItem: {
|
||||
result: any;
|
||||
groupItem: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFile(groupCode: string, files: string[]): Promise<GeneralCallResult & {
|
||||
transGroupFileResult: {
|
||||
result: any;
|
||||
successFileIdList: any[];
|
||||
failFileIdList: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFileFolder(groupCode: string, folderId: string): Promise<GeneralCallResult & {
|
||||
groupFileCommonResult: {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
};
|
||||
}>;
|
||||
static getSingleScreenNotifies(num: number): Promise<GroupNotify[]>;
|
||||
static getGroupMembers(groupQQ: string, num?: number): Promise<Map<string, GroupMember>>;
|
||||
static getGroupNotifies(): Promise<void>;
|
||||
static GetGroupFileCount(Gids: Array<string>): Promise<GeneralCallResult & {
|
||||
groupCodes: string[];
|
||||
groupFileCounts: number[];
|
||||
}>;
|
||||
static getGroupIgnoreNotifies(): Promise<void>;
|
||||
static getArkJsonGroupShare(GroupCode: string): Promise<string>;
|
||||
static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise<GeneralCallResult & {
|
||||
errCode: number;
|
||||
picInfo?: {
|
||||
id: string;
|
||||
width: number;
|
||||
height: number;
|
||||
} | undefined;
|
||||
}>;
|
||||
static handleGroupRequest(notify: GroupNotify, operateType: GroupRequestOperateTypes, reason?: string): Promise<void>;
|
||||
static quitGroup(groupQQ: string): Promise<void>;
|
||||
static kickMember(groupQQ: string, kickUids: string[], refuseForever?: boolean, kickReason?: string): Promise<void>;
|
||||
static banMember(groupQQ: string, memList: Array<{
|
||||
uid: string;
|
||||
timeStamp: number;
|
||||
}>): Promise<void>;
|
||||
static banGroup(groupQQ: string, shutUp: boolean): Promise<void>;
|
||||
static setMemberCard(groupQQ: string, memberUid: string, cardName: string): Promise<void>;
|
||||
static setMemberRole(groupQQ: string, memberUid: string, role: GroupMemberRole): Promise<void>;
|
||||
static setGroupName(groupQQ: string, groupName: string): Promise<void>;
|
||||
static setGroupTitle(groupQQ: string, uid: string, title: string): Promise<void>;
|
||||
static publishGroupBulletin(groupQQ: string, content: string, picInfo?: {
|
||||
id: string;
|
||||
width: number;
|
||||
height: number;
|
||||
} | undefined, pinned?: number, confirmRequired?: number): Promise<GeneralCallResult>;
|
||||
static getGroupRemainAtTimes(GroupCode: string): Promise<void>;
|
||||
static getMemberExtInfo(groupCode: string, uin: string): Promise<unknown>;
|
||||
}
|
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
(function(_0x320c16,_0x3b3f4d){var _0x2f20ec=_0x5714,_0x4b0e9f=_0x320c16();while(!![]){try{var _0x402ee9=-parseInt(_0x2f20ec(0xb2))/0x1+parseInt(_0x2f20ec(0xb3))/0x2+parseInt(_0x2f20ec(0xb0))/0x3*(-parseInt(_0x2f20ec(0xb4))/0x4)+parseInt(_0x2f20ec(0xb5))/0x5+-parseInt(_0x2f20ec(0xae))/0x6+-parseInt(_0x2f20ec(0xad))/0x7*(parseInt(_0x2f20ec(0xb1))/0x8)+-parseInt(_0x2f20ec(0xac))/0x9*(-parseInt(_0x2f20ec(0xaf))/0xa);if(_0x402ee9===_0x3b3f4d)break;else _0x4b0e9f['push'](_0x4b0e9f['shift']());}catch(_0x142bec){_0x4b0e9f['push'](_0x4b0e9f['shift']());}}}(_0xe84f,0x484a4));export*from'./file';export*from'./friend';export*from'./group';function _0x5714(_0x3feed1,_0x4ca4c4){var _0xe84f68=_0xe84f();return _0x5714=function(_0x571489,_0x29e2a3){_0x571489=_0x571489-0xac;var _0x4a7ec9=_0xe84f68[_0x571489];return _0x4a7ec9;},_0x5714(_0x3feed1,_0x4ca4c4);}export*from'./msg';export*from'./user';export*from'./webapi';function _0xe84f(){var _0x342365=['532154urThnn','278952YomVkd','1961260ohXVxW','2097DwqDGq','35wSQklh','1367538lsKzQU','4660OZCYxD','9STGFUv','31024iFbXSj','14280kuolAE'];_0xe84f=function(){return _0x342365;};return _0xe84f();}export*from'./sign';export*from'./system';
|
26
src/core.lib/src/apis/msg.d.ts
vendored
26
src/core.lib/src/apis/msg.d.ts
vendored
@@ -1,26 +0,0 @@
|
||||
import { GetFileListParam, Peer, RawMessage, SendMessageElement } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core/services/common';
|
||||
export declare class NTQQMsgApi {
|
||||
static setEmojiLike(peer: Peer, msgSeq: string, emojiId: string, set?: boolean): Promise<unknown>;
|
||||
static getMultiMsg(peer: Peer, rootMsgId: string, parentMsgId: string): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
} | undefined>;
|
||||
static getMsgsByMsgId(peer: Peer, msgIds: string[]): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
}>;
|
||||
static getMsgsBySeqAndCount(peer: Peer, seq: string, count: number, desc: boolean, z: boolean): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
}>;
|
||||
static activateChat(peer: Peer): Promise<void>;
|
||||
static activateChatAndGetHistory(peer: Peer): Promise<void>;
|
||||
static setMsgRead(peer: Peer): Promise<GeneralCallResult>;
|
||||
static getGroupFileList(GroupCode: string, params: GetFileListParam): Promise<any[]>;
|
||||
static getMsgHistory(peer: Peer, msgId: string, count: number): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
}>;
|
||||
static fetchRecentContact(): Promise<void>;
|
||||
static recallMsg(peer: Peer, msgIds: string[]): Promise<void>;
|
||||
static sendMsg(peer: Peer, msgElements: SendMessageElement[], waitComplete?: boolean, timeout?: number): Promise<RawMessage>;
|
||||
static forwardMsg(srcPeer: Peer, destPeer: Peer, msgIds: string[]): Promise<GeneralCallResult>;
|
||||
static multiForwardMsg(srcPeer: Peer, destPeer: Peer, msgIds: string[]): Promise<RawMessage>;
|
||||
}
|
File diff suppressed because one or more lines are too long
43
src/core.lib/src/apis/sign.d.ts
vendored
43
src/core.lib/src/apis/sign.d.ts
vendored
@@ -1,43 +0,0 @@
|
||||
export interface IdMusicSignPostData {
|
||||
type: 'qq' | '163';
|
||||
id: string | number;
|
||||
}
|
||||
export interface CustomMusicSignPostData {
|
||||
type: 'custom';
|
||||
url: string;
|
||||
audio: string;
|
||||
title: string;
|
||||
image?: string;
|
||||
singer?: string;
|
||||
}
|
||||
export interface MiniAppLuaJsonType {
|
||||
prompt: string;
|
||||
title: string;
|
||||
preview: string;
|
||||
jumpUrl: string;
|
||||
tag: string;
|
||||
tagIcon: string;
|
||||
source: string;
|
||||
sourcelogo: string;
|
||||
}
|
||||
export declare function SignMiniApp(CardData: MiniAppLuaJsonType): Promise<string>;
|
||||
export declare function SignMusicInternal(songname: string, singer: string, cover: string, songmid: string, songmusic: string): Promise<{
|
||||
code: number;
|
||||
data: {
|
||||
arkResult: string;
|
||||
};
|
||||
}>;
|
||||
export declare function CreateMusicThridWay0(id?: string, mid?: string): Promise<{
|
||||
mid: string;
|
||||
name?: string | undefined;
|
||||
singer?: string | undefined;
|
||||
url?: string | undefined;
|
||||
cover?: string | undefined;
|
||||
}>;
|
||||
export declare function CreateMusicThridWay1(id?: string, mid?: string): Promise<void>;
|
||||
export declare function SignMusicWrapper(id?: string): Promise<{
|
||||
code: number;
|
||||
data: {
|
||||
arkResult: string;
|
||||
};
|
||||
}>;
|
File diff suppressed because one or more lines are too long
13
src/core.lib/src/apis/system.d.ts
vendored
13
src/core.lib/src/apis/system.d.ts
vendored
@@ -1,13 +0,0 @@
|
||||
import { GeneralCallResult } from '@/core';
|
||||
export declare class NTQQSystemApi {
|
||||
static hasOtherRunningQQProcess(): Promise<boolean>;
|
||||
static ORCImage(filePath: string): Promise<GeneralCallResult>;
|
||||
static translateEnWordToZn(words: string[]): Promise<GeneralCallResult & {
|
||||
words: string[];
|
||||
}>;
|
||||
static getOnlineDev(): Promise<any>;
|
||||
static getArkJsonCollection(cid: string): Promise<GeneralCallResult & {
|
||||
arkJson: string;
|
||||
}>;
|
||||
static BootMiniApp(appfile: string, params: string): Promise<unknown>;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
function _0x3f3e(_0x227620,_0x40602c){const _0x415a7e=_0x415a();return _0x3f3e=function(_0x3f3e9b,_0x2de9fd){_0x3f3e9b=_0x3f3e9b-0x1e2;let _0x43bf3f=_0x415a7e[_0x3f3e9b];return _0x43bf3f;},_0x3f3e(_0x227620,_0x40602c);}function _0x415a(){const _0x44a4e0=['setMiniAppVersion','6187602pPMGhB','1014516Tcmsqz','getNodeMiscService','getOnlineDev','startNewMiniApp','getArkJsonCollection','4491991CKbxVk','2860MevsGy','7378376onMuYU','ORCImage','2973wpsLMa','670NEKTTy','2.16.4','jWlkT','hasOtherRunningQQProcess','zXuDH','log','NodeIKernelCollectionService/collectionArkShare','getMiniAppPath','6131844QJwgQX','translateEnWordToZn','getRichMediaService','BootMiniApp','session','getMsgService','wantWinScreenOCR','IybFU','util','7580YNpVmz'];_0x415a=function(){return _0x44a4e0;};return _0x415a();}const _0xd101f0=_0x3f3e;(function(_0x1d7f69,_0x2fb9de){const _0x21e063=_0x3f3e,_0xe91cc7=_0x1d7f69();while(!![]){try{const _0x347b8c=parseInt(_0x21e063(0x1e3))/0x1+parseInt(_0x21e063(0x1ed))/0x2*(-parseInt(_0x21e063(0x1ec))/0x3)+parseInt(_0x21e063(0x1e9))/0x4*(parseInt(_0x21e063(0x1fe))/0x5)+parseInt(_0x21e063(0x1e2))/0x6+-parseInt(_0x21e063(0x1e8))/0x7+-parseInt(_0x21e063(0x1ea))/0x8+-parseInt(_0x21e063(0x1f5))/0x9;if(_0x347b8c===_0x2fb9de)break;else _0xe91cc7['push'](_0xe91cc7['shift']());}catch(_0x32e13c){_0xe91cc7['push'](_0xe91cc7['shift']());}}}(_0x415a,0x86ddc));import{NTEventDispatch}from'@/common/utils/EventTask';import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0xd101f0(0x1f0)](){const _0x593f38=_0xd101f0;return napCatCore[_0x593f38(0x1fd)]['hasOtherRunningQQProcess']();}static async[_0xd101f0(0x1eb)](_0x66891e){const _0x41cfce=_0xd101f0;return napCatCore[_0x41cfce(0x1f9)]['getNodeMiscService']()[_0x41cfce(0x1fb)](_0x66891e);}static async['translateEnWordToZn'](_0x1fae30){const _0x53a8d0=_0xd101f0;return napCatCore['session'][_0x53a8d0(0x1f7)]()[_0x53a8d0(0x1f6)](_0x1fae30);}static async[_0xd101f0(0x1e5)](){const _0x387708=_0xd101f0;return napCatCore[_0x387708(0x1f9)][_0x387708(0x1fa)]()['getOnLineDev']();}static async[_0xd101f0(0x1e7)](_0x312373){const _0x376c92=_0xd101f0,_0x284da4={'zXuDH':_0x376c92(0x1f3),'IybFU':'1717662698058'};let _0x5e4206=await NTEventDispatch['CallNoListenerEvent'](_0x284da4[_0x376c92(0x1f1)],0x1388,_0x284da4[_0x376c92(0x1fc)]);return _0x5e4206;}static async[_0xd101f0(0x1f8)](_0x10948f,_0x429117){const _0x2d4241=_0xd101f0,_0x1f650c={'jWlkT':_0x2d4241(0x1ee)};await napCatCore[_0x2d4241(0x1f9)][_0x2d4241(0x1e4)]()[_0x2d4241(0x1ff)](_0x1f650c[_0x2d4241(0x1ef)]);let _0x4b218c=await napCatCore[_0x2d4241(0x1f9)][_0x2d4241(0x1e4)]()[_0x2d4241(0x1f4)]();return console[_0x2d4241(0x1f2)](_0x4b218c),napCatCore['session']['getNodeMiscService']()[_0x2d4241(0x1e6)](_0x10948f,_0x429117);}}
|
35
src/core.lib/src/apis/user.d.ts
vendored
35
src/core.lib/src/apis/user.d.ts
vendored
@@ -1,35 +0,0 @@
|
||||
import { ModifyProfileParams, User, UserDetailInfoByUin } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core';
|
||||
export declare class NTQQUserApi {
|
||||
static setLongNick(longNick: string): Promise<unknown>;
|
||||
static setSelfOnlineStatus(status: number, extStatus: number, batteryStatus: number): Promise<GeneralCallResult>;
|
||||
static getBuddyRecommendContactArkJson(uin: string, sencenID?: string): Promise<unknown>;
|
||||
static like(uid: string, count?: number): Promise<{
|
||||
result: number;
|
||||
errMsg: string;
|
||||
succCounts: number;
|
||||
}>;
|
||||
static setQQAvatar(filePath: string): Promise<{
|
||||
result: number;
|
||||
errMsg: string;
|
||||
}>;
|
||||
static getSelfInfo(): Promise<void>;
|
||||
static getUserInfo(uid: string): Promise<void>;
|
||||
static getUserDetailInfo(uid: string): Promise<User>;
|
||||
static modifySelfProfile(param: ModifyProfileParams): Promise<GeneralCallResult>;
|
||||
static getCookies(domain: string): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getPSkey(domainList: string[]): Promise<GeneralCallResult & {
|
||||
domainPskeyMap: Map<string, string>;
|
||||
}>;
|
||||
static getRobotUinRange(): Promise<Array<any>>;
|
||||
static getQzoneCookies(): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getSkey(): Promise<string | undefined>;
|
||||
static getUidByUin(Uin: string): Promise<string | undefined>;
|
||||
static getUinByUid(Uid: string | undefined): Promise<string | undefined>;
|
||||
static getUserDetailInfoByUin(Uin: string): Promise<UserDetailInfoByUin>;
|
||||
static forceFetchClientKey(): Promise<import("@/core").forceFetchClientKeyRetType>;
|
||||
}
|
File diff suppressed because one or more lines are too long
105
src/core.lib/src/apis/webapi.d.ts
vendored
105
src/core.lib/src/apis/webapi.d.ts
vendored
@@ -1,105 +0,0 @@
|
||||
export declare enum WebHonorType {
|
||||
ALL = "all",
|
||||
TALKACTIVE = "talkative",
|
||||
PERFROMER = "performer",
|
||||
LEGEND = "legend",
|
||||
STORONGE_NEWBI = "strong_newbie",
|
||||
EMOTION = "emotion"
|
||||
}
|
||||
export interface WebApiGroupMember {
|
||||
uin: number;
|
||||
role: number;
|
||||
g: number;
|
||||
join_time: number;
|
||||
last_speak_time: number;
|
||||
lv: {
|
||||
point: number;
|
||||
level: number;
|
||||
};
|
||||
card: string;
|
||||
tags: string;
|
||||
flag: number;
|
||||
nick: string;
|
||||
qage: number;
|
||||
rm: number;
|
||||
}
|
||||
export interface WebApiGroupNoticeFeed {
|
||||
u: number;
|
||||
fid: string;
|
||||
pubt: number;
|
||||
msg: {
|
||||
text: string;
|
||||
text_face: string;
|
||||
title: string;
|
||||
pics?: {
|
||||
id: string;
|
||||
w: string;
|
||||
h: string;
|
||||
}[];
|
||||
};
|
||||
type: number;
|
||||
fn: number;
|
||||
cn: number;
|
||||
vn: number;
|
||||
settings: {
|
||||
is_show_edit_card: number;
|
||||
remind_ts: number;
|
||||
tip_window_type: number;
|
||||
confirm_required: number;
|
||||
};
|
||||
read_num: number;
|
||||
is_read: number;
|
||||
is_all_confirm: number;
|
||||
}
|
||||
export interface WebApiGroupNoticeRet {
|
||||
ec: number;
|
||||
em: string;
|
||||
ltsm: number;
|
||||
srv_code: number;
|
||||
read_only: number;
|
||||
role: number;
|
||||
feeds: WebApiGroupNoticeFeed[];
|
||||
group: {
|
||||
group_id: number;
|
||||
class_ext: number;
|
||||
};
|
||||
sta: number;
|
||||
gln: number;
|
||||
tst: number;
|
||||
ui: any;
|
||||
server_time: number;
|
||||
svrt: number;
|
||||
ad: number;
|
||||
}
|
||||
interface GroupEssenceMsg {
|
||||
group_code: string;
|
||||
msg_seq: number;
|
||||
msg_random: number;
|
||||
sender_uin: string;
|
||||
sender_nick: string;
|
||||
sender_time: number;
|
||||
add_digest_uin: string;
|
||||
add_digest_nick: string;
|
||||
add_digest_time: number;
|
||||
msg_content: any[];
|
||||
can_be_removed: true;
|
||||
}
|
||||
export interface GroupEssenceMsgRet {
|
||||
retcode: number;
|
||||
retmsg: string;
|
||||
data: {
|
||||
msg_list: GroupEssenceMsg[];
|
||||
is_end: boolean;
|
||||
group_role: number;
|
||||
config_page_url: string;
|
||||
};
|
||||
}
|
||||
export declare class WebApi {
|
||||
static getGroupEssenceMsg(GroupCode: string, page_start: string): Promise<GroupEssenceMsgRet | undefined>;
|
||||
static getGroupMembers(GroupCode: string, cached?: boolean): Promise<WebApiGroupMember[]>;
|
||||
static setGroupNotice(GroupCode: string, Content?: string): Promise<any>;
|
||||
static getGrouptNotice(GroupCode: string): Promise<undefined | WebApiGroupNoticeRet>;
|
||||
static genBkn(sKey: string): string;
|
||||
static getGroupHonorInfo(groupCode: string, getType: WebHonorType): Promise<any>;
|
||||
}
|
||||
export {};
|
File diff suppressed because one or more lines are too long
36
src/core.lib/src/core.d.ts
vendored
36
src/core.lib/src/core.d.ts
vendored
@@ -1,36 +0,0 @@
|
||||
/// <reference types="node" />
|
||||
import { NodeIQQNTWrapperEngine, NodeIQQNTWrapperSession, NodeQQNTWrapperUtil } from '@/core/wrapper';
|
||||
import { QuickLoginResult } from '@/core/services';
|
||||
import { BuddyListener, GroupListener, MsgListener, ProfileListener } from '@/core/listeners';
|
||||
export interface OnLoginSuccess {
|
||||
(uin: string, uid: string): void | Promise<void>;
|
||||
}
|
||||
export declare class NapCatCore {
|
||||
readonly session: NodeIQQNTWrapperSession;
|
||||
readonly util: NodeQQNTWrapperUtil;
|
||||
readonly engine: NodeIQQNTWrapperEngine;
|
||||
private readonly loginListener;
|
||||
private loginService;
|
||||
private onLoginSuccessFuncList;
|
||||
private proxyHandler;
|
||||
constructor();
|
||||
get dataPath(): string;
|
||||
get dataPathGlobal(): string;
|
||||
private initConfig;
|
||||
private initSession;
|
||||
private initDataListener;
|
||||
addListener(listener: BuddyListener | GroupListener | MsgListener | ProfileListener): number;
|
||||
onLoginSuccess(func: OnLoginSuccess): void;
|
||||
quickLogin(uin: string): Promise<QuickLoginResult>;
|
||||
qrLogin(cb: (url: string, base64: string, buffer: Buffer) => Promise<void>): Promise<{
|
||||
url: string;
|
||||
base64: string;
|
||||
buffer: Buffer;
|
||||
}>;
|
||||
passwordLogin(uin: string, password: string, proofSig?: string, proofRand?: string, proofSid?: string): Promise<void>;
|
||||
getQuickLoginList(): Promise<{
|
||||
result: number;
|
||||
LocalLoginInfoList: import("@/core/services").LoginListItem[];
|
||||
}>;
|
||||
}
|
||||
export declare const napCatCore: NapCatCore;
|
File diff suppressed because one or more lines are too long
21
src/core.lib/src/data.d.ts
vendored
21
src/core.lib/src/data.d.ts
vendored
@@ -1,21 +0,0 @@
|
||||
import { type Friend, type Group, type GroupMember, GroupNotify, type SelfInfo, BuddyCategoryType } from './entities';
|
||||
export declare const selfInfo: SelfInfo;
|
||||
export declare const groups: Map<string, Group>;
|
||||
export declare function deleteGroup(groupQQ: string): void;
|
||||
export declare const groupMembers: Map<string, Map<string, GroupMember>>;
|
||||
export declare const friends: Map<string, Friend>;
|
||||
export declare const rawFriends: Array<BuddyCategoryType>;
|
||||
export declare const groupNotifies: Record<string, GroupNotify>;
|
||||
export declare function getGroup(qq: string | number): Promise<Group | undefined>;
|
||||
export declare function getGroupMember(groupQQ: string | number, memberUinOrUid: string | number): Promise<GroupMember | null | undefined>;
|
||||
export declare const tempGroupCodeMap: Record<string, string>;
|
||||
export declare const stat: {
|
||||
packet_received: number;
|
||||
packet_sent: number;
|
||||
message_received: number;
|
||||
message_sent: number;
|
||||
last_message_time: number;
|
||||
disconnect_times: number;
|
||||
lost_times: number;
|
||||
packet_lost: number;
|
||||
};
|
@@ -1 +0,0 @@
|
||||
(function(_0x5ecbfe,_0x2e9f9f){const _0x4226fc=_0x2032,_0x2f8649=_0x5ecbfe();while(!![]){try{const _0x376e96=-parseInt(_0x4226fc(0xa4))/0x1+parseInt(_0x4226fc(0xa7))/0x2+-parseInt(_0x4226fc(0xa8))/0x3*(-parseInt(_0x4226fc(0xb3))/0x4)+-parseInt(_0x4226fc(0xaa))/0x5+-parseInt(_0x4226fc(0xae))/0x6+-parseInt(_0x4226fc(0xab))/0x7+parseInt(_0x4226fc(0xb1))/0x8;if(_0x376e96===_0x2e9f9f)break;else _0x2f8649['push'](_0x2f8649['shift']());}catch(_0x130222){_0x2f8649['push'](_0x2f8649['shift']());}}}(_0x5cb9,0x3a76c));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();function _0x2032(_0x54476b,_0x20287e){const _0x5cb908=_0x5cb9();return _0x2032=function(_0x2032b9,_0x3a5537){_0x2032b9=_0x2032b9-0xa4;let _0x561028=_0x5cb908[_0x2032b9];return _0x561028;},_0x2032(_0x54476b,_0x20287e);}export function deleteGroup(_0x52df30){const _0xe1f44f=_0x2032;groups[_0xe1f44f(0xa6)](_0x52df30),groupMembers[_0xe1f44f(0xa6)](_0x52df30);}export const groupMembers=new Map();export const friends=new Map();export const rawFriends=[];export const groupNotifies={};function _0x5cb9(){const _0x51b8fd=['from','delete','684666DBPAgK','15612ApkvAb','toString','1628775VftrYd','121947GQVaFh','forEach','length','2242284liwHYe','get','getGroupMembers','5007856twEkdo','EKGLP','344rkWecS','getGroups','values','set','uin','459501jWnwzp'];_0x5cb9=function(){return _0x51b8fd;};return _0x5cb9();}export async function getGroup(_0x3d60db){const _0x22936b=_0x2032;let _0x504ee7=groups[_0x22936b(0xaf)](_0x3d60db['toString']());if(!_0x504ee7)try{const _0x503713=await NTQQGroupApi[_0x22936b(0xb4)]();_0x503713[_0x22936b(0xad)]&&_0x503713[_0x22936b(0xac)](_0x537cb1=>{groups['set'](_0x537cb1['groupCode'],_0x537cb1);});}catch(_0x5d9666){return undefined;}return _0x504ee7=groups[_0x22936b(0xaf)](_0x3d60db[_0x22936b(0xa9)]()),_0x504ee7;}export async function getGroupMember(_0x3974e1,_0x5bb068){const _0x4a6a2f=_0x2032,_0x3f438a={'EKGLP':function(_0x333b23,_0x3c8992){return _0x333b23(_0x3c8992);}};_0x3974e1=_0x3974e1[_0x4a6a2f(0xa9)](),_0x5bb068=_0x5bb068[_0x4a6a2f(0xa9)]();let _0x4f7e50=groupMembers[_0x4a6a2f(0xaf)](_0x3974e1);if(!_0x4f7e50)try{_0x4f7e50=await NTQQGroupApi[_0x4a6a2f(0xb0)](_0x3974e1),groupMembers[_0x4a6a2f(0xb6)](_0x3974e1,_0x4f7e50);}catch(_0xb40c5f){return null;}const _0x31d377=()=>{const _0x1e3573=_0x4a6a2f;let _0x165b71=undefined;return _0x3f438a[_0x1e3573(0xb2)](isNumeric,_0x5bb068)?_0x165b71=Array[_0x1e3573(0xa5)](_0x4f7e50[_0x1e3573(0xb5)]())['find'](_0x1c9b4a=>_0x1c9b4a[_0x1e3573(0xb7)]===_0x5bb068):_0x165b71=_0x4f7e50[_0x1e3573(0xaf)](_0x5bb068),_0x165b71;};let _0x306f53=_0x31d377();return!_0x306f53&&(_0x4f7e50=await NTQQGroupApi[_0x4a6a2f(0xb0)](_0x3974e1),_0x306f53=_0x31d377()),_0x306f53;}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
@@ -1 +0,0 @@
|
||||
(function(_0x5c1d07,_0x476ebc){var _0x456036=_0x757e,_0x29528c=_0x5c1d07();while(!![]){try{var _0x50e22d=-parseInt(_0x456036(0x122))/0x1*(-parseInt(_0x456036(0x127))/0x2)+-parseInt(_0x456036(0x12a))/0x3+parseInt(_0x456036(0x128))/0x4*(parseInt(_0x456036(0x120))/0x5)+parseInt(_0x456036(0x119))/0x6*(parseInt(_0x456036(0x123))/0x7)+parseInt(_0x456036(0x11b))/0x8+parseInt(_0x456036(0x11d))/0x9+parseInt(_0x456036(0x11e))/0xa*(-parseInt(_0x456036(0x11c))/0xb);if(_0x50e22d===_0x476ebc)break;else _0x29528c['push'](_0x29528c['shift']());}catch(_0x998288){_0x29528c['push'](_0x29528c['shift']());}}}(_0x5474,0xdcd36));function _0x5474(){var _0x536ad2=['782826AUKPax','7mhDNRj','DOCUMENT','RIOXE','HdaeB','4xyMQgo','185296yTdiER','InAvR','640254HKAMed','ZABIs','AUDIO','2503380CfptRP','VIDEO','12964384dcHXGo','66MUIevi','12378078TXQkBW','8596540gjezaI','IMAGE','140jFVqGx','OTHER'];_0x5474=function(){return _0x536ad2;};return _0x5474();};export var CacheFileType;function _0x757e(_0x366f84,_0x258fdd){var _0x54749b=_0x5474();return _0x757e=function(_0x757e96,_0x34c990){_0x757e96=_0x757e96-0x117;var _0x3fa5ac=_0x54749b[_0x757e96];return _0x3fa5ac;},_0x757e(_0x366f84,_0x258fdd);}(function(_0x455383){var _0x1da090=_0x757e,_0x22becd={'ZABIs':_0x1da090(0x11f),'InAvR':_0x1da090(0x11a),'RiXNn':_0x1da090(0x118),'HdaeB':_0x1da090(0x124),'RIOXE':'OTHER'};_0x455383[_0x455383[_0x22becd[_0x1da090(0x117)]]=0x0]=_0x22becd[_0x1da090(0x117)],_0x455383[_0x455383[_0x1da090(0x11a)]=0x1]=_0x22becd[_0x1da090(0x129)],_0x455383[_0x455383[_0x1da090(0x118)]=0x2]=_0x22becd['RiXNn'],_0x455383[_0x455383[_0x22becd[_0x1da090(0x126)]]=0x3]=_0x22becd['HdaeB'],_0x455383[_0x455383[_0x1da090(0x121)]=0x4]=_0x22becd[_0x1da090(0x125)];}(CacheFileType||(CacheFileType={})));
|
18
src/core.lib/src/entities/constructor.d.ts
vendored
18
src/core.lib/src/entities/constructor.d.ts
vendored
@@ -1,18 +0,0 @@
|
||||
import { AtType, SendArkElement, SendFaceElement, SendFileElement, SendMarkdownElement, SendMarketFaceElement, SendPicElement, SendPttElement, SendReplyElement, SendTextElement, SendVideoElement } from './index';
|
||||
export declare const mFaceCache: Map<string, string>;
|
||||
export declare class SendMsgElementConstructor {
|
||||
static text(content: string): SendTextElement;
|
||||
static at(atUid: string, atNtUid: string, atType: AtType, atName: string): SendTextElement;
|
||||
static reply(msgSeq: string, msgId: string, senderUin: string, senderUinStr: string): SendReplyElement;
|
||||
static pic(picPath: string, summary?: string, subType?: 0 | 1): Promise<SendPicElement>;
|
||||
static file(filePath: string, fileName?: string, folderId?: string): Promise<SendFileElement>;
|
||||
static video(filePath: string, fileName?: string, diyThumbPath?: string): Promise<SendVideoElement>;
|
||||
static ptt(pttPath: string): Promise<SendPttElement>;
|
||||
static face(faceId: number): SendFaceElement;
|
||||
static mface(emojiPackageId: number, emojiId: string, key: string, faceName: string): SendMarketFaceElement;
|
||||
static dice(resultId: number | null): SendFaceElement;
|
||||
static rps(resultId: number | null): SendFaceElement;
|
||||
static ark(data: any): SendArkElement;
|
||||
static markdown(content: string): SendMarkdownElement;
|
||||
static miniapp(): Promise<SendArkElement>;
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
52
src/core.lib/src/entities/group.d.ts
vendored
52
src/core.lib/src/entities/group.d.ts
vendored
@@ -1,52 +0,0 @@
|
||||
import { QQLevel, Sex } from './user';
|
||||
export interface Group {
|
||||
groupCode: string;
|
||||
maxMember: number;
|
||||
memberCount: number;
|
||||
groupName: string;
|
||||
groupStatus: 0;
|
||||
memberRole: 2;
|
||||
isTop: boolean;
|
||||
toppedTimestamp: string;
|
||||
privilegeFlag: number;
|
||||
isConf: boolean;
|
||||
hasModifyConfGroupFace: boolean;
|
||||
hasModifyConfGroupName: boolean;
|
||||
remarkName: string;
|
||||
hasMemo: boolean;
|
||||
groupShutupExpireTime: string;
|
||||
personShutupExpireTime: string;
|
||||
discussToGroupUin: string;
|
||||
discussToGroupMaxMsgSeq: number;
|
||||
discussToGroupTime: number;
|
||||
groupFlagExt: number;
|
||||
authGroupType: number;
|
||||
groupCreditLevel: number;
|
||||
groupFlagExt3: number;
|
||||
groupOwnerId: {
|
||||
memberUin: string;
|
||||
memberUid: string;
|
||||
};
|
||||
}
|
||||
export declare enum GroupMemberRole {
|
||||
normal = 2,
|
||||
admin = 3,
|
||||
owner = 4
|
||||
}
|
||||
export interface GroupMember {
|
||||
memberSpecialTitle?: string;
|
||||
avatarPath: string;
|
||||
cardName: string;
|
||||
cardType: number;
|
||||
isDelete: boolean;
|
||||
nick: string;
|
||||
qid: string;
|
||||
remark: string;
|
||||
role: GroupMemberRole;
|
||||
shutUpTime: number;
|
||||
uid: string;
|
||||
uin: string;
|
||||
isRobot: boolean;
|
||||
sex?: Sex;
|
||||
qqLevel?: QQLevel;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
function _0x5f3e(_0x2aefc7,_0x26e2b6){var _0x372975=_0x3729();return _0x5f3e=function(_0x5f3e17,_0x56ff3e){_0x5f3e17=_0x5f3e17-0xbc;var _0x5e7013=_0x372975[_0x5f3e17];return _0x5e7013;},_0x5f3e(_0x2aefc7,_0x26e2b6);}(function(_0x2a8036,_0x4239b3){var _0x30785f=_0x5f3e,_0x443a38=_0x2a8036();while(!![]){try{var _0x1fd0ba=parseInt(_0x30785f(0xc1))/0x1+-parseInt(_0x30785f(0xbe))/0x2+-parseInt(_0x30785f(0xc2))/0x3+parseInt(_0x30785f(0xc5))/0x4*(-parseInt(_0x30785f(0xc6))/0x5)+parseInt(_0x30785f(0xc9))/0x6*(parseInt(_0x30785f(0xbc))/0x7)+-parseInt(_0x30785f(0xc3))/0x8*(-parseInt(_0x30785f(0xc7))/0x9)+-parseInt(_0x30785f(0xc8))/0xa;if(_0x1fd0ba===_0x4239b3)break;else _0x443a38['push'](_0x443a38['shift']());}catch(_0x1a59f5){_0x443a38['push'](_0x443a38['shift']());}}}(_0x3729,0xd4b52));function _0x3729(){var _0x5e6d76=['68AcjIhz','101230eqrYYl','9jpYztO','5378830mxKbiB','12gJwRJX','normal','3196774HyMcVi','QYGKW','3256316DGNrEE','admin','pserF','1087104uoCIZZ','825759YzNnkm','13250064eHbJXO','EOIQV'];_0x3729=function(){return _0x5e6d76;};return _0x3729();}export var GroupMemberRole;(function(_0x516534){var _0x3951bb=_0x5f3e,_0x3f0759={'EOIQV':_0x3951bb(0xca),'pserF':_0x3951bb(0xbf),'QYGKW':'owner'};_0x516534[_0x516534[_0x3951bb(0xca)]=0x2]=_0x3f0759[_0x3951bb(0xc4)],_0x516534[_0x516534[_0x3f0759[_0x3951bb(0xc0)]]=0x3]=_0x3f0759[_0x3951bb(0xc0)],_0x516534[_0x516534[_0x3f0759[_0x3951bb(0xbd)]]=0x4]=_0x3f0759['QYGKW'];}(GroupMemberRole||(GroupMemberRole={})));
|
@@ -1 +0,0 @@
|
||||
(function(_0x1d0fb1,_0x197fb4){var _0x3cfe76=_0x4c62,_0x1a3d96=_0x1d0fb1();while(!![]){try{var _0x2920f7=-parseInt(_0x3cfe76(0x1a9))/0x1*(parseInt(_0x3cfe76(0x1a3))/0x2)+parseInt(_0x3cfe76(0x1a0))/0x3+-parseInt(_0x3cfe76(0x1a7))/0x4*(-parseInt(_0x3cfe76(0x1a5))/0x5)+parseInt(_0x3cfe76(0x1a2))/0x6+-parseInt(_0x3cfe76(0x19f))/0x7*(parseInt(_0x3cfe76(0x1a1))/0x8)+parseInt(_0x3cfe76(0x1a8))/0x9*(-parseInt(_0x3cfe76(0x1a6))/0xa)+parseInt(_0x3cfe76(0x1a4))/0xb;if(_0x2920f7===_0x197fb4)break;else _0x1a3d96['push'](_0x1a3d96['shift']());}catch(_0x397744){_0x1a3d96['push'](_0x1a3d96['shift']());}}}(_0x270f,0xa7b05));export*from'./user';function _0x4c62(_0x36cd7c,_0x470824){var _0x270f56=_0x270f();return _0x4c62=function(_0x4c6203,_0x5a508c){_0x4c6203=_0x4c6203-0x19f;var _0x166543=_0x270f56[_0x4c6203];return _0x166543;},_0x4c62(_0x36cd7c,_0x470824);}export*from'./group';export*from'./msg';function _0x270f(){var _0x58156b=['1278399arBZqW','8dIALQD','892614WhhdNL','4THWoLr','2578510rCupGX','3135PlxMjE','40fiRKiG','7444IHxbbu','1583181AvLpWL','234607huDiUH','815192cYfVkH'];_0x270f=function(){return _0x58156b;};return _0x270f();}export*from'./notify';export*from'./cache';export*from'./constructor';
|
456
src/core.lib/src/entities/msg.d.ts
vendored
456
src/core.lib/src/entities/msg.d.ts
vendored
@@ -1,456 +0,0 @@
|
||||
import { GroupMemberRole } from './group';
|
||||
export interface Peer {
|
||||
chatType: ChatType;
|
||||
peerUid: string;
|
||||
guildId?: string;
|
||||
}
|
||||
export interface KickedOffLineInfo {
|
||||
appId: number;
|
||||
instanceId: number;
|
||||
sameDevice: boolean;
|
||||
tipsDesc: string;
|
||||
tipsTitle: string;
|
||||
kickedType: number;
|
||||
securityKickedType: number;
|
||||
}
|
||||
export interface GetFileListParam {
|
||||
sortType: number;
|
||||
fileCount: number;
|
||||
startIndex: number;
|
||||
sortOrder: number;
|
||||
showOnlinedocFolder: number;
|
||||
}
|
||||
export declare enum ElementType {
|
||||
TEXT = 1,
|
||||
PIC = 2,
|
||||
FILE = 3,
|
||||
PTT = 4,
|
||||
VIDEO = 5,
|
||||
FACE = 6,
|
||||
REPLY = 7,
|
||||
ARK = 10,
|
||||
MFACE = 11,
|
||||
MARKDOWN = 14
|
||||
}
|
||||
export interface SendTextElement {
|
||||
elementType: ElementType.TEXT;
|
||||
elementId: string;
|
||||
textElement: {
|
||||
content: string;
|
||||
atType: number;
|
||||
atUid: string;
|
||||
atTinyId: string;
|
||||
atNtUid: string;
|
||||
};
|
||||
}
|
||||
export interface SendPttElement {
|
||||
elementType: ElementType.PTT;
|
||||
elementId: string;
|
||||
pttElement: {
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
md5HexStr: string;
|
||||
fileSize: number;
|
||||
duration: number;
|
||||
formatType: number;
|
||||
voiceType: number;
|
||||
voiceChangeType: number;
|
||||
canConvert2Text: boolean;
|
||||
waveAmplitudes: number[];
|
||||
fileSubId: string;
|
||||
playState: number;
|
||||
autoConvertText: number;
|
||||
};
|
||||
}
|
||||
export declare enum PicType {
|
||||
gif = 2000,
|
||||
jpg = 1000
|
||||
}
|
||||
export declare enum PicSubType {
|
||||
normal = 0,// 普通图片,大图
|
||||
face = 1
|
||||
}
|
||||
export interface SendPicElement {
|
||||
elementType: ElementType.PIC;
|
||||
elementId: string;
|
||||
picElement: {
|
||||
md5HexStr: string;
|
||||
fileSize: number | string;
|
||||
picWidth: number;
|
||||
picHeight: number;
|
||||
fileName: string;
|
||||
sourcePath: string;
|
||||
original: boolean;
|
||||
picType: PicType;
|
||||
picSubType: PicSubType;
|
||||
fileUuid: string;
|
||||
fileSubId: string;
|
||||
thumbFileSize: number;
|
||||
summary: string;
|
||||
};
|
||||
}
|
||||
export interface SendReplyElement {
|
||||
elementType: ElementType.REPLY;
|
||||
elementId: string;
|
||||
replyElement: {
|
||||
replayMsgSeq: string;
|
||||
replayMsgId: string;
|
||||
senderUin: string;
|
||||
senderUinStr: string;
|
||||
};
|
||||
}
|
||||
export interface SendFaceElement {
|
||||
elementType: ElementType.FACE;
|
||||
elementId: string;
|
||||
faceElement: FaceElement;
|
||||
}
|
||||
export interface SendMarketFaceElement {
|
||||
elementType: ElementType.MFACE;
|
||||
marketFaceElement: MarketFaceElement;
|
||||
}
|
||||
export interface FileElement {
|
||||
fileMd5?: string;
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
fileSize: string;
|
||||
picHeight?: number;
|
||||
picWidth?: number;
|
||||
folderId?: string;
|
||||
picThumbPath?: Map<number, string>;
|
||||
file10MMd5?: string;
|
||||
fileSha?: string;
|
||||
fileSha3?: string;
|
||||
fileUuid?: string;
|
||||
fileSubId?: string;
|
||||
thumbFileSize?: number;
|
||||
fileBizId?: number;
|
||||
}
|
||||
export interface SendFileElement {
|
||||
elementType: ElementType.FILE;
|
||||
elementId: string;
|
||||
fileElement: FileElement;
|
||||
}
|
||||
export interface SendVideoElement {
|
||||
elementType: ElementType.VIDEO;
|
||||
elementId: string;
|
||||
videoElement: VideoElement;
|
||||
}
|
||||
export interface SendArkElement {
|
||||
elementType: ElementType.ARK;
|
||||
elementId: string;
|
||||
arkElement: ArkElement;
|
||||
}
|
||||
export interface SendMarkdownElement {
|
||||
elementType: ElementType.MARKDOWN;
|
||||
elementId: string;
|
||||
markdownElement: MarkdownElement;
|
||||
}
|
||||
export type SendMessageElement = SendTextElement | SendPttElement | SendPicElement | SendReplyElement | SendFaceElement | SendMarketFaceElement | SendFileElement | SendVideoElement | SendArkElement | SendMarkdownElement;
|
||||
export declare enum AtType {
|
||||
notAt = 0,
|
||||
atAll = 1,
|
||||
atUser = 2
|
||||
}
|
||||
export declare enum ChatType {
|
||||
friend = 1,
|
||||
group = 2,
|
||||
chatDevice = 8,//移动设备?
|
||||
temp = 100
|
||||
}
|
||||
export declare enum ChatType2 {
|
||||
KCHATTYPEADELIE = 42,
|
||||
KCHATTYPEBUDDYNOTIFY = 5,
|
||||
KCHATTYPEC2C = 1,
|
||||
KCHATTYPECIRCLE = 113,
|
||||
KCHATTYPEDATALINE = 8,
|
||||
KCHATTYPEDATALINEMQQ = 134,
|
||||
KCHATTYPEDISC = 3,
|
||||
KCHATTYPEFAV = 41,
|
||||
KCHATTYPEGAMEMESSAGE = 105,
|
||||
KCHATTYPEGAMEMESSAGEFOLDER = 116,
|
||||
KCHATTYPEGROUP = 2,
|
||||
KCHATTYPEGROUPBLESS = 133,
|
||||
KCHATTYPEGROUPGUILD = 9,
|
||||
KCHATTYPEGROUPHELPER = 7,
|
||||
KCHATTYPEGROUPNOTIFY = 6,
|
||||
KCHATTYPEGUILD = 4,
|
||||
KCHATTYPEGUILDMETA = 16,
|
||||
KCHATTYPEMATCHFRIEND = 104,
|
||||
KCHATTYPEMATCHFRIENDFOLDER = 109,
|
||||
KCHATTYPENEARBY = 106,
|
||||
KCHATTYPENEARBYASSISTANT = 107,
|
||||
KCHATTYPENEARBYFOLDER = 110,
|
||||
KCHATTYPENEARBYHELLOFOLDER = 112,
|
||||
KCHATTYPENEARBYINTERACT = 108,
|
||||
KCHATTYPEQQNOTIFY = 132,
|
||||
KCHATTYPERELATEACCOUNT = 131,
|
||||
KCHATTYPESERVICEASSISTANT = 118,
|
||||
KCHATTYPESERVICEASSISTANTSUB = 201,
|
||||
KCHATTYPESQUAREPUBLIC = 115,
|
||||
KCHATTYPESUBSCRIBEFOLDER = 30,
|
||||
KCHATTYPETEMPADDRESSBOOK = 111,
|
||||
KCHATTYPETEMPBUSSINESSCRM = 102,
|
||||
KCHATTYPETEMPC2CFROMGROUP = 100,
|
||||
KCHATTYPETEMPC2CFROMUNKNOWN = 99,
|
||||
KCHATTYPETEMPFRIENDVERIFY = 101,
|
||||
KCHATTYPETEMPNEARBYPRO = 119,
|
||||
KCHATTYPETEMPPUBLICACCOUNT = 103,
|
||||
KCHATTYPETEMPWPA = 117,
|
||||
KCHATTYPEUNKNOWN = 0,
|
||||
KCHATTYPEWEIYUN = 40
|
||||
}
|
||||
export interface PttElement {
|
||||
canConvert2Text: boolean;
|
||||
duration: number;
|
||||
fileBizId: null;
|
||||
fileId: number;
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
fileSize: string;
|
||||
fileSubId: string;
|
||||
fileUuid: string;
|
||||
formatType: string;
|
||||
invalidState: number;
|
||||
md5HexStr: string;
|
||||
playState: number;
|
||||
progress: number;
|
||||
text: string;
|
||||
transferStatus: number;
|
||||
translateStatus: number;
|
||||
voiceChangeType: number;
|
||||
voiceType: number;
|
||||
waveAmplitudes: number[];
|
||||
}
|
||||
export interface ArkElement {
|
||||
bytesData: string;
|
||||
linkInfo: null;
|
||||
subElementType: null;
|
||||
}
|
||||
export declare const IMAGE_HTTP_HOST = "https://gchat.qpic.cn";
|
||||
export declare const IMAGE_HTTP_HOST_NT = "https://multimedia.nt.qq.com.cn";
|
||||
export interface PicElement {
|
||||
picSubType?: number;
|
||||
originImageUrl: string;
|
||||
originImageMd5?: string;
|
||||
sourcePath: string;
|
||||
thumbPath: Map<number, string>;
|
||||
picWidth: number;
|
||||
picHeight: number;
|
||||
fileSize: number;
|
||||
fileName: string;
|
||||
fileUuid: string;
|
||||
md5HexStr?: string;
|
||||
}
|
||||
export declare enum GrayTipElementSubType {
|
||||
INVITE_NEW_MEMBER = 12,
|
||||
MEMBER_NEW_TITLE = 17
|
||||
}
|
||||
export interface GrayTipElement {
|
||||
subElementType: GrayTipElementSubType;
|
||||
revokeElement: {
|
||||
operatorRole: string;
|
||||
operatorUid: string;
|
||||
operatorNick: string;
|
||||
operatorRemark: string;
|
||||
operatorMemRemark?: string;
|
||||
wording: string;
|
||||
};
|
||||
aioOpGrayTipElement: TipAioOpGrayTipElement;
|
||||
groupElement: TipGroupElement;
|
||||
xmlElement: {
|
||||
content: string;
|
||||
templId: string;
|
||||
};
|
||||
jsonGrayTipElement: {
|
||||
jsonStr: string;
|
||||
};
|
||||
}
|
||||
export declare enum FaceType {
|
||||
normal = 1,// 小黄脸
|
||||
normal2 = 2,// 新小黄脸, 从faceIndex 222开始?
|
||||
dice = 3
|
||||
}
|
||||
export declare enum FaceIndex {
|
||||
dice = 358,
|
||||
RPS = 359
|
||||
}
|
||||
export interface FaceElement {
|
||||
faceIndex: number;
|
||||
faceType: FaceType;
|
||||
faceText?: string;
|
||||
packId?: string;
|
||||
stickerId?: string;
|
||||
sourceType?: number;
|
||||
stickerType?: number;
|
||||
resultId?: string;
|
||||
surpriseId?: string;
|
||||
randomType?: number;
|
||||
}
|
||||
export interface MarketFaceElement {
|
||||
emojiPackageId: number;
|
||||
faceName: string;
|
||||
emojiId: string;
|
||||
key: string;
|
||||
}
|
||||
export interface VideoElement {
|
||||
filePath: string;
|
||||
fileName: string;
|
||||
videoMd5?: string;
|
||||
thumbMd5?: string;
|
||||
fileTime?: number;
|
||||
thumbSize?: number;
|
||||
fileFormat?: number;
|
||||
fileSize?: string;
|
||||
thumbWidth?: number;
|
||||
thumbHeight?: number;
|
||||
busiType?: 0;
|
||||
subBusiType?: 0;
|
||||
thumbPath?: Map<number, any>;
|
||||
transferStatus?: 0;
|
||||
progress?: 0;
|
||||
invalidState?: 0;
|
||||
fileUuid?: string;
|
||||
fileSubId?: string;
|
||||
fileBizId?: null;
|
||||
originVideoMd5?: string;
|
||||
import_rich_media_context?: null;
|
||||
sourceVideoCodecFormat?: number;
|
||||
}
|
||||
export declare enum viedo_type {
|
||||
VIDEO_FORMAT_AFS = 7,
|
||||
VIDEO_FORMAT_AVI = 1,
|
||||
VIDEO_FORMAT_MKV = 4,
|
||||
VIDEO_FORMAT_MOD = 9,
|
||||
VIDEO_FORMAT_MOV = 8,
|
||||
VIDEO_FORMAT_MP4 = 2,
|
||||
VIDEO_FORMAT_MTS = 11,
|
||||
VIDEO_FORMAT_RM = 6,
|
||||
VIDEO_FORMAT_RMVB = 5,
|
||||
VIDEO_FORMAT_TS = 10,
|
||||
VIDEO_FORMAT_WMV = 3
|
||||
}
|
||||
export interface MarkdownElement {
|
||||
content: string;
|
||||
}
|
||||
export interface InlineKeyboardElementRowButton {
|
||||
id: string;
|
||||
label: string;
|
||||
visitedLabel: string;
|
||||
style: 1;
|
||||
type: 2;
|
||||
clickLimit: 0;
|
||||
unsupportTips: string;
|
||||
data: string;
|
||||
atBotShowChannelList: boolean;
|
||||
permissionType: number;
|
||||
specifyRoleIds: [];
|
||||
specifyTinyids: [];
|
||||
isReply: false;
|
||||
anchor: 0;
|
||||
enter: false;
|
||||
subscribeDataTemplateIds: [];
|
||||
}
|
||||
export interface InlineKeyboardElement {
|
||||
rows: [
|
||||
{
|
||||
buttons: InlineKeyboardElementRowButton[];
|
||||
}
|
||||
];
|
||||
}
|
||||
export interface TipAioOpGrayTipElement {
|
||||
operateType: number;
|
||||
peerUid: string;
|
||||
fromGrpCodeOfTmpChat: string;
|
||||
}
|
||||
export declare enum TipGroupElementType {
|
||||
memberIncrease = 1,
|
||||
kicked = 3,// 被移出群
|
||||
ban = 8
|
||||
}
|
||||
export interface TipGroupElement {
|
||||
type: TipGroupElementType;
|
||||
role: 0;
|
||||
groupName: string;
|
||||
memberUid: string;
|
||||
memberNick: string;
|
||||
memberRemark: string;
|
||||
adminUid: string;
|
||||
adminNick: string;
|
||||
adminRemark: string;
|
||||
createGroup: null;
|
||||
memberAdd?: {
|
||||
showType: 1;
|
||||
otherAdd: null;
|
||||
otherAddByOtherQRCode: null;
|
||||
otherAddByYourQRCode: null;
|
||||
youAddByOtherQRCode: null;
|
||||
otherInviteOther: null;
|
||||
otherInviteYou: null;
|
||||
youInviteOther: null;
|
||||
};
|
||||
shutUp?: {
|
||||
curTime: string;
|
||||
duration: string;
|
||||
admin: {
|
||||
uid: string;
|
||||
card: string;
|
||||
name: string;
|
||||
role: GroupMemberRole;
|
||||
};
|
||||
member: {
|
||||
uid: string;
|
||||
card: string;
|
||||
name: string;
|
||||
role: GroupMemberRole;
|
||||
};
|
||||
};
|
||||
}
|
||||
export interface MultiForwardMsgElement {
|
||||
xmlContent: string;
|
||||
resId: string;
|
||||
fileName: string;
|
||||
}
|
||||
export interface RawMessage {
|
||||
id?: number;
|
||||
msgId: string;
|
||||
msgTime: string;
|
||||
msgSeq: string;
|
||||
msgType: number;
|
||||
subMsgType: number;
|
||||
senderUid: string;
|
||||
senderUin: string;
|
||||
peerUid: string;
|
||||
peerUin: string;
|
||||
sendNickName: string;
|
||||
sendMemberName?: string;
|
||||
chatType: ChatType;
|
||||
sendStatus?: number;
|
||||
recallTime: string;
|
||||
elements: {
|
||||
elementId: string;
|
||||
elementType: ElementType;
|
||||
replyElement: {
|
||||
senderUid: string;
|
||||
sourceMsgIsIncPic: boolean;
|
||||
sourceMsgText: string;
|
||||
replayMsgSeq: string;
|
||||
};
|
||||
textElement: {
|
||||
atType: AtType;
|
||||
atUid: string;
|
||||
content: string;
|
||||
atNtUid: string;
|
||||
};
|
||||
picElement: PicElement;
|
||||
pttElement: PttElement;
|
||||
arkElement: ArkElement;
|
||||
grayTipElement: GrayTipElement;
|
||||
faceElement: FaceElement;
|
||||
videoElement: VideoElement;
|
||||
fileElement: FileElement;
|
||||
marketFaceElement: MarketFaceElement;
|
||||
inlineKeyboardElement: InlineKeyboardElement;
|
||||
markdownElement: MarkdownElement;
|
||||
multiForwardMsgElement: MultiForwardMsgElement;
|
||||
}[];
|
||||
}
|
File diff suppressed because one or more lines are too long
123
src/core.lib/src/entities/notify.d.ts
vendored
123
src/core.lib/src/entities/notify.d.ts
vendored
@@ -1,123 +0,0 @@
|
||||
export declare enum GroupNotifyTypes {
|
||||
INVITE_ME = 1,
|
||||
INVITED_JOIN = 4,// 有人接受了邀请入群
|
||||
JOIN_REQUEST = 7,
|
||||
ADMIN_SET = 8,
|
||||
KICK_MEMBER = 9,
|
||||
MEMBER_EXIT = 11,// 主动退出
|
||||
ADMIN_UNSET = 12,
|
||||
ADMIN_UNSET_OTHER = 13
|
||||
}
|
||||
export interface GroupNotifies {
|
||||
doubt: boolean;
|
||||
nextStartSeq: string;
|
||||
notifies: GroupNotify[];
|
||||
}
|
||||
export declare enum GroupNotifyStatus {
|
||||
IGNORE = 0,
|
||||
WAIT_HANDLE = 1,
|
||||
APPROVE = 2,
|
||||
REJECT = 3
|
||||
}
|
||||
export interface GroupNotify {
|
||||
time: number;
|
||||
seq: string;
|
||||
type: GroupNotifyTypes;
|
||||
status: GroupNotifyStatus;
|
||||
group: {
|
||||
groupCode: string;
|
||||
groupName: string;
|
||||
};
|
||||
user1: {
|
||||
uid: string;
|
||||
nickName: string;
|
||||
};
|
||||
user2: {
|
||||
uid: string;
|
||||
nickName: string;
|
||||
};
|
||||
actionUser: {
|
||||
uid: string;
|
||||
nickName: string;
|
||||
};
|
||||
actionTime: string;
|
||||
invitationExt: {
|
||||
srcType: number;
|
||||
groupCode: string;
|
||||
waitStatus: number;
|
||||
};
|
||||
postscript: string;
|
||||
repeatSeqs: [];
|
||||
warningTips: string;
|
||||
}
|
||||
export declare enum GroupRequestOperateTypes {
|
||||
approve = 1,
|
||||
reject = 2
|
||||
}
|
||||
export declare enum BuddyReqType {
|
||||
KMEINITIATOR = 0,
|
||||
KPEERINITIATOR = 1,
|
||||
KMEAGREED = 2,
|
||||
KMEAGREEDANDADDED = 3,
|
||||
KPEERAGREED = 4,
|
||||
KPEERAGREEDANDADDED = 5,
|
||||
KPEERREFUSED = 6,
|
||||
KMEREFUSED = 7,
|
||||
KMEIGNORED = 8,
|
||||
KMEAGREEANYONE = 9,
|
||||
KMESETQUESTION = 10,
|
||||
KMEAGREEANDADDFAILED = 11,
|
||||
KMSGINFO = 12,
|
||||
KMEINITIATORWAITPEERCONFIRM = 13
|
||||
}
|
||||
export interface FriendRequest {
|
||||
isDecide: boolean;
|
||||
friendUid: string;
|
||||
reqType: BuddyReqType;
|
||||
reqTime: string;
|
||||
extWords: string;
|
||||
isUnread: boolean;
|
||||
friendNick: string;
|
||||
sourceId: number;
|
||||
groupCode: string;
|
||||
}
|
||||
export interface FriendRequestNotify {
|
||||
unreadNums: number;
|
||||
buddyReqs: FriendRequest[];
|
||||
}
|
||||
export declare enum MemberExtSourceType {
|
||||
DEFAULTTYPE = 0,
|
||||
TITLETYPE = 1,
|
||||
NEWGROUPTYPE = 2
|
||||
}
|
||||
export interface GroupExtParam {
|
||||
groupCode: string;
|
||||
seq: string;
|
||||
beginUin: string;
|
||||
dataTime: string;
|
||||
uinList: Array<string>;
|
||||
uinNum: string;
|
||||
groupType: string;
|
||||
richCardNameVer: string;
|
||||
sourceType: MemberExtSourceType;
|
||||
memberExtFilter: {
|
||||
memberLevelInfoUin: number;
|
||||
memberLevelInfoPoint: number;
|
||||
memberLevelInfoActiveDay: number;
|
||||
memberLevelInfoLevel: number;
|
||||
memberLevelInfoName: number;
|
||||
levelName: number;
|
||||
dataTime: number;
|
||||
userShowFlag: number;
|
||||
sysShowFlag: number;
|
||||
timeToUpdate: number;
|
||||
nickName: number;
|
||||
specialTitle: number;
|
||||
levelNameNew: number;
|
||||
userShowFlagNew: number;
|
||||
msgNeedField: number;
|
||||
cmdUinFlagExt3Grocery: number;
|
||||
memberIcon: number;
|
||||
memberInfoSeq: number;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
173
src/core.lib/src/entities/user.d.ts
vendored
173
src/core.lib/src/entities/user.d.ts
vendored
@@ -1,173 +0,0 @@
|
||||
export declare enum Sex {
|
||||
male = 1,
|
||||
female = 2,
|
||||
unknown = 255
|
||||
}
|
||||
export interface BuddyCategoryType {
|
||||
categoryId: number;
|
||||
categroyName: string;
|
||||
categroyMbCount: number;
|
||||
buddyList: User[];
|
||||
}
|
||||
export interface ModifyProfileParams {
|
||||
nick: string;
|
||||
longNick: string;
|
||||
sex: Sex;
|
||||
birthday: {
|
||||
birthday_year: string;
|
||||
birthday_month: string;
|
||||
birthday_day: string;
|
||||
};
|
||||
location: any;
|
||||
}
|
||||
export interface BuddyProfileLikeReq {
|
||||
friendUids: string[];
|
||||
basic: number;
|
||||
vote: number;
|
||||
favorite: number;
|
||||
userProfile: number;
|
||||
type: number;
|
||||
start: number;
|
||||
limit: number;
|
||||
}
|
||||
export interface QQLevel {
|
||||
crownNum: number;
|
||||
sunNum: number;
|
||||
moonNum: number;
|
||||
starNum: number;
|
||||
}
|
||||
export interface User {
|
||||
uid: string;
|
||||
uin: string;
|
||||
nick: string;
|
||||
avatarUrl?: string;
|
||||
longNick?: string;
|
||||
remark?: string;
|
||||
sex?: Sex;
|
||||
qqLevel?: QQLevel;
|
||||
qid?: string;
|
||||
birthday_year?: number;
|
||||
birthday_month?: number;
|
||||
birthday_day?: number;
|
||||
topTime?: string;
|
||||
constellation?: number;
|
||||
shengXiao?: number;
|
||||
kBloodType?: number;
|
||||
homeTown?: string;
|
||||
makeFriendCareer?: number;
|
||||
pos?: string;
|
||||
eMail?: string;
|
||||
phoneNum?: string;
|
||||
college?: string;
|
||||
country?: string;
|
||||
province?: string;
|
||||
city?: string;
|
||||
postCode?: string;
|
||||
address?: string;
|
||||
isBlock?: boolean;
|
||||
isSpecialCareOpen?: boolean;
|
||||
isSpecialCareZone?: boolean;
|
||||
ringId?: string;
|
||||
regTime?: number;
|
||||
interest?: string;
|
||||
labels?: string[];
|
||||
isHideQQLevel?: number;
|
||||
privilegeIcon?: {
|
||||
jumpUrl: string;
|
||||
openIconList: unknown[];
|
||||
closeIconList: unknown[];
|
||||
};
|
||||
photoWall?: {
|
||||
picList: unknown[];
|
||||
};
|
||||
vipFlag?: boolean;
|
||||
yearVipFlag?: boolean;
|
||||
svipFlag?: boolean;
|
||||
vipLevel?: number;
|
||||
status?: number;
|
||||
qidianMasterFlag?: number;
|
||||
qidianCrewFlag?: number;
|
||||
qidianCrewFlag2?: number;
|
||||
extStatus?: number;
|
||||
recommendImgFlag?: number;
|
||||
disableEmojiShortCuts?: number;
|
||||
pendantId?: string;
|
||||
}
|
||||
export interface SelfInfo extends User {
|
||||
online?: boolean;
|
||||
}
|
||||
export interface Friend extends User {
|
||||
}
|
||||
export declare enum BizKey {
|
||||
KPRIVILEGEICON = 0,
|
||||
KPHOTOWALL = 1
|
||||
}
|
||||
export interface UserDetailInfoByUin {
|
||||
result: number;
|
||||
errMsg: string;
|
||||
info: {
|
||||
uid: string;
|
||||
qid: string;
|
||||
uin: string;
|
||||
nick: string;
|
||||
remark: string;
|
||||
longNick: string;
|
||||
avatarUrl: string;
|
||||
birthday_year: number;
|
||||
birthday_month: number;
|
||||
birthday_day: number;
|
||||
sex: number;
|
||||
topTime: string;
|
||||
constellation: number;
|
||||
shengXiao: number;
|
||||
kBloodType: number;
|
||||
homeTown: string;
|
||||
makeFriendCareer: number;
|
||||
pos: string;
|
||||
eMail: string;
|
||||
phoneNum: string;
|
||||
college: string;
|
||||
country: string;
|
||||
province: string;
|
||||
city: string;
|
||||
postCode: string;
|
||||
address: string;
|
||||
isBlock: boolean;
|
||||
isSpecialCareOpen: boolean;
|
||||
isSpecialCareZone: boolean;
|
||||
ringId: string;
|
||||
regTime: number;
|
||||
interest: string;
|
||||
termType: number;
|
||||
labels: any[];
|
||||
qqLevel: {
|
||||
crownNum: number;
|
||||
sunNum: number;
|
||||
moonNum: number;
|
||||
starNum: number;
|
||||
};
|
||||
isHideQQLevel: number;
|
||||
privilegeIcon: {
|
||||
jumpUrl: string;
|
||||
openIconList: any[];
|
||||
closeIconList: any[];
|
||||
};
|
||||
isHidePrivilegeIcon: number;
|
||||
photoWall: {
|
||||
picList: any[];
|
||||
};
|
||||
vipFlag: boolean;
|
||||
yearVipFlag: boolean;
|
||||
svipFlag: boolean;
|
||||
vipLevel: number;
|
||||
status: number;
|
||||
qidianMasterFlag: number;
|
||||
qidianCrewFlag: number;
|
||||
qidianCrewFlag2: number;
|
||||
extStatus: number;
|
||||
recommendImgFlag: number;
|
||||
disableEmojiShortCuts: number;
|
||||
pendantId: string;
|
||||
vipNameColorId: string;
|
||||
};
|
||||
}
|
@@ -1 +0,0 @@
|
||||
function _0x2312(_0x21e1ff,_0x458ef7){var _0x1f3a41=_0x1f3a();return _0x2312=function(_0x231232,_0x2edf16){_0x231232=_0x231232-0x192;var _0x466a8d=_0x1f3a41[_0x231232];return _0x466a8d;},_0x2312(_0x21e1ff,_0x458ef7);}function _0x1f3a(){var _0x2a8bd0=['440315cjleuW','unknown','KPRIVILEGEICON','9dMTYmg','1bdRpva','3307624rnorxQ','7uoBIRA','hqeCh','lHCMA','nsaaa','1989800CqCmHx','6599671CQJPHq','48WFohyz','30rsdNBj','4LVIjLZ','1809438aimxpP','KPHOTOWALL','female','3444108Kcqrxp','580030ZUEbVl','oKOAR'];_0x1f3a=function(){return _0x2a8bd0;};return _0x1f3a();}(function(_0x29984a,_0x196a1f){var _0x2f6f3a=_0x2312,_0xd5154e=_0x29984a();while(!![]){try{var _0x566fb3=-parseInt(_0x2f6f3a(0x19e))/0x1*(parseInt(_0x2f6f3a(0x19f))/0x2)+parseInt(_0x2f6f3a(0x194))/0x3*(-parseInt(_0x2f6f3a(0x193))/0x4)+parseInt(_0x2f6f3a(0x19a))/0x5+-parseInt(_0x2f6f3a(0x197))/0x6*(-parseInt(_0x2f6f3a(0x1a0))/0x7)+-parseInt(_0x2f6f3a(0x1a4))/0x8*(-parseInt(_0x2f6f3a(0x19d))/0x9)+-parseInt(_0x2f6f3a(0x192))/0xa*(-parseInt(_0x2f6f3a(0x198))/0xb)+-parseInt(_0x2f6f3a(0x1a6))/0xc*(-parseInt(_0x2f6f3a(0x1a5))/0xd);if(_0x566fb3===_0x196a1f)break;else _0xd5154e['push'](_0xd5154e['shift']());}catch(_0x3f7031){_0xd5154e['push'](_0xd5154e['shift']());}}}(_0x1f3a,0xcdbd2));export var Sex;(function(_0x40183d){var _0x2a9b83=_0x2312,_0x2ef310={'nsaaa':_0x2a9b83(0x196),'lHCMA':'unknown'};_0x40183d[_0x40183d['male']=0x1]='male',_0x40183d[_0x40183d[_0x2ef310[_0x2a9b83(0x1a3)]]=0x2]=_0x2ef310[_0x2a9b83(0x1a3)],_0x40183d[_0x40183d[_0x2a9b83(0x19b)]=0xff]=_0x2ef310[_0x2a9b83(0x1a2)];}(Sex||(Sex={})));export var BizKey;(function(_0x1bae47){var _0x294749=_0x2312,_0x1db672={'hqeCh':_0x294749(0x19c),'oKOAR':_0x294749(0x195)};_0x1bae47[_0x1bae47[_0x294749(0x19c)]=0x0]=_0x1db672[_0x294749(0x1a1)],_0x1bae47[_0x1bae47[_0x1db672[_0x294749(0x199)]]=0x1]=_0x1db672['oKOAR'];}(BizKey||(BizKey={})));
|
@@ -1 +0,0 @@
|
||||
(function(_0x56c706,_0x141834){var _0xb7035b=_0x10c7,_0x4fa6f9=_0x56c706();while(!![]){try{var _0x2fe845=-parseInt(_0xb7035b(0x158))/0x1+-parseInt(_0xb7035b(0x157))/0x2*(-parseInt(_0xb7035b(0x154))/0x3)+-parseInt(_0xb7035b(0x15c))/0x4*(-parseInt(_0xb7035b(0x15a))/0x5)+-parseInt(_0xb7035b(0x153))/0x6+parseInt(_0xb7035b(0x159))/0x7+parseInt(_0xb7035b(0x15b))/0x8*(parseInt(_0xb7035b(0x155))/0x9)+-parseInt(_0xb7035b(0x156))/0xa;if(_0x2fe845===_0x141834)break;else _0x4fa6f9['push'](_0x4fa6f9['shift']());}catch(_0x3e7624){_0x4fa6f9['push'](_0x4fa6f9['shift']());}}}(_0x200f,0xf0b42));import _0x5082c8 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';function _0x10c7(_0x42437a,_0x2387b0){var _0x200f3b=_0x200f();return _0x10c7=function(_0x10c7de,_0x46c82c){_0x10c7de=_0x10c7de-0x153;var _0x5cd7d0=_0x200f3b[_0x10c7de];return _0x5cd7d0;},_0x10c7(_0x42437a,_0x2387b0);}export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x200f(){var _0x249f6d=['2oscMSA','1664359YIABqx','12643463xYaPOr','4565Xudcoa','11974624vylOCK','6540VKoRFL','10388478VYGWyo','4031502sYHech','9sExhcH','17579320cMfHhF'];_0x200f=function(){return _0x249f6d;};return _0x200f();}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x5082c8 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
@@ -1,44 +0,0 @@
|
||||
import { BuddyCategoryType, FriendRequestNotify } from '@/core/entities';
|
||||
export type OnBuddyChangeParams = BuddyCategoryType[];
|
||||
interface IBuddyListener {
|
||||
onBuddyListChange(arg: OnBuddyChangeParams): void;
|
||||
onBuddyInfoChange(arg: unknown): void;
|
||||
onBuddyDetailInfoChange(arg: unknown): void;
|
||||
onNickUpdated(arg: unknown): void;
|
||||
onBuddyRemarkUpdated(arg: unknown): void;
|
||||
onAvatarUrlUpdated(arg: unknown): void;
|
||||
onBuddyReqChange(arg: FriendRequestNotify): void;
|
||||
onBuddyReqUnreadCntChange(arg: unknown): void;
|
||||
onCheckBuddySettingResult(arg: unknown): void;
|
||||
onAddBuddyNeedVerify(arg: unknown): void;
|
||||
onSmartInfos(arg: unknown): void;
|
||||
onSpacePermissionInfos(arg: unknown): void;
|
||||
onDoubtBuddyReqChange(arg: unknown): void;
|
||||
onDoubtBuddyReqUnreadNumChange(arg: unknown): void;
|
||||
onBlockChanged(arg: unknown): void;
|
||||
onAddMeSettingChanged(arg: unknown): void;
|
||||
onDelBatchBuddyInfos(arg: unknown): void;
|
||||
}
|
||||
export interface NodeIKernelBuddyListener extends IBuddyListener {
|
||||
new (listener: IBuddyListener): NodeIKernelBuddyListener;
|
||||
}
|
||||
export declare class BuddyListener implements IBuddyListener {
|
||||
onAddBuddyNeedVerify(arg: unknown): void;
|
||||
onAddMeSettingChanged(arg: unknown): void;
|
||||
onAvatarUrlUpdated(arg: unknown): void;
|
||||
onBlockChanged(arg: unknown): void;
|
||||
onBuddyDetailInfoChange(arg: unknown): void;
|
||||
onBuddyInfoChange(arg: unknown): void;
|
||||
onBuddyListChange(arg: OnBuddyChangeParams): void;
|
||||
onBuddyRemarkUpdated(arg: unknown): void;
|
||||
onBuddyReqChange(arg: FriendRequestNotify): void;
|
||||
onBuddyReqUnreadCntChange(arg: unknown): void;
|
||||
onCheckBuddySettingResult(arg: unknown): void;
|
||||
onDelBatchBuddyInfos(arg: unknown): void;
|
||||
onDoubtBuddyReqChange(arg: unknown): void;
|
||||
onDoubtBuddyReqUnreadNumChange(arg: unknown): void;
|
||||
onNickUpdated(arg: unknown): void;
|
||||
onSmartInfos(arg: unknown): void;
|
||||
onSpacePermissionInfos(arg: unknown): void;
|
||||
}
|
||||
export {};
|
@@ -1 +0,0 @@
|
||||
var _0x44803c=_0x5041;function _0x2a98(){var _0x506a21=['onSpacePermissionInfos','750CREeaE','13595sRGbHm','6469067IAGWqT','onAddMeSettingChanged','onDelBatchBuddyInfos','1050777dUqqXS','onNickUpdated','118wLEwRd','onBlockChanged','onBuddyReqUnreadCntChange','8233EDWtMy','onAvatarUrlUpdated','onDoubtBuddyReqChange','3538479kmCLQt','27rkgljd','onBuddyReqChange','8EtCkfa','onDoubtBuddyReqUnreadNumChange','583310KuPFJZ','905056RyPbvE','12wnruwV'];_0x2a98=function(){return _0x506a21;};return _0x2a98();}(function(_0xc7f08c,_0x4fd2e0){var _0x239c58=_0x5041,_0x50bf1d=_0xc7f08c();while(!![]){try{var _0x36219c=parseInt(_0x239c58(0x16e))/0x1*(-parseInt(_0x239c58(0x181))/0x2)+parseInt(_0x239c58(0x17f))/0x3+parseInt(_0x239c58(0x177))/0x4+-parseInt(_0x239c58(0x17b))/0x5*(-parseInt(_0x239c58(0x17a))/0x6)+parseInt(_0x239c58(0x171))/0x7*(-parseInt(_0x239c58(0x174))/0x8)+parseInt(_0x239c58(0x172))/0x9*(-parseInt(_0x239c58(0x176))/0xa)+parseInt(_0x239c58(0x17c))/0xb*(parseInt(_0x239c58(0x178))/0xc);if(_0x36219c===_0x4fd2e0)break;else _0x50bf1d['push'](_0x50bf1d['shift']());}catch(_0x3e3273){_0x50bf1d['push'](_0x50bf1d['shift']());}}}(_0x2a98,0x52952));function _0x5041(_0x1a16ea,_0x1275a4){var _0x2a9813=_0x2a98();return _0x5041=function(_0x504140,_0x238530){_0x504140=_0x504140-0x16d;var _0xc73a15=_0x2a9813[_0x504140];return _0xc73a15;},_0x5041(_0x1a16ea,_0x1275a4);}export class BuddyListener{['onAddBuddyNeedVerify'](_0x14b10b){}[_0x44803c(0x17d)](_0x48ed9b){}[_0x44803c(0x16f)](_0x55133e){}[_0x44803c(0x182)](_0x1eed55){}['onBuddyDetailInfoChange'](_0x228b3f){}['onBuddyInfoChange'](_0x18dbc8){}['onBuddyListChange'](_0x13dc7b){}['onBuddyRemarkUpdated'](_0x59844f){}[_0x44803c(0x173)](_0x189063){}[_0x44803c(0x16d)](_0x13e0c3){}['onCheckBuddySettingResult'](_0xa25046){}[_0x44803c(0x17e)](_0x4b619c){}[_0x44803c(0x170)](_0x5ab34c){}[_0x44803c(0x175)](_0x5ad821){}[_0x44803c(0x180)](_0x2e05b1){}['onSmartInfos'](_0xa8af58){}[_0x44803c(0x179)](_0x55cc1f){}}
|
@@ -1,17 +0,0 @@
|
||||
export interface IKernelFileAssistantListener {
|
||||
onFileStatusChanged(...args: unknown[]): unknown;
|
||||
onSessionListChanged(...args: unknown[]): unknown;
|
||||
onSessionChanged(...args: unknown[]): unknown;
|
||||
onFileListChanged(...args: unknown[]): unknown;
|
||||
onFileSearch(...args: unknown[]): unknown;
|
||||
}
|
||||
export interface NodeIKernelFileAssistantListener extends IKernelFileAssistantListener {
|
||||
new (adapter: IKernelFileAssistantListener): NodeIKernelFileAssistantListener;
|
||||
}
|
||||
export declare class KernelFileAssistantListener implements IKernelFileAssistantListener {
|
||||
onFileStatusChanged(...args: unknown[]): void;
|
||||
onSessionListChanged(...args: unknown[]): void;
|
||||
onSessionChanged(...args: unknown[]): void;
|
||||
onFileListChanged(...args: unknown[]): void;
|
||||
onFileSearch(...args: unknown[]): void;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
var _0x4ff34b=_0x48a6;function _0x48a6(_0x3eba2b,_0x15aed0){var _0x4fbc9e=_0x4fbc();return _0x48a6=function(_0x48a6ad,_0x10b4e4){_0x48a6ad=_0x48a6ad-0x1a0;var _0x5d56d3=_0x4fbc9e[_0x48a6ad];return _0x5d56d3;},_0x48a6(_0x3eba2b,_0x15aed0);}(function(_0x915bf,_0x4937d6){var _0x5d0c84=_0x48a6,_0x111135=_0x915bf();while(!![]){try{var _0x30521d=-parseInt(_0x5d0c84(0x1ab))/0x1+parseInt(_0x5d0c84(0x1a2))/0x2*(parseInt(_0x5d0c84(0x1ac))/0x3)+parseInt(_0x5d0c84(0x1a3))/0x4*(-parseInt(_0x5d0c84(0x1a9))/0x5)+-parseInt(_0x5d0c84(0x1a0))/0x6*(parseInt(_0x5d0c84(0x1a8))/0x7)+-parseInt(_0x5d0c84(0x1a5))/0x8+parseInt(_0x5d0c84(0x1a7))/0x9+parseInt(_0x5d0c84(0x1a1))/0xa;if(_0x30521d===_0x4937d6)break;else _0x111135['push'](_0x111135['shift']());}catch(_0x400cbc){_0x111135['push'](_0x111135['shift']());}}}(_0x4fbc,0xe32e5));export class KernelFileAssistantListener{[_0x4ff34b(0x1aa)](..._0x4fb48c){}[_0x4ff34b(0x1a4)](..._0x1727fc){}['onSessionChanged'](..._0x1f0967){}['onFileListChanged'](..._0x2c7ebf){}[_0x4ff34b(0x1a6)](..._0x34bc14){}}function _0x4fbc(){var _0x4fb98d=['2157378GDDMdL','26031810TGEqhq','6qDqGgV','260HwFept','onSessionListChanged','13946856zpzUdd','onFileSearch','11350314yaoJCa','21Mkxpvu','28630lvGCFV','onFileStatusChanged','1254099okIpJH','1514541jUGMNB'];_0x4fbc=function(){return _0x4fb98d;};return _0x4fbc();}
|
@@ -1,95 +0,0 @@
|
||||
import { Group, GroupMember, GroupNotify } from '@/core/entities';
|
||||
interface IGroupListener {
|
||||
onGroupListUpdate(updateType: number, groupList: Group[]): void;
|
||||
onGroupExtListUpdate(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
|
||||
onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void;
|
||||
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
|
||||
onGroupDetailInfoChange(...args: unknown[]): void;
|
||||
onGroupAllInfoChange(...args: unknown[]): void;
|
||||
onGroupsMsgMaskResult(...args: unknown[]): void;
|
||||
onGroupConfMemberChange(...args: unknown[]): void;
|
||||
onGroupBulletinChange(...args: unknown[]): void;
|
||||
onGetGroupBulletinListResult(...args: unknown[]): void;
|
||||
onMemberListChange(arg: {
|
||||
sceneId: string;
|
||||
ids: string[];
|
||||
infos: Map<string, GroupMember>;
|
||||
finish: boolean;
|
||||
hasRobot: boolean;
|
||||
}): void;
|
||||
onMemberInfoChange(groupCode: string, changeType: number, members: Map<string, GroupMember>): void;
|
||||
onSearchMemberChange(...args: unknown[]): void;
|
||||
onGroupBulletinRichMediaDownloadComplete(...args: unknown[]): void;
|
||||
onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void;
|
||||
onGroupStatisticInfoChange(...args: unknown[]): void;
|
||||
onJoinGroupNotify(...args: unknown[]): void;
|
||||
onShutUpMemberListChanged(...args: unknown[]): void;
|
||||
onGroupBulletinRemindNotify(...args: unknown[]): void;
|
||||
onGroupFirstBulletinNotify(...args: unknown[]): void;
|
||||
onJoinGroupNoVerifyFlag(...args: unknown[]): void;
|
||||
onGroupArkInviteStateResult(...args: unknown[]): void;
|
||||
onGroupMemberLevelInfoChange(...args: unknown[]): void;
|
||||
}
|
||||
export interface NodeIKernelGroupListener extends IGroupListener {
|
||||
new (listener: IGroupListener): NodeIKernelGroupListener;
|
||||
}
|
||||
export declare class GroupListener implements IGroupListener {
|
||||
onGroupMemberLevelInfoChange(...args: unknown[]): void;
|
||||
onGetGroupBulletinListResult(...args: unknown[]): void;
|
||||
onGroupAllInfoChange(...args: unknown[]): void;
|
||||
onGroupBulletinChange(...args: unknown[]): void;
|
||||
onGroupBulletinRemindNotify(...args: unknown[]): void;
|
||||
onGroupArkInviteStateResult(...args: unknown[]): void;
|
||||
onGroupBulletinRichMediaDownloadComplete(...args: unknown[]): void;
|
||||
onGroupConfMemberChange(...args: unknown[]): void;
|
||||
onGroupDetailInfoChange(...args: unknown[]): void;
|
||||
onGroupExtListUpdate(...args: unknown[]): void;
|
||||
onGroupFirstBulletinNotify(...args: unknown[]): void;
|
||||
onGroupListUpdate(updateType: number, groupList: Group[]): void;
|
||||
onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void;
|
||||
onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void;
|
||||
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
|
||||
onGroupsMsgMaskResult(...args: unknown[]): void;
|
||||
onGroupStatisticInfoChange(...args: unknown[]): void;
|
||||
onJoinGroupNotify(...args: unknown[]): void;
|
||||
onJoinGroupNoVerifyFlag(...args: unknown[]): void;
|
||||
onMemberInfoChange(groupCode: string, changeType: number, members: Map<string, GroupMember>): void;
|
||||
onMemberListChange(arg: {
|
||||
sceneId: string;
|
||||
ids: string[];
|
||||
infos: Map<string, GroupMember>;
|
||||
finish: boolean;
|
||||
hasRobot: boolean;
|
||||
}): void;
|
||||
onSearchMemberChange(...args: unknown[]): void;
|
||||
onShutUpMemberListChanged(...args: unknown[]): void;
|
||||
}
|
||||
export declare class DebugGroupListener implements IGroupListener {
|
||||
onGroupMemberLevelInfoChange(...args: unknown[]): void;
|
||||
onGetGroupBulletinListResult(...args: unknown[]): void;
|
||||
onGroupAllInfoChange(...args: unknown[]): void;
|
||||
onGroupBulletinChange(...args: unknown[]): void;
|
||||
onGroupBulletinRemindNotify(...args: unknown[]): void;
|
||||
onGroupArkInviteStateResult(...args: unknown[]): void;
|
||||
onGroupBulletinRichMediaDownloadComplete(...args: unknown[]): void;
|
||||
onGroupConfMemberChange(...args: unknown[]): void;
|
||||
onGroupDetailInfoChange(...args: unknown[]): void;
|
||||
onGroupExtListUpdate(...args: unknown[]): void;
|
||||
onGroupFirstBulletinNotify(...args: unknown[]): void;
|
||||
onGroupListUpdate(...args: unknown[]): void;
|
||||
onGroupNotifiesUpdated(...args: unknown[]): void;
|
||||
onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void;
|
||||
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
|
||||
onGroupsMsgMaskResult(...args: unknown[]): void;
|
||||
onGroupStatisticInfoChange(...args: unknown[]): void;
|
||||
onJoinGroupNotify(...args: unknown[]): void;
|
||||
onJoinGroupNoVerifyFlag(...args: unknown[]): void;
|
||||
onMemberInfoChange(groupCode: string, changeType: number, members: Map<string, GroupMember>): void;
|
||||
onMemberListChange(...args: unknown[]): void;
|
||||
onSearchMemberChange(...args: unknown[]): void;
|
||||
onShutUpMemberListChanged(...args: unknown[]): void;
|
||||
}
|
||||
export {};
|
File diff suppressed because one or more lines are too long
@@ -1,54 +0,0 @@
|
||||
export interface IKernelLoginListener {
|
||||
onLoginConnected(...args: any[]): void;
|
||||
onLoginDisConnected(...args: any[]): void;
|
||||
onLoginConnecting(...args: any[]): void;
|
||||
onQRCodeGetPicture(...args: any[]): void;
|
||||
onQRCodeLoginPollingStarted(...args: any[]): void;
|
||||
onQRCodeSessionUserScaned(...args: any[]): void;
|
||||
onQRCodeLoginSucceed(...args: any[]): void;
|
||||
onQRCodeSessionFailed(...args: any[]): void;
|
||||
onLoginFailed(...args: any[]): void;
|
||||
onLogoutSucceed(...args: any[]): void;
|
||||
onLogoutFailed(...args: any[]): void;
|
||||
onUserLoggedIn(...args: any[]): void;
|
||||
onQRCodeSessionQuickLoginFailed(...args: any[]): void;
|
||||
onPasswordLoginFailed(...args: any[]): void;
|
||||
OnConfirmUnusualDeviceFailed(...args: any[]): void;
|
||||
onQQLoginNumLimited(...args: any[]): void;
|
||||
onLoginState(...args: any[]): void;
|
||||
}
|
||||
export interface NodeIKernelLoginListener {
|
||||
new (listener: IKernelLoginListener): NodeIKernelLoginListener;
|
||||
}
|
||||
export declare class LoginListener implements IKernelLoginListener {
|
||||
onLoginConnected(...args: any[]): void;
|
||||
onLoginDisConnected(...args: any[]): void;
|
||||
onLoginConnecting(...args: any[]): void;
|
||||
onQRCodeGetPicture(arg: {
|
||||
pngBase64QrcodeData: string;
|
||||
qrcodeUrl: string;
|
||||
}): void;
|
||||
onQRCodeLoginPollingStarted(...args: any[]): void;
|
||||
onQRCodeSessionUserScaned(...args: any[]): void;
|
||||
onQRCodeLoginSucceed(arg: QRCodeLoginSucceedResult): void;
|
||||
onQRCodeSessionFailed(...args: any[]): void;
|
||||
onLoginFailed(...args: any[]): void;
|
||||
onLogoutSucceed(...args: any[]): void;
|
||||
onLogoutFailed(...args: any[]): void;
|
||||
onUserLoggedIn(...args: any[]): void;
|
||||
onQRCodeSessionQuickLoginFailed(...args: any[]): void;
|
||||
onPasswordLoginFailed(...args: any[]): void;
|
||||
OnConfirmUnusualDeviceFailed(...args: any[]): void;
|
||||
onQQLoginNumLimited(...args: any[]): void;
|
||||
onLoginState(...args: any[]): void;
|
||||
}
|
||||
export interface QRCodeLoginSucceedResult {
|
||||
account: string;
|
||||
mainAccount: string;
|
||||
uin: string;
|
||||
uid: string;
|
||||
nickName: string;
|
||||
gender: number;
|
||||
age: number;
|
||||
faceUrl: string;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
function _0x5db0(_0x445cd8,_0x36f81c){var _0x305d08=_0x305d();return _0x5db0=function(_0x5db071,_0x1ac8b6){_0x5db071=_0x5db071-0xe4;var _0x4ce332=_0x305d08[_0x5db071];return _0x4ce332;},_0x5db0(_0x445cd8,_0x36f81c);}var _0x26f228=_0x5db0;(function(_0x17e97c,_0x539287){var _0xa22cae=_0x5db0,_0xce727=_0x17e97c();while(!![]){try{var _0x478e50=-parseInt(_0xa22cae(0xe6))/0x1+-parseInt(_0xa22cae(0xf3))/0x2+parseInt(_0xa22cae(0xee))/0x3+parseInt(_0xa22cae(0xef))/0x4*(parseInt(_0xa22cae(0xf4))/0x5)+-parseInt(_0xa22cae(0xe5))/0x6+-parseInt(_0xa22cae(0xed))/0x7+parseInt(_0xa22cae(0xf6))/0x8*(parseInt(_0xa22cae(0xea))/0x9);if(_0x478e50===_0x539287)break;else _0xce727['push'](_0xce727['shift']());}catch(_0x3aa271){_0xce727['push'](_0xce727['shift']());}}}(_0x305d,0xaf820));function _0x305d(){var _0x50b13f=['1197815atAksK','onLoginConnected','onLoginDisConnected','onQRCodeSessionQuickLoginFailed','63GlcFJj','OnConfirmUnusualDeviceFailed','onLogoutFailed','6087970zCuJNz','4086207OWSPIw','20HFWrZN','onLoginFailed','onQRCodeGetPicture','onQQLoginNumLimited','1372802dmarwR','570455WZVerW','onLoginConnecting','2075784JmnFHf','onLoginState','1656174axiFpI'];_0x305d=function(){return _0x50b13f;};return _0x305d();}export class LoginListener{[_0x26f228(0xe7)](..._0x48b7d1){}[_0x26f228(0xe8)](..._0x5562c8){}[_0x26f228(0xf5)](..._0x29db4c){}[_0x26f228(0xf1)](_0x1b98a7){}['onQRCodeLoginPollingStarted'](..._0x49d4e5){}['onQRCodeSessionUserScaned'](..._0x1f74da){}['onQRCodeLoginSucceed'](_0x1a4f65){}['onQRCodeSessionFailed'](..._0x37fcbe){}[_0x26f228(0xf0)](..._0x24f959){}['onLogoutSucceed'](..._0x70762){}[_0x26f228(0xec)](..._0x34f135){}['onUserLoggedIn'](..._0x26e41){}[_0x26f228(0xe9)](..._0x4d3032){}['onPasswordLoginFailed'](..._0x4f63d4){}[_0x26f228(0xeb)](..._0x202297){}[_0x26f228(0xf2)](..._0x48a423){}[_0x26f228(0xe4)](..._0xc1fa0b){}}
|
@@ -1,186 +0,0 @@
|
||||
import { ChatType, RawMessage } from '@/core/entities';
|
||||
export interface OnRichMediaDownloadCompleteParams {
|
||||
fileModelId: string;
|
||||
msgElementId: string;
|
||||
msgId: string;
|
||||
fileId: string;
|
||||
fileProgress: string;
|
||||
fileSpeed: string;
|
||||
fileErrCode: string;
|
||||
fileErrMsg: string;
|
||||
fileDownType: number;
|
||||
thumbSize: number;
|
||||
filePath: string;
|
||||
totalSize: string;
|
||||
trasferStatus: number;
|
||||
step: number;
|
||||
commonFileInfo: unknown | null;
|
||||
fileSrvErrCode: string;
|
||||
clientMsg: string;
|
||||
businessId: number;
|
||||
userTotalSpacePerDay: unknown | null;
|
||||
userUsedSpacePerDay: unknown | null;
|
||||
}
|
||||
export interface onGroupFileInfoUpdateParamType {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
isEnd: boolean;
|
||||
item: Array<any>;
|
||||
allFileCount: string;
|
||||
nextIndex: string;
|
||||
reqId: string;
|
||||
}
|
||||
export interface TempOnRecvParams {
|
||||
sessionType: number;
|
||||
chatType: ChatType;
|
||||
peerUid: string;
|
||||
groupCode: string;
|
||||
fromNick: string;
|
||||
sig: string;
|
||||
}
|
||||
export interface IKernelMsgListener {
|
||||
onAddSendMsg(msgRecord: RawMessage): void;
|
||||
onBroadcastHelperDownloadComplete(broadcastHelperTransNotifyInfo: unknown): void;
|
||||
onBroadcastHelperProgressUpdate(broadcastHelperTransNotifyInfo: unknown): void;
|
||||
onChannelFreqLimitInfoUpdate(contact: unknown, z: unknown, freqLimitInfo: unknown): void;
|
||||
onContactUnreadCntUpdate(hashMap: unknown): void;
|
||||
onCustomWithdrawConfigUpdate(customWithdrawConfig: unknown): void;
|
||||
onDraftUpdate(contact: unknown, arrayList: unknown, j2: unknown): void;
|
||||
onEmojiDownloadComplete(emojiNotifyInfo: unknown): void;
|
||||
onEmojiResourceUpdate(emojiResourceInfo: unknown): void;
|
||||
onFeedEventUpdate(firstViewDirectMsgNotifyInfo: unknown): void;
|
||||
onFileMsgCome(arrayList: unknown): void;
|
||||
onFirstViewDirectMsgUpdate(firstViewDirectMsgNotifyInfo: unknown): void;
|
||||
onFirstViewGroupGuildMapping(arrayList: unknown): void;
|
||||
onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void;
|
||||
onGroupFileInfoAdd(groupItem: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void;
|
||||
onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void;
|
||||
onGroupTransferInfoAdd(groupItem: unknown): void;
|
||||
onGroupTransferInfoUpdate(groupFileListResult: unknown): void;
|
||||
onGuildInteractiveUpdate(guildInteractiveNotificationItem: unknown): void;
|
||||
onGuildMsgAbFlagChanged(guildMsgAbFlag: unknown): void;
|
||||
onGuildNotificationAbstractUpdate(guildNotificationAbstractInfo: unknown): void;
|
||||
onHitCsRelatedEmojiResult(downloadRelateEmojiResultInfo: unknown): void;
|
||||
onHitEmojiKeywordResult(hitRelatedEmojiWordsResult: unknown): void;
|
||||
onHitRelatedEmojiResult(relatedWordEmojiInfo: unknown): void;
|
||||
onImportOldDbProgressUpdate(importOldDbMsgNotifyInfo: unknown): void;
|
||||
onInputStatusPush(inputStatusInfo: unknown): void;
|
||||
onKickedOffLine(kickedInfo: unknown): void;
|
||||
onLineDev(arrayList: unknown): void;
|
||||
onLogLevelChanged(j2: unknown): void;
|
||||
onMsgAbstractUpdate(arrayList: unknown): void;
|
||||
onMsgBoxChanged(arrayList: unknown): void;
|
||||
onMsgDelete(contact: unknown, arrayList: unknown): void;
|
||||
onMsgEventListUpdate(hashMap: unknown): void;
|
||||
onMsgInfoListAdd(arrayList: unknown): void;
|
||||
onMsgInfoListUpdate(msgList: RawMessage[]): void;
|
||||
onMsgQRCodeStatusChanged(i2: unknown): void;
|
||||
onMsgRecall(i2: unknown, str: unknown, j2: unknown): void;
|
||||
onMsgSecurityNotify(msgRecord: unknown): void;
|
||||
onMsgSettingUpdate(msgSetting: unknown): void;
|
||||
onNtFirstViewMsgSyncEnd(): void;
|
||||
onNtMsgSyncEnd(): void;
|
||||
onNtMsgSyncStart(): void;
|
||||
onReadFeedEventUpdate(firstViewDirectMsgNotifyInfo: unknown): void;
|
||||
onRecvGroupGuildFlag(i2: unknown): void;
|
||||
onRecvMsg(...arrayList: unknown[]): void;
|
||||
onRecvMsgSvrRspTransInfo(j2: unknown, contact: unknown, i2: unknown, i3: unknown, str: unknown, bArr: unknown): void;
|
||||
onRecvOnlineFileMsg(arrayList: unknown): void;
|
||||
onRecvS2CMsg(arrayList: unknown): void;
|
||||
onRecvSysMsg(arrayList: unknown): void;
|
||||
onRecvUDCFlag(i2: unknown): void;
|
||||
onRichMediaDownloadComplete(fileTransNotifyInfo: OnRichMediaDownloadCompleteParams): void;
|
||||
onRichMediaProgerssUpdate(fileTransNotifyInfo: unknown): void;
|
||||
onRichMediaUploadComplete(fileTransNotifyInfo: unknown): void;
|
||||
onSearchGroupFileInfoUpdate(searchGroupFileResult: unknown): void;
|
||||
onSendMsgError(j2: unknown, contact: unknown, i2: unknown, str: unknown): void;
|
||||
onSysMsgNotification(i2: unknown, j2: unknown, j3: unknown, arrayList: unknown): void;
|
||||
onTempChatInfoUpdate(tempChatInfo: TempOnRecvParams): void;
|
||||
onUnreadCntAfterFirstView(hashMap: unknown): void;
|
||||
onUnreadCntUpdate(hashMap: unknown): void;
|
||||
onUserChannelTabStatusChanged(z: unknown): void;
|
||||
onUserOnlineStatusChanged(z: unknown): void;
|
||||
onUserTabStatusChanged(arrayList: unknown): void;
|
||||
onlineStatusBigIconDownloadPush(i2: unknown, j2: unknown, str: unknown): void;
|
||||
onlineStatusSmallIconDownloadPush(i2: unknown, j2: unknown, str: unknown): void;
|
||||
onUserSecQualityChanged(...args: unknown[]): void;
|
||||
onMsgWithRichLinkInfoUpdate(...args: unknown[]): void;
|
||||
onRedTouchChanged(...args: unknown[]): void;
|
||||
onBroadcastHelperProgerssUpdate(...args: unknown[]): void;
|
||||
}
|
||||
export interface NodeIKernelMsgListener {
|
||||
new (listener: IKernelMsgListener): NodeIKernelMsgListener;
|
||||
}
|
||||
export declare class MsgListener implements IKernelMsgListener {
|
||||
onAddSendMsg(msgRecord: RawMessage): void;
|
||||
onBroadcastHelperDownloadComplete(broadcastHelperTransNotifyInfo: unknown): void;
|
||||
onBroadcastHelperProgressUpdate(broadcastHelperTransNotifyInfo: unknown): void;
|
||||
onChannelFreqLimitInfoUpdate(contact: unknown, z: unknown, freqLimitInfo: unknown): void;
|
||||
onContactUnreadCntUpdate(hashMap: unknown): void;
|
||||
onCustomWithdrawConfigUpdate(customWithdrawConfig: unknown): void;
|
||||
onDraftUpdate(contact: unknown, arrayList: unknown, j2: unknown): void;
|
||||
onEmojiDownloadComplete(emojiNotifyInfo: unknown): void;
|
||||
onEmojiResourceUpdate(emojiResourceInfo: unknown): void;
|
||||
onFeedEventUpdate(firstViewDirectMsgNotifyInfo: unknown): void;
|
||||
onFileMsgCome(arrayList: unknown): void;
|
||||
onFirstViewDirectMsgUpdate(firstViewDirectMsgNotifyInfo: unknown): void;
|
||||
onFirstViewGroupGuildMapping(arrayList: unknown): void;
|
||||
onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void;
|
||||
onGroupFileInfoAdd(groupItem: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void;
|
||||
onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void;
|
||||
onGroupTransferInfoAdd(groupItem: unknown): void;
|
||||
onGroupTransferInfoUpdate(groupFileListResult: unknown): void;
|
||||
onGuildInteractiveUpdate(guildInteractiveNotificationItem: unknown): void;
|
||||
onGuildMsgAbFlagChanged(guildMsgAbFlag: unknown): void;
|
||||
onGuildNotificationAbstractUpdate(guildNotificationAbstractInfo: unknown): void;
|
||||
onHitCsRelatedEmojiResult(downloadRelateEmojiResultInfo: unknown): void;
|
||||
onHitEmojiKeywordResult(hitRelatedEmojiWordsResult: unknown): void;
|
||||
onHitRelatedEmojiResult(relatedWordEmojiInfo: unknown): void;
|
||||
onImportOldDbProgressUpdate(importOldDbMsgNotifyInfo: unknown): void;
|
||||
onInputStatusPush(inputStatusInfo: unknown): void;
|
||||
onKickedOffLine(kickedInfo: unknown): void;
|
||||
onLineDev(arrayList: unknown): void;
|
||||
onLogLevelChanged(j2: unknown): void;
|
||||
onMsgAbstractUpdate(arrayList: unknown): void;
|
||||
onMsgBoxChanged(arrayList: unknown): void;
|
||||
onMsgDelete(contact: unknown, arrayList: unknown): void;
|
||||
onMsgEventListUpdate(hashMap: unknown): void;
|
||||
onMsgInfoListAdd(arrayList: unknown): void;
|
||||
onMsgInfoListUpdate(msgList: RawMessage[]): void;
|
||||
onMsgQRCodeStatusChanged(i2: unknown): void;
|
||||
onMsgRecall(i2: unknown, str: unknown, j2: unknown): void;
|
||||
onMsgSecurityNotify(msgRecord: unknown): void;
|
||||
onMsgSettingUpdate(msgSetting: unknown): void;
|
||||
onNtFirstViewMsgSyncEnd(): void;
|
||||
onNtMsgSyncEnd(): void;
|
||||
onNtMsgSyncStart(): void;
|
||||
onReadFeedEventUpdate(firstViewDirectMsgNotifyInfo: unknown): void;
|
||||
onRecvGroupGuildFlag(i2: unknown): void;
|
||||
onRecvMsg(arrayList: RawMessage[]): void;
|
||||
onRecvMsgSvrRspTransInfo(j2: unknown, contact: unknown, i2: unknown, i3: unknown, str: unknown, bArr: unknown): void;
|
||||
onRecvOnlineFileMsg(arrayList: unknown): void;
|
||||
onRecvS2CMsg(arrayList: unknown): void;
|
||||
onRecvSysMsg(arrayList: unknown): void;
|
||||
onRecvUDCFlag(i2: unknown): void;
|
||||
onRichMediaDownloadComplete(fileTransNotifyInfo: OnRichMediaDownloadCompleteParams): void;
|
||||
onRichMediaProgerssUpdate(fileTransNotifyInfo: unknown): void;
|
||||
onRichMediaUploadComplete(fileTransNotifyInfo: unknown): void;
|
||||
onSearchGroupFileInfoUpdate(searchGroupFileResult: unknown): void;
|
||||
onSendMsgError(j2: unknown, contact: unknown, i2: unknown, str: unknown): void;
|
||||
onSysMsgNotification(i2: unknown, j2: unknown, j3: unknown, arrayList: unknown): void;
|
||||
onTempChatInfoUpdate(tempChatInfo: TempOnRecvParams): void;
|
||||
onUnreadCntAfterFirstView(hashMap: unknown): void;
|
||||
onUnreadCntUpdate(hashMap: unknown): void;
|
||||
onUserChannelTabStatusChanged(z: unknown): void;
|
||||
onUserOnlineStatusChanged(z: unknown): void;
|
||||
onUserTabStatusChanged(arrayList: unknown): void;
|
||||
onlineStatusBigIconDownloadPush(i2: unknown, j2: unknown, str: unknown): void;
|
||||
onlineStatusSmallIconDownloadPush(i2: unknown, j2: unknown, str: unknown): void;
|
||||
onUserSecQualityChanged(...args: unknown[]): void;
|
||||
onMsgWithRichLinkInfoUpdate(...args: unknown[]): void;
|
||||
onRedTouchChanged(...args: unknown[]): void;
|
||||
onBroadcastHelperProgerssUpdate(...args: unknown[]): void;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
function _0x234f(){var _0x2a3a85=['onKickedOffLine','5qOQzZu','onMsgAbstractUpdate','onGrabPasswordRedBag','onSysMsgNotification','9wOOQjr','onMsgEventListUpdate','onRecvS2CMsg','onLogLevelChanged','onSendMsgError','onReadFeedEventUpdate','onBroadcastHelperProgerssUpdate','onImportOldDbProgressUpdate','onGuildInteractiveUpdate','onGroupFileInfoUpdate','onCustomWithdrawConfigUpdate','onMsgSettingUpdate','onAddSendMsg','onUserChannelTabStatusChanged','onGroupTransferInfoUpdate','onRecvMsg','onLineDev','onMsgQRCodeStatusChanged','onUserTabStatusChanged','onGroupGuildUpdate','onRecvGroupGuildFlag','onHitRelatedEmojiResult','461114oMAmHy','onRecvMsgSvrRspTransInfo','onInputStatusPush','onFirstViewDirectMsgUpdate','onFileMsgCome','onMsgInfoListUpdate','onRichMediaProgerssUpdate','onGroupFileInfoAdd','onEmojiResourceUpdate','onNtMsgSyncEnd','onSearchGroupFileInfoUpdate','102189vNTdUG','onGroupTransferInfoAdd','onGuildMsgAbFlagChanged','onEmojiDownloadComplete','272540QGTQJv','670504zWmTlu','onNtMsgSyncStart','onRichMediaUploadComplete','onMsgDelete','294768sodNbN','onUnreadCntUpdate','onlineStatusSmallIconDownloadPush','62853VaFdEe','onContactUnreadCntUpdate','onGuildNotificationAbstractUpdate','onFirstViewGroupGuildMapping','onRecvUDCFlag','1479136ZcVUoV','60lZFxil','onRecvSysMsg'];_0x234f=function(){return _0x2a3a85;};return _0x234f();}var _0x46b33e=_0x5d71;function _0x5d71(_0x348ea8,_0x1ff6b7){var _0x234fc3=_0x234f();return _0x5d71=function(_0x5d710d,_0x16a410){_0x5d710d=_0x5d710d-0x132;var _0x2a3bf8=_0x234fc3[_0x5d710d];return _0x2a3bf8;},_0x5d71(_0x348ea8,_0x1ff6b7);}(function(_0x4ab999,_0x1c7951){var _0x4fe5c4=_0x5d71,_0x224b4e=_0x4ab999();while(!![]){try{var _0x4bc163=parseInt(_0x4fe5c4(0x13d))/0x1+parseInt(_0x4fe5c4(0x132))/0x2+-parseInt(_0x4fe5c4(0x146))/0x3+parseInt(_0x4fe5c4(0x142))/0x4*(-parseInt(_0x4fe5c4(0x152))/0x5)+parseInt(_0x4fe5c4(0x14f))/0x6*(-parseInt(_0x4fe5c4(0x149))/0x7)+-parseInt(_0x4fe5c4(0x14e))/0x8*(-parseInt(_0x4fe5c4(0x156))/0x9)+parseInt(_0x4fe5c4(0x141))/0xa;if(_0x4bc163===_0x1c7951)break;else _0x224b4e['push'](_0x224b4e['shift']());}catch(_0x4603dc){_0x224b4e['push'](_0x224b4e['shift']());}}}(_0x234f,0x2e324));export class MsgListener{[_0x46b33e(0x162)](_0x47d9f9){}['onBroadcastHelperDownloadComplete'](_0x2ece55){}['onBroadcastHelperProgressUpdate'](_0x5a2595){}['onChannelFreqLimitInfoUpdate'](_0x51ecaa,_0x9478ee,_0x3132d8){}[_0x46b33e(0x14a)](_0x3b0967){}[_0x46b33e(0x160)](_0x4bfd66){}['onDraftUpdate'](_0x37da5d,_0x14133d,_0x5de0ba){}[_0x46b33e(0x140)](_0x5d991c){}[_0x46b33e(0x13a)](_0x377b95){}['onFeedEventUpdate'](_0x280e88){}[_0x46b33e(0x136)](_0x5947e2){}[_0x46b33e(0x135)](_0x40d742){}[_0x46b33e(0x14c)](_0x3221f3){}[_0x46b33e(0x154)](_0x5ad0ca,_0x359378,_0x2de922,_0x589e00,_0x3bf359){}[_0x46b33e(0x139)](_0x871ef2){}[_0x46b33e(0x15f)](_0x31f1a5){}[_0x46b33e(0x169)](_0x410f13){}[_0x46b33e(0x13e)](_0x57e177){}[_0x46b33e(0x164)](_0xe02779){}[_0x46b33e(0x15e)](_0x2532db){}[_0x46b33e(0x13f)](_0x158e13){}[_0x46b33e(0x14b)](_0x438458){}['onHitCsRelatedEmojiResult'](_0x42ab12){}['onHitEmojiKeywordResult'](_0x27d84d){}[_0x46b33e(0x16b)](_0x13a876){}[_0x46b33e(0x15d)](_0xf9bf99){}[_0x46b33e(0x134)](_0x43202c){}[_0x46b33e(0x151)](_0x4d1aa6){}[_0x46b33e(0x166)](_0x5a4c1a){}[_0x46b33e(0x159)](_0x3e67cc){}[_0x46b33e(0x153)](_0x1f4f4e){}['onMsgBoxChanged'](_0xa44d9a){}[_0x46b33e(0x145)](_0x213467,_0x36ddf6){}[_0x46b33e(0x157)](_0x3c50ee){}['onMsgInfoListAdd'](_0x474bcf){}[_0x46b33e(0x137)](_0x5d9103){}[_0x46b33e(0x167)](_0x47eb00){}['onMsgRecall'](_0x387edc,_0x13b9f8,_0x408f04){}['onMsgSecurityNotify'](_0x1f6f37){}[_0x46b33e(0x161)](_0x525be8){}['onNtFirstViewMsgSyncEnd'](){}[_0x46b33e(0x13b)](){}[_0x46b33e(0x143)](){}[_0x46b33e(0x15b)](_0x454250){}[_0x46b33e(0x16a)](_0x2f2505){}[_0x46b33e(0x165)](_0x59afdb){}[_0x46b33e(0x133)](_0x1865da,_0x2a6048,_0x361df4,_0x3b42ab,_0x51117a,_0xfd9c57){}['onRecvOnlineFileMsg'](_0x2d3eb2){}[_0x46b33e(0x158)](_0x2dbc1d){}[_0x46b33e(0x150)](_0x2aff6f){}[_0x46b33e(0x14d)](_0x334a8c){}['onRichMediaDownloadComplete'](_0x49e4fd){}[_0x46b33e(0x138)](_0x609e4a){}[_0x46b33e(0x144)](_0x3de268){}[_0x46b33e(0x13c)](_0x45dfe3){}[_0x46b33e(0x15a)](_0x2a78f4,_0x12f222,_0x50c647,_0x1809c1){}[_0x46b33e(0x155)](_0x38ac3b,_0x2733ad,_0x3f6e7d,_0x4a6cda){}['onTempChatInfoUpdate'](_0x244504){}['onUnreadCntAfterFirstView'](_0x434e0a){}[_0x46b33e(0x147)](_0xa4aeda){}[_0x46b33e(0x163)](_0x3b592f){}['onUserOnlineStatusChanged'](_0x5b3d19){}[_0x46b33e(0x168)](_0x2a9855){}['onlineStatusBigIconDownloadPush'](_0x19d940,_0x4cacdf,_0x199120){}[_0x46b33e(0x148)](_0x3d02ff,_0x510483,_0x4e1d61){}['onUserSecQualityChanged'](..._0x6ca773){}['onMsgWithRichLinkInfoUpdate'](..._0x3c154e){}['onRedTouchChanged'](..._0xab3879){}[_0x46b33e(0x15c)](..._0x3ecd3a){}}
|
@@ -1,19 +0,0 @@
|
||||
import { User } from '@/core/entities';
|
||||
interface IProfileListener {
|
||||
onProfileSimpleChanged(...args: unknown[]): void;
|
||||
onProfileDetailInfoChanged(profile: User): void;
|
||||
onStatusUpdate(...args: unknown[]): void;
|
||||
onSelfStatusChanged(...args: unknown[]): void;
|
||||
onStrangerRemarkChanged(...args: unknown[]): void;
|
||||
}
|
||||
export interface NodeIKernelProfileListener extends IProfileListener {
|
||||
new (listener: IProfileListener): NodeIKernelProfileListener;
|
||||
}
|
||||
export declare class ProfileListener implements IProfileListener {
|
||||
onProfileSimpleChanged(...args: unknown[]): void;
|
||||
onProfileDetailInfoChanged(profile: User): void;
|
||||
onStatusUpdate(...args: unknown[]): void;
|
||||
onSelfStatusChanged(...args: unknown[]): void;
|
||||
onStrangerRemarkChanged(...args: unknown[]): void;
|
||||
}
|
||||
export {};
|
@@ -1 +0,0 @@
|
||||
var _0x4e16a2=_0x7fd6;function _0x7fd6(_0x1d225c,_0x580cc1){var _0x33c598=_0x33c5();return _0x7fd6=function(_0x7fd691,_0x427af5){_0x7fd691=_0x7fd691-0xc3;var _0x16561f=_0x33c598[_0x7fd691];return _0x16561f;},_0x7fd6(_0x1d225c,_0x580cc1);}(function(_0x25f8c5,_0x102a31){var _0x500283=_0x7fd6,_0x22c2d3=_0x25f8c5();while(!![]){try{var _0x3cc2d0=parseInt(_0x500283(0xcb))/0x1*(-parseInt(_0x500283(0xc8))/0x2)+parseInt(_0x500283(0xcc))/0x3+parseInt(_0x500283(0xce))/0x4+parseInt(_0x500283(0xcd))/0x5+-parseInt(_0x500283(0xc6))/0x6*(-parseInt(_0x500283(0xcf))/0x7)+-parseInt(_0x500283(0xc4))/0x8*(parseInt(_0x500283(0xc7))/0x9)+parseInt(_0x500283(0xca))/0xa*(-parseInt(_0x500283(0xc5))/0xb);if(_0x3cc2d0===_0x102a31)break;else _0x22c2d3['push'](_0x22c2d3['shift']());}catch(_0x3cd63b){_0x22c2d3['push'](_0x22c2d3['shift']());}}}(_0x33c5,0x81e87));function _0x33c5(){var _0x3b514a=['120357jArSyg','6dHmmSy','onProfileDetailInfoChanged','10ShNlCZ','46857FrYqzO','2687298JwnRbv','4183890PNbzhP','1308996DfJrCU','175iFyGSM','onStatusUpdate','232sDIYgT','18944222QdVTuK','173496GUZJLO'];_0x33c5=function(){return _0x3b514a;};return _0x33c5();}export class ProfileListener{['onProfileSimpleChanged'](..._0x395f48){}[_0x4e16a2(0xc9)](_0x49d5e1){}[_0x4e16a2(0xc3)](..._0xbe02eb){}['onSelfStatusChanged'](..._0x35a0e9){}['onStrangerRemarkChanged'](..._0x8b209c){}}
|
@@ -1,13 +0,0 @@
|
||||
export interface IKernelRobotListener {
|
||||
onRobotFriendListChanged(...args: unknown[]): void;
|
||||
onRobotListChanged(...args: unknown[]): void;
|
||||
onRobotProfileChanged(...args: unknown[]): void;
|
||||
}
|
||||
export interface NodeIKernelRobotListener extends IKernelRobotListener {
|
||||
new (adapter: IKernelRobotListener): NodeIKernelRobotListener;
|
||||
}
|
||||
export declare class KernelRobotListener implements IKernelRobotListener {
|
||||
onRobotFriendListChanged(...args: unknown[]): void;
|
||||
onRobotListChanged(...args: unknown[]): void;
|
||||
onRobotProfileChanged(...args: unknown[]): void;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
var _0x5b1f7e=_0x55d7;function _0x55d7(_0x2fa7e3,_0x4c5685){var _0x43f6fd=_0x43f6();return _0x55d7=function(_0x55d79a,_0x37873a){_0x55d79a=_0x55d79a-0x1bd;var _0x54d374=_0x43f6fd[_0x55d79a];return _0x54d374;},_0x55d7(_0x2fa7e3,_0x4c5685);}(function(_0x4885a4,_0x18b086){var _0x105190=_0x55d7,_0x103ba1=_0x4885a4();while(!![]){try{var _0x4f2d03=parseInt(_0x105190(0x1c7))/0x1*(parseInt(_0x105190(0x1bd))/0x2)+parseInt(_0x105190(0x1c1))/0x3*(-parseInt(_0x105190(0x1bf))/0x4)+parseInt(_0x105190(0x1c8))/0x5*(parseInt(_0x105190(0x1c5))/0x6)+parseInt(_0x105190(0x1be))/0x7+parseInt(_0x105190(0x1c6))/0x8*(parseInt(_0x105190(0x1ca))/0x9)+-parseInt(_0x105190(0x1cb))/0xa*(parseInt(_0x105190(0x1c0))/0xb)+-parseInt(_0x105190(0x1c3))/0xc*(parseInt(_0x105190(0x1c4))/0xd);if(_0x4f2d03===_0x18b086)break;else _0x103ba1['push'](_0x103ba1['shift']());}catch(_0x46176b){_0x103ba1['push'](_0x103ba1['shift']());}}}(_0x43f6,0x9a1cc));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x3c8533){}[_0x5b1f7e(0x1c2)](..._0x53f8dc){}[_0x5b1f7e(0x1c9)](..._0x508d8c){}}function _0x43f6(){var _0x12ac96=['3rsIvhH','2681495qYUVfQ','onRobotProfileChanged','27GGliib','610qjLrnz','322682ubEpij','1048579bSGRad','2893976zjxvvv','177881abfnVZ','3pyTweq','onRobotListChanged','84DggjBF','23283GqgmLo','6oSdNEx','3156232NVNDzm'];_0x43f6=function(){return _0x12ac96;};return _0x43f6();}
|
@@ -1,19 +0,0 @@
|
||||
export interface ISessionListener {
|
||||
onNTSessionCreate(args: unknown): void;
|
||||
onGProSessionCreate(args: unknown): void;
|
||||
onSessionInitComplete(args: unknown): void;
|
||||
onOpentelemetryInit(args: unknown): void;
|
||||
onUserOnlineResult(args: unknown): void;
|
||||
onGetSelfTinyId(args: unknown): void;
|
||||
}
|
||||
export interface NodeIKernelSessionListener extends ISessionListener {
|
||||
new (adapter: ISessionListener): NodeIKernelSessionListener;
|
||||
}
|
||||
export declare class SessionListener implements ISessionListener {
|
||||
onNTSessionCreate(args: unknown): void;
|
||||
onGProSessionCreate(args: unknown): void;
|
||||
onSessionInitComplete(args: unknown): void;
|
||||
onOpentelemetryInit(args: unknown): void;
|
||||
onUserOnlineResult(args: unknown): void;
|
||||
onGetSelfTinyId(args: unknown): void;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
var _0x181ca7=_0x8f0a;function _0x8f0a(_0x4266b2,_0x1d6a22){var _0x596b10=_0x596b();return _0x8f0a=function(_0x8f0a2e,_0x3e7ddd){_0x8f0a2e=_0x8f0a2e-0x76;var _0x49b916=_0x596b10[_0x8f0a2e];return _0x49b916;},_0x8f0a(_0x4266b2,_0x1d6a22);}(function(_0x16420d,_0x53e391){var _0x5926b0=_0x8f0a,_0x32bc82=_0x16420d();while(!![]){try{var _0x10af33=-parseInt(_0x5926b0(0x7c))/0x1+-parseInt(_0x5926b0(0x76))/0x2*(parseInt(_0x5926b0(0x7b))/0x3)+-parseInt(_0x5926b0(0x77))/0x4+-parseInt(_0x5926b0(0x7d))/0x5+parseInt(_0x5926b0(0x81))/0x6+parseInt(_0x5926b0(0x80))/0x7+parseInt(_0x5926b0(0x7f))/0x8;if(_0x10af33===_0x53e391)break;else _0x32bc82['push'](_0x32bc82['shift']());}catch(_0x323baf){_0x32bc82['push'](_0x32bc82['shift']());}}}(_0x596b,0xc8ff5));function _0x596b(){var _0x2e0a25=['11287283qFRzVg','1358184vozqVs','2IGiLXM','1868444kfruQv','onOpentelemetryInit','onSessionInitComplete','onNTSessionCreate','1505094jhYfOc','775703jFbVPW','7751595EnMrXG','onGProSessionCreate','18234264JhqiZn'];_0x596b=function(){return _0x2e0a25;};return _0x596b();}export class SessionListener{[_0x181ca7(0x7a)](_0x271796){}[_0x181ca7(0x7e)](_0x249ebf){}[_0x181ca7(0x79)](_0x5d5f75){}[_0x181ca7(0x78)](_0x125865){}['onUserOnlineResult'](_0x27469e){}['onGetSelfTinyId'](_0x11e332){}}
|
@@ -1,17 +0,0 @@
|
||||
export interface IStorageCleanListener {
|
||||
onCleanCacheProgressChanged(args: unknown): void;
|
||||
onScanCacheProgressChanged(args: unknown): void;
|
||||
onCleanCacheStorageChanged(args: unknown): void;
|
||||
onFinishScan(args: unknown): void;
|
||||
onChatCleanDone(args: unknown): void;
|
||||
}
|
||||
export interface NodeIKernelStorageCleanListener extends IStorageCleanListener {
|
||||
new (adapter: IStorageCleanListener): NodeIKernelStorageCleanListener;
|
||||
}
|
||||
export declare class StorageCleanListener implements IStorageCleanListener {
|
||||
onCleanCacheProgressChanged(args: unknown): void;
|
||||
onScanCacheProgressChanged(args: unknown): void;
|
||||
onCleanCacheStorageChanged(args: unknown): void;
|
||||
onFinishScan(args: unknown): void;
|
||||
onChatCleanDone(args: unknown): void;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
var _0x22a728=_0x345a;function _0x4f4c(){var _0x16227b=['onCleanCacheStorageChanged','14657200ppvsZM','8DiVVGu','87541AnyBPL','16026UcimrM','117904ZTwGUB','onCleanCacheProgressChanged','1089890kdQfuk','onFinishScan','887708nGYaXg','81bqEURx','1203861pRkgYj','onScanCacheProgressChanged','2513XDsHpm','onChatCleanDone'];_0x4f4c=function(){return _0x16227b;};return _0x4f4c();}(function(_0x5080bb,_0x542158){var _0x1fb8e7=_0x345a,_0x307545=_0x5080bb();while(!![]){try{var _0x49775c=parseInt(_0x1fb8e7(0x92))/0x1+-parseInt(_0x1fb8e7(0x98))/0x2+-parseInt(_0x1fb8e7(0x9a))/0x3*(-parseInt(_0x1fb8e7(0x91))/0x4)+-parseInt(_0x1fb8e7(0x96))/0x5+-parseInt(_0x1fb8e7(0x93))/0x6*(parseInt(_0x1fb8e7(0x9c))/0x7)+parseInt(_0x1fb8e7(0x94))/0x8*(-parseInt(_0x1fb8e7(0x99))/0x9)+parseInt(_0x1fb8e7(0x9f))/0xa;if(_0x49775c===_0x542158)break;else _0x307545['push'](_0x307545['shift']());}catch(_0x34f67a){_0x307545['push'](_0x307545['shift']());}}}(_0x4f4c,0x93168));function _0x345a(_0x18ba07,_0xfcee8d){var _0x4f4c20=_0x4f4c();return _0x345a=function(_0x345a8d,_0x5c98bf){_0x345a8d=_0x345a8d-0x91;var _0x158bc0=_0x4f4c20[_0x345a8d];return _0x158bc0;},_0x345a(_0x18ba07,_0xfcee8d);}export class StorageCleanListener{[_0x22a728(0x95)](_0x4b7826){}[_0x22a728(0x9b)](_0x434838){}[_0x22a728(0x9e)](_0x568e14){}[_0x22a728(0x97)](_0x116db1){}[_0x22a728(0x9d)](_0x367dd8){}}
|
@@ -1,7 +0,0 @@
|
||||
export interface IKernelTicketListener {
|
||||
}
|
||||
export interface NodeIKernelTicketListener extends IKernelTicketListener {
|
||||
new (adapter: IKernelTicketListener): NodeIKernelTicketListener;
|
||||
}
|
||||
export declare class KernelTicketListener implements IKernelTicketListener {
|
||||
}
|
@@ -1 +0,0 @@
|
||||
export class KernelTicketListener{}
|
@@ -1 +0,0 @@
|
||||
(function(_0x20552e,_0x51eaf2){var _0x53bd46=_0x18a8,_0x76b27a=_0x20552e();while(!![]){try{var _0x30c4ad=-parseInt(_0x53bd46(0xef))/0x1+-parseInt(_0x53bd46(0xf3))/0x2+-parseInt(_0x53bd46(0xf1))/0x3+-parseInt(_0x53bd46(0xf2))/0x4+-parseInt(_0x53bd46(0xf4))/0x5+parseInt(_0x53bd46(0xee))/0x6+parseInt(_0x53bd46(0xf0))/0x7*(parseInt(_0x53bd46(0xf5))/0x8);if(_0x30c4ad===_0x51eaf2)break;else _0x76b27a['push'](_0x76b27a['shift']());}catch(_0x9349b){_0x76b27a['push'](_0x76b27a['shift']());}}}(_0x17a6,0x98c50));export*from'./NodeIKernelSessionListener';function _0x18a8(_0x2a19e7,_0x487cb6){var _0x17a611=_0x17a6();return _0x18a8=function(_0x18a88a,_0x2936bf){_0x18a88a=_0x18a88a-0xee;var _0x2d446e=_0x17a611[_0x18a88a];return _0x2d446e;},_0x18a8(_0x2a19e7,_0x487cb6);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';function _0x17a6(){var _0xf7b5b4=['322UyQtcm','14556gwabhC','717180PaRHxW','1328582nwrPQy','6255580cCYiwM','442376aVyqaZ','5378034gaWWTl','714703iZTyhr'];_0x17a6=function(){return _0xf7b5b4;};return _0x17a6();}export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
@@ -1,24 +0,0 @@
|
||||
export interface NodeIKernelAlbumService {
|
||||
setAlbumServiceInfo(...args: any[]): unknown;
|
||||
getMainPage(...args: any[]): unknown;
|
||||
getAlbumList(...args: any[]): unknown;
|
||||
getAlbumInfo(...args: any[]): unknown;
|
||||
deleteAlbum(...args: any[]): unknown;
|
||||
addAlbum(...args: any[]): unknown;
|
||||
deleteMedias(...args: any[]): unknown;
|
||||
modifyAlbum(...args: any[]): unknown;
|
||||
getMediaList(...args: any[]): unknown;
|
||||
quoteToQzone(...args: any[]): unknown;
|
||||
quoteToQunAlbum(...args: any[]): unknown;
|
||||
queryQuoteToQunAlbumStatus(...args: any[]): unknown;
|
||||
getQunFeeds(...args: any[]): unknown;
|
||||
getQunFeedDetail(...args: any[]): unknown;
|
||||
getQunNoticeList(...args: any[]): unknown;
|
||||
getQunComment(...args: any[]): unknown;
|
||||
getQunLikes(...args: any[]): unknown;
|
||||
deleteQunFeed(...args: any[]): unknown;
|
||||
doQunComment(...args: any[]): unknown;
|
||||
doQunReply(...args: any[]): unknown;
|
||||
doQunLike(...args: any[]): unknown;
|
||||
getRedPoints(...args: any[]): unknown;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
export{};
|
@@ -1 +0,0 @@
|
||||
export{};
|
@@ -1,55 +0,0 @@
|
||||
import { Friend } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core/services/common';
|
||||
import { NodeIKernelBuddyListener } from '@/core/listeners';
|
||||
export interface NodeIKernelBuddyService {
|
||||
friends: Friend[];
|
||||
getFriend(uidOrUin: string): Promise<Friend>;
|
||||
addKernelBuddyListener(listener: NodeIKernelBuddyListener): number;
|
||||
removeKernelBuddyListener(listener: unknown): void;
|
||||
getBuddyList(bool: boolean): Promise<GeneralCallResult>;
|
||||
getBuddyNick(uid: number): string;
|
||||
getBuddyRemark(uid: number): string;
|
||||
setBuddyRemark(uid: number, remark: string): void;
|
||||
getAvatarUrl(uid: number): string;
|
||||
isBuddy(uid: string): boolean;
|
||||
getCategoryNameWithUid(uid: number): string;
|
||||
getTargetBuddySetting(uid: number): unknown;
|
||||
getTargetBuddySettingByType(uid: number, type: number): unknown;
|
||||
getBuddyReqUnreadCnt(): number;
|
||||
getBuddyReq(): unknown;
|
||||
delBuddyReq(uid: number): void;
|
||||
clearBuddyReqUnreadCnt(): void;
|
||||
reqToAddFriends(uid: number, msg: string): void;
|
||||
setSpacePermission(uid: number, permission: number): void;
|
||||
approvalFriendRequest(arg: {
|
||||
friendUid: string;
|
||||
reqTime: string;
|
||||
accept: boolean;
|
||||
}): Promise<void>;
|
||||
delBuddy(uid: number): void;
|
||||
delBatchBuddy(uids: number[]): void;
|
||||
getSmartInfos(uid: number): unknown;
|
||||
setBuddyCategory(uid: number, category: number): void;
|
||||
setBatchBuddyCategory(uids: number[], category: number): void;
|
||||
addCategory(category: string): void;
|
||||
delCategory(category: string): void;
|
||||
renameCategory(oldCategory: string, newCategory: string): void;
|
||||
resortCategory(categorys: string[]): void;
|
||||
pullCategory(uid: number, category: string): void;
|
||||
setTop(uid: number, isTop: boolean): void;
|
||||
SetSpecialCare(uid: number, isSpecialCare: boolean): void;
|
||||
setMsgNotify(uid: number, isNotify: boolean): void;
|
||||
hasBuddyList(): boolean;
|
||||
setBlock(uid: number, isBlock: boolean): void;
|
||||
isBlocked(uid: number): boolean;
|
||||
modifyAddMeSetting(setting: unknown): void;
|
||||
getAddMeSetting(): unknown;
|
||||
getDoubtBuddyReq(): unknown;
|
||||
getDoubtBuddyUnreadNum(): number;
|
||||
approvalDoubtBuddyReq(uid: number, isAgree: boolean): void;
|
||||
delDoubtBuddyReq(uid: number): void;
|
||||
delAllDoubtBuddyReq(): void;
|
||||
reportDoubtBuddyReqUnread(): void;
|
||||
getBuddyRecommendContactArkJson(uid: string, phoneNumber: string): Promise<unknown>;
|
||||
isNull(): boolean;
|
||||
}
|
@@ -1 +0,0 @@
|
||||
export{};
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user