onebots 1.0.0 → 1.0.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/lib/app.d.ts CHANGED
@@ -5,13 +5,33 @@ export declare class App extends BaseApp {
5
5
  private logCacheFile;
6
6
  private logWriteStream;
7
7
  private logClients;
8
+ private verificationClients;
9
+ /** 待处理验证请求(Web 离线时也可稍后拉取完成),key: platform:account_id */
10
+ private pendingVerifications;
11
+ private static readonly VERIFICATION_TTL_MS;
12
+ private static readonly MAX_PENDING_VERIFICATIONS;
8
13
  private ptyTerminal;
9
14
  private terminalClients;
15
+ private tokenManager;
10
16
  constructor(config: App.Config);
11
17
  private initLogCache;
12
18
  private broadcastLog;
19
+ /** 将验证请求推送给所有已连接的 verification SSE 客户端 */
20
+ private broadcastVerification;
21
+ /** 存储待处理验证并广播(Web 离线时也会持久化,用户稍后打开页面可拉取完成);超出上限时剔除最旧的;key 含 type 以便同一账号同时存在 device 与 sms */
22
+ private storeAndBroadcastVerification;
23
+ /** 返回未过期的待处理验证列表(用于 GET /api/verification/pending) */
24
+ private getPendingVerificationList;
25
+ /** 订阅适配器的 verification:request,用于推送到 Web 并持久化待处理列表 */
26
+ protected onAdapterCreated(adapter: import("@onebots/core").Adapter): void;
13
27
  private cleanupLogCache;
14
28
  private cacheLog;
29
+ /** 将当前配置与整个 data 目录备份到 HF Space 仓库(需 HF_TOKEN、HF_REPO_ID) */
30
+ private backupDataToHf;
31
+ /**
32
+ * 站点静态文件变更后:若配置了 HF_TOKEN + HF_REPO_ID(如 Hugging Face Space),则再次打包整个配置目录并提交到仓库,持久化 static 等文件
33
+ */
34
+ private backupDataDirToHfAfterStaticChange;
15
35
  start(): Promise<void>;
16
36
  }
17
37
  export declare namespace App {