@huyooo/ui 0.13.4 → 0.13.8

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 (46) hide show
  1. package/dist/{AuthkitAppSetting-EL2ZvAVT.js → AuthkitAppSetting-u2kUUH6q.js} +7 -7
  2. package/dist/{AuthkitGithubBinding-Ba9sbNEh.js → AuthkitGithubBinding-B-YSWc50.js} +6 -6
  3. package/dist/{Clipboard-CdJtMvg6.js → Clipboard-C8ncjaAJ.js} +1 -1
  4. package/dist/{Contact-Z2VFVeKK.js → Contact-CIMfdt_b.js} +2 -2
  5. package/dist/{FeedbackItem-B_MDdk4s.js → FeedbackItem-C9FQThXG.js} +3 -3
  6. package/dist/{FeedbackModal-qrcBDDQM.js → FeedbackModal-R3NKRxr7.js} +3 -3
  7. package/dist/{MessageHandle-Y96z-IXv.js → MessageHandle-D2dcvWVr.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CfmjFcay.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CSAIRPOj.js} +2 -2
  9. package/dist/{PaySubscriptions-C75OtmYw.js → PaySubscriptions-BaUlQE-p.js} +4 -4
  10. package/dist/{PricingPlans-DCYIVuuT.js → PricingPlans-B0nt843Q.js} +4 -4
  11. package/dist/{ReferrerReferees-8eSsuPfa.js → ReferrerReferees-B50_V69q.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js → Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BEVmBNlU.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BHXLN2Tu.js} +33 -34
  14. package/dist/{WidthContainer-Dqf_-qGk.js → WidthContainer-BQIboxrg.js} +21 -20
  15. package/dist/api/billingSubscriptionApi.d.ts +3 -0
  16. package/dist/{apiClients-D56ALwwO.js → apiClients-CkI47p36.js} +11 -7
  17. package/dist/authkit.js +9 -9
  18. package/dist/common.js +1 -1
  19. package/dist/composables/useMessageList.d.ts +2 -2
  20. package/dist/composables.js +13 -13
  21. package/dist/feedback.js +3 -3
  22. package/dist/main.js +31 -31
  23. package/dist/message.js +3 -3
  24. package/dist/pay.js +4 -4
  25. package/dist/privateCom.js +1 -1
  26. package/dist/referrer.js +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/types/api/ai.generated.d.ts +3051 -269
  29. package/dist/types/api/billing.generated.d.ts +1206 -275
  30. package/dist/upload.js +2 -2
  31. package/dist/{useAuthkitAppsAuthPageInfo-RMs8sOwk.js → useAuthkitAppsAuthPageInfo-CjPdpZ64.js} +1 -1
  32. package/dist/{useAuthkitAuth-B8aO6aMa.js → useAuthkitAuth-C--qS6UE.js} +1 -1
  33. package/dist/{useAuthkitCreateAndUpdate-DkiLs143.js → useAuthkitCreateAndUpdate-CsYn-oYu.js} +1 -1
  34. package/dist/{useAuthkitUsersProfile-CWAr0CNv.js → useAuthkitUsersProfile-CIFqG3gd.js} +2 -2
  35. package/dist/useBillingStatusOptions-D5Ehwtbj.js +145 -0
  36. package/dist/{useDownloads-DqF1USJ7.js → useDownloads-CxoyuqyY.js} +1 -1
  37. package/dist/{useEnsureAuthenticated-D99GiwEk.js → useEnsureAuthenticated-C4tsSfv6.js} +2 -2
  38. package/dist/{useLegalLinks-DRTOYp3n.js → useLegalLinks-DHqsVvIK.js} +2 -2
  39. package/dist/{useMessageNotifications-CUpk6zCE.js → useMessageNotifications-BMUx5xfX.js} +1 -1
  40. package/dist/{useSEO-CUKPmGRx.js → useSEO-DypqLVfr.js} +2 -2
  41. package/dist/{useSubscriptionCheckout-CAgy1CFj.js → useSubscriptionCheckout-CHAF20s-.js} +102 -108
  42. package/dist/{useTableHandle-CCKjahT0.js → useTableHandle-9alnSWt0.js} +1 -1
  43. package/dist/{useUploadCos-Bxctd4E6.js → useUploadCos-DGPnLOC9.js} +1 -1
  44. package/dist/user.js +1 -1
  45. package/package.json +3 -3
  46. package/dist/useBillingStatusOptions-CottFcAr.js +0 -127
@@ -1,4 +1,4 @@
1
- import { ApiResponse, RequestConfig, Client, EdenClient } from '@vafast/api-client';
1
+ import { RequestConfig, Client, EdenClient, RequestBuilder } from '@vafast/api-client';
2
2
  /** API 契约类型 */
