node-karin 1.15.3 → 1.15.4
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 +11 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.15.4](https://github.com/KarinJS/Karin/compare/core-v1.15.3...core-v1.15.4) (2026-04-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* getRkey returns undefined due to missing backward compatibility ([#639](https://github.com/KarinJS/Karin/issues/639)) ([87f1184](https://github.com/KarinJS/Karin/commit/87f1184e6c005e6dbe5283180b5a256378066967))
|
|
9
|
+
|
|
3
10
|
## [1.15.3](https://github.com/KarinJS/Karin/compare/core-v1.15.2...core-v1.15.3) (2026-04-01)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.d.ts
CHANGED
|
@@ -13448,7 +13448,12 @@ interface OneBotBotApi {
|
|
|
13448
13448
|
[OneBotBotApiAction.getRkey]: {
|
|
13449
13449
|
action: 'get_rkey';
|
|
13450
13450
|
params: Record<string, never>;
|
|
13451
|
-
response: {
|
|
13451
|
+
response: Array<{
|
|
13452
|
+
type: 'private' | 'group';
|
|
13453
|
+
rkey: string;
|
|
13454
|
+
created_at: number;
|
|
13455
|
+
ttl: number;
|
|
13456
|
+
}> | {
|
|
13452
13457
|
rkeys: Array<{
|
|
13453
13458
|
type: 'private' | 'group';
|
|
13454
13459
|
rkey: string;
|
|
@@ -15700,6 +15705,11 @@ declare abstract class OneBotCore extends EventEmitter$1 {
|
|
|
15700
15705
|
* 社区扩展: 获取rkey
|
|
15701
15706
|
*/
|
|
15702
15707
|
getRkey(): Promise<{
|
|
15708
|
+
type: "private" | "group";
|
|
15709
|
+
rkey: string;
|
|
15710
|
+
created_at: number;
|
|
15711
|
+
ttl: number;
|
|
15712
|
+
}[] | {
|
|
15703
15713
|
rkeys: Array<{
|
|
15704
15714
|
type: "private" | "group";
|
|
15705
15715
|
rkey: string;
|
package/dist/index.mjs
CHANGED
|
@@ -15524,7 +15524,7 @@ var init_core = __esm({
|
|
|
15524
15524
|
*/
|
|
15525
15525
|
async getRkey() {
|
|
15526
15526
|
const result = await this._onebot.getRkey();
|
|
15527
|
-
return result.rkeys;
|
|
15527
|
+
return Array.isArray(result) ? result : result.rkeys;
|
|
15528
15528
|
}
|
|
15529
15529
|
};
|
|
15530
15530
|
}
|