node-karin 1.1.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1238 -1213
- package/default/comment/config.json +33 -33
- package/default/comment/friendDirect.json +9 -9
- package/default/comment/groupGuild.json +10 -10
- package/default/comment/server.json +16 -16
- package/default/config/adapter.json +27 -27
- package/default/config/config.json +44 -44
- package/default/config/groups.json +46 -46
- package/default/config/privates.json +22 -22
- package/default/config/redis.json +5 -9
- package/default/config/render.json +18 -18
- package/default/view/App.yaml +67 -67
- package/default/view/config.yaml +170 -170
- package/default/view/group.yaml +73 -73
- package/default/view/pm2.yaml +41 -41
- package/default/view/redis.yaml +20 -20
- package/default/view/server.yaml +73 -73
- package/dist/cli/index.cjs +4 -2
- package/dist/cli/index.js +4 -2
- package/dist/index.d.ts +67 -21
- package/dist/index.js +1752 -524
- package/dist/web/assets/favicon-onvkvGKB.ico +0 -0
- package/dist/web/assets/index-CcauG-3d.js +1 -0
- package/dist/web/assets/index-D7_l6OR8.js +330 -0
- package/dist/web/assets/index-DTAhadOx.css +1 -0
- package/dist/web/index.html +24 -0
- package/dist/web/karin.png +0 -0
- package/package.json +3 -2
package/default/view/server.yaml
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
name: 服务配置
|
|
2
|
-
view:
|
|
3
|
-
- key: 热更新是否重启服务
|
|
4
|
-
comment: 当前文件热更新是否重启http、grpc服务
|
|
5
|
-
path: "HotUpdate"
|
|
6
|
-
type: "boolean"
|
|
7
|
-
- key: http 服务器配置
|
|
8
|
-
path: "http"
|
|
9
|
-
type: "group"
|
|
10
|
-
part:
|
|
11
|
-
- key: 监听地址
|
|
12
|
-
path: "http.host"
|
|
13
|
-
type: "text"
|
|
14
|
-
- key: 端口
|
|
15
|
-
path: "http.port"
|
|
16
|
-
type: "number"
|
|
17
|
-
- key: grpc 服务器配置
|
|
18
|
-
path: "grpc"
|
|
19
|
-
type: "group"
|
|
20
|
-
part:
|
|
21
|
-
- key: 监听地址
|
|
22
|
-
path: "grpc.host"
|
|
23
|
-
type: "text"
|
|
24
|
-
- key: Api请求超时时间
|
|
25
|
-
path: "grpc.timeout"
|
|
26
|
-
type: "number"
|
|
27
|
-
suffix: 秒
|
|
28
|
-
- key: websocket 服务器配置
|
|
29
|
-
path: "websocket"
|
|
30
|
-
type: "group"
|
|
31
|
-
part:
|
|
32
|
-
- key: API请求超时时间
|
|
33
|
-
path: "websocket.timeout"
|
|
34
|
-
type: "number"
|
|
35
|
-
suffix: 秒
|
|
36
|
-
- key: websocket 渲染器地址
|
|
37
|
-
comment: ws://127.0.0.1:7005/ws/render
|
|
38
|
-
path: "websocket.render"
|
|
39
|
-
type: "array"
|
|
40
|
-
arrayType: "text"
|
|
41
|
-
- key: onebot11 正向WebSocket地址
|
|
42
|
-
path: "websocket.OneBot11Host"
|
|
43
|
-
type: "array"
|
|
44
|
-
arrayType: "text"
|
|
45
|
-
- key: onebot12 正向WebSocket地址
|
|
46
|
-
path: "websocket.OneBot12Host"
|
|
47
|
-
type: "array"
|
|
48
|
-
arrayType: "text"
|
|
49
|
-
- key: HTTP渲染器配置
|
|
50
|
-
path: "HttpRender"
|
|
51
|
-
type: "group"
|
|
52
|
-
part:
|
|
53
|
-
- key: 是否开启http渲染
|
|
54
|
-
path: "HttpRender.enable"
|
|
55
|
-
type: "boolean"
|
|
56
|
-
- key: karin端Api地址
|
|
57
|
-
comment: 公网 > 局域网 > 127
|
|
58
|
-
path: "HttpRender.host"
|
|
59
|
-
type: "url"
|
|
60
|
-
- key: karin-puppeteer渲染器 post请求地址
|
|
61
|
-
path: "HttpRender.post"
|
|
62
|
-
type: "url"
|
|
63
|
-
- key: karin-puppeteer渲染器 post请求token
|
|
64
|
-
path: "HttpRender.token"
|
|
65
|
-
type: "text"
|
|
66
|
-
- key: 请求的非html或非有效路径的返回内容
|
|
67
|
-
comment: 可以填http地址 例如:https://ys.mihoyo.com
|
|
68
|
-
path: "HttpRender.not_found"
|
|
69
|
-
type: "text"
|
|
70
|
-
- key: Wormhole代理地址
|
|
71
|
-
comment: 无公网IP环境的情况下使用
|
|
72
|
-
path: "HttpRender.WormholeClient"
|
|
73
|
-
type: "text"
|
|
1
|
+
name: 服务配置
|
|
2
|
+
view:
|
|
3
|
+
- key: 热更新是否重启服务
|
|
4
|
+
comment: 当前文件热更新是否重启http、grpc服务
|
|
5
|
+
path: "HotUpdate"
|
|
6
|
+
type: "boolean"
|
|
7
|
+
- key: http 服务器配置
|
|
8
|
+
path: "http"
|
|
9
|
+
type: "group"
|
|
10
|
+
part:
|
|
11
|
+
- key: 监听地址
|
|
12
|
+
path: "http.host"
|
|
13
|
+
type: "text"
|
|
14
|
+
- key: 端口
|
|
15
|
+
path: "http.port"
|
|
16
|
+
type: "number"
|
|
17
|
+
- key: grpc 服务器配置
|
|
18
|
+
path: "grpc"
|
|
19
|
+
type: "group"
|
|
20
|
+
part:
|
|
21
|
+
- key: 监听地址
|
|
22
|
+
path: "grpc.host"
|
|
23
|
+
type: "text"
|
|
24
|
+
- key: Api请求超时时间
|
|
25
|
+
path: "grpc.timeout"
|
|
26
|
+
type: "number"
|
|
27
|
+
suffix: 秒
|
|
28
|
+
- key: websocket 服务器配置
|
|
29
|
+
path: "websocket"
|
|
30
|
+
type: "group"
|
|
31
|
+
part:
|
|
32
|
+
- key: API请求超时时间
|
|
33
|
+
path: "websocket.timeout"
|
|
34
|
+
type: "number"
|
|
35
|
+
suffix: 秒
|
|
36
|
+
- key: websocket 渲染器地址
|
|
37
|
+
comment: ws://127.0.0.1:7005/ws/render
|
|
38
|
+
path: "websocket.render"
|
|
39
|
+
type: "array"
|
|
40
|
+
arrayType: "text"
|
|
41
|
+
- key: onebot11 正向WebSocket地址
|
|
42
|
+
path: "websocket.OneBot11Host"
|
|
43
|
+
type: "array"
|
|
44
|
+
arrayType: "text"
|
|
45
|
+
- key: onebot12 正向WebSocket地址
|
|
46
|
+
path: "websocket.OneBot12Host"
|
|
47
|
+
type: "array"
|
|
48
|
+
arrayType: "text"
|
|
49
|
+
- key: HTTP渲染器配置
|
|
50
|
+
path: "HttpRender"
|
|
51
|
+
type: "group"
|
|
52
|
+
part:
|
|
53
|
+
- key: 是否开启http渲染
|
|
54
|
+
path: "HttpRender.enable"
|
|
55
|
+
type: "boolean"
|
|
56
|
+
- key: karin端Api地址
|
|
57
|
+
comment: 公网 > 局域网 > 127
|
|
58
|
+
path: "HttpRender.host"
|
|
59
|
+
type: "url"
|
|
60
|
+
- key: karin-puppeteer渲染器 post请求地址
|
|
61
|
+
path: "HttpRender.post"
|
|
62
|
+
type: "url"
|
|
63
|
+
- key: karin-puppeteer渲染器 post请求token
|
|
64
|
+
path: "HttpRender.token"
|
|
65
|
+
type: "text"
|
|
66
|
+
- key: 请求的非html或非有效路径的返回内容
|
|
67
|
+
comment: 可以填http地址 例如:https://ys.mihoyo.com
|
|
68
|
+
path: "HttpRender.not_found"
|
|
69
|
+
type: "text"
|
|
70
|
+
- key: Wormhole代理地址
|
|
71
|
+
comment: 无公网IP环境的情况下使用
|
|
72
|
+
path: "HttpRender.WormholeClient"
|
|
73
|
+
type: "text"
|
package/dist/cli/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ var pkgDir = url.fileURLToPath(new url.URL("../..", (typeof document === 'undefi
|
|
|
109
109
|
var isPluginDev = () => {
|
|
110
110
|
const pkg = fs2__default.default.readFileSync(path2__default.default.join(dir, "package.json"), "utf-8");
|
|
111
111
|
const data = JSON.parse(pkg);
|
|
112
|
-
if (data == null ?
|
|
112
|
+
if (data == null ? void 0 : data.karin) return true;
|
|
113
113
|
if (fs2__default.default.existsSync(path2__default.default.join(dir, "src"))) return true;
|
|
114
114
|
if (fs2__default.default.existsSync(path2__default.default.join(dir, "tsconfig.json"))) return true;
|
|
115
115
|
if (fs2__default.default.existsSync(path2__default.default.join(dir, ".prettierrc"))) return true;
|
|
@@ -215,6 +215,8 @@ var createOrUpdateEnv = (dir2) => {
|
|
|
215
215
|
"LOG_MAX_LOG_SIZE=0",
|
|
216
216
|
"# logger.fnc\u989C\u8272",
|
|
217
217
|
'LOG_FNC_COLOR="#E1D919"',
|
|
218
|
+
"# \u65E5\u5FD7\u5B9E\u65F6Api\u6700\u591A\u652F\u6301\u540C\u65F6\u8FDE\u63A5\u6570",
|
|
219
|
+
"LOG_API_MAX_CONNECTIONS=5",
|
|
218
220
|
"\n",
|
|
219
221
|
"# ffmpeg",
|
|
220
222
|
"FFMPEG_PATH=",
|
|
@@ -445,7 +447,7 @@ var updateAll = async () => {
|
|
|
445
447
|
}
|
|
446
448
|
};
|
|
447
449
|
var _a;
|
|
448
|
-
if (!((_a = process.argv) == null ?
|
|
450
|
+
if (!((_a = process.argv) == null ? void 0 : _a[2])) process.argv.push("-h");
|
|
449
451
|
var addEnvOption = (command) => {
|
|
450
452
|
return command.option("-e, --env <files>", "\u6307\u5B9A\u73AF\u5883\u53D8\u91CF\u6587\u4EF6\uFF0C\u591A\u4E2A\u6587\u4EF6\u7528\u9017\u53F7\u5206\u9694");
|
|
451
453
|
};
|
package/dist/cli/index.js
CHANGED
|
@@ -100,7 +100,7 @@ var pkgDir = fileURLToPath(new URL$1("../..", import.meta.url));
|
|
|
100
100
|
var isPluginDev = () => {
|
|
101
101
|
const pkg = fs2.readFileSync(path2.join(dir, "package.json"), "utf-8");
|
|
102
102
|
const data = JSON.parse(pkg);
|
|
103
|
-
if (data == null ?
|
|
103
|
+
if (data == null ? void 0 : data.karin) return true;
|
|
104
104
|
if (fs2.existsSync(path2.join(dir, "src"))) return true;
|
|
105
105
|
if (fs2.existsSync(path2.join(dir, "tsconfig.json"))) return true;
|
|
106
106
|
if (fs2.existsSync(path2.join(dir, ".prettierrc"))) return true;
|
|
@@ -206,6 +206,8 @@ var createOrUpdateEnv = (dir2) => {
|
|
|
206
206
|
"LOG_MAX_LOG_SIZE=0",
|
|
207
207
|
"# logger.fnc\u989C\u8272",
|
|
208
208
|
'LOG_FNC_COLOR="#E1D919"',
|
|
209
|
+
"# \u65E5\u5FD7\u5B9E\u65F6Api\u6700\u591A\u652F\u6301\u540C\u65F6\u8FDE\u63A5\u6570",
|
|
210
|
+
"LOG_API_MAX_CONNECTIONS=5",
|
|
209
211
|
"\n",
|
|
210
212
|
"# ffmpeg",
|
|
211
213
|
"FFMPEG_PATH=",
|
|
@@ -436,7 +438,7 @@ var updateAll = async () => {
|
|
|
436
438
|
}
|
|
437
439
|
};
|
|
438
440
|
var _a;
|
|
439
|
-
if (!((_a = process.argv) == null ?
|
|
441
|
+
if (!((_a = process.argv) == null ? void 0 : _a[2])) process.argv.push("-h");
|
|
440
442
|
var addEnvOption = (command) => {
|
|
441
443
|
return command.option("-e, --env <files>", "\u6307\u5B9A\u73AF\u5883\u53D8\u91CF\u6587\u4EF6\uFF0C\u591A\u4E2A\u6587\u4EF6\u7528\u9017\u53F7\u5206\u9694");
|
|
442
444
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2463,6 +2463,19 @@ interface OB11GroupTempMessage extends MessageBase$1 {
|
|
|
2463
2463
|
/** 发送人信息 */
|
|
2464
2464
|
sender: OB11FriendSender;
|
|
2465
2465
|
}
|
|
2466
|
+
/** 其他好友消息 已知的有 https://github.com/A-kirami/matcha */
|
|
2467
|
+
interface OB11OtherFriendMessage extends MessageBase$1 {
|
|
2468
|
+
/** 消息类型 */
|
|
2469
|
+
message_type: 'private';
|
|
2470
|
+
/** 消息子类型 */
|
|
2471
|
+
sub_type: 'other';
|
|
2472
|
+
/** 接收者QQ gocq-http拓展 */
|
|
2473
|
+
target_id?: number;
|
|
2474
|
+
/** 临时会话来源 */
|
|
2475
|
+
temp_source?: number;
|
|
2476
|
+
/** 发送人信息 */
|
|
2477
|
+
sender: OB11FriendSender;
|
|
2478
|
+
}
|
|
2466
2479
|
/** 群消息事件 */
|
|
2467
2480
|
interface OB11GroupMessage extends MessageBase$1 {
|
|
2468
2481
|
/** 消息类型 */
|
|
@@ -2475,7 +2488,7 @@ interface OB11GroupMessage extends MessageBase$1 {
|
|
|
2475
2488
|
sender: OB11GroupSender;
|
|
2476
2489
|
}
|
|
2477
2490
|
/** 消息事件 */
|
|
2478
|
-
type OB11Message = OB11PrivateMessage | OB11GroupMessage | OB11GroupTempMessage;
|
|
2491
|
+
type OB11Message = OB11PrivateMessage | OB11GroupMessage | OB11GroupTempMessage | OB11OtherFriendMessage;
|
|
2479
2492
|
/** 通知事件基类 */
|
|
2480
2493
|
interface OB11NoticeBaseType extends OB11EventBase {
|
|
2481
2494
|
/** 事件类型 */
|
|
@@ -8948,7 +8961,7 @@ interface PM2 {
|
|
|
8948
8961
|
type Redis = RedisClientOptions;
|
|
8949
8962
|
|
|
8950
8963
|
/**
|
|
8951
|
-
* `config.
|
|
8964
|
+
* `config.json` 类型
|
|
8952
8965
|
*/
|
|
8953
8966
|
interface Config {
|
|
8954
8967
|
/** 主人列表 */
|
|
@@ -8957,8 +8970,6 @@ interface Config {
|
|
|
8957
8970
|
admin: string[];
|
|
8958
8971
|
/** 用户管理 */
|
|
8959
8972
|
user: {
|
|
8960
|
-
/** 是否启用用户事件 */
|
|
8961
|
-
enable: boolean;
|
|
8962
8973
|
/** 用户白名单 */
|
|
8963
8974
|
enable_list: string[];
|
|
8964
8975
|
/** 用户黑名单 */
|
|
@@ -9016,17 +9027,17 @@ interface Config {
|
|
|
9016
9027
|
/** 频道日志黑名单 */
|
|
9017
9028
|
log_disable_list: string[];
|
|
9018
9029
|
};
|
|
9019
|
-
/**
|
|
9030
|
+
/** 子频道消息管理 */
|
|
9020
9031
|
channels: {
|
|
9021
|
-
/**
|
|
9032
|
+
/** 是否启用子频道消息事件 */
|
|
9022
9033
|
enable: boolean;
|
|
9023
|
-
/**
|
|
9034
|
+
/** 子频道白名单 */
|
|
9024
9035
|
enable_list: string[];
|
|
9025
|
-
/**
|
|
9036
|
+
/** 子频道黑名单 */
|
|
9026
9037
|
disable_list: string[];
|
|
9027
|
-
/**
|
|
9038
|
+
/** 子频道日志白名单 */
|
|
9028
9039
|
log_enable_list: string[];
|
|
9029
|
-
/**
|
|
9040
|
+
/** 子频道日志黑名单 */
|
|
9030
9041
|
log_disable_list: string[];
|
|
9031
9042
|
};
|
|
9032
9043
|
}
|
|
@@ -9240,6 +9251,41 @@ interface FileListMap {
|
|
|
9240
9251
|
privates: Privates;
|
|
9241
9252
|
}
|
|
9242
9253
|
|
|
9254
|
+
interface Env {
|
|
9255
|
+
/** 是否启用HTTP */
|
|
9256
|
+
HTTP_ENABLE: string;
|
|
9257
|
+
/** HTTP监听端口 */
|
|
9258
|
+
HTTP_PORT: string;
|
|
9259
|
+
/** HTTP监听地址 */
|
|
9260
|
+
HTTP_HOST: string;
|
|
9261
|
+
/** HTTP鉴权秘钥 仅用于karin自身Api */
|
|
9262
|
+
HTTP_AUTH_KEY: string;
|
|
9263
|
+
/** ws_server鉴权秘钥 */
|
|
9264
|
+
WS_SERVER_AUTH_KEY: string;
|
|
9265
|
+
/** 是否启用Redis 关闭后将使用内部虚拟Redis */
|
|
9266
|
+
REDIS_ENABLE: string;
|
|
9267
|
+
/** 重启是否调用pm2 如果不调用则会直接关机 此配置适合有进程守护的程序 */
|
|
9268
|
+
PM2_RESTART: string;
|
|
9269
|
+
/** 日志等级 */
|
|
9270
|
+
LOG_LEVEL: string;
|
|
9271
|
+
/** 日志保留天数 */
|
|
9272
|
+
LOG_DAYS_TO_KEEP: string;
|
|
9273
|
+
/** 日志文件最大大小 如果此项大于0则启用日志分割 */
|
|
9274
|
+
LOG_MAX_LOG_SIZE: string;
|
|
9275
|
+
/** logger.fnc颜色 */
|
|
9276
|
+
LOG_FNC_COLOR: string;
|
|
9277
|
+
/** 运行器 "node" | "pm2" | "tsx" */
|
|
9278
|
+
RUNNER: 'node' | 'pm2' | 'tsx';
|
|
9279
|
+
/** ffmpeg路径 */
|
|
9280
|
+
FFMPEG_PATH: string;
|
|
9281
|
+
/** ffprobe路径 */
|
|
9282
|
+
FFPROBE_PATH: string;
|
|
9283
|
+
/** ffplay路径 */
|
|
9284
|
+
FFPLAY_PATH: string;
|
|
9285
|
+
/** tsx监察者模式 */
|
|
9286
|
+
TSX_WATCH: string;
|
|
9287
|
+
}
|
|
9288
|
+
|
|
9243
9289
|
declare const config: () => Config;
|
|
9244
9290
|
/** http端口 */
|
|
9245
9291
|
declare const port: () => number;
|
|
@@ -9250,9 +9296,11 @@ declare const master: () => string[];
|
|
|
9250
9296
|
/** 管理员列表 */
|
|
9251
9297
|
declare const admin: () => string[];
|
|
9252
9298
|
/** redis配置 */
|
|
9253
|
-
declare const redis: () =>
|
|
9299
|
+
declare const redis: () => Redis;
|
|
9254
9300
|
/** pm2配置 */
|
|
9255
|
-
declare const pm2: () =>
|
|
9301
|
+
declare const pm2: () => PM2;
|
|
9302
|
+
/** env配置 */
|
|
9303
|
+
declare const env: () => Env;
|
|
9256
9304
|
/** ffmpeg路径 */
|
|
9257
9305
|
declare const ffmpegPath: () => string;
|
|
9258
9306
|
/** ffprobe路径 */
|
|
@@ -9276,8 +9324,6 @@ declare const getYaml: <T extends keyof FileListMap>(name: T, type: "user" | "de
|
|
|
9276
9324
|
* @param data 配置数据
|
|
9277
9325
|
*/
|
|
9278
9326
|
declare const setYaml: <T extends keyof FileListMap>(name: T, data: Record<string, any>) => boolean;
|
|
9279
|
-
/** 每次启动清空临时文件夹 */
|
|
9280
|
-
declare const clearTemp: () => void;
|
|
9281
9327
|
/**
|
|
9282
9328
|
* 更新日志等级
|
|
9283
9329
|
* @param level 日志等级
|
|
@@ -9476,10 +9522,6 @@ declare const defaultConfig: Readonly<{
|
|
|
9476
9522
|
};
|
|
9477
9523
|
redis: {
|
|
9478
9524
|
url: string;
|
|
9479
|
-
socket: {
|
|
9480
|
-
host: string;
|
|
9481
|
-
port: number;
|
|
9482
|
-
};
|
|
9483
9525
|
username: string;
|
|
9484
9526
|
password: string;
|
|
9485
9527
|
database: number;
|
|
@@ -9540,9 +9582,9 @@ declare const watchEnv: () => Promise<void>;
|
|
|
9540
9582
|
|
|
9541
9583
|
declare const index_admin: typeof admin;
|
|
9542
9584
|
declare const index_authKey: typeof authKey;
|
|
9543
|
-
declare const index_clearTemp: typeof clearTemp;
|
|
9544
9585
|
declare const index_config: typeof config;
|
|
9545
9586
|
declare const index_defaultConfig: typeof defaultConfig;
|
|
9587
|
+
declare const index_env: typeof env;
|
|
9546
9588
|
declare const index_ffmpegPath: typeof ffmpegPath;
|
|
9547
9589
|
declare const index_ffplayPath: typeof ffplayPath;
|
|
9548
9590
|
declare const index_ffprobePath: typeof ffprobePath;
|
|
@@ -9568,7 +9610,7 @@ declare const index_updateLevel: typeof updateLevel;
|
|
|
9568
9610
|
declare const index_watchEnv: typeof watchEnv;
|
|
9569
9611
|
declare const index_webSocketServerToken: typeof webSocketServerToken;
|
|
9570
9612
|
declare namespace index {
|
|
9571
|
-
export { adapter$1 as adapter, index_admin as admin, index_authKey as authKey,
|
|
9613
|
+
export { adapter$1 as adapter, index_admin as admin, index_authKey as authKey, index_config as config, index_defaultConfig as defaultConfig, index_env as env, index_ffmpegPath as ffmpegPath, index_ffplayPath as ffplayPath, index_ffprobePath as ffprobePath, index_getDirectCfg as getDirectCfg, index_getFriendCfg as getFriendCfg, index_getGroupCfg as getGroupCfg, index_getGuildCfg as getGuildCfg, index_getYaml as getYaml, index_groups as groups, index_host as host, index_lint as lint, index_master as master, index_mergeData as mergeData, index_pkg as pkg, index_pm2 as pm2, index_port as port, index_privates as privates, index_redis as redis, render$1 as render, index_setStr as setStr, index_setYaml as setYaml, index_timeout as timeout, index_updateLevel as updateLevel, index_watchEnv as watchEnv, index_webSocketServerToken as webSocketServerToken };
|
|
9572
9614
|
}
|
|
9573
9615
|
|
|
9574
9616
|
/** ws 服务 */
|
|
@@ -9584,6 +9626,10 @@ declare const server: http.Server<typeof http.IncomingMessage, typeof http.Serve
|
|
|
9584
9626
|
* @param host 监听地址
|
|
9585
9627
|
*/
|
|
9586
9628
|
declare const listen: (port: number, host: string) => void;
|
|
9629
|
+
/**
|
|
9630
|
+
* web 服务
|
|
9631
|
+
*/
|
|
9632
|
+
declare const web: () => void;
|
|
9587
9633
|
|
|
9588
9634
|
/**
|
|
9589
9635
|
* 构建好友场景的`sender`
|
|
@@ -9846,4 +9892,4 @@ declare const getPlugins: <T extends boolean = false>(type: GetPluginType, isInf
|
|
|
9846
9892
|
*/
|
|
9847
9893
|
declare const isNpmPlugin: (name: string) => Promise<boolean>;
|
|
9848
9894
|
|
|
9849
|
-
export { type Accept, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, AdapterConsole, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type AtElement, type AtSegment, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, type Cache, type CacheEntry, type CmdFnc, type Command, type CommandClass, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, type ElementTypes, type Elements, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, type FaceElement, type FaceSegment, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type ForwardOptions, type ForwardSegment, type FriendContact, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendSender, type GetAtAllCountResponse, type GetBot, type GetGroupFileListResponse, type GetGroupFileSystemInfoResponse, type GetGroupHighlightsResponse, type GetGroupInfo, type GetGroupMemberInfo, type GetGroupMuteListResponse, type GetMsg, type GetPluginReturn, type GetPluginType, type GiftElement, type GoToOptions, GroupAdminChangedNotice, type GroupAdminChangedOptions, GroupApplyRequest, type GroupApplyRequestOptions, GroupCardChangedNotice, type GroupCardChangedOptions, type GroupContact, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, GroupMemberDecreaseNotice, type GroupMemberDecreaseOptions, GroupMemberIncreaseNotice, type GroupMemberIncreaseOptions, type GroupMemberInfo, GroupMemberTitleUpdatedNotice, type GroupMemberUniqueTitleChangedOptions, GroupMessage, type GroupMessageOptions, GroupMessageReactionNotice, type GroupMessageReactionOptions, GroupNotice, type GroupNoticeEventMap, GroupPokeNotice, type GroupPokeOptions, GroupRecallNotice, type GroupRecallOptions, type GroupRequestEventMap, type GroupSender, GroupSignInNotice, type GroupSignInOptions, type GroupTempContact, GroupTempMessage, type GroupTempMessageOptions, type GroupTempSender, GroupWholeBanNotice, type GroupWholeBanOptions, type Groups, type GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type ImageElement, type ImageSegment, type JsonElement, type JsonSegment, type KarinButton, type KeyboardElement, type LocationElement, type LocationSegment, type Log, type Logger, type LoggerExpand, type LoggerLevel, type LoggerOptions, type LongMsgElement, type MarkdownElement, type MarkdownTplElement, type MarketFaceElement, type Message$2 as Message, MessageBase, type MessageEventMap, type MessageEventSub, type MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NodeElement, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, type OB11AllEvent, OB11ApiAction, type OB11ApiParams, type OB11ApiRequest, OB11Event, type OB11EventBase, type OB11FriendSender, type OB11GroupMessage, type OB11GroupSender, type OB11GroupTempMessage, type OB11Message, OB11MessageSubType, OB11MessageType, type OB11Meta, type OB11NodeSegment, type OB11Notice, type OB11NoticeBaseType, OB11NoticeType, type OB11PrivateMessage, type OB11Request, type OB11RequestBaseType, OB11RequestType, type OB11Segment, type OB11SegmentBase, type OB11SegmentType, OB11Sex, type OB11serInfo, type OneBot11FriendAdd, type OneBot11FriendRecall, type OneBot11FriendRequest, type OneBot11GroupAdmin, type OneBot11GroupBan, type OneBot11GroupCard, type OneBot11GroupDecrease, type OneBot11GroupEssence, type OneBot11GroupIncrease, type OneBot11GroupMessageReaction, type OneBot11GroupMessageReactionLagrange, type OneBot11GroupRecall, type OneBot11GroupRequest, type OneBot11GroupUpload, type OneBot11Heartbeat, type OneBot11Honor, type OneBot11Lifecycle, type OneBot11LuckyKing, type OneBot11Poke, type Options, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginOptions, type PluginRule, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, type RawElement, type ReadyMusicElement, ReceiveLikeNotice, type ReceiveLikeOptions, type RecordElement, type RecordSegment, type Redis, type Render, type RenderResult, Renderer, type Renders, type Reply, type ReplyElement, type ReplySegment, type Request, RequestBase, type RequestEventMap, type RequestEventSub, type RequestOptions, type RequireFunction, type RequireFunctionSync, type RequireOptions, type Role, type RpsElement, type RpsSegment, SEND_MSG, type Scene, type ScreenshotClip, type ScreenshotOptions, type Segment, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type Task, type TextElement, type TextSegment, type UnregisterBot, type UserInfo, type VideoElement, type VideoSegment, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, adapter, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createLogger, createPluginDir, createRawMessage, karin as default, downFile, errorToString, exec, existToMkdir, existToMkdirSync, exists, existsSync, ffmpeg, ffplay, ffprobe, fs as file, fileToUrl, fileToUrlHandlerKey, filesByExt, formatTime$1 as formatTime, index$3 as fs, getAllBot, getAllBotID, getAllBotList, getBot, getBotCount, getCommit, getFiles, getHash, getPid, getPkgVersion, getPluginInfo, getPlugins, getRelPath, getRemotePkgVersion, getRender, getRenderCount, getRenderList, getRequestIp, getTime, handler$1 as handler, importModule, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isNpmPlugin, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, level, listen, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis$1 as redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, renderTpl, requireFile, requireFileSync, restart, restartDirect, rmSync, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, stream, stringifyError, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, write, writeJson, writeJsonSync, wss, yaml };
|
|
9895
|
+
export { type Accept, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, AdapterConsole, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type AtElement, type AtSegment, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, type Cache, type CacheEntry, type CmdFnc, type Command, type CommandClass, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, type ElementTypes, type Elements, type Env, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, type FaceElement, type FaceSegment, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type ForwardOptions, type ForwardSegment, type FriendContact, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendSender, type GetAtAllCountResponse, type GetBot, type GetGroupFileListResponse, type GetGroupFileSystemInfoResponse, type GetGroupHighlightsResponse, type GetGroupInfo, type GetGroupMemberInfo, type GetGroupMuteListResponse, type GetMsg, type GetPluginReturn, type GetPluginType, type GiftElement, type GoToOptions, GroupAdminChangedNotice, type GroupAdminChangedOptions, GroupApplyRequest, type GroupApplyRequestOptions, GroupCardChangedNotice, type GroupCardChangedOptions, type GroupContact, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, GroupMemberDecreaseNotice, type GroupMemberDecreaseOptions, GroupMemberIncreaseNotice, type GroupMemberIncreaseOptions, type GroupMemberInfo, GroupMemberTitleUpdatedNotice, type GroupMemberUniqueTitleChangedOptions, GroupMessage, type GroupMessageOptions, GroupMessageReactionNotice, type GroupMessageReactionOptions, GroupNotice, type GroupNoticeEventMap, GroupPokeNotice, type GroupPokeOptions, GroupRecallNotice, type GroupRecallOptions, type GroupRequestEventMap, type GroupSender, GroupSignInNotice, type GroupSignInOptions, type GroupTempContact, GroupTempMessage, type GroupTempMessageOptions, type GroupTempSender, GroupWholeBanNotice, type GroupWholeBanOptions, type Groups, type GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type ImageElement, type ImageSegment, type JsonElement, type JsonSegment, type KarinButton, type KeyboardElement, type LocationElement, type LocationSegment, type Log, type Logger, type LoggerExpand, type LoggerLevel, type LoggerOptions, type LongMsgElement, type MarkdownElement, type MarkdownTplElement, type MarketFaceElement, type Message$2 as Message, MessageBase, type MessageEventMap, type MessageEventSub, type MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NodeElement, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, type OB11AllEvent, OB11ApiAction, type OB11ApiParams, type OB11ApiRequest, OB11Event, type OB11EventBase, type OB11FriendSender, type OB11GroupMessage, type OB11GroupSender, type OB11GroupTempMessage, type OB11Message, OB11MessageSubType, OB11MessageType, type OB11Meta, type OB11NodeSegment, type OB11Notice, type OB11NoticeBaseType, OB11NoticeType, type OB11OtherFriendMessage, type OB11PrivateMessage, type OB11Request, type OB11RequestBaseType, OB11RequestType, type OB11Segment, type OB11SegmentBase, type OB11SegmentType, OB11Sex, type OB11serInfo, type OneBot11FriendAdd, type OneBot11FriendRecall, type OneBot11FriendRequest, type OneBot11GroupAdmin, type OneBot11GroupBan, type OneBot11GroupCard, type OneBot11GroupDecrease, type OneBot11GroupEssence, type OneBot11GroupIncrease, type OneBot11GroupMessageReaction, type OneBot11GroupMessageReactionLagrange, type OneBot11GroupRecall, type OneBot11GroupRequest, type OneBot11GroupUpload, type OneBot11Heartbeat, type OneBot11Honor, type OneBot11Lifecycle, type OneBot11LuckyKing, type OneBot11Poke, type Options, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginOptions, type PluginRule, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, type RawElement, type ReadyMusicElement, ReceiveLikeNotice, type ReceiveLikeOptions, type RecordElement, type RecordSegment, type Redis, type Render, type RenderResult, Renderer, type Renders, type Reply, type ReplyElement, type ReplySegment, type Request, RequestBase, type RequestEventMap, type RequestEventSub, type RequestOptions, type RequireFunction, type RequireFunctionSync, type RequireOptions, type Role, type RpsElement, type RpsSegment, SEND_MSG, type Scene, type ScreenshotClip, type ScreenshotOptions, type Segment, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type Task, type TextElement, type TextSegment, type UnregisterBot, type UserInfo, type VideoElement, type VideoSegment, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, adapter, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createLogger, createPluginDir, createRawMessage, karin as default, downFile, errorToString, exec, existToMkdir, existToMkdirSync, exists, existsSync, ffmpeg, ffplay, ffprobe, fs as file, fileToUrl, fileToUrlHandlerKey, filesByExt, formatTime$1 as formatTime, index$3 as fs, getAllBot, getAllBotID, getAllBotList, getBot, getBotCount, getCommit, getFiles, getHash, getPid, getPkgVersion, getPluginInfo, getPlugins, getRelPath, getRemotePkgVersion, getRender, getRenderCount, getRenderList, getRequestIp, getTime, handler$1 as handler, importModule, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isNpmPlugin, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, level, listen, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis$1 as redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, renderTpl, requireFile, requireFileSync, restart, restartDirect, rmSync, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, stream, stringifyError, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, web, write, writeJson, writeJsonSync, wss, yaml };
|