3
3
  export type Api = {
4
4
  health: {
@@ -12,38 +12,201 @@ export type Api = {
12
12
  return: any;
13
13
  };
14
14
  };
15
- chat: {
15
+ agent: {
16
16
  models: {
17
- /** 获取聊天可用的 AI 模型列表 */
17
+ /** 获取 Platform Agent 支持的模型列表(含定价信息) */
18
18
  get: {
19
19
  return: any;
20
20
  };
21
21
  };
22
22
  stream: {
23
- /** 发起流式 AI 对话请求 */
23
+ /** 发起流式 AI 对话请求(SSE),含计费 */
24
24
  post: {
25
25
  body: {
26
- message: string;
26
+ message?: string;
27
27
  images?: string[];
28
+ sessionId?: string;
29
+ tools?: {
30
+ name: string;
31
+ description: string;
32
+ parameters: {
33
+ type: "object";
34
+ properties: Record<string, {
35
+ type?: string;
36
+ description?: string;
37
+ properties?: Record<string, unknown>;
38
+ items?: unknown;
39
+ required?: string[];
40
+ enum?: unknown[];
41
+ default?: unknown;
42
+ }>;
43
+ required?: string[];
44
+ description?: string;
45
+ };
46
+ }[];
47
+ skillContents?: string[];
28
48
  options?: {
29
49
  mode?: "agent" | "ask";
30
50
  model?: string;
31
- provider?: "ark" | "deepseek" | "qwen" | "gemini" | "openai" | "anthropic";
32
51
  enableWebSearch?: boolean;
33
52
  thinkingMode?: "enabled" | "disabled";
34
53
  enabledTools?: string[];
54
+ autoRunConfig?: {
55
+ mode?: "off" | "run-everything" | "approve-all";
56
+ };
35
57
  history?: {
36
58
  role: "user" | "assistant" | "system" | "tool";
37
59
  content: string;
60
+ tool_call_id?: string;
61
+ tool_calls?: {
62
+ id: string;
63
+ type: "function";
64
+ function: {
65
+ name: string;
66
+ arguments: string;
67
+ };
68
+ }[];
38
69
  }[];
70
+ serviceTier?: string;
71
+ billingPlan?: "online_standard" | "online_low_latency" | "batch";
39
72
  };
40
73
  };
41
74
  return: any;
42
75
  };
43
76
  };
44
- abort: {
45
- /** 中止正在进行的对话请求 */
77
+ complete: {
78
+ /** 创建 Agent 非流式补全请求(含计费),使用 ai-chat-core 统一引擎 */
79
+ post: {
80
+ body: {
81
+ model: string;
82
+ max_tokens?: number;
83
+ temperature?: number;
84
+ messages: {
85
+ role: "user" | "assistant" | "system";
86
+ content: string | unknown[];
87
+ }[];
88
+ service_tier?: string;
89
+ billing_plan?: "online_standard" | "online_low_latency" | "batch";
90
+ };
91
+ return: any;
92
+ };
93
+ };
94
+ cancel: {
95
+ /** 取消正在进行的对话请求 */
96
+ post: {
97
+ return: any;
98
+ };
99
+ };
100
+ sessions: {
101
+ /** 获取当前用户的所有会话 */
102
+ get: {
103
+ return: any;
104
+ };
105
+ /** 创建新的聊天会话 */
46
106
  post: {
107
+ body: {
108
+ title?: string;
109
+ model?: string;
110
+ mode?: "agent" | "ask";
111
+ webSearchEnabled?: boolean;
112
+ thinkingEnabled?: boolean;
113
+ };
114
+ return: any;
115
+ };
116
+ ':id': {
117
+ /** 更新会话信息 */
118
+ put: {
119
+ body: {
120
+ title?: string;
121
+ model?: string;
122
+ mode?: "agent" | "ask";
123
+ webSearchEnabled?: boolean;
124
+ thinkingEnabled?: boolean;
125
+ hidden?: boolean;
126
+ };
127
+ params: {
128
+ sessionId: string;
129
+ };
130
+ return: any;
131
+ };
132
+ /** 删除会话及其所有消息 */
133
+ delete: {
134
+ params: {
135
+ sessionId: string;
136
+ };
137
+ return: any;
138
+ };
139
+ messages: {
140
+ /** 获取会话的所有消息 */
141
+ get: {
142
+ params: {
143
+ sessionId: string;
144
+ };
145
+ return: any;
146
+ };
147
+ /** 保存聊天消息 */
148
+ post: {
149
+ body: {
150
+ id?: string;
151
+ role: "user" | "assistant";
152
+ content: string;
153
+ images?: string[];
154
+ model?: string;
155
+ mode?: string;
156
+ webSearchEnabled?: boolean;
157
+ thinkingEnabled?: boolean;
158
+ steps?: string;
159
+ operationIds?: string;
160
+ };
161
+ params: {
162
+ sessionId: string;
163
+ };
164
+ return: any;
165
+ };
166
+ after: {
167
+ ':id': {
168
+ /** 用于分叉:删除指定消息之后的所有消息 */
169
+ delete: {
170
+ params: {
171
+ sessionId: string;
172
+ messageId: string;
173
+ };
174
+ return: any;
175
+ };
176
+ };
177
+ };
178
+ };
179
+ };
180
+ };
181
+ messages: {
182
+ ':id': {
183
+ /** 更新消息内容(支持 usage、duration、operationIds),含归属验证 */
184
+ put: {
185
+ body: {
186
+ content?: string;
187
+ steps?: string;
188
+ operationIds?: string;
189
+ usage?: string;
190
+ duration?: number;
191
+ };
192
+ params: {
193
+ id: string;
194
+ };
195
+ return: any;
196
+ };
197
+ };
198
+ };
199
+ settings: {
200
+ /** 获取用户的 Platform Agent 设置 */
201
+ get: {
202
+ return: any;
203
+ };
204
+ /** 更新用户的 Platform Agent 设置 */
205
+ put: {
206
+ body: {
207
+ key: string;
208
+ value: string;
209
+ };
47
210
  return: any;
48
211
  };
49
212
  };
@@ -195,7 +358,7 @@ export type Api = {
195
358
  modelIds: string[];
196
359
  promptTestDataIds: string[];
197
360
  status: "enabled" | "disabled";
198
- providers: "ark" | "deepseek" | "qwen" | "gemini" | "openai" | "anthropic" | "openrouter"[];
361
+ providers: string[];
199
362
  description: string;
200
363
  };
201
364
  return: any;
@@ -220,7 +383,7 @@ export type Api = {
220
383
  modelIds: string[];
221
384
  promptTestDataIds: string[];
222
385
  status: "enabled" | "disabled";
223
- providers: "ark" | "deepseek" | "qwen" | "gemini" | "openai" | "anthropic" | "openrouter"[];
386
+ providers: string[];
224
387
  description: string;
225
388
  };
226
389
  return: any;
@@ -259,26 +422,8 @@ export type Api = {
259
422
  return: any;
260
423
  };
261
424
  };
262
- };
263
- completions: {
264
- create: {
265
- /** 创建 AI 补全请求 */
266
- post: {
267
- body: {
268
- model: string;
269
- max_tokens?: number;
270
- stream?: boolean;
271
- temperature?: number;
272
- messages: {
273
- role: "user" | "assistant" | "system";
274
- content: string | unknown[];
275
- }[];
276
- };
277
- return: any;
278
- };
279
- };
280
- prompt: {
281
- /** 基于提示词模板进行 AI 补全 */
425
+ run: {
426
+ /** 基于提示词模板进行 AI 补全(含计费) */
282
427
  post: {
283
428
  body: {
284
429
  promptId: string;
@@ -288,8 +433,9 @@ export type Api = {
288
433
  }[];
289
434
  model: string;
290
435
  max_tokens?: number;
291
- stream?: boolean;
292
436
  temperature?: number;
437
+ service_tier?: string;
438
+ billing_plan?: "online_standard" | "online_low_latency" | "batch";
293
439
  };
294
440
  return: any;
295
441
  };
@@ -304,7 +450,290 @@ export type Api = {
304
450
  };
305
451
  };
306
452
  };
307
- promptsHistroy: {
453
+ dashscope: {
454
+ 'compatible-mode': {
455
+ v1: {
456
+ chat: {
457
+ completions: {
458
+ /** 原样代理 DashScope compatible-mode /chat/completions,并统一加登录态、额度和计费 */
459
+ post: {
460
+ body: Record<string, unknown>;
461
+ return: any;
462
+ };
463
+ };
464
+ };
465
+ };
466
+ };
467
+ api: {
468
+ v1: {
469
+ services: {
470
+ aigc: {
471
+ 'text-generation': {
472
+ generation: {
473
+ /** 原样代理 DashScope 原生 text-generation,并统一加登录态、额度和计费 */
474
+ post: {
475
+ body: Record<string, unknown>;
476
+ return: any;
477
+ };
478
+ };
479
+ };
480
+ 'multimodal-generation': {
481
+ generation: {
482
+ /** 原样代理 DashScope 原生 multimodal-generation,并统一加登录态、额度和计费 */
483
+ post: {
484
+ body: Record<string, unknown>;
485
+ return: any;
486
+ };
487
+ };
488
+ };
489
+ };
490
+ };
491
+ };
492
+ };
493
+ };
494
+ deepseek: {
495
+ v1: {
496
+ chat: {
497
+ completions: {
498
+ /** 原样代理 DeepSeek /chat/completions,并统一加登录态、额度和计费 */
499
+ post: {
500
+ body: Record<string, unknown>;
501
+ return: any;
502
+ };
503
+ };
504
+ };
505
+ };
506
+ };
507
+ openrouter: {
508
+ v1: {
509
+ chat: {
510
+ completions: {
511
+ /** 原样代理 OpenRouter /chat/completions,并统一加登录态、额度和计费 */
512
+ post: {
513
+ body: Record<string, unknown>;
514
+ return: any;
515
+ };
516
+ };
517
+ };
518
+ };
519
+ };
520
+ openai: {
521
+ v1: {
522
+ responses: {
523
+ /** 原样代理 OpenAI /responses,并统一加登录态、额度和计费 */
524
+ post: {
525
+ body: Record<string, unknown>;
526
+ return: any;
527
+ };
528
+ };
529
+ chat: {
530
+ completions: {
531
+ /** 原样代理 OpenAI /chat/completions,并统一加登录态、额度和计费 */
532
+ post: {
533
+ body: Record<string, unknown>;
534
+ return: any;
535
+ };
536
+ };
537
+ };
538
+ images: {
539
+ generations: {
540
+ /** 原样代理 OpenAI /images/generations(DALL·E 按张 · GPT Image 按 token) */
541
+ post: {
542
+ body: Record<string, unknown>;
543
+ return: any;
544
+ };
545
+ };
546
+ edits: {
547
+ /** 原样代理 OpenAI /images/edits(GPT Image 按 token · multipart) */
548
+ post: {
549
+ return: any;
550
+ };
551
+ };
552
+ };
553
+ };
554
+ };
555
+ anthropic: {
556
+ v1: {
557
+ messages: {
558
+ /** 原样代理 Anthropic /messages,并统一加登录态、额度和计费 */
559
+ post: {
560
+ body: Record<string, unknown>;
561
+ return: any;
562
+ };
563
+ };
564
+ };
565
+ };
566
+ gemini: {
567
+ v1beta: {
568
+ models: {
569
+ ':id': {
570
+ /** 原样代理 Gemini /models/{model}:generateContent 等接口,并统一加登录态、额度和计费 */
571
+ post: {
572
+ body: Record<string, unknown>;
573
+ params: {
574
+ modelAction: string;
575
+ };
576
+ return: any;
577
+ };
578
+ };
579
+ };
580
+ };
581
+ };
582
+ glm: {
583
+ v1: {
584
+ chat: {
585
+ completions: {
586
+ /** 原样代理 GLM /chat/completions,并统一加登录态、额度和计费 */
587
+ post: {
588
+ body: Record<string, unknown>;
589
+ return: any;
590
+ };
591
+ };
592
+ };
593
+ };
594
+ };
595
+ grok: {
596
+ v1: {
597
+ responses: {
598
+ /** 通过 LLM Proxy 原样代理 Grok /responses,并统一加登录态、额度和计费 */
599
+ post: {
600
+ body: Record<string, unknown>;
601
+ return: any;
602
+ };
603
+ };
604
+ chat: {
605
+ completions: {
606
+ /** 通过 LLM Proxy 原样代理 Grok /chat/completions,并统一加登录态、额度和计费 */
607
+ post: {
608
+ body: Record<string, unknown>;
609
+ return: any;
610
+ };
611
+ };
612
+ };
613
+ images: {
614
+ generations: {
615
+ /** 通过 LLM Proxy 原样代理 Grok /images/generations,并按张计费 */
616
+ post: {
617
+ body: Record<string, unknown>;
618
+ return: any;
619
+ };
620
+ };
621
+ };
622
+ videos: {
623
+ generations: {
624
+ /** 通过 LLM Proxy 代理 Grok /videos/generations,提交任务不扣费 */
625
+ post: {
626
+ body: Record<string, unknown>;
627
+ return: any;
628
+ };
629
+ };
630
+ ':id': {
631
+ /** 通过 LLM Proxy 转发 Grok /videos/{request_id},视频生成成功后按秒扣费 */
632
+ get: {
633
+ params: {
634
+ requestId: string;
635
+ };
636
+ return: any;
637
+ };
638
+ };
639
+ };
640
+ };
641
+ };
642
+ moonshot: {
643
+ v1: {
644
+ chat: {
645
+ completions: {
646
+ /** 原样代理 Moonshot /chat/completions,并统一加登录态、额度和计费 */
647
+ post: {
648
+ body: Record<string, unknown>;
649
+ return: any;
650
+ };
651
+ };
652
+ };
653
+ };
654
+ };
655
+ minimax: {
656
+ anthropic: {
657
+ v1: {
658
+ messages: {
659
+ /** 原样代理 MiniMax Anthropic /messages,并统一加登录态、额度和计费 */
660
+ post: {
661
+ body: Record<string, unknown>;
662
+ return: any;
663
+ };
664
+ };
665
+ };
666
+ };
667
+ };
668
+ volcengine: {
669
+ ark: {
670
+ api: {
671
+ v3: {
672
+ responses: {
673
+ /** 原样代理火山方舟原厂 /api/v3/responses,并统一加登录态、额度和计费 */
674
+ post: {
675
+ body: Record<string, unknown>;
676
+ return: any;
677
+ };
678
+ };
679
+ chat: {
680
+ completions: {
681
+ /** 原样代理火山方舟原厂 /api/v3/chat/completions,并统一加登录态、额度和计费 */
682
+ post: {
683
+ body: Record<string, unknown>;
684
+ return: any;
685
+ };
686
+ };
687
+ };
688
+ };
689
+ plan: {
690
+ v3: {
691
+ chat: {
692
+ completions: {
693
+ /** 平台暂未开放 Agent Plan 官方线路 */
694
+ post: {
695
+ body: Record<string, unknown>;
696
+ return: any;
697
+ };
698
+ };
699
+ };
700
+ };
701
+ v1: {
702
+ messages: {
703
+ /** 平台暂未开放 Agent Plan 官方线路 */
704
+ post: {
705
+ body: Record<string, unknown>;
706
+ return: any;
707
+ };
708
+ };
709
+ };
710
+ };
711
+ coding: {
712
+ v3: {
713
+ chat: {
714
+ completions: {
715
+ /** 平台暂未开放 Coding Plan 官方线路 */
716
+ post: {
717
+ body: Record<string, unknown>;
718
+ return: any;
719
+ };
720
+ };
721
+ };
722
+ };
723
+ v1: {
724
+ messages: {
725
+ /** 平台暂未开放 Coding Plan 官方线路 */
726
+ post: {
727
+ body: Record<string, unknown>;
728
+ return: any;
729
+ };
730
+ };
731
+ };
732
+ };
733
+ };
734
+ };
735
+ };
736
+ promptsHistory: {
308
737
  find: {
309
738
  /** 分页查询提示词历史记录 */
310
739
  post: {
@@ -433,7 +862,7 @@ export type Api = {
433
862
  enableChannelSplit?: boolean;
434
863
  showUtterances?: boolean;
435
864
  vadSegment?: boolean;
436
- context: unknown;
865
+ context?: unknown;
437
866
  };
438
867
  };
439
868
  return: any;
@@ -462,6 +891,15 @@ export type Api = {
462
891
  return: any;
463
892
  };
464
893
  };
894
+ findOne: {
895
+ /** 根据 ID 查询单条 ASR 任务详情 */
896
+ post: {
897
+ body: {
898
+ id: string;
899
+ };
900
+ return: any;
901
+ };
902
+ };
465
903
  status: {
466
904
  /** 查询 ASR 任务处理状态 */
467
905
  post: {
@@ -482,13 +920,23 @@ export type Api = {
482
920
  };
483
921
  tts: {
484
922
  create: {
485
- /** 创建新的 TTS 任务 */
923
+ /** 创建新的 TTS 任务;默认 V3 单向流式,长文本需显式传 synthesisMode=longText */
486
924
  post: {
487
925
  body: {
488
- sceneKey: string;
926
+ voiceKind: "official" | "clone" | "design";
489
927
  voiceType: string;
490
928
  text: string;
491
- encoding?: "wav";
929
+ encoding?: "wav" | "pcm";
930
+ synthesisMode?: "unidirectional" | "longText";
931
+ };
932
+ return: any;
933
+ };
934
+ };
935
+ status: {
936
+ /** 查询长文本 TTS 任务处理状态(仅 synthesisMode=longText) */
937
+ post: {
938
+ body: {
939
+ id: string;
492
940
  };
493
941
  return: any;
494
942
  };
@@ -509,7 +957,7 @@ export type Api = {
509
957
  current: number;
510
958
  pageSize: number;
511
959
  where: {
512
- sceneKey?: string;
960
+ voiceKind?: "official" | "clone" | "design";
513
961
  voiceType?: string;
514
962
  text?: string;
515
963
  };
@@ -529,7 +977,7 @@ export type Api = {
529
977
  };
530
978
  si: {
531
979
  create: {
532
- /** 创建新的同声传译任务 */
980
+ /** 创建新的同声传译任务(ASR → 翻译 → TTS) */
533
981
  post: {
534
982
  body: {
535
983
  audios: {
@@ -543,6 +991,15 @@ export type Api = {
543
991
  return: any;
544
992
  };
545
993
  };
994
+ status: {
995
+ /** 查询同声传译任务当前状态与结果 */
996
+ post: {
997
+ body: {
998
+ id: string;
999
+ };
1000
+ return: any;
1001
+ };
1002
+ };
546
1003
  delete: {
547
1004
  /** 删除同声传译任务 */
548
1005
  post: {
@@ -559,11 +1016,8 @@ export type Api = {
559
1016
  current: number;
560
1017
  pageSize: number;
561
1018
  where: {
562
- name?: string;
563
- value?: string;
564
- version?: number;
565
- modelId?: string;
566
- providerId?: string;
1019
+ speakerID?: string;
1020
+ language?: string;
567
1021
  status?: string;
568
1022
  };
569
1023
  };
@@ -580,9 +1034,61 @@ export type Api = {
580
1034
  };
581
1035
  };
582
1036
  };
1037
+ realtimeSpeech: {
1038
+ session: {
1039
+ create: {
1040
+ /** 创建实时语音交互会话(complete 时扣费) */
1041
+ post: {
1042
+ body: {
1043
+ language?: string;
1044
+ modelType?: 0 | 1;
1045
+ };
1046
+ return: any;
1047
+ };
1048
+ };
1049
+ complete: {
1050
+ /** 提交上游 usage 并完成实时语音扣费 */
1051
+ post: {
1052
+ body: {
1053
+ id: string;
1054
+ usage: {
1055
+ inputAudioTokens: number;
1056
+ outputTextTokens: number;
1057
+ outputAudioTokens: number;
1058
+ inputAudioCachedTokens?: number;
1059
+ };
1060
+ };
1061
+ return: any;
1062
+ };
1063
+ };
1064
+ };
1065
+ find: {
1066
+ /** 分页查询实时语音会话 */
1067
+ post: {
1068
+ body: {
1069
+ current: number;
1070
+ pageSize: number;
1071
+ where: {
1072
+ sessionId?: string;
1073
+ status?: string;
1074
+ };
1075
+ };
1076
+ return: any;
1077
+ };
1078
+ };
1079
+ findOne: {
1080
+ /** 根据 ID 查询实时语音会话详情 */
1081
+ post: {
1082
+ body: {
1083
+ id: string;
1084
+ };
1085
+ return: any;
1086
+ };
1087
+ };
1088
+ };
583
1089
  copyVoice: {
584
1090
  create: {
585
- /** 创建新的声音复刻任务 */
1091
+ /** 创建新的声音复刻任务(调用火山引擎下单) */
586
1092
  post: {
587
1093
  body: {
588
1094
  name: string;
@@ -592,6 +1098,20 @@ export type Api = {
592
1098
  };
593
1099
  return: any;
594
1100
  };
1101
+ speakerID: {
1102
+ /** 通过已有的 speakerID 创建声音复刻记录 */
1103
+ post: {
1104
+ body: {
1105
+ name: string;
1106
+ tags: string[];
1107
+ times: number;
1108
+ description?: string;
1109
+ speakerID: string;
1110
+ orderID: string;
1111
+ };
1112
+ return: any;
1113
+ };
1114
+ };
595
1115
  };
596
1116
  update: {
597
1117
  /** 更新声音复刻信息 */
@@ -641,22 +1161,133 @@ export type Api = {
641
1161
  };
642
1162
  };
643
1163
  };
644
- };
645
- voiceTypes: {
646
- create: {
647
- /** 创建新音色类型 */
1164
+ trains: {
1165
+ /** 上传音频文件进行声音复刻训练 */
648
1166
  post: {
649
1167
  body: {
650
- name: string;
651
- value: string;
652
- modelIds: string[];
653
- promptTestDataIds: string[];
654
- status: "enabled" | "disabled";
655
- providers: string[];
656
- description: string;
657
- };
658
- return: any;
659
- };
1168
+ id: string;
1169
+ audios: {
1170
+ audioFormat: "wav" | "mp3" | "ogg" | "m4a" | "aac" | "pcm";
1171
+ audioBytes: string;
1172
+ text?: string;
1173
+ }[];
1174
+ language: number;
1175
+ };
1176
+ return: any;
1177
+ };
1178
+ };
1179
+ status: {
1180
+ /** 查询声音复刻的训练状态 */
1181
+ post: {
1182
+ body: {
1183
+ speakerID: string;
1184
+ };
1185
+ return: any;
1186
+ };
1187
+ };
1188
+ };
1189
+ voiceDesign: {
1190
+ create: {
1191
+ /** 下单购买音色槽位,用于后续音色设计 */
1192
+ post: {
1193
+ body: {
1194
+ name: string;
1195
+ tags: string[];
1196
+ times: number;
1197
+ description?: string;
1198
+ };
1199
+ return: any;
1200
+ };
1201
+ };
1202
+ design: {
1203
+ /** 基于文本/图片提示词设计音色并生成试听 */
1204
+ post: {
1205
+ body: {
1206
+ id: string;
1207
+ previewText: string;
1208
+ textPrompt?: string;
1209
+ language?: 0 | 1;
1210
+ imagePrompt?: {
1211
+ imageUrl?: string;
1212
+ imageBytes?: string;
1213
+ };
1214
+ };
1215
+ return: any;
1216
+ };
1217
+ };
1218
+ update: {
1219
+ /** 更新音色设计名称、标签与描述 */
1220
+ post: {
1221
+ body: {
1222
+ id: string;
1223
+ name: string;
1224
+ tags: string[];
1225
+ description?: string;
1226
+ };
1227
+ return: any;
1228
+ };
1229
+ };
1230
+ find: {
1231
+ /** 分页查询音色设计任务 */
1232
+ post: {
1233
+ body: {
1234
+ current: number;
1235
+ pageSize: number;
1236
+ where: {
1237
+ name?: string;
1238
+ speakerID?: string;
1239
+ status?: string;
1240
+ };
1241
+ };
1242
+ return: any;
1243
+ };
1244
+ };
1245
+ findOne: {
1246
+ /** 根据 ID 查询音色设计详情 */
1247
+ post: {
1248
+ body: {
1249
+ id: string;
1250
+ };
1251
+ return: any;
1252
+ };
1253
+ };
1254
+ status: {
1255
+ /** 从上游刷新 SpeakerID 状态 */
1256
+ post: {
1257
+ body: {
1258
+ id: string;
1259
+ };
1260
+ return: any;
1261
+ };
1262
+ };
1263
+ options: {
1264
+ /** 获取音色设计下拉选项 */
1265
+ post: {
1266
+ return: any;
1267
+ };
1268
+ status: {
1269
+ /** 获取音色设计状态下拉选项 */
1270
+ post: {
1271
+ return: any;
1272
+ };
1273
+ };
1274
+ };
1275
+ };
1276
+ voiceTypes: {
1277
+ create: {
1278
+ /** 创建新音色类型 */
1279
+ post: {
1280
+ body: {
1281
+ name: string;
1282
+ value: string;
1283
+ modelIds: string[];
1284
+ promptTestDataIds: string[];
1285
+ status: "enabled" | "disabled";
1286
+ providers: string[];
1287
+ description: string;
1288
+ };
1289
+ return: any;
1290
+ };
660
1291
  };
661
1292
  delete: {
662
1293
  /** 删除音色类型 */
@@ -714,12 +1345,14 @@ export type Api = {
714
1345
  /** 获取音色下拉选项 */
715
1346
  post: {
716
1347
  body: {
717
- sceneKey?: string;
1348
+ voiceKind?: "official" | "clone" | "design";
1349
+ category?: string;
1350
+ resourceId?: string;
718
1351
  };
719
1352
  return: any;
720
1353
  };
721
- voiceScene: {
722
- /** 获取音色场景下拉选项 */
1354
+ categories: {
1355
+ /** 聚合 ListSpeakers 返回的分类列表 */
723
1356
  post: {
724
1357
  return: any;
725
1358
  };
@@ -783,7 +1416,7 @@ export type Api = {
783
1416
  };
784
1417
  copyVoiceRenew: {
785
1418
  create: {
786
- /** 创建声音复刻续期申请 */
1419
+ /** 创建声音复刻续期申请(调用火山引擎续费 API) */
787
1420
  post: {
788
1421
  body: {
789
1422
  copyVoiceId: string;
@@ -817,20 +1450,58 @@ export type Api = {
817
1450
  };
818
1451
  };
819
1452
  };
1453
+ voiceDesignRenew: {
1454
+ create: {
1455
+ /** 创建音色设计续期申请(调用火山引擎续费 API) */
1456
+ post: {
1457
+ body: {
1458
+ voiceDesignId: string;
1459
+ times: number;
1460
+ };
1461
+ return: any;
1462
+ };
1463
+ };
1464
+ find: {
1465
+ /** 分页查询音色设计续期列表 */
1466
+ post: {
1467
+ body: {
1468
+ current: number;
1469
+ pageSize: number;
1470
+ where: {
1471
+ speakerID?: string;
1472
+ voiceDesignId?: string;
1473
+ status?: string;
1474
+ };
1475
+ };
1476
+ return: any;
1477
+ };
1478
+ };
1479
+ findOne: {
1480
+ /** 根据 ID 查询音色设计续期详情 */
1481
+ post: {
1482
+ body: {
1483
+ id: string;
1484
+ };
1485
+ return: any;
1486
+ };
1487
+ };
1488
+ };
820
1489
  imageGeneration: {
821
1490
  create: {
822
- /** 创建新的图片生成任务 */
1491
+ /** 创建新的图片生成任务(火山方舟,后台异步处理) */
823
1492
  post: {
824
1493
  body: {
825
1494
  model: string;
826
1495
  prompt: string;
827
1496
  sizeType?: "resolution" | "pixel";
828
- size?: "1K" | "2K" | "4K";
1497
+ size?: "1K" | "2K" | "3K" | "4K";
829
1498
  width?: number;
830
1499
  height?: number;
831
1500
  watermark?: boolean;
832
- guidanceScale?: number;
833
- seed?: number;
1501
+ outputFormat?: "png" | "jpeg";
1502
+ referenceImageUrls?: string[];
1503
+ sequentialImageGeneration?: "disabled" | "auto";
1504
+ maxImages?: number;
834
1505
  };
835
1506
  return: any;
836
1507
  };
@@ -866,10 +1537,24 @@ export type Api = {
866
1537
  return: any;
867
1538
  };
868
1539
  };
1540
+ options: {
1541
+ status: {
1542
+ /** 获取图片生成任务状态下拉选项 */
1543
+ post: {
1544
+ return: any;
1545
+ };
1546
+ };
1547
+ model: {
1548
+ /** 获取豆包 Seedream 图片模型下拉选项 */
1549
+ post: {
1550
+ return: any;
1551
+ };
1552
+ };
1553
+ };
869
1554
  };
870
1555
  videoGeneration: {
871
1556
  create: {
872
- /** 创建新的视频生成任务 */
1557
+ /** 创建新的视频生成任务(提交不扣费,请轮询 /status) */
873
1558
  post: {
874
1559
  body: {
875
1560
  model?: string;
@@ -885,6 +1570,15 @@ export type Api = {
885
1570
  return: any;
886
1571
  };
887
1572
  };
1573
+ status: {
1574
+ /** 查询 Veo 任务状态 */
1575
+ post: {
1576
+ body: {
1577
+ id: string;
1578
+ };
1579
+ return: any;
1580
+ };
1581
+ };
888
1582
  delete: {
889
1583
  /** 删除视频生成任务 */
890
1584
  post: {
@@ -918,7 +1612,7 @@ export type Api = {
918
1612
  };
919
1613
  };
920
1614
  refresh: {
921
- /** 刷新视频生成任务状态 */
1615
+ /** 刷新视频生成任务状态(不扣费) */
922
1616
  post: {
923
1617
  body: {
924
1618
  id: string;
@@ -933,24 +1627,63 @@ export type Api = {
933
1627
  return: any;
934
1628
  };
935
1629
  };
1630
+ model: {
1631
+ /** 获取 Google Veo 视频模型下拉选项 */
1632
+ post: {
1633
+ return: any;
1634
+ };
1635
+ };
1636
+ };
1637
+ progress: {
1638
+ ':id': {
1639
+ /** 通过 SSE 实时获取视频生成任务进度(需登录,仅任务创建者可访问) */
1640
+ get: {
1641
+ params: {
1642
+ id: string;
1643
+ };
1644
+ return: any;
1645
+ };
1646
+ };
936
1647
  };
937
1648
  };
938
- geminiImage: {
1649
+ seedanceVideoGeneration: {
939
1650
  create: {
940
- /** 创建 Gemini 图片生成任务 */
1651
+ /** 提交火山方舟 Seedance 异步视频任务 */
941
1652
  post: {
942
1653
  body: {
943
- model?: string;
944
- prompt: string;
945
- negativePrompt?: string;
946
- aspectRatio?: string;
947
- numberOfImages?: number;
1654
+ model: string;
1655
+ content: unknown[];
1656
+ ratio?: string;
1657
+ duration?: number;
1658
+ resolution?: string;
1659
+ watermark?: boolean;
1660
+ generate_audio?: boolean;
1661
+ seed?: number;
1662
+ service_tier?: string;
1663
+ };
1664
+ return: any;
1665
+ };
1666
+ };
1667
+ status: {
1668
+ /** 轮询火山方舟任务状态 */
1669
+ post: {
1670
+ body: {
1671
+ id: string;
1672
+ };
1673
+ return: any;
1674
+ };
1675
+ };
1676
+ refresh: {
1677
+ /** 轮询上游任务状态 */
1678
+ post: {
1679
+ body: {
1680
+ id: string;
948
1681
  };
949
1682
  return: any;
950
1683
  };
951
1684
  };
952
1685
  delete: {
953
- /** 删除 Gemini 图片生成任务 */
1686
+ /** 删除 Seedance 视频任务记录 */
954
1687
  post: {
955
1688
  body: {
956
1689
  id: string;
@@ -959,12 +1692,12 @@ export type Api = {
959
1692
  };
960
1693
  };
961
1694
  find: {
962
- /** 分页查询 Gemini 图片列表 */
1695
+ /** 分页查询 Seedance 视频任务 */
963
1696
  post: {
964
1697
  body: {
965
- pageSize: number;
966
1698
  current: number;
967
- where?: {
1699
+ pageSize: number;
1700
+ where: {
968
1701
  prompt?: string;
969
1702
  status?: string;
970
1703
  };
@@ -973,7 +1706,7 @@ export type Api = {
973
1706
  };
974
1707
  };
975
1708
  findOne: {
976
- /** 根据 ID 查询 Gemini 图片详情 */
1709
+ /** 查询单条 Seedance 视频任务 */
977
1710
  post: {
978
1711
  body: {
979
1712
  id: string;
@@ -983,91 +1716,1056 @@ export type Api = {
983
1716
  };
984
1717
  options: {
985
1718
  status: {
986
- /** 获取 Gemini 图片状态下拉选项 */
987
- post: {
988
- return: any;
989
- };
990
- };
991
- model: {
992
- /** 获取 Gemini 图片模型下拉选项 */
993
- post: {
994
- return: any;
995
- };
996
- };
997
- aspectRatio: {
998
- /** 获取 Gemini 图片宽高比下拉选项 */
999
- post: {
1000
- return: any;
1001
- };
1002
- };
1003
- resolution: {
1004
- /** 获取 Gemini 图片分辨率下拉选项 */
1719
+ /** 获取 Seedance 视频任务状态下拉选项 */
1005
1720
  post: {
1006
1721
  return: any;
1007
1722
  };
1008
1723
  };
1009
1724
  };
1010
1725
  };
1011
- webhooks: {
1012
- events: {
1013
- /** 获取所有可用的 Webhook 事件类型 */
1014
- get: {
1726
+ mesh3dGeneration: {
1727
+ create: {
1728
+ /** 提交火山方舟 3D 异步生成任务 */
1729
+ post: {
1730
+ body: {
1731
+ model: string;
1732
+ content: unknown[];
1733
+ subdivision_level?: string;
1734
+ file_format?: string;
1735
+ seed?: number;
1736
+ };
1015
1737
  return: any;
1016
1738
  };
1017
- ':id': {
1018
- /** 获取指定分类的 Webhook 事件 */
1019
- get: {
1020
- params: {
1021
- category: string;
1022
- };
1023
- return: any;
1739
+ };
1740
+ status: {
1741
+ /** 轮询火山方舟 3D 任务状态 */
1742
+ post: {
1743
+ body: {
1744
+ id: string;
1024
1745
  };
1746
+ return: any;
1025
1747
  };
1026
1748
  };
1027
- categories: {
1028
- /** 获取所有 Webhook 事件分类 */
1029
- get: {
1749
+ refresh: {
1750
+ /** 轮询上游 3D 任务状态 */
1751
+ post: {
1752
+ body: {
1753
+ id: string;
1754
+ };
1030
1755
  return: any;
1031
1756
  };
1032
1757
  };
1033
- };
1034
- };
1035
- /** API 客户端类型(提供完整的 IDE 智能提示) */
1036
- export interface ApiClient {
1037
- health: {
1038
- get: (config?: RequestConfig) => Promise<ApiResponse<any>>;
1758
+ delete: {
1759
+ /** 删除 3D 生成任务记录 */
1760
+ post: {
1761
+ body: {
1762
+ id: string;
1763
+ };
1764
+ return: any;
1765
+ };
1766
+ };
1767
+ find: {
1768
+ /** 分页查询 3D 生成任务 */
1769
+ post: {
1770
+ body: {
1771
+ current: number;
1772
+ pageSize: number;
1773
+ where: {
1774
+ prompt?: string;
1775
+ status?: string;
1776
+ supplierId?: string;
1777
+ model?: string;
1778
+ };
1779
+ };
1780
+ return: any;
1781
+ };
1782
+ };
1783
+ findOne: {
1784
+ /** 查询单条 3D 生成任务 */
1785
+ post: {
1786
+ body: {
1787
+ id: string;
1788
+ };
1789
+ return: any;
1790
+ };
1791
+ };
1792
+ options: {
1793
+ status: {
1794
+ /** 获取 3D 生成任务状态下拉选项 */
1795
+ post: {
1796
+ return: any;
1797
+ };
1798
+ };
1799
+ };
1800
+ };
1801
+ geminiImage: {
1802
+ create: {
1803
+ /** 经 LLM Proxy 异步生成 Gemini 图片(提交不扣费,请轮询 /status) */
1804
+ post: {
1805
+ body: {
1806
+ model?: string;
1807
+ prompt: string;
1808
+ negativePrompt?: string;
1809
+ aspectRatio?: string;
1810
+ numberOfImages?: number;
1811
+ personGeneration?: string;
1812
+ resolution?: string;
1813
+ referenceImageBase64?: string;
1814
+ referenceImageMimeType?: string;
1815
+ };
1816
+ return: any;
1817
+ };
1818
+ };
1819
+ status: {
1820
+ /** 查询 Gemini 生图任务状态 */
1821
+ post: {
1822
+ body: {
1823
+ id: string;
1824
+ };
1825
+ return: any;
1826
+ };
1827
+ };
1828
+ delete: {
1829
+ /** 删除 Gemini 图片生成任务 */
1830
+ post: {
1831
+ body: {
1832
+ id: string;
1833
+ };
1834
+ return: any;
1835
+ };
1836
+ };
1837
+ find: {
1838
+ /** 分页查询 Gemini 图片列表 */
1839
+ post: {
1840
+ body: {
1841
+ pageSize: number;
1842
+ current: number;
1843
+ where?: {
1844
+ prompt?: string;
1845
+ status?: string;
1846
+ };
1847
+ };
1848
+ return: any;
1849
+ };
1850
+ };
1851
+ findOne: {
1852
+ /** 根据 ID 查询 Gemini 图片详情 */
1853
+ post: {
1854
+ body: {
1855
+ id: string;
1856
+ };
1857
+ return: any;
1858
+ };
1859
+ };
1860
+ options: {
1861
+ status: {
1862
+ /** 获取 Gemini 图片状态下拉选项 */
1863
+ post: {
1864
+ return: any;
1865
+ };
1866
+ };
1867
+ model: {
1868
+ /** 获取 Gemini 图片模型下拉选项 */
1869
+ post: {
1870
+ return: any;
1871
+ };
1872
+ };
1873
+ aspectRatio: {
1874
+ /** 获取 Gemini 图片宽高比下拉选项 */
1875
+ post: {
1876
+ return: any;
1877
+ };
1878
+ };
1879
+ resolution: {
1880
+ /** 获取 Gemini 图片分辨率下拉选项 */
1881
+ post: {
1882
+ return: any;
1883
+ };
1884
+ };
1885
+ };
1886
+ };
1887
+ billing: {
1888
+ balance: {
1889
+ /** 查询用户积分余额 */
1890
+ post: {
1891
+ body: Record<string, unknown>;
1892
+ return: any;
1893
+ };
1894
+ };
1895
+ estimate: {
1896
+ /** 根据 token 数量预估费用 */
1897
+ post: {
1898
+ body: {
1899
+ model: string;
1900
+ promptTokens: number;
1901
+ completionTokens: number;
1902
+ };
1903
+ return: any;
1904
+ };
1905
+ };
1906
+ usage: {
1907
+ stats: {
1908
+ /** 统计用户的 AI 使用情况 */
1909
+ post: {
1910
+ body: {
1911
+ userId?: string;
1912
+ model?: string;
1913
+ supplierId?: string;
1914
+ profileId?: string;
1915
+ protocolId?: string;
1916
+ startTime?: string;
1917
+ endTime?: string;
1918
+ };
1919
+ return: any;
1920
+ };
1921
+ };
1922
+ list: {
1923
+ /** 查询用户的 AI 使用记录 */
1924
+ post: {
1925
+ body: {
1926
+ userId?: string;
1927
+ model?: string;
1928
+ supplierId?: string;
1929
+ profileId?: string;
1930
+ protocolId?: string;
1931
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
1932
+ id?: string;
1933
+ requestId?: string;
1934
+ referenceId?: string;
1935
+ startTime?: string;
1936
+ endTime?: string;
1937
+ page?: number;
1938
+ pageSize?: number;
1939
+ };
1940
+ return: any;
1941
+ };
1942
+ };
1943
+ };
1944
+ trace: {
1945
+ reference: {
1946
+ /** 按 referenceId 查询用量与积分流水 */
1947
+ post: {
1948
+ body: {
1949
+ referenceId: string;
1950
+ serviceKey?: string;
1951
+ };
1952
+ return: any;
1953
+ };
1954
+ };
1955
+ };
1956
+ };
1957
+ modelCatalog: {
1958
+ suppliers: {
1959
+ list: {
1960
+ post: {
1961
+ body: {
1962
+ enabledOnly?: boolean;
1963
+ supplierKind?: "agent_vendor" | "agent_proxy";
1964
+ agentVendorOnly?: boolean;
1965
+ };
1966
+ return: any;
1967
+ };
1968
+ };
1969
+ upsert: {
1970
+ post: {
1971
+ body: {
1972
+ supplierId: string;
1973
+ name: string;
1974
+ supplierKind: "agent_vendor" | "agent_proxy";
1975
+ enabled?: boolean;
1976
+ description?: string;
1977
+ platformUpstream: "direct" | "proxy_railway";
1978
+ downstreamAccessModes: "official" | "self_key"[];
1979
+ };
1980
+ return: any;
1981
+ };
1982
+ };
1983
+ delete: {
1984
+ post: {
1985
+ body: {
1986
+ supplierId: string;
1987
+ };
1988
+ return: any;
1989
+ };
1990
+ };
1991
+ };
1992
+ protocols: {
1993
+ find: {
1994
+ post: {
1995
+ body: {
1996
+ page?: number;
1997
+ pageSize?: number;
1998
+ supplierId?: string;
1999
+ keyword?: string;
2000
+ enabled?: boolean;
2001
+ chatRuntimeEnabled?: boolean;
2002
+ method?: "POST" | "GET";
2003
+ };
2004
+ return: any;
2005
+ };
2006
+ };
2007
+ listBySupplier: {
2008
+ post: {
2009
+ body: {
2010
+ supplierId: string;
2011
+ enabledOnly?: boolean;
2012
+ };
2013
+ return: any;
2014
+ };
2015
+ };
2016
+ create: {
2017
+ post: {
2018
+ body: {
2019
+ protocolId: string;
2020
+ supplierId: string;
2021
+ name: string;
2022
+ baseUrl: string;
2023
+ path: string;
2024
+ chatRuntimeProtocol?: string;
2025
+ method?: "POST" | "GET";
2026
+ docUrl?: string;
2027
+ description?: string;
2028
+ enabled?: boolean;
2029
+ };
2030
+ return: any;
2031
+ };
2032
+ };
2033
+ update: {
2034
+ post: {
2035
+ body: {
2036
+ protocolId: string;
2037
+ supplierId?: string;
2038
+ name?: string;
2039
+ baseUrl?: string;
2040
+ path?: string;
2041
+ chatRuntimeProtocol?: string;
2042
+ method?: "POST" | "GET";
2043
+ docUrl?: string;
2044
+ description?: string;
2045
+ enabled?: boolean;
2046
+ };
2047
+ return: any;
2048
+ };
2049
+ };
2050
+ delete: {
2051
+ post: {
2052
+ body: {
2053
+ protocolId: string;
2054
+ };
2055
+ return: any;
2056
+ };
2057
+ };
2058
+ supplierOptions: {
2059
+ /** 协议管理筛选用供应商全量(key/label) */
2060
+ post: {
2061
+ return: any;
2062
+ };
2063
+ };
2064
+ protocolOptions: {
2065
+ /** 按供应商加载接入协议选项(key/label) */
2066
+ post: {
2067
+ body: {
2068
+ supplierId: string;
2069
+ enabledOnly?: boolean;
2070
+ };
2071
+ return: any;
2072
+ };
2073
+ };
2074
+ };
2075
+ profiles: {
2076
+ find: {
2077
+ post: {
2078
+ body: {
2079
+ page?: number;
2080
+ pageSize?: number;
2081
+ referenceVendor?: string;
2082
+ family?: string;
2083
+ tag?: string;
2084
+ keyword?: string;
2085
+ status?: "active" | "deprecated";
2086
+ inputType?: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
2087
+ outputType?: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
2088
+ };
2089
+ return: any;
2090
+ };
2091
+ };
2092
+ listBrief: {
2093
+ post: {
2094
+ body: {
2095
+ enabledOnly?: boolean;
2096
+ };
2097
+ return: any;
2098
+ };
2099
+ };
2100
+ referenceVendorOptions: {
2101
+ /** 模型信息筛选用原厂供应商全量(key/label) */
2102
+ post: {
2103
+ body: {
2104
+ enabledOnly?: boolean;
2105
+ };
2106
+ return: any;
2107
+ };
2108
+ };
2109
+ create: {
2110
+ post: {
2111
+ body: {
2112
+ profileId: string;
2113
+ referenceVendor: string;
2114
+ name: string;
2115
+ family?: string;
2116
+ tags?: string[];
2117
+ description?: string;
2118
+ capabilities: {
2119
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
2120
+ inputTypes: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d"[];
2121
+ outputType: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
2122
+ rateLimits?: {
2123
+ tpmPerMinute?: number;
2124
+ rpmPerMinute?: number;
2125
+ qpmPerMinute?: number;
2126
+ ipmPerMinute?: number;
2127
+ maxConcurrency?: number;
2128
+ };
2129
+ text?: {
2130
+ contextWindow?: number;
2131
+ maxInputTokens?: number;
2132
+ maxOutputTokens?: number;
2133
+ maxThinkingTokens?: number;
2134
+ };
2135
+ image?: {
2136
+ minWidth?: number;
2137
+ minHeight?: number;
2138
+ maxWidth?: number;
2139
+ maxHeight?: number;
2140
+ maxImagesPerRequest?: number;
2141
+ supportedAspectRatios?: string[];
2142
+ supportsInpainting?: boolean;
2143
+ };
2144
+ video?: {
2145
+ supportedResolutions?: string[];
2146
+ maxFps?: number;
2147
+ maxDurationSeconds?: number;
2148
+ minDurationSeconds?: number;
2149
+ supportedAspectRatios?: string[];
2150
+ supportsImageToVideo?: boolean;
2151
+ supportsVideoExtend?: boolean;
2152
+ };
2153
+ mesh3d?: {
2154
+ supportsImageTo3d?: boolean;
2155
+ outputFormats?: string[];
2156
+ maxPolygons?: number;
2157
+ };
2158
+ speech?: {
2159
+ mode: "tts" | "asr";
2160
+ billingMode?: "token_io" | "inference_chars" | "inference_hour" | "realtime_duplex";
2161
+ };
2162
+ embedding?: {
2163
+ contextWindow?: number;
2164
+ dimensions?: number;
2165
+ maxInputTokens?: number;
2166
+ maxBatchSize?: number;
2167
+ normalization?: "l2" | "none";
2168
+ };
2169
+ webSearchDetail?: {
2170
+ maxResults?: number;
2171
+ };
2172
+ thinking?: boolean;
2173
+ structuredOutput?: boolean;
2174
+ contextCache?: boolean;
2175
+ onlineInference?: boolean;
2176
+ lowLatencyInference?: boolean;
2177
+ batchInference?: boolean;
2178
+ fineTuning?: boolean;
2179
+ toolUse?: boolean;
2180
+ webSearch?: boolean;
2181
+ knowledgeBase?: boolean;
2182
+ mcp?: boolean;
2183
+ };
2184
+ status?: "active" | "deprecated";
2185
+ };
2186
+ return: any;
2187
+ };
2188
+ };
2189
+ update: {
2190
+ post: {
2191
+ body: {
2192
+ profileId: string;
2193
+ referenceVendor?: string;
2194
+ name?: string;
2195
+ family?: string;
2196
+ tags?: string[];
2197
+ description?: string;
2198
+ capabilities?: {
2199
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
2200
+ inputTypes: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d"[];
2201
+ outputType: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
2202
+ rateLimits?: {
2203
+ tpmPerMinute?: number;
2204
+ rpmPerMinute?: number;
2205
+ qpmPerMinute?: number;
2206
+ ipmPerMinute?: number;
2207
+ maxConcurrency?: number;
2208
+ };
2209
+ text?: {
2210
+ contextWindow?: number;
2211
+ maxInputTokens?: number;
2212
+ maxOutputTokens?: number;
2213
+ maxThinkingTokens?: number;
2214
+ };
2215
+ image?: {
2216
+ minWidth?: number;
2217
+ minHeight?: number;
2218
+ maxWidth?: number;
2219
+ maxHeight?: number;
2220
+ maxImagesPerRequest?: number;
2221
+ supportedAspectRatios?: string[];
2222
+ supportsInpainting?: boolean;
2223
+ };
2224
+ video?: {
2225
+ supportedResolutions?: string[];
2226
+ maxFps?: number;
2227
+ maxDurationSeconds?: number;
2228
+ minDurationSeconds?: number;
2229
+ supportedAspectRatios?: string[];
2230
+ supportsImageToVideo?: boolean;
2231
+ supportsVideoExtend?: boolean;
2232
+ };
2233
+ mesh3d?: {
2234
+ supportsImageTo3d?: boolean;
2235
+ outputFormats?: string[];
2236
+ maxPolygons?: number;
2237
+ };
2238
+ speech?: {
2239
+ mode: "tts" | "asr";
2240
+ billingMode?: "token_io" | "inference_chars" | "inference_hour" | "realtime_duplex";
2241
+ };
2242
+ embedding?: {
2243
+ contextWindow?: number;
2244
+ dimensions?: number;
2245
+ maxInputTokens?: number;
2246
+ maxBatchSize?: number;
2247
+ normalization?: "l2" | "none";
2248
+ };
2249
+ webSearchDetail?: {
2250
+ maxResults?: number;
2251
+ };
2252
+ thinking?: boolean;
2253
+ structuredOutput?: boolean;
2254
+ contextCache?: boolean;
2255
+ onlineInference?: boolean;
2256
+ lowLatencyInference?: boolean;
2257
+ batchInference?: boolean;
2258
+ fineTuning?: boolean;
2259
+ toolUse?: boolean;
2260
+ webSearch?: boolean;
2261
+ knowledgeBase?: boolean;
2262
+ mcp?: boolean;
2263
+ };
2264
+ status?: "active" | "deprecated";
2265
+ };
2266
+ return: any;
2267
+ };
2268
+ };
2269
+ delete: {
2270
+ post: {
2271
+ body: {
2272
+ profileId: string;
2273
+ };
2274
+ return: any;
2275
+ };
2276
+ };
2277
+ };
2278
+ offerings: {
2279
+ supplierOptions: {
2280
+ /** 管理后台筛选用供应商全量(key/label) */
2281
+ post: {
2282
+ return: any;
2283
+ };
2284
+ };
2285
+ profileOptions: {
2286
+ /** 管理后台筛选用模型信息全量(key/label) */
2287
+ post: {
2288
+ return: any;
2289
+ };
2290
+ };
2291
+ modelOptions: {
2292
+ /** 管理后台筛选用计费标识全量(key/label/value,支持联动筛选) */
2293
+ post: {
2294
+ body: {
2295
+ supplierId?: string;
2296
+ profileId?: string;
2297
+ protocolId?: string;
2298
+ tag?: string;
2299
+ enabled?: boolean;
2300
+ };
2301
+ return: any;
2302
+ };
2303
+ };
2304
+ };
2305
+ models: {
2306
+ find: {
2307
+ post: {
2308
+ body: {
2309
+ page?: number;
2310
+ pageSize?: number;
2311
+ profileId?: string;
2312
+ referenceVendor?: string;
2313
+ supplierId?: string;
2314
+ supplierKind?: "agent_vendor" | "agent_proxy";
2315
+ protocolId?: string;
2316
+ tag?: string;
2317
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
2318
+ keyword?: string;
2319
+ enabled?: boolean;
2320
+ platformAvailable?: boolean;
2321
+ };
2322
+ return: any;
2323
+ };
2324
+ };
2325
+ unconfigured: {
2326
+ post: {
2327
+ body: {
2328
+ supplierId?: string;
2329
+ supplierKind?: "agent_vendor" | "agent_proxy";
2330
+ };
2331
+ return: any;
2332
+ };
2333
+ };
2334
+ create: {
2335
+ post: {
2336
+ body: {
2337
+ profileId: string;
2338
+ supplierId: string;
2339
+ protocolId: string;
2340
+ providerModelId: string;
2341
+ name?: string;
2342
+ version?: string;
2343
+ status?: "active" | "deprecated";
2344
+ enabled?: boolean;
2345
+ description?: string;
2346
+ };
2347
+ return: any;
2348
+ };
2349
+ };
2350
+ update: {
2351
+ post: {
2352
+ body: {
2353
+ modelId: string;
2354
+ supplierId?: string;
2355
+ profileId?: string;
2356
+ protocolId?: string;
2357
+ providerModelId?: string;
2358
+ name?: string;
2359
+ version?: string;
2360
+ status?: "active" | "deprecated";
2361
+ enabled?: boolean;
2362
+ description?: string;
2363
+ };
2364
+ return: any;
2365
+ };
2366
+ };
2367
+ delete: {
2368
+ post: {
2369
+ body: {
2370
+ modelId: string;
2371
+ };
2372
+ return: any;
2373
+ };
2374
+ };
2375
+ };
2376
+ chat: {
2377
+ supplierOptions: {
2378
+ /** 获取下游应用对话模型设置可用的供应商(与 Ones 已启用 aiSupplier 列表一致) */
2379
+ post: {
2380
+ return: any;
2381
+ };
2382
+ };
2383
+ modelOptions: {
2384
+ /** 获取下游应用可用的对话模型目录项(已启用 text_generation) */
2385
+ post: {
2386
+ body: {
2387
+ supplierIds?: string[];
2388
+ };
2389
+ return: any;
2390
+ };
2391
+ };
2392
+ integrationExport: {
2393
+ /** 按 offeringModelId 生成 LLMConfig 片段与下游 API 说明,供 Ones 复制或调试 */
2394
+ post: {
2395
+ body: {
2396
+ offeringModelId: string;
2397
+ };
2398
+ return: any;
2399
+ };
2400
+ };
2401
+ reloadRuntime: {
2402
+ /** 目录或 Key 变更后,从 Mongo 重新编译 /agent/* 可用模型(无需重启进程) */
2403
+ post: {
2404
+ return: any;
2405
+ };
2406
+ };
2407
+ };
2408
+ prompt: {
2409
+ supplierOptions: {
2410
+ /** Prompt 模块:筛选平台 Runtime 已就绪的文本模型供应商 */
2411
+ post: {
2412
+ return: any;
2413
+ };
2414
+ };
2415
+ modelOptions: {
2416
+ /** Prompt 模块:从平台 Runtime 目录筛选文本模型(offering modelId + providerModelId) */
2417
+ post: {
2418
+ body: {
2419
+ supplierIds?: string[];
2420
+ };
2421
+ return: any;
2422
+ };
2423
+ };
2424
+ };
2425
+ };
2426
+ billingCatalog: {
2427
+ suppliers: {
2428
+ list: {
2429
+ /** 获取 AI 模型供应商列表 */
2430
+ post: {
2431
+ body: {
2432
+ enabledOnly?: boolean;
2433
+ supplierKind?: "agent_vendor" | "agent_proxy";
2434
+ agentVendorOnly?: boolean;
2435
+ };
2436
+ return: any;
2437
+ };
2438
+ };
2439
+ };
2440
+ models: {
2441
+ find: {
2442
+ post: {
2443
+ body: {
2444
+ page?: number;
2445
+ pageSize?: number;
2446
+ supplierId?: string;
2447
+ profileId?: string;
2448
+ protocolId?: string;
2449
+ tag?: string;
2450
+ keyword?: string;
2451
+ enabled?: boolean;
2452
+ };
2453
+ return: any;
2454
+ };
2455
+ };
2456
+ };
2457
+ billingEntries: {
2458
+ list: {
2459
+ /** 按 supplier+profile 聚合的价表列表 */
2460
+ post: {
2461
+ body: {
2462
+ page?: number;
2463
+ pageSize?: number;
2464
+ supplierId?: string;
2465
+ profileId?: string;
2466
+ productLine?: "" | "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
2467
+ keyword?: string;
2468
+ pricingConfigured?: boolean;
2469
+ billable?: boolean;
2470
+ };
2471
+ return: any;
2472
+ };
2473
+ };
2474
+ unconfigured: {
2475
+ post: {
2476
+ body: {
2477
+ supplierId?: string;
2478
+ productLine?: "" | "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
2479
+ keyword?: string;
2480
+ };
2481
+ return: any;
2482
+ };
2483
+ };
2484
+ get: {
2485
+ post: {
2486
+ body: {
2487
+ supplierId: string;
2488
+ profileId: string;
2489
+ };
2490
+ return: any;
2491
+ };
2492
+ };
2493
+ statuses: {
2494
+ post: {
2495
+ return: any;
2496
+ };
2497
+ };
2498
+ };
2499
+ modelPricing: {
2500
+ delete: {
2501
+ post: {
2502
+ body: {
2503
+ supplierId: string;
2504
+ profileId: string;
2505
+ };
2506
+ return: any;
2507
+ };
2508
+ };
2509
+ };
2510
+ builtinServices: {
2511
+ list: {
2512
+ /** 只读内置 serviceKey 与 chargeMethodKey catalog */
2513
+ post: {
2514
+ body: {
2515
+ group?: "ai" | "storage" | "platform";
2516
+ };
2517
+ return: any;
2518
+ };
2519
+ };
2520
+ };
2521
+ exchangeRate: {
2522
+ get: {
2523
+ post: {
2524
+ return: any;
2525
+ };
2526
+ };
2527
+ update: {
2528
+ post: {
2529
+ body: {
2530
+ usdToCny: number;
2531
+ };
2532
+ return: any;
2533
+ };
2534
+ };
2535
+ };
2536
+ };
2537
+ embeddings: {
2538
+ create: {
2539
+ /** 将文本转换为向量(豆包 doubao-embedding-vision-250615),含计费 */
2540
+ post: {
2541
+ body: {
2542
+ model?: string;
2543
+ input: string;
2544
+ dimensions?: number;
2545
+ instructions?: string;
2546
+ };
2547
+ return: any;
2548
+ };
2549
+ };
2550
+ delete: {
2551
+ /** 删除向量生成任务记录 */
2552
+ post: {
2553
+ body: {
2554
+ id: string;
2555
+ };
2556
+ return: any;
2557
+ };
2558
+ };
2559
+ find: {
2560
+ /** 分页查询向量生成任务 */
2561
+ post: {
2562
+ body: {
2563
+ current: number;
2564
+ pageSize: number;
2565
+ where: {
2566
+ input?: string;
2567
+ supplierId?: string;
2568
+ model?: string;
2569
+ status?: string;
2570
+ };
2571
+ };
2572
+ return: any;
2573
+ };
2574
+ };
2575
+ findOne: {
2576
+ /** 查询单条向量生成任务 */
2577
+ post: {
2578
+ body: {
2579
+ id: string;
2580
+ };
2581
+ return: any;
2582
+ };
2583
+ };
2584
+ options: {
2585
+ status: {
2586
+ /** 获取向量任务状态下拉选项 */
2587
+ post: {
2588
+ return: any;
2589
+ };
2590
+ };
2591
+ };
2592
+ };
2593
+ webhooks: {
2594
+ events: {
2595
+ /** 获取所有可用的 Webhook 事件类型 */
2596
+ get: {
2597
+ return: any;
2598
+ };
2599
+ ':id': {
2600
+ /** 获取指定分类的 Webhook 事件 */
2601
+ get: {
2602
+ params: {
2603
+ category: string;
2604
+ };
2605
+ return: any;
2606
+ };
2607
+ };
2608
+ };
2609
+ categories: {
2610
+ /** 获取所有 Webhook 事件分类 */
2611
+ get: {
2612
+ return: any;
2613
+ };
2614
+ };
2615
+ };
2616
+ };
2617
+ /** API 客户端类型(提供完整的 IDE 智能提示) */
2618
+ export interface ApiClient {
2619
+ health: {
2620
+ get: (config?: RequestConfig) => RequestBuilder<any>;
1039
2621
  };
1040
2622
  'api-spec': {
1041
2623
  /** 获取 API 规范,用于类型同步 */
1042
- get: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2624
+ get: (config?: RequestConfig) => RequestBuilder<any>;
1043
2625
  };
1044
- chat: {
2626
+ agent: {
1045
2627
  models: {
1046
- /** 获取聊天可用的 AI 模型列表 */
1047
- get: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2628
+ /** 获取 Platform Agent 支持的模型列表(含定价信息) */
2629
+ get: (config?: RequestConfig) => RequestBuilder<any>;
1048
2630
  };
1049
2631
  stream: {
1050
- /** 发起流式 AI 对话请求 */
2632
+ /** 发起流式 AI 对话请求(SSE),含计费 */
1051
2633
  post: (body: {
1052
- message: string;
2634
+ message?: string;
1053
2635
  images?: string[];
2636
+ sessionId?: string;
2637
+ tools?: {
2638
+ name: string;
2639
+ description: string;
2640
+ parameters: {
2641
+ type: "object";
2642
+ properties: Record<string, {
2643
+ type?: string;
2644
+ description?: string;
2645
+ properties?: Record<string, unknown>;
2646
+ items?: unknown;
2647
+ required?: string[];
2648
+ enum?: unknown[];
2649
+ default?: unknown;
2650
+ }>;
2651
+ required?: string[];
2652
+ description?: string;
2653
+ };
2654
+ }[];
2655
+ skillContents?: string[];
1054
2656
  options?: {
1055
2657
  mode?: "agent" | "ask";
1056
2658
  model?: string;
1057
- provider?: "ark" | "deepseek" | "qwen" | "gemini" | "openai" | "anthropic";
1058
2659
  enableWebSearch?: boolean;
1059
2660
  thinkingMode?: "enabled" | "disabled";
1060
2661
  enabledTools?: string[];
2662
+ autoRunConfig?: {
2663
+ mode?: "off" | "run-everything" | "approve-all";
2664
+ };
1061
2665
  history?: {
1062
2666
  role: "user" | "assistant" | "system" | "tool";
1063
2667
  content: string;
2668
+ tool_call_id?: string;
2669
+ tool_calls?: {
2670
+ id: string;
2671
+ type: "function";
2672
+ function: {
2673
+ name: string;
2674
+ arguments: string;
2675
+ };
2676
+ }[];
1064
2677
  }[];
2678
+ serviceTier?: string;
2679
+ billingPlan?: "online_standard" | "online_low_latency" | "batch";
2680
+ };
2681
+ }, config?: RequestConfig) => RequestBuilder<any>;
2682
+ };
2683
+ complete: {
2684
+ /** 创建 Agent 非流式补全请求(含计费),使用 ai-chat-core 统一引擎 */
2685
+ post: (body: {
2686
+ model: string;
2687
+ max_tokens?: number;
2688
+ temperature?: number;
2689
+ messages: {
2690
+ role: "user" | "assistant" | "system";
2691
+ content: string | unknown[];
2692
+ }[];
2693
+ service_tier?: string;
2694
+ billing_plan?: "online_standard" | "online_low_latency" | "batch";
2695
+ }, config?: RequestConfig) => RequestBuilder<any>;
2696
+ };
2697
+ cancel: {
2698
+ /** 取消正在进行的对话请求 */
2699
+ post: (config?: RequestConfig) => RequestBuilder<any>;
2700
+ };
2701
+ sessions: {
2702
+ /** 获取当前用户的所有会话 */
2703
+ get: (config?: RequestConfig) => RequestBuilder<any>;
2704
+ /** 创建新的聊天会话 */
2705
+ post: (body: {
2706
+ title?: string;
2707
+ model?: string;
2708
+ mode?: "agent" | "ask";
2709
+ webSearchEnabled?: boolean;
2710
+ thinkingEnabled?: boolean;
2711
+ }, config?: RequestConfig) => RequestBuilder<any>;
2712
+ ':id': {
2713
+ /** 更新会话信息 */
2714
+ put: (body: {
2715
+ title?: string;
2716
+ model?: string;
2717
+ mode?: "agent" | "ask";
2718
+ webSearchEnabled?: boolean;
2719
+ thinkingEnabled?: boolean;
2720
+ hidden?: boolean;
2721
+ }, config?: RequestConfig) => RequestBuilder<any>;
2722
+ /** 删除会话及其所有消息 */
2723
+ delete: (config?: RequestConfig) => RequestBuilder<any>;
2724
+ messages: {
2725
+ /** 获取会话的所有消息 */
2726
+ get: (config?: RequestConfig) => RequestBuilder<any>;
2727
+ /** 保存聊天消息 */
2728
+ post: (body: {
2729
+ id?: string;
2730
+ role: "user" | "assistant";
2731
+ content: string;
2732
+ images?: string[];
2733
+ model?: string;
2734
+ mode?: string;
2735
+ webSearchEnabled?: boolean;
2736
+ thinkingEnabled?: boolean;
2737
+ steps?: string;
2738
+ operationIds?: string;
2739
+ }, config?: RequestConfig) => RequestBuilder<any>;
2740
+ after: {
2741
+ ':id': {
2742
+ /** 用于分叉:删除指定消息之后的所有消息 */
2743
+ delete: (config?: RequestConfig) => RequestBuilder<any>;
2744
+ };
2745
+ };
1065
2746
  };
1066
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2747
+ };
2748
+ };
2749
+ messages: {
2750
+ ':id': {
2751
+ /** 更新消息内容(支持 usage、duration、operationIds),含归属验证 */
2752
+ put: (body: {
2753
+ content?: string;
2754
+ steps?: string;
2755
+ operationIds?: string;
2756
+ usage?: string;
2757
+ duration?: number;
2758
+ }, config?: RequestConfig) => RequestBuilder<any>;
2759
+ };
1067
2760
  };
1068
- abort: {
1069
- /** 中止正在进行的对话请求 */
1070
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2761
+ settings: {
2762
+ /** 获取用户的 Platform Agent 设置 */
2763
+ get: (config?: RequestConfig) => RequestBuilder<any>;
2764
+ /** 更新用户的 Platform Agent 设置 */
2765
+ put: (body: {
2766
+ key: string;
2767
+ value: string;
2768
+ }, config?: RequestConfig) => RequestBuilder<any>;
1071
2769
  };
1072
2770
  };
1073
2771
  models: {
@@ -1104,13 +2802,13 @@ export interface ApiClient {
1104
2802
  baseURL: string;
1105
2803
  mappingModel: string;
1106
2804
  }[];
1107
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2805
+ }, config?: RequestConfig) => RequestBuilder<any>;
1108
2806
  };
1109
2807
  delete: {
1110
2808
  /** 删除模型配置 */
1111
2809
  post: (body: {
1112
2810
  id: string;
1113
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2811
+ }, config?: RequestConfig) => RequestBuilder<any>;
1114
2812
  };
1115
2813
  update: {
1116
2814
  /** 更新模型配置 */
@@ -1145,7 +2843,7 @@ export interface ApiClient {
1145
2843
  baseURL: string;
1146
2844
  mappingModel: string;
1147
2845
  }[];
1148
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2846
+ }, config?: RequestConfig) => RequestBuilder<any>;
1149
2847
  };
1150
2848
  find: {
1151
2849
  /** 分页查询模型配置列表 */
@@ -1156,31 +2854,31 @@ export interface ApiClient {
1156
2854
  name?: string;
1157
2855
  provider?: string;
1158
2856
  };
1159
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2857
+ }, config?: RequestConfig) => RequestBuilder<any>;
1160
2858
  };
1161
2859
  findOne: {
1162
2860
  /** 根据 ID 查询模型详情 */
1163
2861
  post: (body: {
1164
2862
  id: string;
1165
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2863
+ }, config?: RequestConfig) => RequestBuilder<any>;
1166
2864
  };
1167
2865
  options: {
1168
2866
  /** 获取模型下拉选项 */
1169
2867
  post: (body: {
1170
2868
  providers?: string[];
1171
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2869
+ }, config?: RequestConfig) => RequestBuilder<any>;
1172
2870
  };
1173
2871
  typesOptions: {
1174
2872
  /** 获取模型类型下拉选项 */
1175
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2873
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1176
2874
  };
1177
2875
  modelProviderOptions: {
1178
2876
  /** 获取模型供应商下拉选项 */
1179
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2877
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1180
2878
  };
1181
2879
  tagsOptions: {
1182
2880
  /** 获取模型标签下拉选项 */
1183
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2881
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1184
2882
  };
1185
2883
  };
1186
2884
  prompts: {
@@ -1192,15 +2890,15 @@ export interface ApiClient {
1192
2890
  modelIds: string[];
1193
2891
  promptTestDataIds: string[];
1194
2892
  status: "enabled" | "disabled";
1195
- providers: "ark" | "deepseek" | "qwen" | "gemini" | "openai" | "anthropic" | "openrouter"[];
2893
+ providers: string[];
1196
2894
  description: string;
1197
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2895
+ }, config?: RequestConfig) => RequestBuilder<any>;
1198
2896
  };
1199
2897
  delete: {
1200
2898
  /** 删除提示词 */
1201
2899
  post: (body: {
1202
2900
  id: string;
1203
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2901
+ }, config?: RequestConfig) => RequestBuilder<any>;
1204
2902
  };
1205
2903
  update: {
1206
2904
  /** 更新提示词内容 */
@@ -1211,9 +2909,9 @@ export interface ApiClient {
1211
2909
  modelIds: string[];
1212
2910
  promptTestDataIds: string[];
1213
2911
  status: "enabled" | "disabled";
1214
- providers: "ark" | "deepseek" | "qwen" | "gemini" | "openai" | "anthropic" | "openrouter"[];
2912
+ providers: string[];
1215
2913
  description: string;
1216
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2914
+ }, config?: RequestConfig) => RequestBuilder<any>;
1217
2915
  };
1218
2916
  find: {
1219
2917
  /** 分页查询提示词列表 */
@@ -1228,35 +2926,20 @@ export interface ApiClient {
1228
2926
  providerId?: string;
1229
2927
  status?: string;
1230
2928
  };
1231
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2929
+ }, config?: RequestConfig) => RequestBuilder<any>;
1232
2930
  };
1233
2931
  findOne: {
1234
2932
  /** 根据 ID 查询提示词详情 */
1235
2933
  post: (body: {
1236
2934
  id: string;
1237
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2935
+ }, config?: RequestConfig) => RequestBuilder<any>;
1238
2936
  };
1239
2937
  options: {
1240
2938
  /** 获取提示词下拉选项 */
1241
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2939
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1242
2940
  };
1243
- };
1244
- completions: {
1245
- create: {
1246
- /** 创建 AI 补全请求 */
1247
- post: (body: {
1248
- model: string;
1249
- max_tokens?: number;
1250
- stream?: boolean;
1251
- temperature?: number;
1252
- messages: {
1253
- role: "user" | "assistant" | "system";
1254
- content: string | unknown[];
1255
- }[];
1256
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
1257
- };
1258
- prompt: {
1259
- /** 基于提示词模板进行 AI 补全 */
2941
+ run: {
2942
+ /** 基于提示词模板进行 AI 补全(含计费) */
1260
2943
  post: (body: {
1261
2944
  promptId: string;
1262
2945
  promptVars: {
@@ -1265,18 +2948,223 @@ export interface ApiClient {
1265
2948
  }[];
1266
2949
  model: string;
1267
2950
  max_tokens?: number;
1268
- stream?: boolean;
1269
2951
  temperature?: number;
1270
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2952
+ service_tier?: string;
2953
+ billing_plan?: "online_standard" | "online_low_latency" | "batch";
2954
+ }, config?: RequestConfig) => RequestBuilder<any>;
1271
2955
  models: {
1272
2956
  /** 获取指定提示词可用的模型列表 */
1273
2957
  post: (body: {
1274
2958
  promptId: string;
1275
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2959
+ }, config?: RequestConfig) => RequestBuilder<any>;
2960
+ };
2961
+ };
2962
+ };
2963
+ dashscope: {
2964
+ 'compatible-mode': {
2965
+ v1: {
2966
+ chat: {
2967
+ completions: {
2968
+ /** 原样代理 DashScope compatible-mode /chat/completions,并统一加登录态、额度和计费 */
2969
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
2970
+ };
2971
+ };
2972
+ };
2973
+ };
2974
+ api: {
2975
+ v1: {
2976
+ services: {
2977
+ aigc: {
2978
+ 'text-generation': {
2979
+ generation: {
2980
+ /** 原样代理 DashScope 原生 text-generation,并统一加登录态、额度和计费 */
2981
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
2982
+ };
2983
+ };
2984
+ 'multimodal-generation': {
2985
+ generation: {
2986
+ /** 原样代理 DashScope 原生 multimodal-generation,并统一加登录态、额度和计费 */
2987
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
2988
+ };
2989
+ };
2990
+ };
2991
+ };
2992
+ };
2993
+ };
2994
+ };
2995
+ deepseek: {
2996
+ v1: {
2997
+ chat: {
2998
+ completions: {
2999
+ /** 原样代理 DeepSeek /chat/completions,并统一加登录态、额度和计费 */
3000
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3001
+ };
3002
+ };
3003
+ };
3004
+ };
3005
+ openrouter: {
3006
+ v1: {
3007
+ chat: {
3008
+ completions: {
3009
+ /** 原样代理 OpenRouter /chat/completions,并统一加登录态、额度和计费 */
3010
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3011
+ };
3012
+ };
3013
+ };
3014
+ };
3015
+ openai: {
3016
+ v1: {
3017
+ responses: {
3018
+ /** 原样代理 OpenAI /responses,并统一加登录态、额度和计费 */
3019
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3020
+ };
3021
+ chat: {
3022
+ completions: {
3023
+ /** 原样代理 OpenAI /chat/completions,并统一加登录态、额度和计费 */
3024
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3025
+ };
3026
+ };
3027
+ images: {
3028
+ generations: {
3029
+ /** 原样代理 OpenAI /images/generations(DALL·E 按张 · GPT Image 按 token) */
3030
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3031
+ };
3032
+ edits: {
3033
+ /** 原样代理 OpenAI /images/edits(GPT Image 按 token · multipart) */
3034
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3035
+ };
3036
+ };
3037
+ };
3038
+ };
3039
+ anthropic: {
3040
+ v1: {
3041
+ messages: {
3042
+ /** 原样代理 Anthropic /messages,并统一加登录态、额度和计费 */
3043
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3044
+ };
3045
+ };
3046
+ };
3047
+ gemini: {
3048
+ v1beta: {
3049
+ models: {
3050
+ ':id': {
3051
+ /** 原样代理 Gemini /models/{model}:generateContent 等接口,并统一加登录态、额度和计费 */
3052
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3053
+ };
3054
+ };
3055
+ };
3056
+ };
3057
+ glm: {
3058
+ v1: {
3059
+ chat: {
3060
+ completions: {
3061
+ /** 原样代理 GLM /chat/completions,并统一加登录态、额度和计费 */
3062
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3063
+ };
3064
+ };
3065
+ };
3066
+ };
3067
+ grok: {
3068
+ v1: {
3069
+ responses: {
3070
+ /** 通过 LLM Proxy 原样代理 Grok /responses,并统一加登录态、额度和计费 */
3071
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3072
+ };
3073
+ chat: {
3074
+ completions: {
3075
+ /** 通过 LLM Proxy 原样代理 Grok /chat/completions,并统一加登录态、额度和计费 */
3076
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3077
+ };
3078
+ };
3079
+ images: {
3080
+ generations: {
3081
+ /** 通过 LLM Proxy 原样代理 Grok /images/generations,并按张计费 */
3082
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3083
+ };
3084
+ };
3085
+ videos: {
3086
+ generations: {
3087
+ /** 通过 LLM Proxy 代理 Grok /videos/generations,提交任务不扣费 */
3088
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3089
+ };
3090
+ ':id': {
3091
+ /** 通过 LLM Proxy 转发 Grok /videos/{request_id},视频生成成功后按秒扣费 */
3092
+ get: (config?: RequestConfig) => RequestBuilder<any>;
3093
+ };
3094
+ };
3095
+ };
3096
+ };
3097
+ moonshot: {
3098
+ v1: {
3099
+ chat: {
3100
+ completions: {
3101
+ /** 原样代理 Moonshot /chat/completions,并统一加登录态、额度和计费 */
3102
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3103
+ };
3104
+ };
3105
+ };
3106
+ };
3107
+ minimax: {
3108
+ anthropic: {
3109
+ v1: {
3110
+ messages: {
3111
+ /** 原样代理 MiniMax Anthropic /messages,并统一加登录态、额度和计费 */
3112
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3113
+ };
3114
+ };
3115
+ };
3116
+ };
3117
+ volcengine: {
3118
+ ark: {
3119
+ api: {
3120
+ v3: {
3121
+ responses: {
3122
+ /** 原样代理火山方舟原厂 /api/v3/responses,并统一加登录态、额度和计费 */
3123
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3124
+ };
3125
+ chat: {
3126
+ completions: {
3127
+ /** 原样代理火山方舟原厂 /api/v3/chat/completions,并统一加登录态、额度和计费 */
3128
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3129
+ };
3130
+ };
3131
+ };
3132
+ plan: {
3133
+ v3: {
3134
+ chat: {
3135
+ completions: {
3136
+ /** 平台暂未开放 Agent Plan 官方线路 */
3137
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3138
+ };
3139
+ };
3140
+ };
3141
+ v1: {
3142
+ messages: {
3143
+ /** 平台暂未开放 Agent Plan 官方线路 */
3144
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3145
+ };
3146
+ };
3147
+ };
3148
+ coding: {
3149
+ v3: {
3150
+ chat: {
3151
+ completions: {
3152
+ /** 平台暂未开放 Coding Plan 官方线路 */
3153
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3154
+ };
3155
+ };
3156
+ };
3157
+ v1: {
3158
+ messages: {
3159
+ /** 平台暂未开放 Coding Plan 官方线路 */
3160
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3161
+ };
3162
+ };
3163
+ };
1276
3164
  };
1277
3165
  };
1278
3166
  };
1279
- promptsHistroy: {
3167
+ promptsHistory: {
1280
3168
  find: {
1281
3169
  /** 分页查询提示词历史记录 */
1282
3170
  post: (body: {
@@ -1287,25 +3175,25 @@ export interface ApiClient {
1287
3175
  value?: string;
1288
3176
  version?: number;
1289
3177
  };
1290
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3178
+ }, config?: RequestConfig) => RequestBuilder<any>;
1291
3179
  };
1292
3180
  findOne: {
1293
3181
  /** 根据 ID 查询提示词历史详情 */
1294
3182
  post: (body: {
1295
3183
  id: string;
1296
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3184
+ }, config?: RequestConfig) => RequestBuilder<any>;
1297
3185
  };
1298
3186
  options: {
1299
3187
  /** 获取提示词历史版本下拉选项 */
1300
3188
  post: (body: {
1301
3189
  promptId: string;
1302
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3190
+ }, config?: RequestConfig) => RequestBuilder<any>;
1303
3191
  };
1304
3192
  rollback: {
1305
3193
  /** 将提示词回滚到指定历史版本 */
1306
3194
  post: (body: {
1307
3195
  id: string;
1308
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3196
+ }, config?: RequestConfig) => RequestBuilder<any>;
1309
3197
  };
1310
3198
  };
1311
3199
  promptTestData: {
@@ -1315,13 +3203,13 @@ export interface ApiClient {
1315
3203
  name: string;
1316
3204
  value: string;
1317
3205
  description: string;
1318
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3206
+ }, config?: RequestConfig) => RequestBuilder<any>;
1319
3207
  };
1320
3208
  delete: {
1321
3209
  /** 删除提示词测试数据 */
1322
3210
  post: (body: {
1323
3211
  id: string;
1324
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3212
+ }, config?: RequestConfig) => RequestBuilder<any>;
1325
3213
  };
1326
3214
  update: {
1327
3215
  /** 更新提示词测试数据 */
@@ -1330,7 +3218,7 @@ export interface ApiClient {
1330
3218
  name: string;
1331
3219
  value: string;
1332
3220
  description: string;
1333
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3221
+ }, config?: RequestConfig) => RequestBuilder<any>;
1334
3222
  };
1335
3223
  find: {
1336
3224
  /** 分页查询提示词测试数据列表 */
@@ -1342,17 +3230,17 @@ export interface ApiClient {
1342
3230
  value?: string;
1343
3231
  modelId?: string;
1344
3232
  };
1345
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3233
+ }, config?: RequestConfig) => RequestBuilder<any>;
1346
3234
  };
1347
3235
  findOne: {
1348
3236
  /** 根据 ID 查询提示词测试数据详情 */
1349
3237
  post: (body: {
1350
3238
  id: string;
1351
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3239
+ }, config?: RequestConfig) => RequestBuilder<any>;
1352
3240
  };
1353
3241
  options: {
1354
3242
  /** 获取提示词测试数据下拉选项 */
1355
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
3243
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1356
3244
  };
1357
3245
  };
1358
3246
  asr: {
@@ -1375,15 +3263,15 @@ export interface ApiClient {
1375
3263
  enableChannelSplit?: boolean;
1376
3264
  showUtterances?: boolean;
1377
3265
  vadSegment?: boolean;
1378
- context: unknown;
3266
+ context?: unknown;
1379
3267
  };
1380
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3268
+ }, config?: RequestConfig) => RequestBuilder<any>;
1381
3269
  };
1382
3270
  delete: {
1383
3271
  /** 删除 ASR 任务 */
1384
3272
  post: (body: {
1385
3273
  id: string;
1386
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3274
+ }, config?: RequestConfig) => RequestBuilder<any>;
1387
3275
  };
1388
3276
  find: {
1389
3277
  /** 分页查询 ASR 任务列表 */
@@ -1394,36 +3282,49 @@ export interface ApiClient {
1394
3282
  id?: string;
1395
3283
  status?: string;
1396
3284
  };
1397
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3285
+ }, config?: RequestConfig) => RequestBuilder<any>;
3286
+ };
3287
+ findOne: {
3288
+ /** 根据 ID 查询单条 ASR 任务详情 */
3289
+ post: (body: {
3290
+ id: string;
3291
+ }, config?: RequestConfig) => RequestBuilder<any>;
1398
3292
  };
1399
3293
  status: {
1400
3294
  /** 查询 ASR 任务处理状态 */
1401
3295
  post: (body: {
1402
3296
  id: string;
1403
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3297
+ }, config?: RequestConfig) => RequestBuilder<any>;
1404
3298
  };
1405
3299
  options: {
1406
3300
  status: {
1407
3301
  /** 获取 ASR 任务状态下拉选项 */
1408
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
3302
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1409
3303
  };
1410
3304
  };
1411
3305
  };
1412
3306
  tts: {
1413
3307
  create: {
1414
- /** 创建新的 TTS 任务 */
3308
+ /** 创建新的 TTS 任务;默认 V3 单向流式,长文本需显式传 synthesisMode=longText */
1415
3309
  post: (body: {
1416
- sceneKey: string;
3310
+ voiceKind: "official" | "clone" | "design";
1417
3311
  voiceType: string;
1418
3312
  text: string;
1419
- encoding?: "wav";
1420
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3313
+ encoding?: "wav" | "pcm";
3314
+ synthesisMode?: "unidirectional" | "longText";
3315
+ }, config?: RequestConfig) => RequestBuilder<any>;
3316
+ };
3317
+ status: {
3318
+ /** 查询长文本 TTS 任务处理状态(仅 synthesisMode=longText) */
3319
+ post: (body: {
3320
+ id: string;
3321
+ }, config?: RequestConfig) => RequestBuilder<any>;
1421
3322
  };
1422
3323
  delete: {
1423
3324
  /** 删除 TTS 任务 */
1424
3325
  post: (body: {
1425
3326
  id: string;
1426
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3327
+ }, config?: RequestConfig) => RequestBuilder<any>;
1427
3328
  };
1428
3329
  find: {
1429
3330
  /** 分页查询 TTS 任务列表 */
@@ -1431,22 +3332,22 @@ export interface ApiClient {
1431
3332
  current: number;
1432
3333
  pageSize: number;
1433
3334
  where: {
1434
- sceneKey?: string;
3335
+ voiceKind?: "official" | "clone" | "design";
1435
3336
  voiceType?: string;
1436
3337
  text?: string;
1437
3338
  };
1438
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3339
+ }, config?: RequestConfig) => RequestBuilder<any>;
1439
3340
  };
1440
3341
  findOne: {
1441
3342
  /** 根据 ID 查询 TTS 任务详情 */
1442
3343
  post: (body: {
1443
3344
  id: string;
1444
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3345
+ }, config?: RequestConfig) => RequestBuilder<any>;
1445
3346
  };
1446
3347
  };
1447
3348
  si: {
1448
3349
  create: {
1449
- /** 创建新的同声传译任务 */
3350
+ /** 创建新的同声传译任务(ASR → 翻译 → TTS) */
1450
3351
  post: (body: {
1451
3352
  audios: {
1452
3353
  audioFormat: "wav" | "mp3" | "ogg" | "m4a" | "aac" | "pcm";
@@ -1455,13 +3356,19 @@ export interface ApiClient {
1455
3356
  }[];
1456
3357
  language: string;
1457
3358
  modelType: 0 | 1;
1458
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3359
+ }, config?: RequestConfig) => RequestBuilder<any>;
3360
+ };
3361
+ status: {
3362
+ /** 查询同声传译任务当前状态与结果 */
3363
+ post: (body: {
3364
+ id: string;
3365
+ }, config?: RequestConfig) => RequestBuilder<any>;
1459
3366
  };
1460
3367
  delete: {
1461
3368
  /** 删除同声传译任务 */
1462
3369
  post: (body: {
1463
3370
  id: string;
1464
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3371
+ }, config?: RequestConfig) => RequestBuilder<any>;
1465
3372
  };
1466
3373
  find: {
1467
3374
  /** 分页查询同声传译任务列表 */
@@ -1469,31 +3376,79 @@ export interface ApiClient {
1469
3376
  current: number;
1470
3377
  pageSize: number;
1471
3378
  where: {
1472
- name?: string;
1473
- value?: string;
1474
- version?: number;
1475
- modelId?: string;
1476
- providerId?: string;
3379
+ speakerID?: string;
3380
+ language?: string;
1477
3381
  status?: string;
1478
3382
  };
1479
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3383
+ }, config?: RequestConfig) => RequestBuilder<any>;
1480
3384
  };
1481
3385
  findOne: {
1482
3386
  /** 根据 ID 查询同声传译任务详情 */
1483
3387
  post: (body: {
1484
3388
  id: string;
1485
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3389
+ }, config?: RequestConfig) => RequestBuilder<any>;
3390
+ };
3391
+ };
3392
+ realtimeSpeech: {
3393
+ session: {
3394
+ create: {
3395
+ /** 创建实时语音交互会话(complete 时扣费) */
3396
+ post: (body: {
3397
+ language?: string;
3398
+ modelType?: 0 | 1;
3399
+ }, config?: RequestConfig) => RequestBuilder<any>;
3400
+ };
3401
+ complete: {
3402
+ /** 提交上游 usage 并完成实时语音扣费 */
3403
+ post: (body: {
3404
+ id: string;
3405
+ usage: {
3406
+ inputAudioTokens: number;
3407
+ outputTextTokens: number;
3408
+ outputAudioTokens: number;
3409
+ inputAudioCachedTokens?: number;
3410
+ };
3411
+ }, config?: RequestConfig) => RequestBuilder<any>;
3412
+ };
3413
+ };
3414
+ find: {
3415
+ /** 分页查询实时语音会话 */
3416
+ post: (body: {
3417
+ current: number;
3418
+ pageSize: number;
3419
+ where: {
3420
+ sessionId?: string;
3421
+ status?: string;
3422
+ };
3423
+ }, config?: RequestConfig) => RequestBuilder<any>;
3424
+ };
3425
+ findOne: {
3426
+ /** 根据 ID 查询实时语音会话详情 */
3427
+ post: (body: {
3428
+ id: string;
3429
+ }, config?: RequestConfig) => RequestBuilder<any>;
1486
3430
  };
1487
3431
  };
1488
3432
  copyVoice: {
1489
3433
  create: {
1490
- /** 创建新的声音复刻任务 */
3434
+ /** 创建新的声音复刻任务(调用火山引擎下单) */
1491
3435
  post: (body: {
1492
3436
  name: string;
1493
3437
  tags: string[];
1494
3438
  times: number;
1495
3439
  description?: string;
1496
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3440
+ }, config?: RequestConfig) => RequestBuilder<any>;
3441
+ speakerID: {
3442
+ /** 通过已有的 speakerID 创建声音复刻记录 */
3443
+ post: (body: {
3444
+ name: string;
3445
+ tags: string[];
3446
+ times: number;
3447
+ description?: string;
3448
+ speakerID: string;
3449
+ orderID: string;
3450
+ }, config?: RequestConfig) => RequestBuilder<any>;
3451
+ };
1497
3452
  };
1498
3453
  update: {
1499
3454
  /** 更新声音复刻信息 */
@@ -1502,7 +3457,7 @@ export interface ApiClient {
1502
3457
  name: string;
1503
3458
  tags: string[];
1504
3459
  description?: string;
1505
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3460
+ }, config?: RequestConfig) => RequestBuilder<any>;
1506
3461
  };
1507
3462
  find: {
1508
3463
  /** 分页查询声音复刻任务列表 */
@@ -1514,20 +3469,103 @@ export interface ApiClient {
1514
3469
  speakerID?: string;
1515
3470
  status?: string;
1516
3471
  };
1517
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3472
+ }, config?: RequestConfig) => RequestBuilder<any>;
1518
3473
  };
1519
3474
  findOne: {
1520
3475
  /** 根据 ID 查询声音复刻详情 */
1521
3476
  post: (body: {
1522
3477
  id: string;
1523
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3478
+ }, config?: RequestConfig) => RequestBuilder<any>;
1524
3479
  };
1525
3480
  options: {
1526
3481
  /** 获取声音复刻下拉选项 */
1527
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
3482
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1528
3483
  status: {
1529
3484
  /** 获取声音复刻状态下拉选项 */
1530
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
3485
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3486
+ };
3487
+ };
3488
+ trains: {
3489
+ /** 上传音频文件进行声音复刻训练 */
3490
+ post: (body: {
3491
+ id: string;
3492
+ audios: {
3493
+ audioFormat: "wav" | "mp3" | "ogg" | "m4a" | "aac" | "pcm";
3494
+ audioBytes: string;
3495
+ text?: string;
3496
+ }[];
3497
+ language: number;
3498
+ }, config?: RequestConfig) => RequestBuilder<any>;
3499
+ };
3500
+ status: {
3501
+ /** 查询声音复刻的训练状态 */
3502
+ post: (body: {
3503
+ speakerID: string;
3504
+ }, config?: RequestConfig) => RequestBuilder<any>;
3505
+ };
3506
+ };
3507
+ voiceDesign: {
3508
+ create: {
3509
+ /** 下单购买音色槽位,用于后续音色设计 */
3510
+ post: (body: {
3511
+ name: string;
3512
+ tags: string[];
3513
+ times: number;
3514
+ description?: string;
3515
+ }, config?: RequestConfig) => RequestBuilder<any>;
3516
+ };
3517
+ design: {
3518
+ /** 基于文本/图片提示词设计音色并生成试听 */
3519
+ post: (body: {
3520
+ id: string;
3521
+ previewText: string;
3522
+ textPrompt?: string;
3523
+ language?: 0 | 1;
3524
+ imagePrompt?: {
3525
+ imageUrl?: string;
3526
+ imageBytes?: string;
3527
+ };
3528
+ }, config?: RequestConfig) => RequestBuilder<any>;
3529
+ };
3530
+ update: {
3531
+ /** 更新音色设计名称、标签与描述 */
3532
+ post: (body: {
3533
+ id: string;
3534
+ name: string;
3535
+ tags: string[];
3536
+ description?: string;
3537
+ }, config?: RequestConfig) => RequestBuilder<any>;
3538
+ };
3539
+ find: {
3540
+ /** 分页查询音色设计任务 */
3541
+ post: (body: {
3542
+ current: number;
3543
+ pageSize: number;
3544
+ where: {
3545
+ name?: string;
3546
+ speakerID?: string;
3547
+ status?: string;
3548
+ };
3549
+ }, config?: RequestConfig) => RequestBuilder<any>;
3550
+ };
3551
+ findOne: {
3552
+ /** 根据 ID 查询音色设计详情 */
3553
+ post: (body: {
3554
+ id: string;
3555
+ }, config?: RequestConfig) => RequestBuilder<any>;
3556
+ };
3557
+ status: {
3558
+ /** 从上游刷新 SpeakerID 状态 */
3559
+ post: (body: {
3560
+ id: string;
3561
+ }, config?: RequestConfig) => RequestBuilder<any>;
3562
+ };
3563
+ options: {
3564
+ /** 获取音色设计下拉选项 */
3565
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3566
+ status: {
3567
+ /** 获取音色设计状态下拉选项 */
3568
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1531
3569
  };
1532
3570
  };
1533
3571
  };
@@ -1542,13 +3580,13 @@ export interface ApiClient {
1542
3580
  status: "enabled" | "disabled";
1543
3581
  providers: string[];
1544
3582
  description: string;
1545
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3583
+ }, config?: RequestConfig) => RequestBuilder<any>;
1546
3584
  };
1547
3585
  delete: {
1548
3586
  /** 删除音色类型 */
1549
3587
  post: (body: {
1550
3588
  id: string;
1551
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3589
+ }, config?: RequestConfig) => RequestBuilder<any>;
1552
3590
  };
1553
3591
  update: {
1554
3592
  /** 更新音色信息 */
@@ -1561,7 +3599,7 @@ export interface ApiClient {
1561
3599
  status: "enabled" | "disabled";
1562
3600
  providers: string[];
1563
3601
  description: string;
1564
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3602
+ }, config?: RequestConfig) => RequestBuilder<any>;
1565
3603
  };
1566
3604
  find: {
1567
3605
  /** 分页查询音色类型列表 */
@@ -1576,22 +3614,24 @@ export interface ApiClient {
1576
3614
  providerId?: string;
1577
3615
  status?: string;
1578
3616
  };
1579
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3617
+ }, config?: RequestConfig) => RequestBuilder<any>;
1580
3618
  };
1581
3619
  findOne: {
1582
3620
  /** 根据 ID 查询音色详情 */
1583
3621
  post: (body: {
1584
3622
  id: string;
1585
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3623
+ }, config?: RequestConfig) => RequestBuilder<any>;
1586
3624
  };
1587
3625
  options: {
1588
3626
  /** 获取音色下拉选项 */
1589
3627
  post: (body: {
1590
- sceneKey?: string;
1591
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
1592
- voiceScene: {
1593
- /** 获取音色场景下拉选项 */
1594
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
3628
+ voiceKind?: "official" | "clone" | "design";
3629
+ category?: string;
3630
+ resourceId?: string;
3631
+ }, config?: RequestConfig) => RequestBuilder<any>;
3632
+ categories: {
3633
+ /** 聚合 ListSpeakers 返回的分类列表 */
3634
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1595
3635
  };
1596
3636
  };
1597
3637
  };
@@ -1606,7 +3646,7 @@ export interface ApiClient {
1606
3646
  text?: string;
1607
3647
  }[];
1608
3648
  language: number;
1609
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3649
+ }, config?: RequestConfig) => RequestBuilder<any>;
1610
3650
  };
1611
3651
  find: {
1612
3652
  /** 分页查询声音训练任务列表 */
@@ -1618,72 +3658,101 @@ export interface ApiClient {
1618
3658
  language?: number;
1619
3659
  status?: number;
1620
3660
  };
1621
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3661
+ }, config?: RequestConfig) => RequestBuilder<any>;
1622
3662
  };
1623
3663
  findOne: {
1624
3664
  /** 根据 ID 查询声音训练任务详情 */
1625
3665
  post: (body: {
1626
3666
  id: string;
1627
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
1628
- };
1629
- options: {
1630
- status: {
1631
- /** 获取声音训练状态下拉选项 */
1632
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
1633
- };
1634
- language: {
1635
- /** 获取声音训练语言下拉选项 */
1636
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
1637
- };
3667
+ }, config?: RequestConfig) => RequestBuilder<any>;
3668
+ };
3669
+ options: {
3670
+ status: {
3671
+ /** 获取声音训练状态下拉选项 */
3672
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3673
+ };
3674
+ language: {
3675
+ /** 获取声音训练语言下拉选项 */
3676
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3677
+ };
3678
+ };
3679
+ };
3680
+ copyVoiceRenew: {
3681
+ create: {
3682
+ /** 创建声音复刻续期申请(调用火山引擎续费 API) */
3683
+ post: (body: {
3684
+ copyVoiceId: string;
3685
+ times: number;
3686
+ }, config?: RequestConfig) => RequestBuilder<any>;
3687
+ };
3688
+ find: {
3689
+ /** 分页查询声音复刻续期列表 */
3690
+ post: (body: {
3691
+ current: number;
3692
+ pageSize: number;
3693
+ where: {
3694
+ speakerID?: string;
3695
+ copyVoiceId?: string;
3696
+ status?: string;
3697
+ };
3698
+ }, config?: RequestConfig) => RequestBuilder<any>;
3699
+ };
3700
+ findOne: {
3701
+ /** 根据 ID 查询声音复刻续期详情 */
3702
+ post: (body: {
3703
+ id: string;
3704
+ }, config?: RequestConfig) => RequestBuilder<any>;
1638
3705
  };
1639
3706
  };
1640
- copyVoiceRenew: {
3707
+ voiceDesignRenew: {
1641
3708
  create: {
1642
- /** 创建声音复刻续期申请 */
3709
+ /** 创建音色设计续期申请(调用火山引擎续费 API) */
1643
3710
  post: (body: {
1644
- copyVoiceId: string;
3711
+ voiceDesignId: string;
1645
3712
  times: number;
1646
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3713
+ }, config?: RequestConfig) => RequestBuilder<any>;
1647
3714
  };
1648
3715
  find: {
1649
- /** 分页查询声音复刻续期列表 */
3716
+ /** 分页查询音色设计续期列表 */
1650
3717
  post: (body: {
1651
3718
  current: number;
1652
3719
  pageSize: number;
1653
3720
  where: {
1654
3721
  speakerID?: string;
1655
- copyVoiceId?: string;
3722
+ voiceDesignId?: string;
1656
3723
  status?: string;
1657
3724
  };
1658
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3725
+ }, config?: RequestConfig) => RequestBuilder<any>;
1659
3726
  };
1660
3727
  findOne: {
1661
- /** 根据 ID 查询声音复刻续期详情 */
3728
+ /** 根据 ID 查询音色设计续期详情 */
1662
3729
  post: (body: {
1663
3730
  id: string;
1664
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3731
+ }, config?: RequestConfig) => RequestBuilder<any>;
1665
3732
  };
1666
3733
  };
1667
3734
  imageGeneration: {
1668
3735
  create: {
1669
- /** 创建新的图片生成任务 */
3736
+ /** 创建新的图片生成任务(火山方舟,后台异步处理) */
1670
3737
  post: (body: {
1671
3738
  model: string;
1672
3739
  prompt: string;
1673
3740
  sizeType?: "resolution" | "pixel";
1674
- size?: "1K" | "2K" | "4K";
3741
+ size?: "1K" | "2K" | "3K" | "4K";
1675
3742
  width?: number;
1676
3743
  height?: number;
1677
3744
  watermark?: boolean;
1678
- guidanceScale?: number;
1679
- seed?: number;
1680
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3745
+ outputFormat?: "png" | "jpeg";
3746
+ referenceImageUrls?: string[];
3747
+ sequentialImageGeneration?: "disabled" | "auto";
3748
+ maxImages?: number;
3749
+ }, config?: RequestConfig) => RequestBuilder<any>;
1681
3750
  };
1682
3751
  delete: {
1683
3752
  /** 删除图片生成任务 */
1684
3753
  post: (body: {
1685
3754
  id: string;
1686
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3755
+ }, config?: RequestConfig) => RequestBuilder<any>;
1687
3756
  };
1688
3757
  find: {
1689
3758
  /** 分页查询图片生成任务列表 */
@@ -1693,18 +3762,28 @@ export interface ApiClient {
1693
3762
  where: {
1694
3763
  prompt?: string;
1695
3764
  };
1696
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3765
+ }, config?: RequestConfig) => RequestBuilder<any>;
1697
3766
  };
1698
3767
  findOne: {
1699
3768
  /** 根据 ID 查询图片生成任务详情 */
1700
3769
  post: (body: {
1701
3770
  id: string;
1702
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3771
+ }, config?: RequestConfig) => RequestBuilder<any>;
3772
+ };
3773
+ options: {
3774
+ status: {
3775
+ /** 获取图片生成任务状态下拉选项 */
3776
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3777
+ };
3778
+ model: {
3779
+ /** 获取豆包 Seedream 图片模型下拉选项 */
3780
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3781
+ };
1703
3782
  };
1704
3783
  };
1705
3784
  videoGeneration: {
1706
3785
  create: {
1707
- /** 创建新的视频生成任务 */
3786
+ /** 创建新的视频生成任务(提交不扣费,请轮询 /status) */
1708
3787
  post: (body: {
1709
3788
  model?: string;
1710
3789
  prompt: string;
@@ -1715,13 +3794,19 @@ export interface ApiClient {
1715
3794
  personGeneration?: string;
1716
3795
  numberOfVideos?: number;
1717
3796
  seed?: number;
1718
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3797
+ }, config?: RequestConfig) => RequestBuilder<any>;
3798
+ };
3799
+ status: {
3800
+ /** 查询 Veo 任务状态 */
3801
+ post: (body: {
3802
+ id: string;
3803
+ }, config?: RequestConfig) => RequestBuilder<any>;
1719
3804
  };
1720
3805
  delete: {
1721
3806
  /** 删除视频生成任务 */
1722
3807
  post: (body: {
1723
3808
  id: string;
1724
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3809
+ }, config?: RequestConfig) => RequestBuilder<any>;
1725
3810
  };
1726
3811
  find: {
1727
3812
  /** 分页查询视频生成任务列表 */
@@ -1732,43 +3817,175 @@ export interface ApiClient {
1732
3817
  prompt?: string;
1733
3818
  status?: string;
1734
3819
  };
1735
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3820
+ }, config?: RequestConfig) => RequestBuilder<any>;
1736
3821
  };
1737
3822
  findOne: {
1738
3823
  /** 根据 ID 查询视频生成任务详情 */
1739
3824
  post: (body: {
1740
3825
  id: string;
1741
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3826
+ }, config?: RequestConfig) => RequestBuilder<any>;
1742
3827
  };
1743
3828
  refresh: {
1744
- /** 刷新视频生成任务状态 */
3829
+ /** 刷新视频生成任务状态(不扣费) */
1745
3830
  post: (body: {
1746
3831
  id: string;
1747
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3832
+ }, config?: RequestConfig) => RequestBuilder<any>;
1748
3833
  };
1749
3834
  options: {
1750
3835
  status: {
1751
3836
  /** 获取视频生成任务状态下拉选项 */
1752
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
3837
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3838
+ };
3839
+ model: {
3840
+ /** 获取 Google Veo 视频模型下拉选项 */
3841
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3842
+ };
3843
+ };
3844
+ progress: {
3845
+ ':id': {
3846
+ /** 通过 SSE 实时获取视频生成任务进度(需登录,仅任务创建者可访问) */
3847
+ get: (config?: RequestConfig) => RequestBuilder<any>;
3848
+ };
3849
+ };
3850
+ };
3851
+ seedanceVideoGeneration: {
3852
+ create: {
3853
+ /** 提交火山方舟 Seedance 异步视频任务 */
3854
+ post: (body: {
3855
+ model: string;
3856
+ content: unknown[];
3857
+ ratio?: string;
3858
+ duration?: number;
3859
+ resolution?: string;
3860
+ watermark?: boolean;
3861
+ generate_audio?: boolean;
3862
+ seed?: number;
3863
+ service_tier?: string;
3864
+ }, config?: RequestConfig) => RequestBuilder<any>;
3865
+ };
3866
+ status: {
3867
+ /** 轮询火山方舟任务状态 */
3868
+ post: (body: {
3869
+ id: string;
3870
+ }, config?: RequestConfig) => RequestBuilder<any>;
3871
+ };
3872
+ refresh: {
3873
+ /** 轮询上游任务状态 */
3874
+ post: (body: {
3875
+ id: string;
3876
+ }, config?: RequestConfig) => RequestBuilder<any>;
3877
+ };
3878
+ delete: {
3879
+ /** 删除 Seedance 视频任务记录 */
3880
+ post: (body: {
3881
+ id: string;
3882
+ }, config?: RequestConfig) => RequestBuilder<any>;
3883
+ };
3884
+ find: {
3885
+ /** 分页查询 Seedance 视频任务 */
3886
+ post: (body: {
3887
+ current: number;
3888
+ pageSize: number;
3889
+ where: {
3890
+ prompt?: string;
3891
+ status?: string;
3892
+ };
3893
+ }, config?: RequestConfig) => RequestBuilder<any>;
3894
+ };
3895
+ findOne: {
3896
+ /** 查询单条 Seedance 视频任务 */
3897
+ post: (body: {
3898
+ id: string;
3899
+ }, config?: RequestConfig) => RequestBuilder<any>;
3900
+ };
3901
+ options: {
3902
+ status: {
3903
+ /** 获取 Seedance 视频任务状态下拉选项 */
3904
+ post: (config?: RequestConfig) => RequestBuilder<any>;
3905
+ };
3906
+ };
3907
+ };
3908
+ mesh3dGeneration: {
3909
+ create: {
3910
+ /** 提交火山方舟 3D 异步生成任务 */
3911
+ post: (body: {
3912
+ model: string;
3913
+ content: unknown[];
3914
+ subdivision_level?: string;
3915
+ file_format?: string;
3916
+ seed?: number;
3917
+ }, config?: RequestConfig) => RequestBuilder<any>;
3918
+ };
3919
+ status: {
3920
+ /** 轮询火山方舟 3D 任务状态 */
3921
+ post: (body: {
3922
+ id: string;
3923
+ }, config?: RequestConfig) => RequestBuilder<any>;
3924
+ };
3925
+ refresh: {
3926
+ /** 轮询上游 3D 任务状态 */
3927
+ post: (body: {
3928
+ id: string;
3929
+ }, config?: RequestConfig) => RequestBuilder<any>;
3930
+ };
3931
+ delete: {
3932
+ /** 删除 3D 生成任务记录 */
3933
+ post: (body: {
3934
+ id: string;
3935
+ }, config?: RequestConfig) => RequestBuilder<any>;
3936
+ };
3937
+ find: {
3938
+ /** 分页查询 3D 生成任务 */
3939
+ post: (body: {
3940
+ current: number;
3941
+ pageSize: number;
3942
+ where: {
3943
+ prompt?: string;
3944
+ status?: string;
3945
+ supplierId?: string;
3946
+ model?: string;
3947
+ };
3948
+ }, config?: RequestConfig) => RequestBuilder<any>;
3949
+ };
3950
+ findOne: {
3951
+ /** 查询单条 3D 生成任务 */
3952
+ post: (body: {
3953
+ id: string;
3954
+ }, config?: RequestConfig) => RequestBuilder<any>;
3955
+ };
3956
+ options: {
3957
+ status: {
3958
+ /** 获取 3D 生成任务状态下拉选项 */
3959
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1753
3960
  };
1754
3961
  };
1755
3962
  };
1756
3963
  geminiImage: {
1757
3964
  create: {
1758
- /** 创建 Gemini 图片生成任务 */
3965
+ /** LLM Proxy 异步生成 Gemini 图片(提交不扣费,请轮询 /status) */
1759
3966
  post: (body: {
1760
3967
  model?: string;
1761
3968
  prompt: string;
1762
3969
  negativePrompt?: string;
1763
3970
  aspectRatio?: string;
1764
3971
  numberOfImages?: number;
1765
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3972
+ personGeneration?: string;
3973
+ resolution?: string;
3974
+ referenceImageBase64?: string;
3975
+ referenceImageMimeType?: string;
3976
+ }, config?: RequestConfig) => RequestBuilder<any>;
3977
+ };
3978
+ status: {
3979
+ /** 查询 Gemini 生图任务状态 */
3980
+ post: (body: {
3981
+ id: string;
3982
+ }, config?: RequestConfig) => RequestBuilder<any>;
1766
3983
  };
1767
3984
  delete: {
1768
3985
  /** 删除 Gemini 图片生成任务 */
1769
3986
  post: (body: {
1770
3987
  id: string;
1771
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3988
+ }, config?: RequestConfig) => RequestBuilder<any>;
1772
3989
  };
1773
3990
  find: {
1774
3991
  /** 分页查询 Gemini 图片列表 */
@@ -1779,45 +3996,610 @@ export interface ApiClient {
1779
3996
  prompt?: string;
1780
3997
  status?: string;
1781
3998
  };
1782
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
3999
+ }, config?: RequestConfig) => RequestBuilder<any>;
1783
4000
  };
1784
4001
  findOne: {
1785
4002
  /** 根据 ID 查询 Gemini 图片详情 */
1786
4003
  post: (body: {
1787
4004
  id: string;
1788
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
4005
+ }, config?: RequestConfig) => RequestBuilder<any>;
1789
4006
  };
1790
4007
  options: {
1791
4008
  status: {
1792
4009
  /** 获取 Gemini 图片状态下拉选项 */
1793
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
4010
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1794
4011
  };
1795
4012
  model: {
1796
4013
  /** 获取 Gemini 图片模型下拉选项 */
1797
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
4014
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1798
4015
  };
1799
4016
  aspectRatio: {
1800
4017
  /** 获取 Gemini 图片宽高比下拉选项 */
1801
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
4018
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1802
4019
  };
1803
4020
  resolution: {
1804
4021
  /** 获取 Gemini 图片分辨率下拉选项 */
1805
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
4022
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4023
+ };
4024
+ };
4025
+ };
4026
+ billing: {
4027
+ balance: {
4028
+ /** 查询用户积分余额 */
4029
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
4030
+ };
4031
+ estimate: {
4032
+ /** 根据 token 数量预估费用 */
4033
+ post: (body: {
4034
+ model: string;
4035
+ promptTokens: number;
4036
+ completionTokens: number;
4037
+ }, config?: RequestConfig) => RequestBuilder<any>;
4038
+ };
4039
+ usage: {
4040
+ stats: {
4041
+ /** 统计用户的 AI 使用情况 */
4042
+ post: (body: {
4043
+ userId?: string;
4044
+ model?: string;
4045
+ supplierId?: string;
4046
+ profileId?: string;
4047
+ protocolId?: string;
4048
+ startTime?: string;
4049
+ endTime?: string;
4050
+ }, config?: RequestConfig) => RequestBuilder<any>;
4051
+ };
4052
+ list: {
4053
+ /** 查询用户的 AI 使用记录 */
4054
+ post: (body: {
4055
+ userId?: string;
4056
+ model?: string;
4057
+ supplierId?: string;
4058
+ profileId?: string;
4059
+ protocolId?: string;
4060
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
4061
+ id?: string;
4062
+ requestId?: string;
4063
+ referenceId?: string;
4064
+ startTime?: string;
4065
+ endTime?: string;
4066
+ page?: number;
4067
+ pageSize?: number;
4068
+ }, config?: RequestConfig) => RequestBuilder<any>;
4069
+ };
4070
+ };
4071
+ trace: {
4072
+ reference: {
4073
+ /** 按 referenceId 查询用量与积分流水 */
4074
+ post: (body: {
4075
+ referenceId: string;
4076
+ serviceKey?: string;
4077
+ }, config?: RequestConfig) => RequestBuilder<any>;
4078
+ };
4079
+ };
4080
+ };
4081
+ modelCatalog: {
4082
+ suppliers: {
4083
+ list: {
4084
+ post: (body: {
4085
+ enabledOnly?: boolean;
4086
+ supplierKind?: "agent_vendor" | "agent_proxy";
4087
+ agentVendorOnly?: boolean;
4088
+ }, config?: RequestConfig) => RequestBuilder<any>;
4089
+ };
4090
+ upsert: {
4091
+ post: (body: {
4092
+ supplierId: string;
4093
+ name: string;
4094
+ supplierKind: "agent_vendor" | "agent_proxy";
4095
+ enabled?: boolean;
4096
+ description?: string;
4097
+ platformUpstream: "direct" | "proxy_railway";
4098
+ downstreamAccessModes: "official" | "self_key"[];
4099
+ }, config?: RequestConfig) => RequestBuilder<any>;
4100
+ };
4101
+ delete: {
4102
+ post: (body: {
4103
+ supplierId: string;
4104
+ }, config?: RequestConfig) => RequestBuilder<any>;
4105
+ };
4106
+ };
4107
+ protocols: {
4108
+ find: {
4109
+ post: (body: {
4110
+ page?: number;
4111
+ pageSize?: number;
4112
+ supplierId?: string;
4113
+ keyword?: string;
4114
+ enabled?: boolean;
4115
+ chatRuntimeEnabled?: boolean;
4116
+ method?: "POST" | "GET";
4117
+ }, config?: RequestConfig) => RequestBuilder<any>;
4118
+ };
4119
+ listBySupplier: {
4120
+ post: (body: {
4121
+ supplierId: string;
4122
+ enabledOnly?: boolean;
4123
+ }, config?: RequestConfig) => RequestBuilder<any>;
4124
+ };
4125
+ create: {
4126
+ post: (body: {
4127
+ protocolId: string;
4128
+ supplierId: string;
4129
+ name: string;
4130
+ baseUrl: string;
4131
+ path: string;
4132
+ chatRuntimeProtocol?: string;
4133
+ method?: "POST" | "GET";
4134
+ docUrl?: string;
4135
+ description?: string;
4136
+ enabled?: boolean;
4137
+ }, config?: RequestConfig) => RequestBuilder<any>;
4138
+ };
4139
+ update: {
4140
+ post: (body: {
4141
+ protocolId: string;
4142
+ supplierId?: string;
4143
+ name?: string;
4144
+ baseUrl?: string;
4145
+ path?: string;
4146
+ chatRuntimeProtocol?: string;
4147
+ method?: "POST" | "GET";
4148
+ docUrl?: string;
4149
+ description?: string;
4150
+ enabled?: boolean;
4151
+ }, config?: RequestConfig) => RequestBuilder<any>;
4152
+ };
4153
+ delete: {
4154
+ post: (body: {
4155
+ protocolId: string;
4156
+ }, config?: RequestConfig) => RequestBuilder<any>;
4157
+ };
4158
+ supplierOptions: {
4159
+ /** 协议管理筛选用供应商全量(key/label) */
4160
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4161
+ };
4162
+ protocolOptions: {
4163
+ /** 按供应商加载接入协议选项(key/label) */
4164
+ post: (body: {
4165
+ supplierId: string;
4166
+ enabledOnly?: boolean;
4167
+ }, config?: RequestConfig) => RequestBuilder<any>;
4168
+ };
4169
+ };
4170
+ profiles: {
4171
+ find: {
4172
+ post: (body: {
4173
+ page?: number;
4174
+ pageSize?: number;
4175
+ referenceVendor?: string;
4176
+ family?: string;
4177
+ tag?: string;
4178
+ keyword?: string;
4179
+ status?: "active" | "deprecated";
4180
+ inputType?: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
4181
+ outputType?: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
4182
+ }, config?: RequestConfig) => RequestBuilder<any>;
4183
+ };
4184
+ listBrief: {
4185
+ post: (body: {
4186
+ enabledOnly?: boolean;
4187
+ }, config?: RequestConfig) => RequestBuilder<any>;
4188
+ };
4189
+ referenceVendorOptions: {
4190
+ /** 模型信息筛选用原厂供应商全量(key/label) */
4191
+ post: (body: {
4192
+ enabledOnly?: boolean;
4193
+ }, config?: RequestConfig) => RequestBuilder<any>;
4194
+ };
4195
+ create: {
4196
+ post: (body: {
4197
+ profileId: string;
4198
+ referenceVendor: string;
4199
+ name: string;
4200
+ family?: string;
4201
+ tags?: string[];
4202
+ description?: string;
4203
+ capabilities: {
4204
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
4205
+ inputTypes: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d"[];
4206
+ outputType: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
4207
+ rateLimits?: {
4208
+ tpmPerMinute?: number;
4209
+ rpmPerMinute?: number;
4210
+ qpmPerMinute?: number;
4211
+ ipmPerMinute?: number;
4212
+ maxConcurrency?: number;
4213
+ };
4214
+ text?: {
4215
+ contextWindow?: number;
4216
+ maxInputTokens?: number;
4217
+ maxOutputTokens?: number;
4218
+ maxThinkingTokens?: number;
4219
+ };
4220
+ image?: {
4221
+ minWidth?: number;
4222
+ minHeight?: number;
4223
+ maxWidth?: number;
4224
+ maxHeight?: number;
4225
+ maxImagesPerRequest?: number;
4226
+ supportedAspectRatios?: string[];
4227
+ supportsInpainting?: boolean;
4228
+ };
4229
+ video?: {
4230
+ supportedResolutions?: string[];
4231
+ maxFps?: number;
4232
+ maxDurationSeconds?: number;
4233
+ minDurationSeconds?: number;
4234
+ supportedAspectRatios?: string[];
4235
+ supportsImageToVideo?: boolean;
4236
+ supportsVideoExtend?: boolean;
4237
+ };
4238
+ mesh3d?: {
4239
+ supportsImageTo3d?: boolean;
4240
+ outputFormats?: string[];
4241
+ maxPolygons?: number;
4242
+ };
4243
+ speech?: {
4244
+ mode: "tts" | "asr";
4245
+ billingMode?: "token_io" | "inference_chars" | "inference_hour" | "realtime_duplex";
4246
+ };
4247
+ embedding?: {
4248
+ contextWindow?: number;
4249
+ dimensions?: number;
4250
+ maxInputTokens?: number;
4251
+ maxBatchSize?: number;
4252
+ normalization?: "l2" | "none";
4253
+ };
4254
+ webSearchDetail?: {
4255
+ maxResults?: number;
4256
+ };
4257
+ thinking?: boolean;
4258
+ structuredOutput?: boolean;
4259
+ contextCache?: boolean;
4260
+ onlineInference?: boolean;
4261
+ lowLatencyInference?: boolean;
4262
+ batchInference?: boolean;
4263
+ fineTuning?: boolean;
4264
+ toolUse?: boolean;
4265
+ webSearch?: boolean;
4266
+ knowledgeBase?: boolean;
4267
+ mcp?: boolean;
4268
+ };
4269
+ status?: "active" | "deprecated";
4270
+ }, config?: RequestConfig) => RequestBuilder<any>;
4271
+ };
4272
+ update: {
4273
+ post: (body: {
4274
+ profileId: string;
4275
+ referenceVendor?: string;
4276
+ name?: string;
4277
+ family?: string;
4278
+ tags?: string[];
4279
+ description?: string;
4280
+ capabilities?: {
4281
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
4282
+ inputTypes: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d"[];
4283
+ outputType: "text" | "image" | "audio" | "video" | "embedding" | "mesh_3d";
4284
+ rateLimits?: {
4285
+ tpmPerMinute?: number;
4286
+ rpmPerMinute?: number;
4287
+ qpmPerMinute?: number;
4288
+ ipmPerMinute?: number;
4289
+ maxConcurrency?: number;
4290
+ };
4291
+ text?: {
4292
+ contextWindow?: number;
4293
+ maxInputTokens?: number;
4294
+ maxOutputTokens?: number;
4295
+ maxThinkingTokens?: number;
4296
+ };
4297
+ image?: {
4298
+ minWidth?: number;
4299
+ minHeight?: number;
4300
+ maxWidth?: number;
4301
+ maxHeight?: number;
4302
+ maxImagesPerRequest?: number;
4303
+ supportedAspectRatios?: string[];
4304
+ supportsInpainting?: boolean;
4305
+ };
4306
+ video?: {
4307
+ supportedResolutions?: string[];
4308
+ maxFps?: number;
4309
+ maxDurationSeconds?: number;
4310
+ minDurationSeconds?: number;
4311
+ supportedAspectRatios?: string[];
4312
+ supportsImageToVideo?: boolean;
4313
+ supportsVideoExtend?: boolean;
4314
+ };
4315
+ mesh3d?: {
4316
+ supportsImageTo3d?: boolean;
4317
+ outputFormats?: string[];
4318
+ maxPolygons?: number;
4319
+ };
4320
+ speech?: {
4321
+ mode: "tts" | "asr";
4322
+ billingMode?: "token_io" | "inference_chars" | "inference_hour" | "realtime_duplex";
4323
+ };
4324
+ embedding?: {
4325
+ contextWindow?: number;
4326
+ dimensions?: number;
4327
+ maxInputTokens?: number;
4328
+ maxBatchSize?: number;
4329
+ normalization?: "l2" | "none";
4330
+ };
4331
+ webSearchDetail?: {
4332
+ maxResults?: number;
4333
+ };
4334
+ thinking?: boolean;
4335
+ structuredOutput?: boolean;
4336
+ contextCache?: boolean;
4337
+ onlineInference?: boolean;
4338
+ lowLatencyInference?: boolean;
4339
+ batchInference?: boolean;
4340
+ fineTuning?: boolean;
4341
+ toolUse?: boolean;
4342
+ webSearch?: boolean;
4343
+ knowledgeBase?: boolean;
4344
+ mcp?: boolean;
4345
+ };
4346
+ status?: "active" | "deprecated";
4347
+ }, config?: RequestConfig) => RequestBuilder<any>;
4348
+ };
4349
+ delete: {
4350
+ post: (body: {
4351
+ profileId: string;
4352
+ }, config?: RequestConfig) => RequestBuilder<any>;
4353
+ };
4354
+ };
4355
+ offerings: {
4356
+ supplierOptions: {
4357
+ /** 管理后台筛选用供应商全量(key/label) */
4358
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4359
+ };
4360
+ profileOptions: {
4361
+ /** 管理后台筛选用模型信息全量(key/label) */
4362
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4363
+ };
4364
+ modelOptions: {
4365
+ /** 管理后台筛选用计费标识全量(key/label/value,支持联动筛选) */
4366
+ post: (body: {
4367
+ supplierId?: string;
4368
+ profileId?: string;
4369
+ protocolId?: string;
4370
+ tag?: string;
4371
+ enabled?: boolean;
4372
+ }, config?: RequestConfig) => RequestBuilder<any>;
4373
+ };
4374
+ };
4375
+ models: {
4376
+ find: {
4377
+ post: (body: {
4378
+ page?: number;
4379
+ pageSize?: number;
4380
+ profileId?: string;
4381
+ referenceVendor?: string;
4382
+ supplierId?: string;
4383
+ supplierKind?: "agent_vendor" | "agent_proxy";
4384
+ protocolId?: string;
4385
+ tag?: string;
4386
+ productLine?: "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
4387
+ keyword?: string;
4388
+ enabled?: boolean;
4389
+ platformAvailable?: boolean;
4390
+ }, config?: RequestConfig) => RequestBuilder<any>;
4391
+ };
4392
+ unconfigured: {
4393
+ post: (body: {
4394
+ supplierId?: string;
4395
+ supplierKind?: "agent_vendor" | "agent_proxy";
4396
+ }, config?: RequestConfig) => RequestBuilder<any>;
4397
+ };
4398
+ create: {
4399
+ post: (body: {
4400
+ profileId: string;
4401
+ supplierId: string;
4402
+ protocolId: string;
4403
+ providerModelId: string;
4404
+ name?: string;
4405
+ version?: string;
4406
+ status?: "active" | "deprecated";
4407
+ enabled?: boolean;
4408
+ description?: string;
4409
+ }, config?: RequestConfig) => RequestBuilder<any>;
4410
+ };
4411
+ update: {
4412
+ post: (body: {
4413
+ modelId: string;
4414
+ supplierId?: string;
4415
+ profileId?: string;
4416
+ protocolId?: string;
4417
+ providerModelId?: string;
4418
+ name?: string;
4419
+ version?: string;
4420
+ status?: "active" | "deprecated";
4421
+ enabled?: boolean;
4422
+ description?: string;
4423
+ }, config?: RequestConfig) => RequestBuilder<any>;
4424
+ };
4425
+ delete: {
4426
+ post: (body: {
4427
+ modelId: string;
4428
+ }, config?: RequestConfig) => RequestBuilder<any>;
4429
+ };
4430
+ };
4431
+ chat: {
4432
+ supplierOptions: {
4433
+ /** 获取下游应用对话模型设置可用的供应商(与 Ones 已启用 aiSupplier 列表一致) */
4434
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4435
+ };
4436
+ modelOptions: {
4437
+ /** 获取下游应用可用的对话模型目录项(已启用 text_generation) */
4438
+ post: (body: {
4439
+ supplierIds?: string[];
4440
+ }, config?: RequestConfig) => RequestBuilder<any>;
4441
+ };
4442
+ integrationExport: {
4443
+ /** 按 offeringModelId 生成 LLMConfig 片段与下游 API 说明,供 Ones 复制或调试 */
4444
+ post: (body: {
4445
+ offeringModelId: string;
4446
+ }, config?: RequestConfig) => RequestBuilder<any>;
4447
+ };
4448
+ reloadRuntime: {
4449
+ /** 目录或 Key 变更后,从 Mongo 重新编译 /agent/* 可用模型(无需重启进程) */
4450
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4451
+ };
4452
+ };
4453
+ prompt: {
4454
+ supplierOptions: {
4455
+ /** Prompt 模块:筛选平台 Runtime 已就绪的文本模型供应商 */
4456
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4457
+ };
4458
+ modelOptions: {
4459
+ /** Prompt 模块:从平台 Runtime 目录筛选文本模型(offering modelId + providerModelId) */
4460
+ post: (body: {
4461
+ supplierIds?: string[];
4462
+ }, config?: RequestConfig) => RequestBuilder<any>;
4463
+ };
4464
+ };
4465
+ };
4466
+ billingCatalog: {
4467
+ suppliers: {
4468
+ list: {
4469
+ /** 获取 AI 模型供应商列表 */
4470
+ post: (body: {
4471
+ enabledOnly?: boolean;
4472
+ supplierKind?: "agent_vendor" | "agent_proxy";
4473
+ agentVendorOnly?: boolean;
4474
+ }, config?: RequestConfig) => RequestBuilder<any>;
4475
+ };
4476
+ };
4477
+ models: {
4478
+ find: {
4479
+ post: (body: {
4480
+ page?: number;
4481
+ pageSize?: number;
4482
+ supplierId?: string;
4483
+ profileId?: string;
4484
+ protocolId?: string;
4485
+ tag?: string;
4486
+ keyword?: string;
4487
+ enabled?: boolean;
4488
+ }, config?: RequestConfig) => RequestBuilder<any>;
4489
+ };
4490
+ };
4491
+ billingEntries: {
4492
+ list: {
4493
+ /** 按 supplier+profile 聚合的价表列表 */
4494
+ post: (body: {
4495
+ page?: number;
4496
+ pageSize?: number;
4497
+ supplierId?: string;
4498
+ profileId?: string;
4499
+ productLine?: "" | "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
4500
+ keyword?: string;
4501
+ pricingConfigured?: boolean;
4502
+ billable?: boolean;
4503
+ }, config?: RequestConfig) => RequestBuilder<any>;
4504
+ };
4505
+ unconfigured: {
4506
+ post: (body: {
4507
+ supplierId?: string;
4508
+ productLine?: "" | "text" | "multimodal" | "image_gen" | "video_gen" | "mesh_3d" | "embedding" | "speech_tts" | "speech_voice_clone" | "speech_voice_design" | "speech_asr_file" | "speech_asr_stream" | "speech_si" | "speech_realtime_duplex";
4509
+ keyword?: string;
4510
+ }, config?: RequestConfig) => RequestBuilder<any>;
4511
+ };
4512
+ get: {
4513
+ post: (body: {
4514
+ supplierId: string;
4515
+ profileId: string;
4516
+ }, config?: RequestConfig) => RequestBuilder<any>;
4517
+ };
4518
+ statuses: {
4519
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4520
+ };
4521
+ };
4522
+ modelPricing: {
4523
+ delete: {
4524
+ post: (body: {
4525
+ supplierId: string;
4526
+ profileId: string;
4527
+ }, config?: RequestConfig) => RequestBuilder<any>;
4528
+ };
4529
+ };
4530
+ builtinServices: {
4531
+ list: {
4532
+ /** 只读内置 serviceKey 与 chargeMethodKey catalog */
4533
+ post: (body: {
4534
+ group?: "ai" | "storage" | "platform";
4535
+ }, config?: RequestConfig) => RequestBuilder<any>;
4536
+ };
4537
+ };
4538
+ exchangeRate: {
4539
+ get: {
4540
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4541
+ };
4542
+ update: {
4543
+ post: (body: {
4544
+ usdToCny: number;
4545
+ }, config?: RequestConfig) => RequestBuilder<any>;
4546
+ };
4547
+ };
4548
+ };
4549
+ embeddings: {
4550
+ create: {
4551
+ /** 将文本转换为向量(豆包 doubao-embedding-vision-250615),含计费 */
4552
+ post: (body: {
4553
+ model?: string;
4554
+ input: string;
4555
+ dimensions?: number;
4556
+ instructions?: string;
4557
+ }, config?: RequestConfig) => RequestBuilder<any>;
4558
+ };
4559
+ delete: {
4560
+ /** 删除向量生成任务记录 */
4561
+ post: (body: {
4562
+ id: string;
4563
+ }, config?: RequestConfig) => RequestBuilder<any>;
4564
+ };
4565
+ find: {
4566
+ /** 分页查询向量生成任务 */
4567
+ post: (body: {
4568
+ current: number;
4569
+ pageSize: number;
4570
+ where: {
4571
+ input?: string;
4572
+ supplierId?: string;
4573
+ model?: string;
4574
+ status?: string;
4575
+ };
4576
+ }, config?: RequestConfig) => RequestBuilder<any>;
4577
+ };
4578
+ findOne: {
4579
+ /** 查询单条向量生成任务 */
4580
+ post: (body: {
4581
+ id: string;
4582
+ }, config?: RequestConfig) => RequestBuilder<any>;
4583
+ };
4584
+ options: {
4585
+ status: {
4586
+ /** 获取向量任务状态下拉选项 */
4587
+ post: (config?: RequestConfig) => RequestBuilder<any>;
1806
4588
  };
1807
4589
  };
1808
4590
  };
1809
4591
  webhooks: {
1810
4592
  events: {
1811
4593
  /** 获取所有可用的 Webhook 事件类型 */
1812
- get: (config?: RequestConfig) => Promise<ApiResponse<any>>;
4594
+ get: (config?: RequestConfig) => RequestBuilder<any>;
1813
4595
  ':id': {
1814
4596
  /** 获取指定分类的 Webhook 事件 */
1815
- get: (config?: RequestConfig) => Promise<ApiResponse<any>>;
4597
+ get: (config?: RequestConfig) => RequestBuilder<any>;
1816
4598
  };
1817
4599
  };
1818
4600
  categories: {
1819
4601
  /** 获取所有 Webhook 事件分类 */
1820
- get: (config?: RequestConfig) => Promise<ApiResponse<any>>;
4602
+ get: (config?: RequestConfig) => RequestBuilder<any>;
1821
4603
  };
1822
4604
  };
1823
4605
  }