utools-api-types 7.0.0 → 7.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utools.api.d.ts +11 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utools-api-types",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "TypeScript definitions for uTools API",
5
5
  "repository": {
6
6
  "type": "git",
package/utools.api.d.ts CHANGED
@@ -491,9 +491,14 @@ interface UToolsApi {
491
491
  getFeatures(codes?: string[]): PluginFeature[];
492
492
  /**
493
493
  * 插件应用间跳转
494
- * @todo 创建针对type的多个重载
495
494
  */
496
495
  redirect(label: string | string[], payload: string | { type: 'text' | 'img' | 'files', data: any }): boolean;
496
+ /**
497
+ * 跳转(前往) uTools 设置界面,引导用户配置指令全局快捷键
498
+ * @param cmdLabel 指令名称
499
+ * @param autocopy 是否自动复制,默认为 false
500
+ */
501
+ redirectHotKeySetting(cmdLabel: string, autocopy?: boolean): void;
497
502
  /**
498
503
  * 获取闲置的 ubrowser
499
504
  */
@@ -882,6 +887,11 @@ interface UToolsApi {
882
887
  */
883
888
  runFFmpeg(args: string[], onProgress?: (progress: FfmpegRunProgress) => void): FfmpegPromise;
884
889
 
890
+ /**
891
+ * 获取所有 AI 模型
892
+ */
893
+ allAiModels(): Promise<UtoolsAiModel[]>;
894
+
885
895
  /**
886
896
  * 流式调用 AI
887
897
  * @param option 选项参数
@@ -899,11 +909,6 @@ interface UToolsApi {
899
909
  * @param option 选项参数
900
910
  */
901
911
  ai(option: UtoolsAiOption): UtoolsAiResult<UtoolsAiMessage>
902
-
903
- /**
904
- * 获取所有 AI 模型
905
- */
906
- allAiModels(): Promise<UtoolsAiModel[]>;
907
912
  }
908
913
 
909
914
  declare var utools: UToolsApi;