koishi-plugin-bilibili-notify 3.0.0-alpha.8 → 3.0.0-beta.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/biliAPI.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Context, Schema, Service } from "koishi";
2
- import { CookieJar } from 'tough-cookie';
3
- import { Notifier } from "@koishijs/plugin-notifier";
4
- declare module 'koishi' {
1
+ import { type Context, Schema, Service } from "koishi";
2
+ import { CookieJar } from "tough-cookie";
3
+ import type { Notifier } from "@koishijs/plugin-notifier";
4
+ declare module "koishi" {
5
5
  interface Context {
6
6
  ba: BiliAPI;
7
7
  }
@@ -13,7 +13,7 @@ declare class BiliAPI extends Service {
13
13
  apiConfig: BiliAPI.Config;
14
14
  loginData: any;
15
15
  loginNotifier: Notifier;
16
- refreshCookieTimer: Function;
16
+ refreshCookieTimer: () => void;
17
17
  loginInfoIsLoaded: boolean;
18
18
  constructor(ctx: Context, config: BiliAPI.Config);
19
19
  protected start(): void | Promise<void>;
@@ -26,21 +26,7 @@ declare class BiliAPI extends Service {
26
26
  }): Promise<string>;
27
27
  encrypt(text: string): string;
28
28
  decrypt(text: string): string;
29
- getTheUserWhoIsLiveStreaming(): Promise<{
30
- count: number;
31
- group: string;
32
- items: [
33
- {
34
- face: string;
35
- is_reserve_recall: boolean;
36
- jump_url: string;
37
- mid: number;
38
- room_id: number;
39
- title: string;
40
- uname: string;
41
- }
42
- ];
43
- }>;
29
+ getTheUserWhoIsLiveStreaming(): Promise<any>;
44
30
  getLiveRoomInfoStreamKey(roomId: string): Promise<any>;
45
31
  getServerUTCTime(): Promise<number>;
46
32
  getTimeNow(): Promise<any>;
@@ -67,7 +53,6 @@ declare class BiliAPI extends Service {
67
53
  disposeNotifier(): void;
68
54
  getRandomUserAgent(): string;
69
55
  createNewClient(): void;
70
- getTimeOfUTC8(): number;
71
56
  getCookies(): string;
72
57
  getCookiesForHeader(): Promise<string>;
73
58
  getLoginInfoIsLoaded(): boolean;