koishi-plugin-bilibili-notify 3.6.5 → 3.7.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/lib/index.cjs +3171 -3726
- package/lib/index.d.cts +5 -6
- package/lib/index.d.mts +5 -6
- package/lib/index.mjs +3170 -3725
- package/package.json +4 -4
package/lib/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { Context, ForkScope, Schema, Service } from "koishi";
|
|
|
2
2
|
import { DataService } from "@koishijs/plugin-console";
|
|
3
3
|
|
|
4
4
|
//#region src/config.d.ts
|
|
5
|
-
interface
|
|
5
|
+
interface BilibiliNotifyConfig {
|
|
6
6
|
require: {};
|
|
7
7
|
key: string;
|
|
8
8
|
subTitle: {};
|
|
@@ -22,6 +22,7 @@ interface BAConfig {
|
|
|
22
22
|
target: string;
|
|
23
23
|
}>;
|
|
24
24
|
basicSettings: {};
|
|
25
|
+
logLevel: number;
|
|
25
26
|
userAgent: string;
|
|
26
27
|
ai: {
|
|
27
28
|
enable: boolean;
|
|
@@ -62,8 +63,6 @@ interface BAConfig {
|
|
|
62
63
|
enableLargeFont: boolean;
|
|
63
64
|
font: string;
|
|
64
65
|
filter: {};
|
|
65
|
-
debug: {};
|
|
66
|
-
dynamicDebugMode: boolean;
|
|
67
66
|
}
|
|
68
67
|
//#endregion
|
|
69
68
|
//#region src/type/index.d.ts
|
|
@@ -154,9 +153,9 @@ declare module "koishi" {
|
|
|
154
153
|
"bilibili-notify": ServerManager;
|
|
155
154
|
}
|
|
156
155
|
interface Events {
|
|
156
|
+
"bilibili-notify/login-status-report"(data: BiliDataServer): void;
|
|
157
157
|
"bilibili-notify/advanced-sub"(subs: Subscriptions): void;
|
|
158
158
|
"bilibili-notify/ready-to-recive"(): void;
|
|
159
|
-
"bilibili-notify/login-status-report"(data: BiliDataServer): void;
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
declare module "@koishijs/plugin-console" {
|
|
@@ -179,7 +178,7 @@ declare class ServerManager extends Service {
|
|
|
179
178
|
disposePlugin: () => Promise<boolean>;
|
|
180
179
|
restartPlugin: () => Promise<boolean>;
|
|
181
180
|
}
|
|
182
|
-
declare function apply(ctx: Context, config:
|
|
183
|
-
declare const Config: Schema<
|
|
181
|
+
declare function apply(ctx: Context, config: BilibiliNotifyConfig): void;
|
|
182
|
+
declare const Config: Schema<BilibiliNotifyConfig>;
|
|
184
183
|
//#endregion
|
|
185
184
|
export { Config, apply, inject, name, usage };
|
package/lib/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { Context, ForkScope, Schema, Service } from "koishi";
|
|
|
2
2
|
import { DataService } from "@koishijs/plugin-console";
|
|
3
3
|
|
|
4
4
|
//#region src/config.d.ts
|
|
5
|
-
interface
|
|
5
|
+
interface BilibiliNotifyConfig {
|
|
6
6
|
require: {};
|
|
7
7
|
key: string;
|
|
8
8
|
subTitle: {};
|
|
@@ -22,6 +22,7 @@ interface BAConfig {
|
|
|
22
22
|
target: string;
|
|
23
23
|
}>;
|
|
24
24
|
basicSettings: {};
|
|
25
|
+
logLevel: number;
|
|
25
26
|
userAgent: string;
|
|
26
27
|
ai: {
|
|
27
28
|
enable: boolean;
|
|
@@ -62,8 +63,6 @@ interface BAConfig {
|
|
|
62
63
|
enableLargeFont: boolean;
|
|
63
64
|
font: string;
|
|
64
65
|
filter: {};
|
|
65
|
-
debug: {};
|
|
66
|
-
dynamicDebugMode: boolean;
|
|
67
66
|
}
|
|
68
67
|
//#endregion
|
|
69
68
|
//#region src/type/index.d.ts
|
|
@@ -154,9 +153,9 @@ declare module "koishi" {
|
|
|
154
153
|
"bilibili-notify": ServerManager;
|
|
155
154
|
}
|
|
156
155
|
interface Events {
|
|
156
|
+
"bilibili-notify/login-status-report"(data: BiliDataServer): void;
|
|
157
157
|
"bilibili-notify/advanced-sub"(subs: Subscriptions): void;
|
|
158
158
|
"bilibili-notify/ready-to-recive"(): void;
|
|
159
|
-
"bilibili-notify/login-status-report"(data: BiliDataServer): void;
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
declare module "@koishijs/plugin-console" {
|
|
@@ -179,7 +178,7 @@ declare class ServerManager extends Service {
|
|
|
179
178
|
disposePlugin: () => Promise<boolean>;
|
|
180
179
|
restartPlugin: () => Promise<boolean>;
|
|
181
180
|
}
|
|
182
|
-
declare function apply(ctx: Context, config:
|
|
183
|
-
declare const Config: Schema<
|
|
181
|
+
declare function apply(ctx: Context, config: BilibiliNotifyConfig): void;
|
|
182
|
+
declare const Config: Schema<BilibiliNotifyConfig>;
|
|
184
183
|
//#endregion
|
|
185
184
|
export { Config, apply, inject, name, usage };
|