@huyooo/ui 2.0.13 → 2.1.3

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.
@@ -918,6 +918,62 @@ export type Api = {
918
918
  };
919
919
  };
920
920
  };
921
+ asrStream: {
922
+ session: {
923
+ create: {
924
+ /** 创建会话并返回平台 WS 地址与一次性 ticket(客户端不持有火山密钥) */
925
+ post: {
926
+ body: {
927
+ subjectUserId?: string;
928
+ };
929
+ return: any;
930
+ };
931
+ };
932
+ complete: {
933
+ /** 提交识别时长并完成流式 ASR 扣费;durationMs=0 仅关闭会话不扣费 */
934
+ post: {
935
+ body: {
936
+ id: string;
937
+ durationMs: number;
938
+ };
939
+ return: any;
940
+ };
941
+ };
942
+ };
943
+ find: {
944
+ /** 分页查询流式 ASR 计费会话 */
945
+ post: {
946
+ body: {
947
+ current: number;
948
+ pageSize: number;
949
+ where: {
950
+ id?: string;
951
+ sessionId?: string;
952
+ status?: string;
953
+ };
954
+ };
955
+ return: any;
956
+ };
957
+ };
958
+ findOne: {
959
+ /** 根据 ID 查询流式 ASR 计费会话 */
960
+ post: {
961
+ body: {
962
+ id: string;
963
+ };
964
+ return: any;
965
+ };
966
+ };
967
+ delete: {
968
+ /** 删除流式 ASR 计费会话记录 */
969
+ post: {
970
+ body: {
971
+ id: string;
972
+ };
973
+ return: any;
974
+ };
975
+ };
976
+ };
921
977
  tts: {
922
978
  create: {
923
979
  /** 创建新的 TTS 任务;默认 V3 单向流式,长文本需显式传 synthesisMode=longText */
@@ -1518,6 +1574,15 @@ export type Api = {
1518
1574
  return: any;
1519
1575
  };
1520
1576
  };
1577
+ retry: {
1578
+ /** 将失败且无产出文件的图片生成任务重新入队处理 */
1579
+ post: {
1580
+ body: {
1581
+ id: string;
1582
+ };
1583
+ return: any;
1584
+ };
1585
+ };
1521
1586
  delete: {
1522
1587
  /** 删除图片生成任务 */
1523
1588
  post: {
@@ -2672,11 +2737,25 @@ export type Api = {
2672
2737
  };
2673
2738
  embeddings: {
2674
2739
  create: {
2675
- /** 将文本转换为向量(豆包 doubao-embedding-vision-250615),含计费 */
2740
+ /** 将文本或图/视频多模态输入转换为向量(豆包 doubao-embedding-vision-250615),含计费 */
2676
2741
  post: {
2677
2742
  body: {
2678
2743
  model?: string;
2679
- input: string;
2744
+ input?: string;
2745
+ inputs?: ({
2746
+ type: "text";
2747
+ text: string;
2748
+ } | {
2749
+ type: "image_url";
2750
+ image_url: {
2751
+ url: string;
2752
+ };
2753
+ } | {
2754
+ type: "video_url";
2755
+ video_url: {
2756
+ url: string;
2757
+ };
2758
+ })[];
2680
2759
  dimensions?: number;
2681
2760
  instructions?: string;
2682
2761
  subjectUserId?: string;
@@ -2728,6 +2807,81 @@ export type Api = {
2728
2807
  };
2729
2808
  };
2730
2809
  };
2810
+ webSearch: {
2811
+ create: {
2812
+ /** 同步调用 Tavily / 智谱 / 豆包搜索并按次计费(不经队列) */
2813
+ post: {
2814
+ body: {
2815
+ provider: string;
2816
+ query: string;
2817
+ count?: number;
2818
+ engine?: string;
2819
+ recencyFilter?: string;
2820
+ domainFilter?: string;
2821
+ contentSize?: string;
2822
+ subjectUserId?: string;
2823
+ };
2824
+ return: any;
2825
+ };
2826
+ };
2827
+ delete: {
2828
+ /** 删除联网搜索任务记录 */
2829
+ post: {
2830
+ body: {
2831
+ id: string;
2832
+ };
2833
+ return: any;
2834
+ };
2835
+ };
2836
+ find: {
2837
+ /** 分页查询联网搜索记录 */
2838
+ post: {
2839
+ body: {
2840
+ current: number;
2841
+ pageSize: number;
2842
+ where: {
2843
+ id?: string;
2844
+ provider?: string;
2845
+ query?: string;
2846
+ status?: string;
2847
+ };
2848
+ };
2849
+ return: any;
2850
+ };
2851
+ };
2852
+ findOne: {
2853
+ /** 查询单条联网搜索记录 */
2854
+ post: {
2855
+ body: {
2856
+ id: string;
2857
+ };
2858
+ return: any;
2859
+ };
2860
+ };
2861
+ options: {
2862
+ provider: {
2863
+ /** 列出支持的联网搜索提供商 */
2864
+ post: {
2865
+ return: any;
2866
+ };
2867
+ };
2868
+ engine: {
2869
+ /** 智谱 Web Search 引擎列表 */
2870
+ post: {
2871
+ body: {
2872
+ provider?: string;
2873
+ };
2874
+ return: any;
2875
+ };
2876
+ };
2877
+ status: {
2878
+ /** 成功/失败 */
2879
+ post: {
2880
+ return: any;
2881
+ };
2882
+ };
2883
+ };
2884
+ };
2731
2885
  internal: {
2732
2886
  queue: {
2733
2887
  ai: {
@@ -3727,6 +3881,47 @@ export interface ApiClient {
3727
3881
  };
3728
3882
  };
3729
3883
  };
3884
+ asrStream: {
3885
+ session: {
3886
+ create: {
3887
+ /** 创建会话并返回平台 WS 地址与一次性 ticket(客户端不持有火山密钥) */
3888
+ post: (body?: {
3889
+ subjectUserId?: string;
3890
+ }, config?: RequestConfig) => RequestBuilder<any>;
3891
+ };
3892
+ complete: {
3893
+ /** 提交识别时长并完成流式 ASR 扣费;durationMs=0 仅关闭会话不扣费 */
3894
+ post: (body: {
3895
+ id: string;
3896
+ durationMs: number;
3897
+ }, config?: RequestConfig) => RequestBuilder<any>;
3898
+ };
3899
+ };
3900
+ find: {
3901
+ /** 分页查询流式 ASR 计费会话 */
3902
+ post: (body: {
3903
+ current: number;
3904
+ pageSize: number;
3905
+ where: {
3906
+ id?: string;
3907
+ sessionId?: string;
3908
+ status?: string;
3909
+ };
3910
+ }, config?: RequestConfig) => RequestBuilder<any>;
3911
+ };
3912
+ findOne: {
3913
+ /** 根据 ID 查询流式 ASR 计费会话 */
3914
+ post: (body: {
3915
+ id: string;
3916
+ }, config?: RequestConfig) => RequestBuilder<any>;
3917
+ };
3918
+ delete: {
3919
+ /** 删除流式 ASR 计费会话记录 */
3920
+ post: (body: {
3921
+ id: string;
3922
+ }, config?: RequestConfig) => RequestBuilder<any>;
3923
+ };
3924
+ };
3730
3925
  tts: {
3731
3926
  create: {
3732
3927
  /** 创建新的 TTS 任务;默认 V3 单向流式,长文本需显式传 synthesisMode=longText */
@@ -4183,6 +4378,12 @@ export interface ApiClient {
4183
4378
  subjectUserId?: string;
4184
4379
  }, config?: RequestConfig) => RequestBuilder<any>;
4185
4380
  };
4381
+ retry: {
4382
+ /** 将失败且无产出文件的图片生成任务重新入队处理 */
4383
+ post: (body: {
4384
+ id: string;
4385
+ }, config?: RequestConfig) => RequestBuilder<any>;
4386
+ };
4186
4387
  delete: {
4187
4388
  /** 删除图片生成任务 */
4188
4389
  post: (body: {
@@ -5085,10 +5286,24 @@ export interface ApiClient {
5085
5286
  };
5086
5287
  embeddings: {
5087
5288
  create: {
5088
- /** 将文本转换为向量(豆包 doubao-embedding-vision-250615),含计费 */
5089
- post: (body: {
5289
+ /** 将文本或图/视频多模态输入转换为向量(豆包 doubao-embedding-vision-250615),含计费 */
5290
+ post: (body?: {
5090
5291
  model?: string;
5091
- input: string;
5292
+ input?: string;
5293
+ inputs?: ({
5294
+ type: "text";
5295
+ text: string;
5296
+ } | {
5297
+ type: "image_url";
5298
+ image_url: {
5299
+ url: string;
5300
+ };
5301
+ } | {
5302
+ type: "video_url";
5303
+ video_url: {
5304
+ url: string;
5305
+ };
5306
+ })[];
5092
5307
  dimensions?: number;
5093
5308
  instructions?: string;
5094
5309
  subjectUserId?: string;
@@ -5127,6 +5342,62 @@ export interface ApiClient {
5127
5342
  };
5128
5343
  };
5129
5344
  };
5345
+ webSearch: {
5346
+ create: {
5347
+ /** 同步调用 Tavily / 智谱 / 豆包搜索并按次计费(不经队列) */
5348
+ post: (body: {
5349
+ provider: string;
5350
+ query: string;
5351
+ count?: number;
5352
+ engine?: string;
5353
+ recencyFilter?: string;
5354
+ domainFilter?: string;
5355
+ contentSize?: string;
5356
+ subjectUserId?: string;
5357
+ }, config?: RequestConfig) => RequestBuilder<any>;
5358
+ };
5359
+ delete: {
5360
+ /** 删除联网搜索任务记录 */
5361
+ post: (body: {
5362
+ id: string;
5363
+ }, config?: RequestConfig) => RequestBuilder<any>;
5364
+ };
5365
+ find: {
5366
+ /** 分页查询联网搜索记录 */
5367
+ post: (body: {
5368
+ current: number;
5369
+ pageSize: number;
5370
+ where: {
5371
+ id?: string;
5372
+ provider?: string;
5373
+ query?: string;
5374
+ status?: string;
5375
+ };
5376
+ }, config?: RequestConfig) => RequestBuilder<any>;
5377
+ };
5378
+ findOne: {
5379
+ /** 查询单条联网搜索记录 */
5380
+ post: (body: {
5381
+ id: string;
5382
+ }, config?: RequestConfig) => RequestBuilder<any>;
5383
+ };
5384
+ options: {
5385
+ provider: {
5386
+ /** 列出支持的联网搜索提供商 */
5387
+ post: (config?: RequestConfig) => RequestBuilder<any>;
5388
+ };
5389
+ engine: {
5390
+ /** 智谱 Web Search 引擎列表 */
5391
+ post: (body?: {
5392
+ provider?: string;
5393
+ }, config?: RequestConfig) => RequestBuilder<any>;
5394
+ };
5395
+ status: {
5396
+ /** 成功/失败 */
5397
+ post: (config?: RequestConfig) => RequestBuilder<any>;
5398
+ };
5399
+ };
5400
+ };
5130
5401
  internal: {
5131
5402
  queue: {
5132
5403
  ai: {
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DZ2MePNN.js";
1
+ import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Di-VAlur.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "2.0.13",
3
+ "version": "2.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [