node-karin 1.15.2 → 1.15.3
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 +7 -0
- package/dist/index.d.ts +13 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.15.3](https://github.com/KarinJS/Karin/compare/core-v1.15.2...core-v1.15.3) (2026-04-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 更新适配器平台、标准、协议和通信方式的类型定义,添加新选项 ([#636](https://github.com/KarinJS/Karin/issues/636)) ([295dc1a](https://github.com/KarinJS/Karin/commit/295dc1a6def09014815d38b7bac115fd0c39e62a))
|
|
9
|
+
|
|
3
10
|
## [1.15.2](https://github.com/KarinJS/Karin/compare/core-v1.15.1...core-v1.15.2) (2026-03-30)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.d.ts
CHANGED
|
@@ -229,21 +229,28 @@ interface SenderGroup$1 {
|
|
|
229
229
|
* 适配器所属平台
|
|
230
230
|
* - `qq`: QQ
|
|
231
231
|
* - `wechat`: 微信
|
|
232
|
+
* - `wecom`: 企业微信
|
|
232
233
|
* - `telegram`: Telegram
|
|
233
234
|
* - `discord`: Discord
|
|
234
235
|
* - `koko`: 开黑吧
|
|
236
|
+
* - `dingtalk`: 钉钉
|
|
237
|
+
* - `feishu`: 飞书
|
|
238
|
+
* - `slack`: Slack
|
|
239
|
+
* - `whatsapp`: WhatsApp
|
|
235
240
|
* - `other`: 其他
|
|
236
241
|
*/
|
|
237
|
-
type AdapterPlatform = 'qq' | 'wechat' | 'telegram' | 'discord' | 'koko' | 'other';
|
|
242
|
+
type AdapterPlatform = 'qq' | 'wechat' | 'telegram' | 'discord' | 'koko' | 'dingtalk' | 'feishu' | 'slack' | 'wecom' | 'whatsapp' | 'other' | (string & {});
|
|
238
243
|
/**
|
|
239
244
|
* 适配器所使用的标准接口协议
|
|
240
245
|
* - `onebot11`: OneBot v11 标准
|
|
241
246
|
* - `onebot12`: OneBot v12 标准
|
|
242
247
|
* - `oicq`: OICQ 标准
|
|
243
248
|
* - `icqq`: OICQ fork 标准
|
|
249
|
+
* - `milky`: Milky 标准
|
|
250
|
+
* - `satori`: Satori 标准
|
|
244
251
|
* - `other`: 其他标准
|
|
245
252
|
*/
|
|
246
|
-
type AdapterStandard = 'onebot11' | 'onebot12' | 'oicq' | 'icqq' | 'other';
|
|
253
|
+
type AdapterStandard = 'onebot11' | 'onebot12' | 'oicq' | 'icqq' | 'milky' | 'satori' | 'other' | (string & {});
|
|
247
254
|
/**
|
|
248
255
|
* 适配器协议实现名称
|
|
249
256
|
* - `console`: 控制台
|
|
@@ -255,17 +262,19 @@ type AdapterStandard = 'onebot11' | 'onebot12' | 'oicq' | 'icqq' | 'other';
|
|
|
255
262
|
* - `llonebot`: https://llonebot.github.io/zh-CN/
|
|
256
263
|
* - `conwechat`: https://justundertaker.github.io/ComWeChatBotClient/
|
|
257
264
|
* - `lagrange`: https://lagrangedev.github.io/Lagrange.Doc/Lagrange.OneBot/
|
|
265
|
+
* - `yogurt`: https://acidify.ntqqrev.org/
|
|
258
266
|
*/
|
|
259
|
-
type AdapterProtocol = 'qqbot' | 'icqq' | 'gocq-http' | 'napcat' | 'oicq' | 'llonebot' | 'conwechat' | 'lagrange' | 'console' | 'other';
|
|
267
|
+
type AdapterProtocol = 'qqbot' | 'icqq' | 'gocq-http' | 'napcat' | 'oicq' | 'llonebot' | 'conwechat' | 'lagrange' | 'console' | 'yogurt' | 'other' | (string & {});
|
|
260
268
|
/**
|
|
261
269
|
* 适配器通信方式
|
|
262
270
|
* - `http`: HTTP 通信
|
|
263
271
|
* - `webSocketServer`: WebSocket 服务端
|
|
264
272
|
* - `webSocketClient`: WebSocket 客户端
|
|
265
273
|
* - `grpc`: gRPC 通信
|
|
274
|
+
* - `sse`: Server-Sent Events 通信
|
|
266
275
|
* - `other`: 其他通信方式
|
|
267
276
|
*/
|
|
268
|
-
type AdapterCommunication = 'http' | 'webSocketServer' | 'webSocketClient' | 'grpc' | 'other';
|
|
277
|
+
type AdapterCommunication = 'http' | 'webSocketServer' | 'webSocketClient' | 'grpc' | 'sse' | 'other' | (string & {});
|
|
269
278
|
/**
|
|
270
279
|
* 适配器基本信息
|
|
271
280
|
*/
|